public
Fork of atduskgreg/rad
Description: Ruby Arduino Development: a framework for programming the Arduino physcial computing platform using Ruby -- Experimental Fork
Homepage: http://rad.rubyforge.org/
Clone URL: git://github.com/madrona/rad.git
rad /
name age message
file .gitignore Fri Jun 27 16:28:20 -0700 2008 added set pulsewidth to array in pulse and puls... [madrona]
file History.txt Tue Aug 18 21:42:04 -0700 2009 bumping version [madrona]
file License.txt Tue Jun 24 13:48:25 -0700 2008 moving over from svn [Greg Borenstein]
file Manifest.txt Fri Sep 04 09:50:08 -0700 2009 added maxbotix ultrasonic rangefinder example a... [madrona]
file README.rdoc Wed Oct 28 14:56:20 -0700 2009 added note to add gemcutter to sources [madrona]
file Rakefile Wed Oct 28 12:29:45 -0700 2009 preparing to move gem to gemcutter [madrona]
file VERSION Wed Oct 28 14:38:13 -0700 2009 Version bump to 0.4.3 [madrona]
directory bin/ Wed Oct 28 14:38:13 -0700 2009 Version bump to 0.4.3 [madrona]
directory lib/ Tue Oct 27 20:27:30 -0700 2009 fixed blinkm code examples [madrona]
file madrona-rad.gemspec Wed Oct 28 14:49:49 -0700 2009 after a few wrong turns with the madrona namesp... [madrona]
file project_dev.rake Tue Jul 22 11:20:05 -0700 2008 moved unit tests out into framework and added a... [atduskgreg]
file setup.rb Tue Jun 24 13:48:25 -0700 2008 moving over from svn [Greg Borenstein]
directory spec/ Mon Aug 17 10:55:17 -0700 2009 bookeeping -- added spec helloworld [madrona]
directory test/ Sun Aug 16 21:31:17 -0700 2009 brought the madrona branch up to date and added... [madrona]
README.rdoc

Welcome to RAD (Ruby Arduino Development)

RAD is a framework for programming the Arduino physcial computing platform using Ruby. RAD converts Ruby scripts written using a set of Rails-like conventions and helpers into C source code which can be compiled and run on the Arduino microcontroller. It also provides a set of Rake tasks for automating the compilation and upload process.

For a full introduction see rad.rubyforge.org

Documentation

The main documentation is here: ArduinoSketch.

See also the Arduino Software reference: www.arduino.cc/en/Reference/HomePage

Examples

See the examples directory for lots of examples of RAD in action

The atduskgreg/rad wiki also contains a growing library of examples and hardware tutorials: github.com/atduskgreg/rad/wikis

Getting Started

To install the edge gem:

 # Update to RubyGems 1.2.0 before proceeding!
 $ gem sources -a http://gemcutter.org (you only have to do this once)
 $ sudo gem install madrona-rad

A very old and feature poor (though slightly more ‘stable’ RAD) is available from RubyGems:

 $ sudo gem install rad

Run the rad command to create a new project:

 $ rad my_project

Write a sketch that will blink a single LED every 500ms:

  class MyProject < ArduinoSketch
        output_pin 13, :as => led

        def loop
                blink led, 500
        end
  end

Attach your Arduino and use rake to compile and upload your sketch:

 $ rake make:upload

Installing the Arduino Software

Installing RAD and the Arduino software on Linux can be a little more difficult than on OS X. Thankfully, the RAD command line tool can help. Run:

    $ rad install arduino

And RAD will do its best to get the Arduino software installed on your system.

   For OS X, Arduino should be installed in your applications directory -- install the intel or power pc drivers in /drivers

Get Involved

Cheers? Jeers? Wanna help out? Contact JD Barnhart: jd [at] jdbarnhart [dot] com