🚗 树莓派小车(use WiringPi library)
- NOTE: raspberry pi GND must be connect L298N GND interface.
- git clone this repo
- cd project dir
raspberry-pi-car/respberry-pi-car/car/* - run commond
gcc -o car car.c -lwiringPi -lpthread - run commond
sudo ./car - keyboard input 'w' = forward、's' = back 、'a' = left 、 'd' = right 、 'space' or 'other' = stop , ANSI code control car.
- NOTE: remember comment unselect "main" method.
- git clone this repo
- cd project dir
raspberry-pi-car/raspberry-pi-car/server/* - run commond
gcc -o server server.c ../car/car.c -lwiringPi -lpthread - run commond
sudo ./server - socket send commond to server 'w' = forward、's' = back 、'a' = left 、 'd' = right 、 'space' or 'other' = stop , ANSI code control car.
- NOTE: your raspberry pi has the wiringPi library installed.
