Arduino: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
(12 intermediate revisions by 2 users 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]],
== 12.1.0 ==
* [[Arduino/1.8.5|Arduino 1.8.5 on OLPC OS 13.2.8]].


== Choose a larger font ==
Switch to the GNOME desktop.


The default font is very small on the XO laptop, to fix it:
=== Packages ===

In Terminal:

sudo yum install -y arduino

Roughly 43 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 also restarts GNOME.

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,
* Applications -> Programming -> Arduino,
* File -> Preferences,
* File -> Preferences,
* Editor font size to 18, OK.
* Editor font size to 18, OK,
* Quit and restart Arduino.

== 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 [http://wiki.sugarlabs.org/go/Activities/TurtleArt Turtle Art activity] included in OLPC OS builds supports Firmata 2.1 or later, and can use an Arduino board as a general purpose analog and digital I/O interface.


==See also==
The Arduino board must be programmed with StandardFirmata, using the Arduino IDE:
* [[Arduino/Firmata]]
* start Applications -> Programming -> Arduino,
* [[XO Stick]]
* connect Arduino board,
* [[XOrduino]]
* choose File -> Examples -> Firmata > StandardFirmata,
* [[XO_Stick/Bootloader]]
* choose Upload to send the program to the Arduino board.
* [[XOrduino/bootloader]]
* [[ProtoSnap_Contributors_Guide|How to use TurtleBots with the SparkFun ProtoSnap - Pro Mini]]
* [[Serial adapters/Arduino|How to use an Arduino as a Serial Adapter]]


== References ==
== References ==

Latest revision as of 08:57, 11 October 2017