0
\$\begingroup\$

For a project, I want to communicate with Arduino Nano using PIC: PIC18F4550. PIC is collecting data from MPU6050 and DHT11; I want to send this data to Nano, which is a separate circuit for handling the RF communication of the system.

The issue I am facing is, that I am trying to communicate with two boards using UART. My knowledge of UART tells me that I have to connect Tx of PIC to Rx of Nano and vice versa, but after checking out some similar work on the internet, it seems that I need to connect the transmission pins to GPIO pins, instead of Rx and Tx. Therefore, I am a bit lost and would appreciate it if someone could help me understand this.

PS, in the article, they have mentioned that the pins are supposed to be connected to the Rx and Tx pins of the Arduino.

ESP's TX is connected to Uno's RX which means whatever we want to transmit(TX) in ESP will Receive(RX) by Uno, and vice versa.

asked May 16, 2022 at 17:29
\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

RX and TX can be confusing, make sure to check both datasheets to confirm the direction of each pin and make yourself a note by drawing an arrow on each and do the same for the other chip too. It should look like this: [NEWLINE] RX <- <- TX [NEWLINE] TX -> -> RX [NEWLINE] GND <------> GND [NEWLINE]

answered May 16, 2022 at 18:32
\$\endgroup\$
0
\$\begingroup\$

The USART in the Arduino Nano (schematic https://www.arduino.cc/en/uploads/Main/Arduino_Nano-Rev3.2-SCH.pdf) is tied to the USB interface, which is why many projects requiring usart use bit-banging on two data ports.

answered May 16, 2022 at 19:06
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.