Ruby Arduino Development v0.3.1 and Arduino Duemilanove

11 views
Skip to first unread message

Rodney Degracia

unread,
Sep 12, 2011, 12:44:39 PM9/12/11
to Orlando Ruby Users Group Discussion

I hope this is of interest to Rubyists, that are also Arduino enthusiasts, within ORUG:

RAD (http://rad.rubyforge.org/) 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.

I have an older Arduino Duemilanove and I used RAD (Ruby Arduino Development) a few years back to write Ruby programs and translate them to run on the Ardiuno Duemilanove.

I recently got inspired to do some Arduino hacking and I downloaded the original github repository and found that it was quite out of date, so I forked and updated RAD atgit://github.com/rdegraci/rad.git so it works, at least for my Arduino Duemilanove. I sent the original maintainer https://github.com/atduskgreg/rad a pull request, so hopefully they'll be able to merge in my updates.


If you have a newer Arduino and want to test my fork, I have a write up of instructions at http://elitefrontier.org/2011/9/12/rad-0-2-2-gem-list


Here is some sample Ruby code that shows how to easily blink the Arduino built-in LED:

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

 def loop
   blink led, 100 
   x = 4
 end
end



If you have any questions, please send me an e-mail.

Christopher Grey

unread,
Sep 12, 2011, 1:21:21 PM9/12/11
to orug-di...@googlegroups.com
That's awesome, Rodney. Thank you.

I'm currently working on some Arduino projects and learning Ruby so I will certainly look into this. 

Chris Grey

--
You received this message because you are subscribed to the Google Groups "Orlando Ruby Users Group Discussion" group.
To post to this group, send email to orug-di...@googlegroups.com.
To unsubscribe from this group, send email to orug-discussi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/orug-discussion?hl=en.

Reply all
Reply to author
Forward
0 new messages