Development Team/Arduino

From Sugar Labs

Jump to: navigation, search

There are different options to connect your arduino board to Sugar (trough sugar-capable activities)


Contents

Squeak

Thanks to the great work found on Gira

We can download an squeak project and install it on our Sugar. This script can help in the process.

#/bin/bash
echo "Downloading.."
echo ""
curl -o Arduino.zip  http://tecnodacta.com.ar/gira/Arduino.7.zip
unzip Arduino.zip
echo "Executing.."
echo ""
cd Arduino.7/
./Arduino.sh


Note that on an XO laptop you have to tweak some your Arduino.sh script in these or similar ways

#!/bin/sh
APP=`dirname $0`
EXE="$APP/Contents/Linux686"
RES="$APP/Contents/Resources"
exec "/usr/bin/squeak" \
-plugins "$EXE" \
-encoding latin1 \
-vm-display-X11  \
"$RES/Arduino.2.image"


Installation and use procedure

Having executed our initiation script we have an squeak project with essential particularities in order to run our Arduino. Inside Electronics flaps we can find different tools.

But first we have to connect our arduino board, this is done in the following way,


Firmata1.png

/dev/ttyUSB0
/dev/ttyS0


Arduinoconection.png

Select-port.3.png

ArduinoConnect.png



True-falsedigitalpins.png


Hypercubo1.png




Turtle Art

Source Code

The code needed is located at (Thanks to Sayamindu Dasgupta)

XO bundle


This implementation uses the same firmata protocol that the arduino-squeak connection uses.

For installing on different Sugar versions see http://tonyforster.blogspot.com/2010/10/arduino-fork-of-turtle-art.html

Some use examples and Screenshots

Spanish Version

Please go to

Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations