ProtoSnap Contributors Guide: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 31: Line 31:
ino upload
ino upload
* ProtoSnap's bright white light will turn on! Finally, run:
* ProtoSnap's bright white light will turn on! Finally, run:
git clone <nowiki>https://github.com/itdaniher/turtleblocks-arduino.git</nowiki> ~/Arduino/TurtleBlocks.activity/plugins/arduino
git clone <nowiki>https://github.com/itdaniher/turtleblocks-arduino.git</nowiki> ~/Activities/TurtleBlocks.activity/plugins/arduino
* or run this (untested) script (to avoid needing to install git, as noted above):
* Or run this (untested) script (to avoid needing to install git, as noted above):
wget <nowiki>https://github.com/itdaniher/turtleblocks-arduino/archive/master.zip</nowiki>
wget <nowiki>https://github.com/itdaniher/turtleblocks-arduino/archive/master.zip</nowiki>
unzip master.zip
unzip master.zip

Revision as of 16:05, 28 July 2013

This ProtoSnap Contributors Guide connects your XO to the real world of electronics, sensors and activators -- using SparkFun's $29.95 ProtoSnap - Pro Mini. We use the Logo-like TurtleArt visual programming environment initially, but later Scratch & Etoys are expected too. Please ask questions on the unleashkids@googlegroups.com mailing list! You can join right here: http://groups.google.com/group/unleashkids

These instructions have been tested on the XO-4 Touch laptop, and should run on XO-1, XO-1.5, XO-1.75 too. But Ian Daniher will investigate whether "ino" below can be made to run on OLPC Release 11.3.1 (based on Fedora 14) commonly used in Haiti as of 2013.

Loosely speaking, this 5-phase install will proceed as follows:

  1. install requirements
  2. setup build environment
  3. build it
  4. upload it (to the SparkFun board)
  5. install the TurtleArt plugin

Now down to business

 sudo yum install ino
 sudo yum install git   (type "y" when asked if importing GPG key is OK)
 sudo yum install make
  • Run the following 4 commands:
 mkdir firmata
 cd firmata
 ino init
 mkdir lib
  • Correct a packaging error in "ino", running these 4 commands:
 sudo mkdir /usr/share/arduino/hardware/tools
 sudo cp /etc/avrdude/avrdude.conf /usr/share/arduino/hardware/tools
 cp /usr/share/arduino/libraries/Firmata/examples/StandardFirmata/StandardFirmata.ino ./src/sketch.ino
 ino build
  • Plug in a "USB-A to mini-USB" cable, connecting your XO to the ProtoSnap (Ian can provide these, or 80 cents @ monoprice.com). Then run:
 ino upload
  • ProtoSnap's bright white light will turn on! Finally, run:
 git clone https://github.com/itdaniher/turtleblocks-arduino.git ~/Activities/TurtleBlocks.activity/plugins/arduino
  • Or run this (untested) script (to avoid needing to install git, as noted above):
 wget https://github.com/itdaniher/turtleblocks-arduino/archive/master.zip
 unzip master.zip
 mv turtleblocks-arduino-master/ turtleblocks-arduino/
 mv turtleblocks-arduino/ ~/Arduino/TurtleBlocks.activity/plugins/arduino/
  • Return to Sugar's Activity wheel (Home View) and launch the TurtleArt Activity. Load the sample TurtleArt project here:
 http://wiki.laptop.org/go/File:TurtleBlocks_Activity.ta

Screenshots

Screenshot of TurtleBlocks Activity 3.png Itdaniher--photo.JPG