Donkey Car Jetson Nano Edition�Assembly Guide
Robocar Ltd
Disclaimer
The contents contained in this document are copyright protected. Except with the prior written permission of Robocar Limited, no person may download, duplicate, reproduce, edit, publish, make available or disseminate through whatever means any content contained in whole or in part.
Please contact hi@robocarstore.com for licensing this material to be used in classroom or other occasion.
Copyright © 2019 Robocar Ltd
Assemble the hardware
45 minutes
Step 1
Mount Hexagon Standoff Spacer to Base Plate��Material:
Step 2
Attach Servo Driver, and Voltage Converter to Base Plate��Material:
Step 3
Mount the standoff on the adapter
�Material:
Step 4
Attach the Jetson Nano Adapter to the base Plate��Material:
Step 5
Install the Wifi Card
Step 6
Step 7
Warning: The latches are very fragile. Apply extra care when you lock and unlock the latches
Step 8
Secure the Jetson Nano on the adapter��Material:
Step 8
Step 9
Connect the PCA9685 to the Jetson Nano
There are four pin named GND, SCL, SDA, VCC on the PCA9685. They should be connected to the Jetson Nano pin 1,3,5, 9 correspondingly. �
Step 9
Step 10
Connect the USB cable from the 5V converter to the Jetson Nano
Step 11
Slide the camera into the cage as shown
Step 11
Step 12
Fix the cage to the base plate using the m2.6x8mm PT screws
Turn the cage and the base plate upside down will be easier to secure the cage
Step 13
Attach the splitter wire to the 5V converter
Warning: Be careful the red wire should go to the +ve and black wire should go to the -ve. You may damage the battery and all electronics if you connect incorrectly
Step 13
Attach the base plate on the HSP94186 RC car
Step 13
You can secure the base plate using the clip provided
Step 14
There are two wires coming from the ESC and the servo. They should go through the oval outlet of the base plate.
Connect the two wire to the channel 0 and channel 1 of the PCA9685
The one coming from the ESC should connect to channel 0 and the one coming from the servo should connect to channel 1
Step 14
Step 15 - Flash the SD card
Download Pre-built image here:
https://www.dropbox.com/s/uzvsmf6j3s9fqw8/jetson_nano_dk_302.zip?dl=0
Copyright © 2019 Robocar Ltd
Step 16
Install the SD card
Step 17
Connect the battery to the ESC and the 5V converter
There is a switch attached to the ESC. Turn it on if you haven’t done so.
Step 18
You will see the Jetson Nano, 5V converter, ESC and the PCA9685 light up as this picture
The 5V converter shows the voltage of the battery and you should not use it below 7V.
Step 19 - Connect to Wifi
If you are using our pre-built image, the Jetson Nano will become a wifi hotspot.
$ sudo nmcli conn down id Hotspot; sleep 5; sudo nmcli device wifi connect <another_ssid> password <another_password>
$ ssh -l nano nano.local
$ sudo nmcli conn up <Conn_id>
Copyright © 2019 Robocar Ltd
Step 19 - Connect to Wifi
If you are using our pre-built image, the Jetson Nano will become a wifi hotspot.
$ ssh -l nano nano.local
Copyright © 2019 Robocar Ltd
Step 20 - Expand the filesystem
$ df -h
Copyright © 2019 Robocar Ltd
Step 20 - Expand the filesystem
Copyright © 2019 Robocar Ltd
Step 21 - Test PCA9685
Use this command to test
$ sudo i2cdetect -r -y 1
Step 22 - Test Camera Connectivity
Use this command to test
This will create a file under /tmp/test.jpg. You can use sftp to copy the file back to your local PC to check the image
$ gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg
Step 23 - Update myconfig.py
Update the camera type
CAMERA_TYPE = "CSIC"
PCA9685_I2C_BUSNUM = 1
IMAGE_W = 224
IMAGE_H = 224
CSIC_CAM_GSTREAMER_FLIP_PARM = 6
Step 23 - Start the donkey car software
Go to http://nano.local:8887 and you can check whether the camera is correctly attached to the system.
$ python manage.py drive
Step 23 - Start the donkey car software
Go to http://nano.local:8887 and you can check whether the camera is correctly attached to the system.
$ python manage.py drive
Finished!
MM1
Go to http://nano.local:8887 and you can check whether the camera is correctly attached to the system.
$ sudo minicom -D /dev/ttyTHS1 -b 115200