# Trying to use UART read

**URL:** <https://forum.xod.io/t/trying-to-use-uart-read/4245>\
**Category:** Uncategorized\
**Created:** [July 20, 2020, 3:11pm UTC](https://forum.xod.io/t/trying-to-use-uart-read/4245 "2020-07-20T15:11:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnaride](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@magnaride](https://forum.xod.io/u/magnaride)\
**Post date:** [July 20, 2020, 3:11pm UTC](https://forum.xod.io/t/trying-to-use-uart-read/4245/1 "2020-07-20T15:11:20Z")

</div>

Hey all, i’ve been trying to read Serial Data from one arduino to another using PINS D0/D1 and cannot get the read function to work.

I’ve been able to get the write/Print work since I can use Arduino IDE Serial monitor to work.

Am I way off here on this node setup? Both are UART 0. sender is a UNO and reciever is a Mega.

I tried Gabbapeoples LED UART and i couldnt get that to work either

![UART](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/9/9ee373df952c66477becffdc5e5ce9afab682a9a.jpeg)

 ![UART1](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/8/8c0283b79ba883460c21b3e84cd95786c0611657.jpeg)

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [July 20, 2020, 5:26pm UTC](https://forum.xod.io/t/trying-to-use-uart-read/4245/2 "2020-07-20T17:26:19Z")

</div>

You need to use two different UARTs on your mega: one for communicating with your uno and the other for communicating with your PC for debugging. Use uart-0 (usb cable connnection) for communicating with your PC. Choose uart-1 (tx 18, rx 19), uart-2 (tx 16, rx 17) or uart-3 (tx 14, rx 15) for communicating with the uno.

---

<div class="post-metadata">

**Author:** ![magnaride](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@magnaride](https://forum.xod.io/u/magnaride)\
**Post date:** [July 22, 2020, 6:55pm UTC](https://forum.xod.io/t/trying-to-use-uart-read/4245/3 "2020-07-22T18:55:39Z")

</div>

Very much appreciated Wayland

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [July 24, 2020, 6:55pm UTC](https://forum.xod.io/t/trying-to-use-uart-read/4245/4 "2020-07-24T18:55:42Z")

</div>

Closed on July 24, 2020, 6:55pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
