This is a simple robotic hand to test LeapMotion and Littlebits. All it does is to send signal from LeapMotion to the Littlebits Arduino.
Step 1:
Assemble the Robotic Hand.
I bought this 4M Robotic Hand Kit
Assembled it except the handle.
Step 2:
Add the Servos
I attached the servos the base then connect it to the strings that controls the fingers.
Step 3:
Connect Servos to Littlebits Arduino
Step 4:
Littlebits Arduino is connected to my laptop.
Step 5:
Setup Leap Motion.
Create a new Node JS project. Setup leap motion in cylon.
npm install cylon cylon-leapmotion
Follow instructions here.
http://cylonjs.com/documentation/platforms/leapmotion/
I tested this code first.
var Cylon = require('cylon');
Cylon.robot({
connections: {
leapmotion: { adaptor: 'leapmotion' }
},
devices: {
leapmotion: { driver: 'leapmotion' }
},
work: function(my) {
my.leapmotion.on('hand', function(payload) {
Logger.info(payload.toString());
});
}
}).start();
Comments