Abishevs / wifi-car-with-raspberry-pi4

Flask app with raspb camera view to control and see arduino based RC car from a browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If venv (virutal envierement) is not installed.

sudo apt install python3.10-venv

if just cloned make an virtual envierament

python3 -m venv ./flask-env

start virtual envierement.

source flask-env/bin/activate

then install dependencies

pip install -r requirements.txt

To deactivate type

deactivate

Start the server with debug mode set to True

python3 flask-ard-car.py

To update requirements.txt type this

pip freeze > requirements.txt

Conection frontend to backend

  • Using ajax and javascript to send data on every button click or keystroke press.
  • Keystrokes(wasd and arrows, space or escape for stop) P.S speed up and down not implemnted yet

Future fix of delay from frontend

Use socket.io and get bi-direcation connection to the server. This way sending data will be very low latency.

About

Flask app with raspb camera view to control and see arduino based RC car from a browser.


Languages

Language:JavaScript 41.5%Language:HTML 17.6%Language:Python 16.3%Language:CSS 12.6%Language:C++ 12.0%