Introduction: To Read Serial Data From Arduino in Jetson Nano Development Kit

About: I'm a software developer with 2.5 years of experience. I have a passion for building robust, scalable software solutions that solve real-world problems. My expertise lies in developing applications using techn…

Have ur Jetson nano Development kit booted up

As a prerequisite, u must have Arduino IDE installed on ur Jetson nano Development kit

if u don't have it installed click this guide.


Step 1: Required Files Install

In a terminal enter, the following commands

$ sudo apt-get install python

$ sudo apt-get install python-serial

$ wget https://raw.githubusercontent.com/tbird20d/grabserial/master/grabserial grabserial

this should install all the required lib

Step 2: Find Port and Baud Rate (optional)

If u don't know your port value just open the serial monitor in your Arduino IDE

there u should see the port value in the top and the baud rate at the bottom of the window

Step 3: Define Port and Baud Rate

Now we need to define the Baud rate and the port for the Arduino, to do this enter

$ nano grabserial

this should open the 'grabserial' file, in this file find the line that says ( images for reference )

1 - sd.port

2 - sd.baudrate

modify these to the port number of your Arduino and the baud rate the Arduino is running at

after the modification u can save and exit the file

to do so press " ctrl + x " and press '' y '' to conform and hit "enter"

Step 4: Read the Data

just enter the command :

$ python grabserial

and u should be able to see the serial data on ur terminal