# UART Communication problem between Nvidia Jetson Nano and Arduino Mega

**URL:** <https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505>\
**Category:** Jetson Nano\
**Tags:** uart, gpio, arduino\
**Created:** [September 17, 2021, 8:40am UTC](https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505 "2021-09-17T08:40:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seyidbayli.chingiz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@seyidbayli.chingiz](https://forums.developer.nvidia.com/u/seyidbayli.chingiz)\
**Post date:** [September 17, 2021, 8:40am UTC](https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505/1 "2021-09-17T08:40:30Z")

</div>

I want to make connection between Jetson Nano and Arduino Mega 2560. Arduino send “18” value when button pressed and Nvidia has to send number value between 1-4. Arduino can send data correctly but Nvidia send wrong almost 90%. Sometimes send 103, 76, 205 etc… But it must to be 1,2,3,4. I use for this connection RX0/TX0 pin of Arduino and GPIO 8/10 (ttyTHS1) of Jetson and Arduino send data right but Nvidia send sometimes wrong value. I tried 9600 and 115200 baudrate for communication.

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [September 17, 2021, 6:13pm UTC](https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505/2 "2021-09-17T18:13:38Z")

</div>

Typically the pin 8/10 TX/RX is being used by the serial console. What do you see, on the Jetson, from:  
`ls -l /dev/ttyTHS1 /dev/ttyS1`

Note that “`ttyTHS1`” and “`ttyS1`” would be the same hardware, but two different drivers. It is ok if only one is present.

If the group is “`dialout`”, then probably console has been properly disabled. If group is instead “`tty`”, then what you are receiving is what a login shell is responding with due to what it would have perceived as “nonsense”.

If this is a serial console, then just to show you what it is doing, you could connect a serial console program to those pins via a 3.3V serial UART cable, and at the host PC end set it to 115200 8N1. You would see log output as the system boots, and could even login through that terminal after boot completes. If it is a serial console, then this can be disabled.

---

<div class="post-metadata">

**Author:** ![seyidbayli.chingiz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@seyidbayli.chingiz](https://forums.developer.nvidia.com/u/seyidbayli.chingiz)\
**Post date:** [September 20, 2021, 12:26pm UTC](https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505/3 "2021-09-20T12:26:17Z")

</div>

I tried one thing. If I plug Arduino to electricity or pc this time Nvidia sends numbers that I didn’t defined. But when I connect arduino to Nvidia this time all values are right. I think there is voltage, gnd or something like this type problem

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [September 20, 2021, 6:05pm UTC](https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505/4 "2021-09-20T18:05:08Z")

</div>

What did you see from “`ls -l /dev/ttyTHS1 /dev/ttyS1`”? Also, if worried about voltages, is your USB serial UART running at the correct 3.3V level?

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 15, 2021, 2:59am UTC](https://forums.developer.nvidia.com/t/uart-communication-problem-between-nvidia-jetson-nano-and-arduino-mega/189505/5 "2021-10-15T02:59:33Z")

</div>

Closed on October 15, 2021, 2:59am UTC


