Sam Gentle.com

Prototype wrapup #31

Last week I did one prototype, but this week was a few more. Mostly, this was bits and pieces for an art project I'm helping out with, but I'd like to get back into some more exploratory prototypes soon.

Monday

The project I'm helping out with uses the LightBlue Bean, which is a little Bluetooth Low Energy board. Unfortunately, two of them can't connect to each other directly, so I wrote a little router in Coffeescript to route messages between them. This one just works with two beans.

Tuesday

This is some simple Arduino code to run a servo and a motor based on serial input, vaguely adapted from some example code. It was designed to work with the router and some existing code that sends the state of the digital pins over serial.

Wednesday

This was an adapted version of the sending code that I changed to be more power efficient. It used to read the pins every half-second like the sender, but since it's running off a coin-cell I updated it to use interrupts and sleep the rest of the time.

Thursday

This was some slight changes to the receiver to make the receiver code work with the servo better.

Friday

Finally, since I needed it to handle 8 of the things, I rewrote the router so it had a mapping of which beans connect to which other beans.