To Read Serial Data From Arduino in Jetson Nano Development Kit

by Prajwal Raju P in Circuits > Arduino

3970 Views, 1 Favorites, 0 Comments

To Read Serial Data From Arduino in Jetson Nano Development Kit

external-content.duckduckgo.com54.jpg
external-content.duckduckgo.com.jpg
Screenshot from 2020-02-11 12-53-57.png

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.


Required Files Install

Screenshot from 2020-02-11 12-54-55.png
Screenshot from 2020-02-11 12-56-03.png
Screenshot from 2020-02-11 12-56-16.png
Screenshot from 2020-02-11 12-58-14.png
Screenshot from 2020-02-11 12-58-30.png

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

Find Port and Baud Rate (optional)

Screenshot from 2020-02-11 12-54-09.png

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

Define Port and Baud Rate

Screenshot from 2020-02-11 12-59-10.png
Screenshot from 2020-02-11 12-59-26.png
Screenshot from 2020-02-11 13-02-07.png
Screenshot from 2020-02-11 13-02-31.png

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"

Read the Data

Screenshot from 2020-02-11 13-04-06.png
Screenshot from 2020-02-11 13-04-51.png

just enter the command :

$ python grabserial

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