DonkeyCar for Pi-WEB Control
From Waveshare Wiki
Guide of DonkeyCar
- Setup Raspberry Pi
- Setup Linux PC
- WEB Control
- Calibrate DonkeyCar
- Teleoperation
- Data Collection
- Train Data
- Auto-Driving
- WiKi of PiRacer Pro | WiKi of PiRacer
WEB Controlling
- Open the terminal and run the follow commands:
pi@raspberrypi:~$ source ~/env/bin/activate (env) pi@raspberrypi:~$ cd mycar/ (env) pi@raspberrypi:~/mycar$ python manage.py drive
Note that you cannot use sudo in front of the command python manage.py drive, otherwise it cannot be run successfully.
- Open the Chrome in host pc and go to https://<raspberrypi_ip_address>:8887 which is the WEB control page of Donkeycar
Choose the Max speed for the Max Throttle option. Click the right joystick windows and drag it to move the PiRacer. The Angle & Throttle bars will display the steering angle and the motor speed. You can click the Start Recording button to capture images and save to path ~/mycar/data
- You can also go into the WEB page by your telephone.
- You can also control the car by keyboard
- Space: Stop Moving/Recording
- R: Recording
- I: Speed up
- K: Slow down
- J: Turn left
- L: Turn right