This repo contains refined code for server to control Freenove 4WD Smart Car Kit for Raspberry Pi.
Install all dependencies according to original tutorial, then connect to your Raspberry Pi and run in terminal:
cd server
sudo python main.py
To exit, press Ctrl+C
.
There are some additional scripts which can be used for experimentation:
-
pan_tilt_camera: play with a better camera and Pan Tilt HAT (see dedicated README.md)
-
playground: a jupyter notebook to experiment with hardware controlling scripts in isolation
I'm planning to play a bit with extra capabilities just for fun, so would need to adjust server/client code a bit, but found original quite difficult to extend. Also refactoring helps to understand code and logic a bit more.
The code in the repo is not very idiomatic too, I'm planning to address this later (maybe).
Experimental. No warranty.