- Notifications
You must be signed in to change notification settings - Fork82
Dino is a ruby gem that helps you bootstrap prototyping with an Arduino
License
austinbv/dino
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Please usedenko instead. It's identical other than the name, and being up to date.I've reset the master branch of this repo to match the last Rubygems release. - @vickash
Dino lets you start programming your Arduino with Ruby in minutes.
gem install dino
Use the included command line tool to create a folder with the Arduino sketch you want to use and optionally configure it.
# If connecting via serial, USB or ser2net, this is all you should need:dino generate-sketch serial# If usng the ethernet shield, you'll want to specify unique MAC and IP addresses:dino generate-sketch ethernet --mac XX:XX:XX:XX:XX:XX --ip XXX.XXX.XXX.XXX# For more options:dinohelp
Note: Current Ethernet shields come with a sticker indicating the MAC address you should use with them. For older shields without a dedicated MAC address, inventing a random one should work, but don't use the same one for multiple boards. Valid IP addresses depend on the configuration of your network.
- Connect the Arduino to a USB port on your machine, regardless of which sketch you're using.
- Openthe normal Arduino IDE
- Open the
.ino
file in the sketch folder you just generated. - Click the upload button (an arrow).
- Build the sample circuitexamples/led/led.png
- From your terminal, execute
ruby example/led/led.rb
- Observe your LED blinking continuously
- Take a look inthe example directory for small component examples
- TryGetting Started with Arduino and Dino fromJumpstart Lab, building a number-guessing game and a simple nightlight
- An examplerails app using Dino and Pusher
- For a Sinatra example look at thesite used to shoot the cannon at RubyConf2012
- "Arduino the Ruby Way" at RubyConf 2012
About
Dino is a ruby gem that helps you bootstrap prototyping with an Arduino