Giter VIP home page Giter VIP logo

raspberry-rc-car-controller's Introduction

Raspberry PI RC Car Controller

Introduction

This project is a Python-based controller for an RC Car raspberry project. It uses Flask and SocketIO to handle real-time communication between the web-based controller application and the vehicle (via Raspberry GPIO). The application receives simple joystick data and processes it to control the vehicle's movement.

Features

  • Real-time vehicle control
  • Easy-to-use web interface
  • Lightweight Flask server
  • SocketIO for efficient client-server communication

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x installed
  • Pip for Python package management

Installation

  1. Clone the repository: git clone https://github.com/mrstroz/raspberry-rc-car-controller.git
  2. Navigate to the project directory: cd raspberry-rc-car-controller
  3. Install Python 3 and pip. Python 3 is usually pre-installed on Raspberry Pi. You can check your Python version with: python3 --version
  4. Create a Virtual Environment with: python3 -m venv ./.venv
  5. Activate the Virtual Environment: source ./.venv/bin/activate
  6. Install the required Python packages: pip install flask python-socketio python-dotenv
  7. Copy .env.example file into .env cp .env.example .env

Usage

To run the server, use the following command:

python main.py

Once the server is running, open a web browser and navigate to http://127.0.0.1:5000 or to http://[your-raspberry-ip]:5000 to access the control interface.

To see your Raspberry PI IP address, type hostname -I

raspberry-rc-car-controller's People

Contributors

mrstroz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.