Introduction: LED DIMMER WITH LEAPMOTION ARDUINO AND PROCESSING
In this quick tutorial we will learn to control the intensity of LED by using our hand gesture with Leap motion controller and arduino. If we are going to closed our hand the intensity (light) of an led is going to dim bit by bit. When we completely closed our hand grip the led is turn OFF.Similarly when we open our hand in front of leap motion device the led will be turned ON and when we fully open our hand the led will glow with full intensity.Its the same as using Duty cycle (pulse width modulation) of Arduino for fading Led. But here is the concept of using hand gesture to control the fading led instead of using duty cycle ( Pulse width modulation).If you are get used with Leapmotion technology then its very easy to understand the programming about hand gestures. If you didn't get used with it yet so don't worry about it. See that link what-is-leap-motion-controller .it will help you to understand the basics.
As in PWM we are using duty cycle from 0% to 100% to controlling anything for analog but here in this case we are not using the commands of pwm for any percent but we makes the hands gestures to do the same work of pwm foe fadding lamp.If the hand is half open its mean 50% pwm goes to the output and this process is same for 25 % or 75% and others.
For complete Leap Motion Tutorial Visit:
Step 1: Components
220 ohm resistor
Step 2: Programming of Processing for Leap Motion
For Interfacing 3D gesture technology (leapmotion controller ) with arduino we are using Processing software for leapmotion device and Arduino IDE software for arduino controller. By serial communication of both device we are controlling the fading led by hand gestures.For understanding the basics of how to communicate the leap motion to arduino.
I have already Explained the code in the following link:Visit to download the arduino code and the circuit diagram: