Donkey® Car
  • Docs
  • FAQ
  • Community
  • Examples
  • Updates
  • Docs
  • FAQ
  • Community
  • Examples
  • Updates

How do you build a business based on Donkey?

3/2/2019

0 Comments

 
Here is the policy on using Donkey Car for you business Link
0 Comments

What sensors does the car use?

5/22/2017

1 Comment

 
One wide angle camera. 

It's likely we'll need to add more sensors but we've not come close to reaching the limitations of driving with a camera. 

Others have made a fork to support Pi hats that have other sensors. 
1 Comment

Why is it called Donkey?

5/22/2017

0 Comments

 
  • Donkey's are one of the earliest domesticated pack animals. 
  • They are safe for kids. 
  • They occasionally don't follow their masters commands. 
  • The word, donkey, has a negative/ugly connotation so expectations are super low.
0 Comments

How do I enable the camera, IC2 and ssh on the pi?

5/18/2017

0 Comments

 
  1. Turn on the Pi.
  2. Enable your camera, ssh and I2C in the Menu > Preferences > Raspberry Pi Config
  3. Restart your Pi. (open terminal and type sudo reboot)
  4. Still having problems. See the instructions.



Install and Test Adafruit Motor Shield software
Follow instructions to build a Adafruit 16-Channel PWM/Servo HAT for Raspberry Pi. 
0 Comments

How do I manually install the software on Raspberry Pi?

5/18/2017

6 Comments

 
Install an operating system using NOOBS
  1. Follow these instructions to install the Raspbian Jessie operating system using the NOOBS method on your SD card.
  2. Put the SD card into your Raspberry Pi.
  3. Power up your Raspberry Pi using the USB cable.
  4. Connect to the internet.

Install Basic LibrariesSince the Raspberry Pi is not as fast as larger computers, it can take a long time to install python packages (ie. numpy & PIL) using pip. Luckily Adafruit has precompiled these libraries into packages that can be installed via `apt-get`.

1. Open a terminal (Ctrl-Alt-t) and upgrade your system packages.
    sudo apt-get update
    sudo apt-get upgrade

3. Install necessary libraries
    sudo apt-get install xsel xclip libxml2-dev libxslt-dev libzmq-dev libspatialindex-dev virtualenv

4. Pandas & Jupyter Requirements
sudo apt-get install python3-lxml python3-h5py python3-numexpr python3-dateutil python3-tz python3-bs4 python3-xlrd python3-tables python3-sqlalchemy python3-xlsxwriter python3-httplib2 python3-zmq

5. Scientific Python
sudo apt-get install python3-numpy python3-matplotlib python3-scipy python3-pandas

6. Install Tensorflow (for running pilots locally)
  • See these instructions for details: https://github.com/samjabrahams/tensorflow-on-raspberry-pi
  • You should be able to run  the following two commands. NOTE this takes ~15 minutes.
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v0.12.1/tensorflow-0.12.1-cp34-cp34m-linux_armv7l.whl


sudo pip3 install tensorflow-0.12.1-cp34-cp34m-linux_armv7l.whl

Install DonkeyRun the following commands in a bash terminal on your raspberry pi.

virtualenv --system-site-packages -p python3 env
source env/bin/activate
pip install keras
​

git clone http://github.com/wroscoe/donkey.git
cd donkey

pip install -e .[pi]
python scripts/setup.py
6 Comments

How do I calibrate my ESC?

5/18/2017

2 Comments

 
If you have a brushless motor you’ll need to calibrate your ESC before driving it. Brushed motors should be calibrated automatically. When not calibrated an ESC will periodically beep.  When calibrated, it will beep a little song then stop beeping. See scripts/calibrate.py to see how this works.
2 Comments

How can I run Donkey on Amazon EC2?

5/18/2017

0 Comments

 
  1. Login to Amazon EC2
  2. Click Launch Instance
  3. Make sure you're using the N. California region (recommend g2.2xlarge)
  4. Click Community AMI’s
  5. Search for “donkey” to find the instance. Pick the one with the highest number next to it. As of this writing it was  ami-df5e07bf.
  6. When you launch your Security Groups should look something like this, but with the source IP changed to your IP.  One note - we are not using a secure protocol or login, so this is the only thing protecting you from the internet.  
  7. Once you launch the server either SSH to it or use the AWS console to get terminal access and run:
    1. source env/bin/activate
    2. cd donkey
    3. git pull origin master
  8. Start the serverr
    1. python scripts/serve.py

0 Comments

How do I install Python 3 and Git on OSX

5/18/2017

0 Comments

 
In terminal first install the command line tools for Xcode by opening a terminal and running:
xcode-select --install

Next Install Homebrew with the following terminal command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

To ensure you have the most up to date version with the following terminal commands:

brew update
brew upgrade

To ensure it is working with the following terminal command:
brew doctor

Using brew install python 2 and 3 with the following terminal commands:

brew install python
brew install python3

Using brew install git with the following terminal commands:

brew install git
0 Comments

​Donkey is an open source project powered by volunteers with a shared interest to build their own self driving cars.