loading
 
serial communication
mariam from Egypt  [2 posts]
15 year
hi, how we can use serial communication for sending data to serial port
after determine the ball & robot position using center of gravity
Anonymous 15 year
Have a look at the serial module

http://www.roborealm.com/help/Serial.php

and type in something like

\[cog_x]\[cog_y]

into the send sequence assuming that cog_x and cog_y are valid variables. Note that two bytes ranging from 0-255 will be sent. If you need a higher range use

\\[cog_x]\\[cog_y]

which will send 8 bytes total (4 bytes per number).

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index