> ## Content Index
> Fetch the complete content index at: https://www.oransblog.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# My Autonomous RC car build: 'Donkey Car' WIP (20210325)
- URL: https://www.oransblog.com/donkey-car/
- Published: 2021-03-26T03:13:45.000Z
- Updated: 2026-10-29T05:57:19.000Z
- Description: This is my progress log of creating a autonomous RC car.
- Author: Oran C
- Tags: MachineLearning, opencv, coding, linux, hacking, writeup, #Import 2026-11-12 01:14

This is my progress log of creating a autonomous RC car.

---

What is a donkey car?

**`An opensource DIY self driving platform for small scale cars`** 

[Donkey® Car - Home](https://www.donkeycar.com/?ref=oransblog.com)

Recommended they have a discord 

Discord Server

[https://discord.gg/PN6kFeA](https://discord.gg/PN6kFeA?ref=oransblog.com)

Github [autorope/donkeycar: Open source hardware and software platform to build a small scale self driving car.](https://github.com/autorope/donkeycar?ref=oransblog.com)

---

How to build the hardware

Car body selection

[Build a car. - Donkey Car](http://docs.donkeycar.com/guide/build%5Fhardware/?ref=oransblog.com)

The only missing part I didnt already have was 

![](https://www.oransblog.com/content/images/2021/03/image-36.png)

3d print files

[Donkey Chassis and Adapters - Current by aconway - Thingiverse](https://www.thingiverse.com/thing:2566276?ref=oransblog.com)

---

![](https://www.oransblog.com/content/images/2021/03/image-39.png)

my printer model

![](https://www.oransblog.com/content/images/2021/03/image-37.png)

![](https://www.oransblog.com/content/images/2021/03/image-38.png)

![](https://www.oransblog.com/content/images/2021/03/image-40.png)

![](https://www.oransblog.com/content/images/2021/03/image-41.png)

doesnt fit on my printer need to fix use other file

![](https://www.oransblog.com/content/images/2021/03/image-42.png)

even if i rotate it! darn...

![](https://www.oransblog.com/content/images/2021/03/image-43.png)

at least 1 of them works

[Donkey Self-Racing Car - Classic Version by aconway - Thingiverse](https://www.thingiverse.com/thing:2260575?ref=oransblog.com)

The newist version doesnt work for me....

Going to modify the files to split them into two pieces

![](https://www.oransblog.com/content/images/2021/03/image-45.png)

after some though i decided to modify the new one for uses on my mini using tinkercad

![](https://www.oransblog.com/content/images/2021/03/image-46.png)

![](https://www.oransblog.com/content/images/2021/03/image-47.png)

cut the object in two

![](https://www.oransblog.com/content/images/2021/03/image-48.png)

![](https://www.oransblog.com/content/images/2021/03/image-49.png)

![](https://www.oransblog.com/content/images/2021/03/image-50.png)

I had to cut corners

###### Reference: [Why does the paper in Battlestar Galactica have the corners cut off? - Science Fiction & Fantasy Stack Exchange](https://scifi.stackexchange.com/a/12336?ref=oransblog.com)

![](https://www.oransblog.com/content/images/2021/03/image-51.png)

![](https://www.oransblog.com/content/images/2021/03/image-52.png)

![](https://www.oransblog.com/content/images/2021/03/image-53.png)

trying out a quicker print

I'm going to have to wait two weeks to print this because I had to buy more PLA filament. (sad face emoji)

```bash
by oran collins
github.com/wisehackermonkey
oranbusiness [at symbol] gmail [dot character] com
20210325
```

---

Install the software (RPI4)

[Get Your Raspberry Pi Working - Donkey Car](http://docs.donkeycar.com/guide/robot%5Fsbc/setup%5Fraspberry%5Fpi/?ref=oransblog.com)

Login to my pi:

![](https://www.oransblog.com/content/images/2021/03/image-54.png)

```bash
sudo apt-get update
sudo apt-get install build-essential python3 python3-dev python3-pip python3-virtualenv python3-numpy python3-picamera python3-pandas python3-rpi.gpio i2c-tools avahi-utils joystick libopenjp2-7-dev libtiff5-dev gfortran libatlas-base-dev libopenblas-dev libhdf5-serial-dev git ntp -y

```

### Install OpenCV Dependencies

```bash
sudo apt-get install libilmbase-dev libopenexr-dev libgstreamer1.0-dev libjasper-dev libwebp-dev libatlas-base-dev libavcodec-dev libavformat-dev libswscale-dev libqtgui4 libqt4-test -y

```

### Setup Virtual Env

```bash
python3 -m virtualenv -p python3 env --system-site-packages
echo "source env/bin/activate" >> ~/.bashrc
source ~/.bashrc

```

![](https://www.oransblog.com/content/images/2021/03/image-55.png)

![](https://www.oransblog.com/content/images/2021/03/image-56.png)

![](https://www.oransblog.com/content/images/2021/03/image-57.png)

![](https://www.oransblog.com/content/images/2021/03/image-58.png)

![](https://www.oransblog.com/content/images/2021/03/image-59.png)

![](https://www.oransblog.com/content/images/2021/03/image-60.png)

NOTE: To return to the system python you can type `deactivate`.

## **Install Donkeycar Python Code**

```bash
cd ~ 
mkdir github
cd github

git clone https://github.com/autorope/donkeycar
cd donkeycar
git checkout master
pip install -e .[pi]
pip install numpy --upgrade
wget "https://raw.githubusercontent.com/PINTO0309/Tensorflow-bin/master/tensorflow-2.3.1-cp37-none-linux_armv7l_download.sh"
chmod u+x tensorflow-2.3.1-cp37-none-linux_armv7l_download.sh
./tensorflow-2.3.1-cp37-none-linux_armv7l_download.sh
pip install tensorflow-2.3.1-cp37-none-linux_armv7l.whl

```

![](https://www.oransblog.com/content/images/2021/03/image-61.png)

![](https://www.oransblog.com/content/images/2021/03/image-62.png)

![](https://www.oransblog.com/content/images/2021/03/image-63.png)

![](https://www.oransblog.com/content/images/2021/03/image-64.png)

![](https://www.oransblog.com/content/images/2021/03/image-65.png)

![](https://www.oransblog.com/content/images/2021/03/image-66.png)

![](https://www.oransblog.com/content/images/2021/03/image-67.png)

![](https://www.oransblog.com/content/images/2021/03/image-68.png)

![](https://www.oransblog.com/content/images/2021/03/image-69.png)

```bash
python -c "import tensorflow"

```

#### install opencv bindings

```bash
sudo apt install python3-opencv -y

```

![](https://www.oransblog.com/content/images/2021/03/image-70.png)

---

Create Donkey car app

[Create Donkeycar App. - Donkey Car](http://docs.donkeycar.com/guide/create%5Fapplication/?ref=oransblog.com)

```bash
donkey createcar --path ~/github/donkeycar-oran
cd ~/github/donkeycar-oran
nano myconfig.py
```

![](https://www.oransblog.com/content/images/2021/03/image-71.png)

![](https://www.oransblog.com/content/images/2021/03/image-72.png)

![](https://www.oransblog.com/content/images/2021/03/image-73.png)

![](https://www.oransblog.com/content/images/2021/03/image-74.png)

![](https://www.oransblog.com/content/images/2021/03/image-75.png)

To save and exit: ctrl + x, "y", ENTER