Arduino: Difference between revisions
Line 44: | Line 44: | ||
== Firmata == |
== Firmata == |
||
Firmata is a generic protocol for a computer to communicate with microcontrollers. The Sugar Labs [http://wiki.sugarlabs.org/go/Activities/TurtleArt Turtle Art activity] included in OLPC OS builds supports Firmata |
Firmata is a generic protocol for a computer to communicate with microcontrollers. The Sugar Labs [http://wiki.sugarlabs.org/go/Activities/TurtleArt Turtle Art activity] included in OLPC OS builds supports Firmata, and can use an Arduino board as a general purpose analog and digital I/O interface. |
||
The |
The StandardFirmata may be uploaded to an Arduino board, using the Arduino IDE: |
||
* start Applications -> Programming -> Arduino, |
* start Applications -> Programming -> Arduino, |
||
* connect Arduino board, |
* connect Arduino board, |
||
* choose File -> Examples -> Firmata > StandardFirmata, |
* choose File -> Examples -> Firmata > StandardFirmata, |
||
* choose Upload to send the program to the Arduino board. |
* choose Upload to send the program to the Arduino board. |
||
Alternatively, StandardFirmata may be uploaded without using the Arduino IDE, see [[ProtoSnap_Contributors_Guide/Upload|How to upload StandardFirmata using ino]]. |
|||
==See also== |
==See also== |
Revision as of 05:11, 19 November 2013
Installing the Arduino IDE on OLPC OS.
12.1.0
Switch to the GNOME desktop. This is because the application has been tested with GNOME, and not with Sugar.
Packages
In Terminal:
sudo yum install -y arduino
Roughly 40 MB of packages are downloaded and installed.
Fix Access
The IDE requires that the user be a member of the lock group. See also <trac>11972</trac>.
This fix also restarts GNOME, so that the membership change is effective.
In Terminal:
sudo groupmems --group lock --add olpc && \ sudo systemctl restart prefdm.service
Choose a larger font
The default font is small.
- Applications -> Programming -> Arduino,
- File -> Preferences,
- Editor font size to 18, OK.
Testing
- start Applications -> Programming -> Arduino,
- connect Arduino board,
- choose Tools -> Board entry, e.g. Arduino Uno,
- choose Tools -> Serial Port entry, e.g. /dev/ttyACM0,
- choose File -> Examples -> Basics -> Blink,
- choose Upload to send the program to the Arduino board,
- see LED flashing.
Firmata
Firmata is a generic protocol for a computer to communicate with microcontrollers. The Sugar Labs Turtle Art activity included in OLPC OS builds supports Firmata, and can use an Arduino board as a general purpose analog and digital I/O interface.
The StandardFirmata may be uploaded to an Arduino board, using the Arduino IDE:
- start Applications -> Programming -> Arduino,
- connect Arduino board,
- choose File -> Examples -> Firmata > StandardFirmata,
- choose Upload to send the program to the Arduino board.
Alternatively, StandardFirmata may be uploaded without using the Arduino IDE, see How to upload StandardFirmata using ino.
See also
ProtoSnap_Contributors_Guide how to install Firmata on the SparkFun ProtoSnap using an XO
References
- http://arduino.cc/playground/Linux/Fedora
- http://blog.makezine.com/2007/12/21/howto-run-arduino-on-the-xo-la/
- http://tonyforster.blogspot.com.au/2012/01/arduino-and-xo-laptop.html
- http://lists.laptop.org/pipermail/devel/2012-January/034062.html
- http://tonyforster.blogspot.com.au/2010/10/arduino-fork-of-turtle-art.html
- http://wiki.sugarlabs.org/go/Activities/TurtleArt
- http://firmata.org/
- http://arduino.cc/playground/Interfacing/Firmata
- http://arduino.cc/en/Reference/Firmata