![]() ![]() ![]() I2C normally runs at 100kHz, but it can run at 400kHz with a code change. There is also an I2C page for Jetson TK1. There is some info about bidirectional voltage tanslation for this on the GPIO Electrical Connections page. To use I2C on Jetson TK1, be aware that the I2C connections on Jetson TK1 are either 1.8V or 3.3V, while some Arduino's & microcontrollers need 5V signals. This code has been tested successfully for read/write on a Jetson with an Arduino Uno (Grinch Kernel 19.3.3). The C code for the example above can be found on Chris' Github. 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.Ī tutorial, by Chris Heydrick, for communicating with an Arduino Uno via an Ubuntu system can be found here. On the Arduino side, communication is implemented with the Serial API. UART on Arduino typically runs at aroud 100kHz (115,200 Hz) but it can actually run at upto 1MHz. User applications that need two-way communication between the Jetson & Arduino can implement it using serial UART. It is also possible to use I2C (faster than serial), SPI (faster than I2C), or direct GPIO, but these are slightly more tricky than serial UART communication. The easiest & recommended method is to use serial UART communication. There are multiple ways an Arduino or any microcontroller can communicate with a Jetson TK1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |