Difference between revisions of "JetRacer AI Kit"

From Waveshare Wiki
Jump to: navigation, search
m (Text replace - "Service00" to "Service02")
Line 20: Line 20:
 
; Step 1. Write JetRacer image to SD card
 
; Step 1. Write JetRacer image to SD card
 
*You need to prepare an SD card which should be at least 64G
 
*You need to prepare an SD card which should be at least 64G
*Download JetRacer image which is provided by NVIDIA and unzip it. [https://drive.google.com/open?id=1wXD1CwtxiH5Mz4uSmIZ76fd78zDQltW_ Click here to download it]
+
*Download the JetRacer image and unzip it.
 +
** <font color=red> The Jetracer AI Kit use the same image with the Pro version, the non-pro version should switch the jetracer resposity to mast batch at Step 5.</font>
 +
**[https://drive.google.com/file/d/1bgCAUJ9m16g5FGuYgKy3WmGI-pGjPXN0/view?usp=sharing Pre-Built image based on Jetpack4.5]
 
*Connect the SD card to PC via card reader
 
*Connect the SD card to PC via card reader
 
*User Etcher software to write image (unzip above) to SD card.[https://www.balena.io/etcher/ Click here to download Etcher software]
 
*User Etcher software to write image (unzip above) to SD card.[https://www.balena.io/etcher/ Click here to download Etcher software]
Line 47: Line 49:
 
*Access JetRacer by going to <font style="background-color:#EEEEEE"  color=#red><nowiki>http://<jetracer_ip_address>:8888</nowiki></font>
 
*Access JetRacer by going to <font style="background-color:#EEEEEE"  color=#red><nowiki>http://<jetracer_ip_address>:8888</nowiki></font>
 
*Launch a new terminal. Default user name and password are both '''jetson'''
 
*Launch a new terminal. Default user name and password are both '''jetson'''
 +
* Switch the Jetracer batch to the Master
 +
<pre>
 +
cd Jetracer
 +
sudo git checkout master
 +
sudo python3 setup.py
 +
</pre>
 +
<!--
 
*Get and install the latest JetRacer repository from GitHub.The some of the python package provided here are modified by Waveshare for Waveshare JetRacer AI Kit.  
 
*Get and install the latest JetRacer repository from GitHub.The some of the python package provided here are modified by Waveshare for Waveshare JetRacer AI Kit.  
 
*Update Jetcard Python
 
*Update Jetcard Python
Line 85: Line 94:
 
sudo python3 setup.py install
 
sudo python3 setup.py install
 
</pre>
 
</pre>
 +
 
; Step 6. Configure power mode
 
; Step 6. Configure power mode
 
To ensure that the Jetson Nano doesn't draw more current than the battery pack can supply, place the Jetson Nano in 5W mode by calling the following command
 
To ensure that the Jetson Nano doesn't draw more current than the battery pack can supply, place the Jetson Nano in 5W mode by calling the following command
Line 92: Line 102:
 
  sudo nvpmodel -q
 
  sudo nvpmodel -q
 
【Note】m1: 5W power mode, m2: 10W power model
 
【Note】m1: 5W power mode, m2: 10W power model
 
+
-->
 
===3. Examples===
 
===3. Examples===
 
; (1) Basic motion
 
; (1) Basic motion

Revision as of 08:29, 6 May 2022

JetRacer AI Kit
JetRacer AI Kit

AI Racing Robot Kit base on Jetson Nano Developer Kit
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

This is an AI Racing Robot kit based on Jetson Nano Developer Kit. Supports deep learning, auto line following, autonomous driving and so on.

User Guides

1. Hardware setup

2. Software setup

Step 1. Write JetRacer image to SD card
  • You need to prepare an SD card which should be at least 64G
  • Download the JetRacer image and unzip it.
    • The Jetracer AI Kit use the same image with the Pro version, the non-pro version should switch the jetracer resposity to mast batch at Step 5.
    • Pre-Built image based on Jetpack4.5
  • Connect the SD card to PC via card reader
  • User Etcher software to write image (unzip above) to SD card.Click here to download Etcher software
JetBot AI Kit Manual 1.jpg
  • After writing, eject the SD card
Step 2. Startup Jetson Nano Developer Kit
  • Insert SD card to SD card slot of Jetson nano (slot is under Jetson Nano board)
  • Power on JetRacer AI Kit, and connect the micro USB interface of Jetson Nano Developer Kit to your PC

【Note】You had better test the Jetson Nano Developer Kit before you assemble JetRacer

Step 3. Connect JeRacer to WIFI

All the examples use WIFI, we need to connect JetRacer to WIFI firstly.

  • Open a browser (we recommend you to use Chrome) and navigate to 192.168.55.1:8888
  • Sign in with default password jetson
  • Open a terminal in Jupyter Lab by click File -> New -> Terminal
  • In the terminal, type the following command to list available WiFi networks, and find the ssid_name of your network. You can also skip this step if you have known the available network.
sudo nmcli device wifi list
  • Connect to the selected WIFI network. Please replace the <ssid_name> and <password> to the actual name and password.
sudo nmcli device wifi connect <ssid_name> password <password>
  • After getting the successfully information, please check the ip_addtess of Wlan0 interface by the following command
ifconfig
Step 4. Connect to JetRacer over WIFI
  • Unplug the USB cable from Jetson Nano
  • Close the previous Jupyter Lab Browser tab
  • Open a new browser tab and navigate to http://<jetracer_ip_address>:8888
Step 5. Install the python package
  • Access JetRacer by going to http://<jetracer_ip_address>:8888
  • Launch a new terminal. Default user name and password are both jetson
  • Switch the Jetracer batch to the Master
cd Jetracer
sudo git checkout master
sudo python3 setup.py

3. Examples

(1) Basic motion
  • Access JetRacer by going to http://<jetracer_ip_address>:8888, navigate to ~/Notebooks/basic_motion/
  • Browse to the folder ~/jetracer/notebooks in the Jupyter Lab file browser
  • Open basic_motion.ipynb file and following the notebook

【Note】You can click icon ▶ to run codes, or select Run -> Run Select Cells. Make sure the JetRacer has enough space to run.

Note
If you get error when running the motion script, please open a new termial, resintall Adafruit-PureIO librares with following commands and try again.
sudo pip3 install --upgrade pip
sudo pip3 uninstall Adafruit-PureIO
sudo pip3 install Adafruit-PureIO
(2) Teleoperations
  • Access JetRacer by going to https://<jetracer_ip_address>:8888, navigate to ~/Notebooks/teleoperation/
  • Open teleoperation.ipynb file and following notebook
(3) Interactive-regression
  • Navigate to https://<jetracer_ip_address>:8888
  • Sign in with the default password jetson
  • Browse to the folder ~/jetracer/notebooks in the Jupyter Lab file browser
  • Open the notebook interactive_regression.ipynb and following it
(4) Road-following
  • Navigate to https://<jetracer_ip_address>:8888
  • Sign in with the default password jetson
  • Browse to the folder ~/jetracer/notebooks in the Jupyter Lab file browser
  • Open the notebook road_following.ipynb and following it

Guide of DonkeyCar

Resources

Datasheet

FAQ

 Answer:
Please open the terminal and run the following command to install torch-1.2.0
wget https://nvidia.app.box.com/public/static/06vlvedmqpqstu1dym49fo7aapgfyyu9.whl -O torch-1.2.0a0+8554416-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python3-pip libopenblas-base libopenmpi-dev 
pip3 install Cython
pip3 install numpy torch-1.2.0a0+8554416-cp36-cp36m-linux_aarch64.whl --user
sudo reboot

Do not forget to reboot at the end.


 Answer:
Three 18650 batteries are used and the voltage of every battery is 3.7V. Generally, the voltage per battery is 4.2V when full charging. Please use batteries without a protective plate.

BTW, Power of JetRacer is down when the voltage of the whole system is similar to 9V (it is not accurate), we recommend you to charge batteries if the voltage displayed is lower than 10V.
We recommend you to use high-quality batteries like Sanyo or Panasonic.
Batteries 18650 en.jpg

{{{4}}}

{{{5}}}


 Answer:
The 12V power adapter is used to charge the batteries. DO NOT directly connect it to Jetson Nano Developer board.


 Answer:
Please make sure that you have installed the codes of Waveshare instead of NVIDIA's. The drive codes of the motor are different between Waveshare's and NVIDIA's. If you have update the one from NVIDIA's, please remove the Jetracer folder and download ours by following step 5.


Supports

Support

If you require technical support, please go to the Support page and open a tickets.