Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Last active September 15, 2023 17:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolfeidau/dc8ad4367c879f040630064d33d7d7a5 to your computer and use it in GitHub Desktop.
Save wolfeidau/dc8ad4367c879f040630064d33d7d7a5 to your computer and use it in GitHub Desktop.
Commands I used to configure donkey car on raspberry pi 3 b+

Install i2c tools to check for PCA9685 board.

sudo apt-get install i2c-tools
sudo i2cdetect -y 1

Install vim and git.

sudo apt install vim git -y

Disable ipv6.

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

Install the donkey car dependencies

sudo apt update
sudo apt-get install virtualenv build-essential python3-dev gfortran libhdf5-dev libatlas-base-dev libopenjp2-7-dev libtiff5 -y

Setup the python environment.

virtualenv env -p python3
source env/bin/activate
pip install tensorflow==1.8.0

Clone donkey car and install it.

git clone https://github.com/autorope/donkeycar
pip install -e ./donkeycar

Setup your configuration.

donkey createcar ~/mycar

Install the python library for pca9685 board.

pip install adafruit-pca9685

Install the python library for the raspberry pi camera.

pip install picamera

Print out the values you need to test during calibration.

cat mycar/config.py 

Calibrate throttle.

donkey calibrate --channel 0

Calibrate steering.

donkey calibrate --channel 1

Edit configuration with values.

vim mycar/config.py 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment