Arduino: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Installing the Arduino IDE on OLPC OS. |
Installing the Arduino IDE on OLPC OS. |
||
* [[Arduino/1.0.5|Arduino 1.0.5 on OLPC OS 13.2.8]], |
|||
== Ingredients == |
|||
* |
* [[Arduino/1.8.5|Arduino 1.8.5 on OLPC OS 13.2.8]]. |
||
* access to internet, |
|||
== Recipe == |
|||
* switch to the Gnome desktop, as the software works best in Gnome, |
|||
* start the Terminal application, and type this: |
|||
:<pre> sudo yum install -y arduino</pre> |
|||
* wait for the download to finish, it should need roughly 61 MB, |
|||
* start Applications -> Programming -> Arduino, |
|||
== Testing == |
|||
* 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 [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 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 [[ProtoSnap_Contributors_Guide/Upload|How to upload StandardFirmata using ino]]. The download size is much smaller (18MB), but the steps required are more complex. |
|||
== Choose a larger font == |
== Choose a larger font == |
||
Line 41: | Line 12: | ||
* Editor font size to 18, OK, |
* Editor font size to 18, OK, |
||
* Quit and restart Arduino. |
* Quit and restart Arduino. |
||
== 12.1.0 == |
|||
Follow the [[#Ingredients|instructions above]], but before starting Arduino add the ''olpc'' user to the ''lock'' group. See also <trac>11972</trac>. This fix also restarts Gnome, so that the membership change is effective. <!-- todo: test to see if this is actually necessary --> |
|||
In Terminal, type this: |
|||
sudo groupmems --group lock --add olpc && \ |
|||
sudo systemctl restart prefdm.service |
|||
==See also== |
==See also== |
||
* [[Arduino/Firmata]] |
|||
* [[XO Stick]] |
* [[XO Stick]] |
||
* [[XOrduino]] |
* [[XOrduino]] |
Latest revision as of 08:57, 11 October 2017
Installing the Arduino IDE on OLPC OS.
Choose a larger font
The default font is very small on the XO laptop, to fix it:
- Applications -> Programming -> Arduino,
- File -> Preferences,
- Editor font size to 18, OK,
- Quit and restart Arduino.
See also
- Arduino/Firmata
- XO Stick
- XOrduino
- XO_Stick/Bootloader
- XOrduino/bootloader
- How to use TurtleBots with the SparkFun ProtoSnap - Pro Mini
- How to use an Arduino as a Serial Adapter
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