The Leap Motion is used to control the servos by the users and here are two servos that mirror the user’s two individual hands movement. 8×8 RGB LED Matrices are attached to the servos and they react accordingly to each finger movement of the hand. The Leap Motion is responsible for communicating directly with the Raspberry Pi via PubNub Data Streams with minimal latency and on the other hand, the Raspberry Pi drives the servos.
This tutorial aims to use PubNub to communicate with the Raspberry Pi to control servos and this same technique can be used to control any internet connected device.The role of PubNub is to establish communication layer between any two devices to speak and here the Leap Motion is used as a Raspberry Pi controller, but it can also be used to configure devices or for real-time data collection.
All you need is a Leap Motion + Leap Motion Java SDK, Raspberry Pi Model B+, Tower Pro Micro Servo (x4) and Adafruit PWM Servo Driver.Leap Motion is equipped with two monochromatic IR cameras and three infrared LEDs and here it captures the pitch and yaw of the user’s hands, to publish them to a channel via PubNub.
Make sure to have working experience with a leap motion in Java as you will need to open up a Java IDE and create a new project and install the PubNub Java SDK. Check out the following link for complete details
Filed Under: Reviews
Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.
Tell Us What You Think!!
You must be logged in to post a comment.