Hi Guys, I want to hook up my Sure Compass to UART and the manual says to send all commands in ASCII. I know how to convert text to ASCII but I am stumped as to how to put it into the UART commands in EZ Builder script. Has anyone done this? I have seen and read the info on I2C in reference to the Compass but can't find anything on using UART.
Upgrade to ARC Pro
Your robot can be more than a simple automated machine with the power of ARC Pro!
Check under: Examples -> EZ-Script Function Syntax -> UART peripheral
Hope that helps!
uartwrite(0,0,036 115 117 114 101 032 103 097 013 010) that won't work.
Justin, you mentioned serial. How would that look?
doh.... Teaches me to read the forum and try to work at the same time.
I'll take a look.
0x036 0x115 0x117 0x114 0x101 0x032 0x103 0x097 0x013 0x010
except in the uartwrite command you probably will need to add 0x0d, 0x0a to the end of the line for the required CR/LF whether or not you can send text or need to ASCII convert.
This will convert the data to the ASCII character. I had to use the same protocol to communicate with my Dynamixel servos.
In Phython its chr ( value ).