TatamiRacer can use DonkeyCar software.
This page describes about installing DonkeyCar software and custumizing TatamiRacer.
-
Download "Raspberry Pi Imager" from Raspberry Pi official site.
-
Install "Raspberry Pi Imager".
-
Start "Raspberry Pi imager".
-
Downlowd Raspbian-OS file from the following site.
For TatamiRacer it is recommended to install the desktop version.
Stable Raspbian version for DonkeyCar https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2021-05-28/
2021-05-07-raspios-buster-armhf.zip
See note of Raspbian Bullseye issue of Donkey Car. Flash Operating System -
If you press advanced configration button, you can set WIFI, host name, SSH, user name and password, local setting.
-
Write Raspbian OS to your micro SD card.
-
Un plugging and re-inserting micro SD card.
-
Check the SD card drive. Boot files are appeared if OS image was flashed successfuly.
Internet connection on Raspberry Pi is required before installation.
- Method 1: WiFi setting in the Raspberry Pi Desktop (Monitor and keyboard for Raspberry pi are required.)
- Insert micro SD card into Raspi.
- Plug USB power supply of Raspi.
- Login Raspberry Pi Desktop
- Set Wifi configuration from Raspberry pi Desktop
See Wireless connectivity in the Raspberry Pi Desktop
- Method 2: WiFi setting by boot configuration file (Remote access is available without Raspi monitor and keyboard.)
- Create wpa_supplicant.conf in the top of SD card then edit ssid and password by texteditor
Please see "Setting up a Raspberry Pi headless" - Create ssh file (empty file) in the top of SD card to enable SSH.
Please see "SSH (Secure Shell)>3. Enable SSH on a headless Raspberry Pi" - Insert micro SD card into Raspi.
- Plug USB power supply of Raspi and wait few minutes.
- Launch command prompt and enter following command.
Check network connection between host pc and raspberry pi.
ping raspberrypi
OR
ping raspberrypi.local
- Launch ssh by following command.
ssh-keygen -R raspberrypi
ssh pi@raspberrypi
If "The authenticity of host 'raspberrypi... Are you sure you want to continue connecting (yes/no)?"
is appeared, enter yes.
- Enter password. Initial Password:
raspberry
Remote desktop environment is useful to access Raspberry pi from host pc.
- You can install VNC with the following command.
(You can enter the command from remote ssh or Raspberry pi desktop ternminal.)
yes | sudo apt-get update
yes | sudo apt install realvnc-vnc-server realvnc-vnc-viewer
yes | sudo raspi-config nonint do_vnc 0
- Set screen resolution Select "Display Options-> Resolution" (At least 1280 x 720 recommended.)
sudo raspi-config
-
Select exit and reboot.
-
Installation on the host PC is also requreired.
See "VNC (Virtual Network Computing)".
If you have VNC installed, you can use Remote Desktop.
- Start Raspberry Pi Desktop.
- Launch Terminal window.
- First execute the following command.
yes | sudo apt-get update
yes | sudo apt-get upgrade
*Press q when you see the following message.
if webkit2gtk (2.31.1-1) experimental; urgency=medium ...
- The following command will install the latest Donkey Car application and create default "mycar" application.
wget "https://raw.githubusercontent.com/covao/TatamiRacer/master/raspi/install/install_donkey_raspi.sh" -O "install_donkey_raspi.sh"
sh -x install_donkey_raspi.sh
The shell script is here. install_donkey_raspi.sh
See following procedure.
The following command will replace 'manage.py' and 'config.py' and add 'tatamiracer_test.py' for TatamiRacer.
In addition it will create the shortcut into desktop.
wget "https://raw.githubusercontent.com/covao/TatamiRacer/master/raspi/install/setup_tatamiracer.sh" -O "setup_tatamiracer.sh"
sh -x setup_tatamiracer.sh
The shell script is here. setup_tatamiracer.sh