more detail at

http://www.instructables.com/id/Leap-Motion-Arduino-Animatronic-Hand-Robot/