Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Uart Port Designation

On the v4 we have 4 ports designated to UART. The command asks for a port ie. UARTInit(0,0,9600) the first is the board the second is the port and the third is the data. What do you put in the second to indicate the Tx and Rx ports on v4?


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
#2  
There are only three UART designations 0, 1, & 2. The firmware determines which digital port is used during a receive or transmit command.
#3  
That would be 3 UART ports... No need to designate RX and Tx ports...

Sample code on how to use them is below (using a Roomba)... using uart port 3

Code:



uartinit(0, 2, 57600) #initiate the port
sleep(20)

repeatUntil(1=2)
uartWrite(0,2,142,7) #Check Roomba Create Bump and wheel drop sensor

sleep(20)

IF (UARTAvailable(0,2)>0)
$x=UARTRead(0,2,1)
$x=GetByte($x)
print($x)
endif
sleep(50)
endrepeatUntil