loading
 
arduino
giggi from Italy  [3 posts]
8 years
hi, before, sorry for my english, i have a problem, i dont understanding how to read a x and y from roborealm with arduino on usb. Actually i have a cam on usb2 and Ardunio on usb3. i send the roborealm date to arduino with a 'c' script .
best regards and thanks.
Anonymous from United Kingdom  [99 posts] 8 years
Here is an example of interfacing the arduino with roborealm.
http://profmason.com/?p=543

Note, the code is written for version .11 of the arduino environment and uses the software servo library.  

Take a look at the code and the .robo file to see how I pass variables to the arduino from roborealm.

good luck!
giggi from Italy  [3 posts] 8 years
hello and thanks for the reply, but the code of the file .robo is these?

<head><version>1.8.5.3</version></head>
<Keyboard>
  <ACTION_1>ADD</ACTION_1>
  <VALUE_1>1</VALUE_1>
  <CLEAR_0>FALSE</CLEAR_0>
  <VARIABLE_0>move</VARIABLE_0>
  <KEY_0>[cursor right]</KEY_0>
  <ACTION_0>SUBTRACT</ACTION_0>
  <VALUE_0>1</VALUE_0>
  <MAX_1>180</MAX_1>
  <CLEAR_1>FALSE</CLEAR_1>
  <KEY_1>[cursor left]</KEY_1>
  <VARIABLE_1>move</VARIABLE_1>
</Keyboard>
<Watch_Variables/>
<Display_Variables>
  <font_size_index>1</font_size_index>
  <display_value_only>TRUE</display_value_only>
  <dim_background>TRUE</dim_background>
  <border_color_index>5</border_color_index>
  <northwest>move
</northwest>
</Display_Variables>
<Serial>
  <baud>4</baud>
  <data_bits>7</data_bits>
  <port>4</port>
  <send>[move]~</send>
</Serial>

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