1 of 38

Donkey Car Jetson Nano Edition�Assembly Guide

Robocar Ltd

2 of 38

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

3 of 38

Assemble the hardware

45 minutes

4 of 38

Step 1

Mount Hexagon Standoff Spacer to Base Plate��Material:

  1. 4 x m2.5 x 20mm Standoff
  2. 8 x m2.5 x 5mm Standoff
  3. 12 x m2.5 nuts

5 of 38

Step 2

Attach Servo Driver, and Voltage Converter to Base Plate��Material:

  • PWM Controller + 4 x m2.5 screw
  • 5V converter + 2 x m2.5 screw

6 of 38

Step 3

Mount the standoff on the adapter

�Material:

  • Adapter
  • 4 x m2.5 screws and nuts

7 of 38

Step 4

Attach the Jetson Nano Adapter to the base Plate��Material:

  • Adapter
  • 4 x m2.5 screws

8 of 38

Step 5

Install the Wifi Card

  • Unpack the Jetson Nano
  • Remove the 2 module screws
  • Release latches which hold the module in place
  • Remove the Jetson Module from the carrier board

9 of 38

Step 6

  • Attach the antennas to the WiFi card
  • Install and secure the WiFi Card
  • Install the Jetson Module back to the carrier board

10 of 38

Step 7

  • Carefully unlock the latch of the camera interface on the board
  • Attach the camera cable to the board
  • Secure the camera cable using the latches

Warning: The latches are very fragile. Apply extra care when you lock and unlock the latches

11 of 38

Step 8

Secure the Jetson Nano on the adapter��Material:

  • Jetson Nano
  • 4 x m2.5 screws

12 of 38

Step 8

13 of 38

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. �

14 of 38

Step 9

15 of 38

Step 10

Connect the USB cable from the 5V converter to the Jetson Nano

16 of 38

Step 11

Slide the camera into the cage as shown

17 of 38

Step 11

18 of 38

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

19 of 38

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

20 of 38

Step 13

Attach the base plate on the HSP94186 RC car

21 of 38

Step 13

You can secure the base plate using the clip provided

22 of 38

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

23 of 38

Step 14

24 of 38

Step 15 - Flash the SD card

  • Download our pre-built image and flash the SD card using Etcher

Download Pre-built image here:

https://www.dropbox.com/s/uzvsmf6j3s9fqw8/jetson_nano_dk_302.zip?dl=0

Copyright © 2019 Robocar Ltd

25 of 38

Step 16

Install the SD card

26 of 38

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.

27 of 38

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.

28 of 38

Step 19 - Connect to Wifi

If you are using our pre-built image, the Jetson Nano will become a wifi hotspot.

  1. Connect your PC to the hotspot�SSID: nano, Password: asdfasdf
  2. Connect via SSH��Username: nano, password: asdfasdf
  3. Execute the following command to connect to your wifi network��
  4. For wifi network that is added previously, use the following command

$ 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

29 of 38

Step 19 - Connect to Wifi

If you are using our pre-built image, the Jetson Nano will become a wifi hotspot.

  • Connect your PC back to your wifi network
  • Test connection via ssh again�

$ ssh -l nano nano.local

Copyright © 2019 Robocar Ltd

30 of 38

Step 20 - Expand the filesystem

  • Check the existing partition information���������You can see that on a 32GB SD card, the size shown is only 14GB�* This is because we shrink the partition to allow a smaller SD card image

$ df -h

Copyright © 2019 Robocar Ltd

31 of 38

Step 20 - Expand the filesystem

  • Follow the steps of this video to expand the filesystem���������

Copyright © 2019 Robocar Ltd

32 of 38

Step 21 - Test PCA9685

Use this command to test

$ sudo i2cdetect -r -y 1

33 of 38

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

34 of 38

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

35 of 38

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

36 of 38

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

37 of 38

Finished!

38 of 38

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