public
Description: Ruby Arduino Development: a framework for programming the Arduino physcial computing platform using Ruby
Homepage: http://rad.rubyforge.org/
Clone URL: git://github.com/atduskgreg/rad.git
rad /
name age message
file .gitignore Sun Sep 21 17:55:55 -0700 2008 merging changes to bin/rad, adding software_ser... [atduskgreg]
file History.txt Mon Sep 22 09:16:32 -0700 2008 changed version number [madrona]
file License.txt Tue Jun 24 13:48:25 -0700 2008 moving over from svn [Greg Borenstein]
file Manifest.txt Fri Dec 12 20:09:35 -0800 2008 updating gemspec and manifest to include instal... [atduskgreg]
file README.rdoc Thu Jun 11 09:24:46 -0700 2009 add note about the install script [atduskgreg]
file Rakefile Sun Aug 03 17:59:04 -0700 2008 cleaning up [atduskgreg]
directory bin/ Wed Dec 10 20:38:29 -0800 2008 added linux install code from Colin Harris. als... [atduskgreg]
directory lib/ Sun Jan 11 19:10:27 -0800 2009 add requirement of specific version of parsetre... [atduskgreg]
file rad.gemspec Sun Jan 11 19:10:27 -0800 2009 add requirement of specific version of parsetre... [atduskgreg]
directory scripts/ Tue Jun 24 13:48:25 -0700 2008 moving over from svn [Greg Borenstein]
file setup.rb Tue Jun 24 13:48:25 -0700 2008 moving over from svn [Greg Borenstein]
directory spec/ Mon Aug 04 02:09:58 -0700 2008 SketchCompiler does pre-processing for constant... [atduskgreg]
directory test/ Wed Sep 24 14:56:54 -0700 2008 moving hello_world_test stuff for rad test ardu... [atduskgreg]
directory website/ Mon Jul 21 01:57:29 -0700 2008 website fixes [atduskgreg]
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: github.com/atduskgreg/rad/tree/master/lib/examples

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://gems.github.com (you only have to do this once)
 $ sudo gem install atduskgreg-rad

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

 $ sudo gem install rad

We plan to push tagged releases to RubyGems at key points. The 0.3 release should be coming up soon.

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 complile 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.

Get Involved

Cheers? Jeers? Wanna help out? Contact Greg Borenstein: greg [dot] borenstein [at] gmail [dot] com