Jetson/Tutorials/Communicate To Arduino

< Jetson
Revision as of 18:49, 23 September 2014 by Shervin.emami (talk | contribs) (Moved serial communication from Arduino programming page to here)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There are multiple ways an Arduino or any microcontroller can communicate with a Jetson TK1. The easiest & recommende dmethod is to use serial communication. It is also possible to use I2C (faster than serial) or SPI (faster than I2C), but these are slightly more tricky.

Serial communication

User applications that need flexible communication between the Jetson & Arduino can implement it using serial UART.

On the Arduino side, communication is implemented with the Serial API.

On the Jetson side, the user would open() /dev/ttyUSB0 and perform read/write calls on the returned descriptor, using termios.h for configuring options like baud rate, etc.

TODO example serial code