loading
 
Serial Communication with arduino
anish kumar dubey from India  [2 posts]
4 years
I used the following code:
RGB_Filter Green
Center of Gravity
Set x=[COG_X], y=[COG_Y]
Display_Variables
Marker [anish]
RGB_Filter Red
Center Of Gravity
Display_Variables

I want to add/subtract the two values COG_X and x and send one of the four values 1,2,3,4 serially to my arduino. please tell me how to write a script to send values.
program.robo
Steven Gentner from United States  [1370 posts] 4 years
Perhaps you can try reading about the Serial module which is one way of doing this from scratch. The other way would be to use the MCU module which uses the concept of mailboxes or variables to automatically pass information to and from the Arduino.

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