A multi-mode DIY car that can perform object tracking, collision detection and RC control
https://www.youtube.com/watch?v=-7l7ddGZTMU&ab_channel=AhmedAhmedEG
MP_Car.py: is the main controller, it handles modes functions, camera, gyroscope, bluetooth commands and controlling arduino.
MP_Car.ino: is the arduino code that handels the motor driver, ultrasonic sensor, servo motor and the buzzer.
Mask_Creator.py: a simple script with GUI trackers, it's purpose is to get values needed for filtering the wanted color for object detection.
Modules/mpu6050.py: is a modified version of m-rtijn's mpu6050 python library (https://github.com/m-rtijn) that's eaiser to use and includes calculations for rotations angles, logging for all usefull sensor information and with error reduction technique.
Modules/utils.py: includes funtions used in MP_Car.py for hardware detection, data gathering and error handling.
Low Cost Autonomous Vehicle Based On Efficient Color Filtering Algorithm.docx
python3 -m pip install opencv-python
python3 -m pip install pyserial
pythom3 -m pip install imutils
pythom3 -m pip install numpy
sudo apt install python3-smbus
Firstly, update everthing:-
sudo apt-get update && sudo apt-get upgrade && sudo rpi-update
sude reboot
Then install tools needed for opencv:-
sudo apt-get install libcblas-dev
sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install libqt4-test