Leap Motion Lamp

I try not to get sucked into unreleased product hype but when I saw the initial demo of the Leap Motion product, a box that sits in front of your Mac and reads your hand gestures Minority Report style, I bought one. The product is shipping later this month but they've been sending out units to developers for awhile and there are some really fun applications showing up. Today Brett Terpstra pointed out this video where a guy is controlling his lamp with hand gestures. This is pushing all of my nerd buttons. I wonder if John Lassiter has seen this. 

The idea behind this work was to explore how to interface Arduino with Leapmotion, and to see what would be the precision we could get with some basic servos. Everything is surprisingly smooth. Except for the servo when the lamp goes up, because it's a cheap and weak one. Since there is no lib to directly connect the Leapmotion to the Arduino, I used node.js to connect to the websocket server that streams the Leapmotion data and the johnny-five node.js lib to control the Arduino and the servos. You can see the source code here: https://github.com/xseignard/leapLamp