BlinkM & Arduino 3D models

Posted by todbot on June 23rd, 2008

Here’s a really quick 3D model of BlinkM, if anyone needs it. It’s accurate to ~0.1mm.

- blinkm.skp — BlinkM SketchUp model
- rgb_led_piranha.skp — Piranha RGB LED SketchUp model

And here it is plugged into the awesomely done Arduino Diecimila model by Jon-Paul from the Google 3D Warehouse.

SketchUp is pretty great, but I found a problem with it if you’re trying to make accurate to-scale electronic parts: it won’t create surfaces with an area of <1mm. Took me a while to figure that out. The solution is to make a 10x or 100x size version and then do a scale by 0.1 or 0.01 when you’re done.

How To Do Big Strings in Arduino

Posted by todbot on June 19th, 2008

Arduino makes it pretty easy to store & use character strings, but those strings compete with your variables, so you can’t do as much. Here’s how to put big strings into read-only program memory and use them.

Lots of sketches can have big strings in them. Maybe you’ve built a little command-line interface or you’re storing small web pages (for net-connected Arduinos). Normally you do something like this:

char hellostr[] =  “<html><head><title>hello world</title></head>”
                   “<body><p align=center><h1>hello world</h1></p>
                   “</body></html>”;

// and then sometime later

Serial.println( hellostr );

The problem with this is that “hellostr” is stored in RAM along with your variables. The ATmega chip in Arduino only has 1kB of RAM. If your code is getting complex, and you’re using big strings, and lots of libraries, you may start having mysterious problems. Arduino can’t warn you if your sketch starts using too much RAM.

Instead, you can use PROGMEM, or PROGram MEMory, to store your strings. That is, the flash ROM memory that your code lives in. Using PROGMEM strings can be tricky, but here’s a little function called “printProgStr()” to make it almost as easy.

const char hellostr[] PROGMEM = “…”;     // notice added ‘const’ and ‘PROGMEM’

// given a PROGMEM string, use Serial.print() to send it out
void printProgStr(const prog_char str[])
{
  char c;
  if(!str) return;
  while((c = pgm_read_byte(str++)))
    Serial.print(c,BYTE);
}

// and then at some point

printProgStr( hellostr );

If you have another use for the string that isn’t “Serial.print()”, just create your own function and put whatever per-character handling function in there instead.

Get on the BlinkM Bus with a BlinkM Cylon

Posted by todbot on June 17th, 2008

BlinkMs are a lot of fun by themselves, but they’re also little network devices, each having its own address on an I2C network. Here’s where I think BlinkM can really shine since it makes controlling multiple RGB LEDs pretty easy. For Maker Faire, I wanted to show off this facet by having a single Arduino control a dozen or so BlinkMs on a single I2C bus. The result is shown in the little video below.

Read on for how this was put together.

Read the rest of this entry »

ThingM & BlinkM at Maker Faire!

Posted by todbot on May 2nd, 2008

ThingM (Mike and me and some friends) will be at Maker Faire Bay Area 2008 this weekend. Come by and visit us!

Our bench will be about “Experiments with Smart LEDs”. Basically we’re showing off BlinkM, the projects that led up to BlinkM, like my experiments with Smart LEDs, some future products we’re working on, and some fun projects using these gizmos.

Here’s some photos of some of the projects as they were being built:



And lots of the projects will be using various types of Arduino, if you’re into that sort of thing.

FunGizmo’s colorful tiny breadboards

Posted by todbot on April 28th, 2008

I just received some colorful tiny mini-breadboards from FunGizmos.com. They are pretty great. Now quickie ideas prototyped with Arduino can be even smaller than the “1¢ Arduino under-shield”.

They appear to be the same quality as the other breadboards I have, just different color plastic. I can already tell the colors will help me differentiate projects, which all tend to look alike from 10 feet away. Normally when you buy these from Digikey or similar places, these little ones cost $7 a piece. FunGizmos has them for $5.40. And that’s cheap enough to get a few. Note that all these tiny breadboards don’t have the side power busses like the larger breadboards do. That’s the price you pay for tininess.

“WiiChuck” Wii Nunchuck Adapter Available

Posted by todbot on February 18th, 2008

Want to hook up a Wii Nunchuck to an Arduino but don’t want to cut up the cord on your Nunchuck? Yeah me too. So I made some of these:

wiichuck_adapter1.jpg

wiichuck_adapter2.jpg

It’s a small PCB that adapts the Wii Nunchuck connector to standard 4-pin header. I call it the “wiichuck adapter”. It plugs directly into the Arduino, no wiring necessary. You can get one too for $4.

Available from the following wonderful shops:
- FunGizmos.com. International shipping for $1 more.
- Tinker.it (UK)
- Little Bird Electronics (Australia)

Read the rest of this entry »

BlinkM for Obama on BoingBoing

Posted by todbot on February 6th, 2008

Yay, BlinkM made it onto BoingBoing!

yeswecanhas08.jpg

“Homemade Obama “hope beacon” with LED light thingies”

It’s a pity there isn’t a movie of the poster in action. I’d like to see how the light script they programmed into the BlinkMs looked.

Bezel for Sparkfun’s “Monome-like” Button Pad

Posted by todbot on January 31st, 2008


sparkfun-buttonbezel1.jpg

This is a laser-cut acrylic bezel for Sparkfun’s Monome-like Button Pad PCB and Button Pad. These 4×4 Button Pads are great: big chunky buttons with a PCB that can take an RGB LED. JMG is making a “monomuino”, a Monome work-alike using this pad and an Arduino. And he’s extending the Monome functionality since his indicator lights can display 3 dimensions of data instead of the normal 1 of Monome.
Read the rest of this entry »