Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ruby & Physical Computing

1 view
Skip to first unread message

Omran Nazir

unread,
Nov 12, 2009, 9:13:55 PM11/12/09
to
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 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 interfaces.

1. Ardurino (http://en.wikipedia.org/wiki/Arduino)
2. Make Controller Kit (http://en.wikipedia.org/wiki/Make_Controller_Kit#Make_Controller_Kit)

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 working 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 wide fan base/support network.

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 it). So in theory I could code the scenario I've just described in Ruby.


Imran Nazir


Friend, Boho, House Owner, Citizen, Engineer



Víctor Adrián

unread,
Nov 16, 2009, 3:24:46 PM11/16/09
to
I'm interested in this subject too, so if anyone can share any info,
it'll be appreciated.

ghorner

unread,
Nov 16, 2009, 8:31:26 PM11/16/09
to
> > 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 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 interfaces.
>
> > 1. Ardurino (http://en.wikipedia.org/wiki/Arduino)
> > 2. Make Controller Kit (http://en.wikipedia.org/wiki/Make_Controller_Kit#Make_Controller_Kit)
>

I've heard good things about this ruby arduino platform:
http://github.com/atduskgreg/rad

Gabriel

Rick DeNatale

unread,
Nov 16, 2009, 9:04:33 PM11/16/09
to

Dick Davies

unread,
Nov 27, 2009, 5:25:31 AM11/27/09
to
On Fri, Nov 13, 2009 at 2:13 AM, Omran Nazir <imran...@yahoo.co.uk> wrote:
> 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 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 interfaces.
>
> 1. Ardurino (http://en.wikipedia.org/wiki/Arduino)

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.

0 new messages