pipenv (pi3 install pipenv)
- Clone this repo
- Enter directory
- Run
pipenv install: This will install the Python 3.10 (locally) as well as the required packages (also locally). - Run
pipenv shellto enter the pipenv environment - If you run
python -Vyou should now see 3.10
- Run the
testPWM.pyfile - Select 1 for testing steering PWM values and 2 for throttle PWM values
- Enter values. These values should be less than 4069 will result in the value/4096 being set as the duty cycle.
- Save your values in
config.py
- Run
signDetection.pyto process images in real time and send according PWM values. - Run
stopCar.pyat anytime to send a neutral to the ESC and get the steering back to normal. TheKeyboardInterruptexception in thesignDetection.pyalso calls this file to stop the car.
The image processing pipeline here has been taken from https://github.com/VyomGarg47/Arrow-Angle-detector. Code has been slightly modified.