25 lines
554 B
Markdown
25 lines
554 B
Markdown
|
# RC Car using Raspberry Pi 3 and an Xbox One Controller
|
||
|
## Prerequisites
|
||
|
* Raspberry Pi 3 with Raspbian (should work with another distro)
|
||
|
* Xbox One Controller (Bluetooth version, other bluetooth/usb controller should work)
|
||
|
* Installed WiringPi
|
||
|
* make
|
||
|
* Servoblaster installed and loaded
|
||
|
|
||
|
## Building
|
||
|
```
|
||
|
git clone https://git.divaldo.hu/divaldo/PiCar.git
|
||
|
cd PiCar/
|
||
|
make
|
||
|
```
|
||
|
## Running
|
||
|
Connect your controller:
|
||
|
```
|
||
|
sudo su
|
||
|
echo 1 > /sys/module/bluetooth/parameters/disable_ertm
|
||
|
exit
|
||
|
```
|
||
|
Execute the app (maybe need superuser privilege):
|
||
|
```
|
||
|
./bt_car
|
||
|
```
|