Quantcast
Viewing all articles
Browse latest Browse all 1123

Assembly Guide for SparkFun JetBot AI Kit V2.0

Assembly Guide for SparkFun JetBot AI Kit V2.0 a learn.sparkfun.com tutorial

Available online at: http://sfe.io/t1165

Introduction

SparkFun’s version of the JetBot merges the industry leading machine learning capabilities of the NVIDIA Jetson Nano with the vast SparkFun ecosystem of sensors and accessories. Packaged as a ready-to-assemble robotics platform, the SparkFun JetBot AI Kit v2.0 requires no additional components or 3D printing to get started - just assemble the robot, boot up the Jetson Nano, connect to WiFi and start using the JetBot immediately. This combination of advanced technologies in a ready-to-assemble package makes the SparkFun JetBot Kit a standout, delivering one of the strongest robotics platforms on the market. This guide serves as hardware assembly instructions for the JetBot AI Kit v2.0. The SparkFun JetBot comes with a pre-flashed micro SD card image that includes the Nvidia JetBot base image with additional installations of the SparkFun Qwiic Python library, Edimax WiFi driver, AWS RoboMaker ready with AWS IoT Greengrass, and of course the JetBot ROS. Users only need to plug in the SD card and set up the WiFi connection to get started.

Note: We recommend that you read all of the directions first, before building your JetBot. However, we empathize if you are just here for the pictures & a general feel for the SparkFun JetBot. We are also those people who on occasion void warranties & recycle unopened instructions manuals but please note, SparkFun can only provide support for the instructions laid out in the following pages.

Attention: The SD card in this kit comes pre-flashed to work with our hardware and has the all the modules installed (including the sample machine learning models needed for the collision avoidance and object following examples). The only software procedures needed to get your JetBot running are steps 2-4 from the Nvidia instructions (i.e. setup the WiFi connection and then connect to the JetBot using a browser). Please DO NOT format or flash a new image on the SD card; otherwise, you will need to flash our image back onto the card.

If you accidentally make this mistake, don't worry. You can find instructions for re-flashing our image back onto the SD card in the Software Setup section of this guide

The Jetson Nano Developer Kit offers extensibility through an industry standard GPIO header and associated programming capabilities like the Jetson GPIO Python library. Building off this capability, the SparkFun kit includes the SparkFun Qwiic pHAT for Raspberry Pi, enabling immediate access to the extensive SparkFun Qwiic ecosystem from within the Jetson Nano environment, which makes it easy to integrate more than 30 sensors (no soldering and daisy-chainable).


The SparkFun Qwiic Connect System is an ecosystem of I2C sensors, actuators, shields and cables that make prototyping faster and less prone to error. All Qwiic-enabled boards use a common 1mm pitch, 4-pin JST connector. This reduces the amount of required PCB space, and polarized connections mean you can’t hook it up wrong.

Image may be NSFW.
Clik here to view.
Qwiic Connect System

Materials

PartQty
JetBot Chassis Kit1
Hobby Gearmotor (pair) included as part of JetBot Chassis Kit1
Camera mount included as part of JetBot Chassis Kit1
Wheels & Tires - included as part of JetBot Chassis Kit2
Lithium Ion Battery Pack - 10Ah (3A/1A USB Ports)1
Edimax 2-in-1 WiFi and Bluetooth 4.0 Adapter1
Jetson Dev Kit v3 *only included in specified Kits*1
SparkFun JetBot image (Pre Flashed)1
Leopard Imaging 145 FOV Camera1
SparkFun Micro OLED Breakout (Qwiic)1
SparkFun Qwiic Motor Driver1
SparkFun Qwiic pHAT v2.0 for Raspberry Pi1
Qwiic Cable - 100mm1
Qwiic Cable - 200mm1
Jumper Wires Premium 6" M/M (10-pack)1
USB Micro-B Cable - 6"1
Dual Lock Velcro1
PartQty
Standoff - Nylon (4-40; 3/8in.)10
1/4" Phillips Screw with 4-40 Thread20
Machine Screw Nut - 4-4010
M2 Nylon hex nut4
M2 Nylon screw slotted drive4
JetBot Chassis Hardware *included as part of JetBot Chassis Kit1

Recommended Tools

We did not include any tools in this kit because if you are like us you are looking for an excuse to use the tools you have more than needing new tools to work on your projects. That said, the following tools will be required to assemble your SparkFun JetBot.

  • Small phillips & small flat head head screwdriver will be needed for chassis assembly & to tighten the screw terminal connections for each motor. We reccomend the Pocket Screwdriver Set; TOL-12268.
  • Pair of scissors will be needed to cut the adhesive Dual Lock Velcro strap to desired size; recommended, but not essential..
  • Optional- adjustable wrench or pliers to hold small components (nuts & standoffs) in place while tightening screws; your finger grip is usually enough to hold these in place while tightening screws & helps to ensure nothing is over tightened.

A Note About Directions

When we talk about the "Front," or "Forward" of the JetBot, we are referring to direction the camera is pointed when the JetBot is fully assembled. "Left" and "Right" will be from the perspective of the SparkFun JetBot (i.e. what the JetBot camera sees).

1. Robotics Chassis Kit Initial Assembly

Begin by with one of the two bare base plates included with the JetBot Chassis Kit. It does not matter which one, they are identical.

Push two of the included motor mounts through the designated holes in the base plate as shown below. Two more motor mounts will be attached on the outside of the base plate after the motor is installed.

Your JetBot Chassis Kit includes a pair of hobby motors & wheel assemblies.

Attach the pair of motors using the long threaded machine screws & nuts included with the JetBot Chassis Kit. The motor will be sandwiched between an internal & external motor mount. Tighten the screws until they are snug.

Note: Install the motors so the "DAGU robot" sticker is facing out. This will ensure that your JetBot drives forward when following the hookup of the Qwiic Motor driver.

Once both motors are attached, flip the base plate over as pictured & thread the motor terminal leads through the baseplate as shown.

Additionally, attach the four longer brass standoffs at each corner of the base plate using the threaded screws included with the JetBot Chassis Kit. Refer to the photograph of the caster ball assembly to make sure you are using the correctly sized brass standoffs.

Having trouble seeing the image? Click on it for a larger view.

Build the ball caster assembly using the two shorter brass standoffs.

Install the caster ball assembly as shown in the assembled photo below. Additionally, attach the wheels to the hobby motor axles.

2. Camera Assembly & Installation

Next, locate the camera mount assembly in the JetBot Chassis Kit. The unassembled view of the parts is laid out in the proper orientation for assembly.

Note: This orientation is necessary to ensure the camera mount fits on the top plate of the chassis.

Unpackage the Leopard Imaging camera and assemble the camera mount as shown in the following photograph.

Having trouble seeing the image? Click on it for a larger view.

Please reference the note about the "Front" of the JetBot in the end of the Introduction to ensure that you mount the camera on the correct side of the camera mount. Align the four holes in the camera mounting plate with those on the camera. Place all four nylon flathead screws through the camera & camera mounting plate prior to fully tightening the nylon nuts. This will ensure equal alignment across all four screws. While holding the nuts in place with a finger, tighten the screws in a rotating criss cross pattern; similar to how you tighten lug nuts on a car rim.

Note: Make sure to orient the camera so the ribbon cable is extending over the "top" of the camera mount as shown below.

Attach the camera mount & camera to the JetBot Chassis Kit top plate (the unused base plate) using two sets of screws and nuts included in the chassis kit.

3. Accessory Installation to Main Chassis

Cut the strip of dual lock Velcro into two roughly equal sized strips. Take one side of the dual lock Velcro and attach to the back of the battery pack as shown.

Place the corresponding pieces of dual lock Velcro on the initial chassis assembly as pictured.

Press firmly on the battery pack to attach the dual lock Velcro interface between the chassis and battery. Route the motor terminal wires as shown.

Install the included nylon standoffs using the included 4-40 screws (10 packs) on the top mounting plate (the one we just finished attaching our camera and mount to). Pictured below are the standoffs for the Jetson Nano Dev Kit & the SparkFun Qwiic Motor Driver. Be sure to keep the standoffs on the right side somewhat loose. The mounting holes in the top plate are oblong to compensate for manufacturing tolerances & ensure a secure fit to the Jetson Nano Dev Kit.

The last four screws included with the JetBot Chassis Kit (shown on the right of the photo below) will be used to attach the top plate to the brass standoffs on each corner of the base plate.

Once the chassis is fully assembled, attach the SparkFun Qwiic Motor Driver as shown using the mounting hole on the board to the right of the 4x motor screw terminal. Attach the motor leads as pictured; see below for more details.

Having trouble seeing the connections to the Qwiic Motor Driver? Click on the image for a larger view.

Connect the motor leads according to the table below; remember the "Right"& "Left" designations from the Introduction. They should match the image above. The right motor is on the right side of this photo.

A1A2B1B2
Left Motor Ground (-)Left Motor Power (+)Right Motor Ground (-)Right Motor Power (+)

Install the Micro SD card with the SparkFun JetBot Image (pre flashed) into the Micro SD card slot on the Jetson Nano. It is easier to do this prior to installing the Jetson Nano Dev Kit onto the chassis. This image is from the original JetBot Assembly guide.

Attach the Jetson Nano Dev Kit using four 4-40 screws to the previously installed Nylon standoffs. Remember we left the right side standoffs loose so align them with the mounting holes on the Jetson Nano Dev Kit & tighten until sung.

Additionally, install the Edimax 2in1 USB WiFi & Bluetooth adaptor into any of the USB ports on the Jetson Nano Dev Kit.

Having trouble seeing the Edimax 2in1 USB WiFi & Bluetooth adapter in the image? Click on it for a larger view.

Attach the 100mm Qwiic cable to the underside of the SparkFun Qwiic Micro OLED as shown below.

Attach the SparkFun Qwiic Micro OLED to the JetBot Chassis using another Nylon Standoff & 4-40 screw. Attach the 100mm Qwiic cable to the SparkFun Qwiic Motor Driver. Secure the Qwiic Micro OLED by tightening the screw until sung.

Connect the qwiic pHAT on the Jetson Nano Dev Kit's 2x20 GPIO headers taking care to align it as the photo below shows.

Attach the Leopard Imaging camera ribbon cable to the Jetson Nano Dev Kit's front-most camera connector.

Having trouble seeing everything in the image? Click on it for a larger view.

Connect the SparkFun Qwiic Micro OLED display to the Qwiic pHAT using the 200mm Qwiic cable.

Having trouble seeing the image? Click on it for a larger view.

Finally attach the Qwiic Motor Driver's motor power screw terminals to the 2 pin screw terminal for 5V and Ground on the Qwiic pHAT using the included 6 inch M/M jumper wires. We recommend using one black wire (ground) & one red wire (power), but you can use any included color your head desires.

Having trouble seeing the wires and detail the image? Click on it for a larger view.

Use the included 6 inch USB Micro-B Cable to connect the Jetson Nano Dev Kit to the battery pack.

Having trouble seeing everything the image? Click on it for a larger view.
Note: Make sure the USB cable is plugged into the orange USB port on the battery pack. This will provide the required 3.1A @ 5V required by the Jetson Nano Dev Kit.

Allow the JetBot a few minutes to power up. When the JetBot is ready the Micro OLED will display the SparkFun flame logo, followed by the available disk image space & IP address once connected to a WiFi network.

4. Software Setup Guide from NVIDIA

Attention: The SD card in this kit comes pre-flashed to work with our hardware and has the all the modules installed (including the sample machine learning models needed for the collision avoidance and object following examples). The only software procedures needed to get your JetBot running are steps 2-4 from the Nvidia instructions (i.e. setup the WiFi connection and then connect to the JetBot using a browser). Please DO NOT format or flash a new image on the SD card; otherwise, you will need to flash our image back onto the card (instructions below).

Your SparkFun JetBot comes with a Pre-Flashed micro SD card. Users only need to plug in the SD card and set up the WiFi connection to get started.

  • The default password on everything (i.e. login/user, jupyter notebook, and superuser) is "jetbot".
  • We recommend that users change their passwords after initial setup. These are typically covered on the first boot of your Jetson Nano as detailed in the NVIDIA Getting Started with Jetson Nano walkthrough

Software Setup

The only step needed to get your JetBot kit up and running is to log into the JetBot and setup your WiFi connection. Once that is done, you are now ready to connect to the JetBot wirelessly. If you need instructions for doing so, you can use the link below.

However, please take note of our instructions below. You will want to skip steps 1 and 5 to avoid erasing the image on the card or undoing the hardware configuration.

Instructions

  1. Skip step 1 of Nvidia's instructions: It references how to flash your SD card, so feel free to skip to Step 2 - Boot Jetson Nano.
Note: Following Step 1 will erase the pre-flashed image and make a lot of extra work for yourself.
  1. Skip step 5 of Nvidia's instructions: This step should already be setup on the pre-flashed SD card.
    • If in the future, you need to update your notebooks, you can follow Step 5 - Install latest software (optional) to download the repository (don't download it into the home directory and skip the last command line instruction of the forth step).

Get and install the latest JetBot repository from GitHub by entering the following commands

git clone https://github.com/NVIDIA-AI-IOT/jetbot
cd jetbot
sudo python3 setup.py install
Note: Running sudo python3 setup.py install in the command line will overwrite the software modifications for SparkFun's hardware in the kit.

Troubleshooting

In the event that you accidentally missed the instructions above, here are instructions to get back on track.

Re-Flashing the SD card

If you need to re-flash your SD card, follow the instructions from Step 1 Nvidia's guide. However, download and use our image instead (click link below).

Note: Don't forget to uncompress (i.e. unzip, extract, or expand) the file from the .zip file/folder first. You should be pointing the "flashing" software to a ~62GB .img file to flash the image (sparkfun_jetbot_v01-00.img) onto the SD card. Not every unzip utility can handle this large of a file! The Windows 10 'Extract All' command has been found you work as well as 7Zip and Winzip.

Alternatively, there are other options for flashing images onto an SD card. If you have a preferred method, feel free to use the option you are most comfortable with.

Re-Applying the Software Modifications

If you have accidentally overwritten the software modifications for the hardware included in your kit, you will need to repeat Step 5 from Nvidia's guide from the desktop interface (if you are comfortable performing the following steps from the command line, feel free to do so).

Skip steps 1 and 2: Plug in a keyboard, mouse, and monitor. Then log in to the desktop interface (if you haven't changed your password, the default password is: jetbot).

Follow step 3: Launch the terminal. There is an icon on sidebar on the left hand side. Otherwise, you can use the keyboard short cut (Ctrl + Alt + T).

Follow step 4: However, before you execute sudo python3 setup.py install you will want to copy in our file modifications to the jetbot directory you are in.

  1. Begin by downloading our files (click link below).
  1. Next, extract the file.

  2. Next, replace the files in the jetbot folder. The file paths must be the same, so make sure to overwrite files exactly.

Click on the icon that looks like a filing cabinet on the left hand side of the GUI. This is your Home directory. From here, you will need to proceed into the jetbot folder. There you will find a jetbot folder with similar files to the ones you just extracted. Delete the folder and copy in our files (you can also just overwrite the files as well).

  1. Now, you can execute sudo python3 setup.py install in the terminal.

Follow step 5: Finish up by following step 5. Now you are back on track to getting your JetBot running again!

Note: If you need to install the Python packages for the Qwiic devices (i.e. the OLED and SCMD motor driver), use the following command in the terminal: sudo pip3 install sparkfun-qwiic.

5. Examples

The "object following" jupyter notebook example won't work due to the required dependencies that had not been released by NVIDIA prior to the creation of the SparkFun JetBot image. These updates can be manually installed on your Jetson Nano with the JetPack 4.2.1 release.

Update: The engine generated for the example utilized a previous version of TensorRT and is therefore, not compatible with the latest release. For more details on this issue, check out the following GitHub issue.

Resources and Going Further

Now that you've successfully got your JetBot AI up and running, it's time to incorporate it into your own project!

For more information, check out the resources below:

Need some inspiration for your next project? Check out some of these related tutorials:

LIDAR-Lite v3 Hookup Guide

A tutorial for connecting the Garmin LIDAR-Lite v3 or the LIDAR-Lite v3HP to an Arduino to measure distance.

Clap On Lamp

Modify a simple desk lamp to respond to a double clap (or other sharp noise) using parts from the SparkFun Inventor's Kit v4.0.

WiFi Controlled Robot

This tutorial will show you how to make a robot that streams a webcam to a custom website that can be remotely controlled.

Basic Autonomous Kit for Sphero RVR Assembly Guide

Get your Basic Autonomous Kit for Sphero RVR all hooked up with this guide!

learn.sparkfun.com | CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado


Viewing all articles
Browse latest Browse all 1123

Trending Articles