|
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]
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 [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.
STeven.
|
|