Line 15: |
Line 15: |
| echo "" | | echo "" |
| cd Arduino.7/ | | cd Arduino.7/ |
− | ./Arduino.sh. | + | ./Arduino.sh |
| | | |
| | | |
Line 58: |
Line 58: |
| *5) Select the desired port (i.e. "/dev/ttyUSB0") | | *5) Select the desired port (i.e. "/dev/ttyUSB0") |
| | | |
− | [[Image:Select-port.3.png]] | + | [[Image:Select-port.3.png|500px]] |
| | | |
− | *5) Execute "Arduino board - connect" | + | *6) Execute "Arduino board - connect" |
| | | |
− | [[Image:Connectonport.png]] | + | [[Image:ArduinoConnect.png|500px]] |
| | | |
| | | |
− | *6) Wait more or less two seconds an then the slot "is connected" have to change to true. | + | *7) Wait more or less two seconds an then the slot "is connected" have to change to true. |
| | | |
| | | |
− | *7) After searching "arduino - digital pins mode" category and resetting the value of "arduino board - is reading digital pins" (going from false to true). That's how the digital inputs are set. | + | *8) After searching "arduino - digital pins mode" category and resetting the value of "arduino board - is reading digital pins" (going from false to true). That's how the digital inputs are set. |
| | | |
| [[Image:True-falsedigitalpins.png]] | | [[Image:True-falsedigitalpins.png]] |
| | | |
| | | |
− | *8) Now we are ready to use it!. | + | *9) Now we are ready to use it!. |
| | | |
| [[Image:Hypercubo1.png]] | | [[Image:Hypercubo1.png]] |
Line 82: |
Line 82: |
| | | |
| | | |
− | ==Turtle Art== | + | ==Turtle Blocks (Turtle Art) with Arduino Plugin== |
| | | |
− | The code needed is located at (Thnks to Sayamindu Dasgupta)
| + | [[File:turtleart-arduino-palette.png|800px]] |
| | | |
− | *http://git.sugarlabs.org/projects/turtleart/repos/arduino-support
| + | There are several efforts to develop Turtle Art support for Arduino. |
| + | This implementation uses the same [http://www.firmata.org firmata] protocol that the arduino-squeak connection uses. |
| | | |
− | TODO: Link to an XO bundle.
| + | * [http://tonyforster.blogspot.com/2010/10/arduino-fork-of-turtle-art.html Setting up Turtle Arduino] |
| + | * [http://tonyforster.blogspot.com/2010/10/turtle-arduino-display-inputs.html Read digital inputs] [[File:Ard.ta]] |
| + | * [http://tonyforster.blogspot.com/2010/10/turtle-arduino-digital-write.html Arduino write output] [[File:Turtle Art Activity ardout.ta]] [[File:Tamyblock mouse.odt]] |
| + | * [http://tonyforster.blogspot.com/2012/01/arduino-and-xo-laptop.html The Freetronics Leostick] |
| | | |
− | This uses the same [http://www.firmata.org firmata] protocol that the arduino-squeak connection uses.
| |
| | | |
− | ===Some use examples and Screenshots===
| + | The Arduino functionality was corrected from previous versions: |
| + | * Analog and digital reading now works correctly |
| + | * Auto detection of ttyUSBx port for FTDI device (Arduino board uses this for USB) |
| | | |
− | *[http://people.sugarlabs.org/sayamindu/ta_arduino.png]
| + | It requires the Firmata protocol to be uploaded to the Arduino board. |
− | *[http://people.sugarlabs.org/rafael/Arduino-turtle1.png]
| + | Use the latest Firmata version (2.1 as of now) downloaded from the Firmata page (firmata.org) |
− | *[http://people.sugarlabs.org/rafael/Draw-leds.png] | + | The Firmata version included with the Arduino IDE has some inconsistencies. |
| + | |
| + | This version has english and spanish translations. |
| + | |
| + | ===Screenshots=== |
| + | |
| + | [[File:turtleart-arduino-example1.png]] |
| + | |
| + | === Source Code === |
| + | |
| + | You can see all code in: [http://git.sugarlabs.org/arduino arduino_plugin GIT] |
| + | |
| + | ===Downloads=== |
| + | |
| + | The plugin file can be downloaded from [[File:arduino.tar.gz]]. |
| + | |
| + | == Spanish Version == |
| + | |
| + | Please go to |
| + | |
| + | * http://co.sugarlabs.org/go/Arduino |