Ruby & Physical Computing

O

Omran Nazir

Hello,=0A=0AI'll keep this short(ish) and sweet.=0A=0ACan anyone give any a=
dvice on possible prototyping kits I can buy for my experiments that can be=
programmed using Ruby.=0ASo far I have found two ideal candidates. Both ha=
ve a native C like programming interface both of which have been ported to =
Ruby. What I am not sure of is how good they are or weather by thinking of =
moving my work out into the physical world I am asking too much of Ruby and=
may as well just learn to code my experiment use their respective C-like i=
nterfaces. =0A=0A1. Ardurino (http://en.wikipedia.org/wiki/Arduino)=0A2. Ma=
ke Controller Kit (http://en.wikipedia.org/wiki/Make_Controller_Kit#Make_Co=
ntroller_Kit)=0A=0ACan anyone comment on these two respective platforms and=
my wish to work with them using Ruby? Does anyone have experience of these=
platforms and working with them using either their native environment or a=
s I would like to code with; Ruby. Are there any other suitable platforms o=
ut there with a wide fan base/support network.=0A=0AArdurino seems particul=
arly interesting to me as it's language interface is the same(or almost) as=
that used for Procesing (http://en.wikipedia.org/wiki/Processing_(programm=
ing_language)). So it should be possible to create a system which controls =
hardware, displays some funky graphics to the web. Whats more, Processing m=
ay have a Ruby port (i've just heard whispers of it). So in theory I could =
code the scenario I've just described in Ruby.=0A=0A=0A Imran Nazir =0A=0A=
=0AFriend, Boho, House Owner, Citizen, Engineer=0A=0A=0A
 
V

Víctor Adrián de la Cruz Serrano

I'm interested in this subject too, so if anyone can share any info,
it'll be appreciated.

El vie, 13-11-2009 a las 11:13 +0900, Omran Nazir escribi=C3=B3:
Hello,
=20
I'll keep this short(ish) and sweet.
=20
Can anyone give any advice on possible prototyping kits I can buy for my =
experiments that can be programmed using Ruby.
So far I have found two ideal candidates. Both have a native C like progr=
amming interface both of which have been ported to Ruby. What I am not sure=
of is how good they are or weather by thinking of moving my work out into =
the physical world I am asking too much of Ruby and may as well just learn =
to code my experiment use their respective C-like interfaces.=20
=20
1. Ardurino (http://en.wikipedia.org/wiki/Arduino)
2. Make Controller Kit (http://en.wikipedia.org/wiki/Make_Controller_Kit#= Make_Controller_Kit)
=20
Can anyone comment on these two respective platforms and my wish to work =
with them using Ruby? Does anyone have experience of these platforms and wo=
rking with them using either their native environment or as I would like to=
code with; Ruby. Are there any other suitable platforms out there with a w=
ide fan base/support network.
=20
Ardurino seems particularly interesting to me as it's language interface =
is the same(or almost) as that used for Procesing (http://en.wikipedia.org/=
wiki/Processing_(programming_language)). So it should be possible to create=
a system which controls hardware, displays some funky graphics to the web.=
Whats more, Processing may have a Ruby port (i've just heard whispers of i=
t). So in theory I could code the scenario I've just described in Ruby.
 
R

Rick DeNatale

ogramming interface both of which have been ported to Ruby. What I am not s=
ure of is how good they are or weather by thinking of moving my work out in=
to the physical world I am asking too much of Ruby and may as well just lea=
rn to code my experiment use their respective C-like interfaces.
I've heard good things about this ruby arduino platform:
http://github.com/atduskgreg/rad

Greg Borenstein also gave a talk about using Arduinos with Ruby at
last years RubyConf

http://rubyconf2008.confreaks.com/ruby-arduino-development.html

--=20
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
 
D

Dick Davies

Hello,

I'll keep this short(ish) and sweet.

Can anyone give any advice on possible prototyping kits I can buy for my =
experiments that can be programmed using Ruby.
So far I have found two ideal candidates. Both have a native C like progr=
amming interface both of which have been ported to Ruby. What I am not sure=
of is how good they are or weather by thinking of moving my work out into =
the physical world I am asking too much of Ruby and may as well just learn =
to code my experiment use their respective C-like interfaces.

That one is Good. I've been playing with Arduinos a lot lately.
Of the 2 boards you mentioned, Arduino is by far the most popular,
and there are boatloads of examples out there. Mac and Linux friendly, and =
cheap
enough that you don't get too upset when the board falls in the bath
or floats away
on a mini-zeppelin.

You can use RAD DSL (someone else posted a link) if you really don't
like the Arduino language.

From what I've seen though, there isn't much in the way of sample code
or docs yet.
You will probably learn more if you go 'au naturel';
I have some previous history with C, but the Arduino code is really
not as bad as 'full-on' C
(no need for memory management and pointers and suchlike).

The hard bit has been figuring out how the 'metal' does things
(voltage dividers and so on),
not the software running on the microcontroller. RAD won't help with
that, and you'll find it
harder to Google example code.
Whats more, Processing may have a Ruby port (i've just heard whispers of =
it). So in theory I could code the scenario I've just described in Ruby.

The Processing environment is Java - based, and there's a very good
JRuby library called
ruby-processing that you really need to check out:

http://wiki.github.com/jashkenas/ruby-processing

Most Arduino <--> Processing integration I've played with involves a
(USB) serial link between them,
so there's no need to use the same language on both sides. You just
stream some numbers from the arduino,
and write a Processing app that draws something / updates a website
based on those figures.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top