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

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.
Steven Gentner from United States  [1444 posts] 9 year
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.


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