Community Question
I’m trying to connect an Arduino Nano with the EZ-B v4 to offload some of the work. UART1 and UART2 work fine!
Problem is with UART0 (information is send but corrupted)
Connection:
- Arduino GND to EZ-B v4 GND
- Arduino RX connected to UART0 TX (first pin), D5 or D18
Attached to the Arduino is a 2x16 character LCD (I2C connection) to display (the serial information (also visible true the Serial Monitor) using a simple protocol; 0 (0x30) = clear LCD, 1 (0x31) = start at line 1, 2 (0x32) = start at line 2. All other information is just displayed.
All is fine and Information is displayed correctly when attached to pin D5 or D18.
When connected to the TX pin of UART0 information is sporadically send but corrupted. Touching the wire (on the outside!) changes the behavior of the characters received (more characters but still corrupted)??!!
Problem is with UART0 (information is send but corrupted)
Connection:
- Arduino GND to EZ-B v4 GND
- Arduino RX connected to UART0 TX (first pin), D5 or D18
Attached to the Arduino is a 2x16 character LCD (I2C connection) to display (the serial information (also visible true the Serial Monitor) using a simple protocol; 0 (0x30) = clear LCD, 1 (0x31) = start at line 1, 2 (0x32) = start at line 2. All other information is just displayed.
All is fine and Information is displayed correctly when attached to pin D5 or D18.
When connected to the TX pin of UART0 information is sporadically send but corrupted. Touching the wire (on the outside!) changes the behavior of the characters received (more characters but still corrupted)??!!
Hello There! I'm a bot. Bip. Boop.
I've searched other questions, tutorials and controls related to your question.
Take a look at these links. They're all sorted by what I believe is the most relevant:
:loop
UARTInit(0, 0, 9600) #initialize UART0
UARTWrite(0, 0, 0x30)
sleep(100)
UARTWrite(0, 0, 0x31, "Hello UART-zero")
UARTWrite(0, 0, 0x32, "Second Hello")
sleep(100)
UARTInit(0, 1, 9600) #initialize UART1
UARTWrite(0, 1, 0x30)
sleep(100)
UARTWrite(0, 1, 0x31, "Hello UART-one")
UARTWrite(0, 1, 0x32, "Second Hello")
sleep(100)
UARTInit(0, 2, 9600) #initialize UART2
UARTWrite(0, 2, 0x30)
sleep(100)
UARTWrite(0, 2, 0x31, "Hello UART-two")
UARTWrite(0, 2, 0x32, "Second Hello")
sleep(100)
Goto (loop)
Connecting devices to UART 0 is common practice for us on a daily basis
Have you tried wiring directly and eliminating the breadboard?