DIY Ambient Orb with Arduino, update

There’s been some confusion as to whether or not the DIY RGB orb presented in the last post was actually connected to a computer and receving color data from it. Here’s a video that more accurately depicts what’s going on and all the code used to create it.

Hardware

The hardware is just an Arduino board connected via USB to a laptop. The Arduino appears as a serial device to the computer. On the Arduino board, three LEDs (red,green,blue) are mounted directly to the Arduino board using a prototyping shield like this DIY one. The schematic is quite simple:
rgb_led_schematic.png

Arduino code

The code sketch running on the Arduino board is a slightly modified version of the one presented in the last Spooky Arduino class. Instead of parsing single color values over the serial port, it expects a full RGB color value in standard web format of “#RRGGBB” (white is “#ffffff”, blue is “#0000ff”, and so on). The sketch parses that seven character string into three bytes: one each for the brightness values of the red, green and blue LEDs.

Arduino code: serial_rgb_led_too.pde

Processing code

To bridge between the Arduino and the Net, a small Processing sketch was created that uses the standard Java HTTPURLConnection class to fetch a web page (really, a text file on a web server) containing a line with a color value in the format “#RRGGBB”. The sketch parses the color value, sends the value out to the Arduino orb using the Processing Serial library, and then sets its own background color to match. Because I’ve set the framerate of the sketch to 1 fps, it takes a second for the background to match the orb. I did this on purpose so I could get a sense of the color as the orb reproduces it before seeing it as it truly is. I was surprised how well the two tended to match!

Processing code: http_rgb_led.pde

Better Video on OS X: NicePlayer & Perian

nice and happy

I watch movies on my Mac. I’ve been ripping my DVDs to DivX or h.264 to my hard drive simply because it’s easier to double-click a file than hunt around for a particular configuration of atoms. I used to use VLC for any files that Quicktime Player couldn’t play, but I’ve recently come across a better solution.

niceplayer50 NicePlayer — “Quite simply, the nicest media player for Mac.”

perian50 Perian — “The Swiss-army knife for QuickTime.”

Continue reading “Better Video on OS X: NicePlayer & Perian”

Spooky Arduino Projects

spooky

Yesterday was the first of the four classes that comprise the Spooky Projects – Introduction to Microcontrollers with Arduino. Click that link to read the class notes and see some of the links mentioned.

The class seemed to go okay. We finished a little early. I had packed the first class a bit light fearing we’d be fighting USB serial driver issues, but the students in this class are all smart cookies and solved any issues they had themselves.

Logistically, the class was sponsored and held at Machine Project. They have a new large open area downstairs that is perfect for meetings or classes of around 15 people. It’s a great space and separated from the main gallery space meaning that classes and gallery showings don’t collide.

pb-n-fun: spring cleaning collection

Finally got off my butt and made mp3s of the several of tracks haunting my hard drive. Mastering them to mp3s essentially means I’ve given up on doing any more development on them. But I at least wanted a record of some of the ideas.

todbot – rota.mp3

todbot – autiztek.mp3

todbot – dragweed.mp3

todbot – aboard.mp3

todbot – elucid.mp3

todbot – shard.mp3

All composition done in Live. Some instruments provided by plugins like Albino, Automat, Cameleon5000, & StylusRMX. Other instruments provided by Reason. Some samples of me on the Evolver and guitar in there too I think.