Arduino: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Created page with 'Installing Arduino IDE on OLPC OS. == 12.1.0 == Switch to the GNOME desktop. === Packages === sudo yum install -y arduino Roughly 43 MB of packages are downloaded and insta…')
 
No edit summary
Line 6: Line 6:


=== Packages ===
=== Packages ===

In Terminal:


sudo yum install -y arduino
sudo yum install -y arduino
Line 14: Line 16:


The IDE requires that the user be a member of the ''lock'' group. See also <trac>11972</trac>. This also restarts GNOME.
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 groupmems --group lock --add olpc && \
Line 33: Line 37:
* choose Tools -> Serial Port entry, e.g. /dev/ttyACM0,
* choose Tools -> Serial Port entry, e.g. /dev/ttyACM0,
* choose File -> Examples -> Basics -> Blink,
* choose File -> Examples -> Basics -> Blink,
* choose Upload to send the program to the Arduino board.
* choose Upload to send the program to the Arduino board,
* see LED flashing.

== 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

Revision as of 11:06, 25 June 2012

Installing Arduino IDE on OLPC OS.

12.1.0

Switch to the GNOME desktop.

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,
  • 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.

References