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 shell
to enter the pipenv environment - If you run
python -V
you should now see 3.10
- Run the
testPWM.py
file - 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.py
to process images in real time and send according PWM values. - Run
stopCar.py
at anytime to send a neutral to the ESC and get the steering back to normal. TheKeyboardInterrupt
exception in thesignDetection.py
also 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.