JetsonHacks

Developing on NVIDIA® Jetson™ for AI on the Edge

NVIDIA Jetson TK1 with Arduino Uno

Connecting a Jetson TK1 to an Arduino UNO is a fun way to get started exploring electronics. Looky here:

Installation

Plugging an Arduino into the Jetson TK1 through a USB port is a simple way to control simple electronic components and experiment. The software for the Arduino development environment is available through the Ubuntu Software Center. The Arduino IDE can be found by typing ‘Arduino’ in the search box. The Arduino kit shown in the video is available from Amazon, The Arduino Starter Kit (Official Kit from Arduino with 170-page Arduino Projects Book)

Alternate Arduino Install

The installation can also be done from the command line:

$ sudo apt-get install arduino arduino-core

Note: You can run:

$ lsusb

from a Terminal command line to check that the Arduino is attached to the USB port. In the demo, both the Jetson and the Arduino are connected to the same powered USB hub.

As shown in the video, the only other setup needed is to select the board and port in the ‘Tools’ menu. After that, all that’s left to do is have fun with the Arduino!

Note on Arduino and USB

Some people have reported issues with the Jetson TK1 not recognizing the Arduino when it is plugged into the USB port. This may be because of a missing ‘FTDI’ driver. There are a couple of ways to install the driver. You can compile a kernel module for the FTDI driver and install it, here’s an article on how to do that: Create USB FTDI Module. Another way is to install the ‘Grinch’ kernel. The version of the Grinch kernel depends on which version of L4T you are running. For a version that works on the later L4T 21.x versions, you can look at this article: Install Grinch Kernel.

Facebook
Twitter
LinkedIn
Reddit
Email
Print

6 Responses

  1. The Arduino IDE is no longer on the Ubuntu Software Center. Can you go over how to install the latest Arduino? I am having trouble opening the IDE after following every step on the Arduino website. Thanks in advance.

  2. hi,
    I am trying to install the arduino IDE on the Jetson TX2. The installation is successful when i run
    $sudo apt-get install arduino arduino-core
    but I am getting the following error when trying to run it through the terminal:hi,
    I am trying to install the arduino IDE on the Jetson TX2. The installation is successful when i run
    $sudo apt-get install arduino arduino-core
    but I am getting the following error when trying to run it through the terminal:
    Exception in thread “main” java.lang.ExceptionInInitializerError
    at processing.app.Preferences.setColor(Preferences.java:851)
    at processing.app.Preferences.init(Preferences.java:273)
    at processing.app.Base.main(Base.java:117)
    Caused by: java.awt.HeadlessException
    at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:236)
    at processing.core.PApplet.(Unknown Source)
    … 3 more
    I have tried doing every solution that are available in the blogs. Nothing seems to work. I’d really appreciate it if you could help find a solution.
    Thanks.

    1. The Arduino IDE requires a 32 bit version of Java, the version on the Jetson TX2 is 64 bit. There is no easy fix that I know of. Thanks for reading!

      1. But the IDE worked fine a few days ago. After a technical error I had to reinstall jetpack 3.2 and then the Arduino IDE now the IDE doesn’t open. That’s the error I’m getting. Many people had the same error. But that said I have another question. Is the Arduino IDE the only way to program Arduino from the TX2?

Leave a Reply

Your email address will not be published. Required fields are marked *

Disclaimer

Some links here are affiliate links. If you purchase through these links I will receive a small commission at no additional cost to you. As an Amazon Associate, I earn from qualifying purchases.

Books, Ideas & Other Curiosities