Follow this guid
test with
jstest /dev/input/js0
Usage | BCM pin | wiring pi pin |
---|---|---|
LED | 10 | 12 |
PWMA | 12 | 26 |
IN1A | 19 | 24 |
IN2A | 26 | 25 |
PWMB | 13 | 23 |
IN1B | 6 | 22 |
IN2B | 5 | 21 |
STDBY | 9 | 13 |
- PS3 remote
- Raspberry pi 3
- 2 wheel + motor + frame + 4xAA battery holder
- SparkFun Dual Motor Driver
- veroboard, headers, ...
It use a c++ joysitck library as submodule.
This application need wiring pi library. It need to be installed first using:
sudo apt-get install wiringpi
Then to compile:
./build.sh
Due to wiringPi it need to be root
sudo ./build/picar