This quick start assumes you have already built your Donkeycar hardware. If not, refer to the hardware build guide.
Prerequisites
Before starting, ensure you have:- A Raspberry Pi, Jetson Nano, or PC/Mac with Donkeycar installed
- Basic familiarity with the command line terminal
- Your hardware assembled (for physical car)
Installation
Create Your Car Application
Basic Configuration
Calibrate Your Car
Before your first drive, you need to calibrate the steering and throttle.Your First Drive
Train Your First Model
Once you have recorded driving data, you can train an autopilot model:Training can take 5-30 minutes depending on your hardware and dataset size. For Raspberry Pi, it’s recommended to train on a more powerful PC and transfer the model.
Drive on Autopilot
Test your trained model:- Switch mode to Autopilot or Local Pilot
- The car will now drive itself using the trained model
- You can take over control at any time
Next Steps
Installation Details
Detailed installation for your specific platform
Configuration Guide
Deep dive into all configuration options
Training Guide
Advanced training techniques and model tuning
Hardware Build
Build your own Donkeycar from scratch
Troubleshooting
Camera not working
Camera not working
- Check that the camera is properly connected
- For Raspberry Pi Camera: Ensure it’s enabled in
raspi-config - For USB camera: Try
CAMERA_INDEX = 0orCAMERA_INDEX = 1 - Test camera:
raspistill -o test.jpg(Pi Camera) orv4l2-ctl --list-devices(USB)
Car not responding to controls
Car not responding to controls
- Verify your
DRIVE_TRAIN_TYPEis correct - Check pin connections match your configuration
- Run calibration script to verify PWM output
- Check that motors are receiving power
Can't connect to web interface
Can't connect to web interface
- Verify car’s IP address:
hostname -I - Check firewall settings
- Try connecting from the same WiFi network
- Ensure
WEB_CONTROL_PORTis not blocked
Import errors when starting
Import errors when starting
- Verify Donkeycar is installed:
pip list | grep donkey - Ensure you’re using Python 3.11:
python --version - Reinstall with correct extras:
pip install donkeycar[pi]
Getting Help
If you run into issues:- Check the official documentation
- Join the Discord community
- Search GitHub issues
- Ask questions in the #help channel on Discord
