Asked — Edited
Resolved Resolved by Steve1DH!

V4 Two Way Serial Communication - Where Do I Connect To Read?

Hi all,

I'm trying to get serial feedback from a device. Does anyone know where on the V4 I should attach to read back serial information from device? I know I send a serial command to through one of V4's digital signal pins but where do I read it back from?

I thought it would be read from the same digital pin I sent the command. However @Toymaker made a comment in another thread that it may have to be read through one of the i2c ports.

Any insight is welcomed. :)


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

#9  

OK, Now we're getting somewhere. :)

From what I'm reading in @Steve1DH's post above UART 1 is D5 & D6 (Tx, RX respectively) and D18 & D19 are UART 2 (Tx, RX respectively). That must make the black physical header pin UART 3?

I don't know how I missed that. I thought I read through the whole data sheet. Thanks Steve!

Also thanks @Rich for pointing me to the script commands. I knew there were there and was reviewing them as you were posting. However I had forgotten about the sample project. That will be a big help. :)

#10  

Steve, Gotta give this one to you. You answered my "whole" question. :P

United Kingdom
#11  

The black UART is UART0:)

#12  

Ahh, that makes a huge difference. I forgot these circuit jockey's like to start at naming at 0. ;)

#13  

As soon as I get my V4, I am going to experiment using the UART to see if I can read sensor data from my iRobot Create....

PRO
Canada
#14  

Sorry guys I was a little late to see this thread, thanks all for pitching in and figuring it out.

Just to confirm for you:

Uart0 is the black 4-pin 0.1" pitch female header at the top of the EZ-B

Uart1 is pins D5 & D6 (D5 is also the Dynamixel port)

Uart2 is D18 & D19

These UART ports are great for serial displays, communication to a PC, and just as @Richard R has mentioned they are for Roomba's as well!

And as @Rich mentioned there is a code example in ARC to help you on your way.

Thanks guys!

PRO
Synthiam
#15  

As Skater said, that's right about what ports are UART compatible. However, I would not recommend wasting an input capable UART on serial displays. All Digital Pins have the ability to output serial ttl data and displays only require output.

I have put a great amount of effort into EZ-Script manual and example projects. If you're stumped on something, I would recommend calmly following these steps...

  1. Search the EZ-B datasheet for port descriptions, voltages

  2. For connection or Wi-Fi questions, visit the Learn section and consult the tutorial videos

  3. Search the EZ-B manual for words referencing your trouble. In this case, UART. The EZ-Script manual explains each UART command with example syntax and the available UART ports.

  4. Search both Examples folders within ARC for the keyword. In this case, you would search UART and find a UART project example.

And of course, if those don't help - ask on here so I can see how to address it:)

#16  

Actually, Rich constantly reminds me (us) to RTFM and explore the examples that you have provided.... I really need to listen more... :)