Posts

Showing posts from March, 2010

Still on XYZ and RGB

Image
It should come as no surprise that I am still somewhat obsessed with my accelerometer. I've stated earlier that I'd like to create a lighted juggling ball that changes color as it rotates. This should be a simple task with an accelerometer - three axis, three colors, mix 'em and you're done, right? Maybe not so much. I won't rehash previous posts, but I will say I am really close. I should, however, explain my criteria: Rotation should change color of the light, obviously At a minimum, there should be shifting between the 3 basic colors: red, green, blue I'd prefer 6 colors total, with the other 3 being mixes: yellow (red/green), aqua (green/blue), and purple (blue/red) I'd like to get some nice fading as it switches between colors, but as I'll point out later, this is somewhat hard The light intensity should never change - all on, and never off I'd prefer it if there wasn't much white - all colors on - showing I already have code on the Arduin