A simple project to control a LegoV3MindStorms
thanks to a Leap Motion
- DownLoad & Install the Leap Motion software here
- Plug your Leap Motion device
- Activate the Bluetooth on your computer
- Enable the
Bluetooth
option in the settings of theLegoV3MindStorms
. Make sure to disable the Iphone/Ipad one. - Pair your LegoV3MindStorms and your computer (Computer's Settings -> add a Bluetooth device -> click on the "DeviceName" to Connect -> accept the paring on your brick -> add a ping code on it -> fill the connection field with the same code on your computer -> Everything's done!)
- Launch the
RobotLego.sln
located in the folder:./App/RobotLego
- Build & Run the solution. (make sure that
LegoController
is the starting project. If not, right click onLegoController
in solution explorer -> Set as startup project) - Click the button "Scan" on the top-right corner of the window
- Wait the LegoDevice to appear on the list and then click one time to connect it (A sound should be played!)
How to use the Graphic Interface
- The first 4 buttons are some tests to check if the motors works correctly
- The 3 "Action" button are save preset to present all the ways the robot can move
- The next 11 buttons represent the 11 ways the robot can go
- The slider next to them is the power gauge of the motors, tweak it to see the robot change it powerness
- Finally the sensors in the bottom of the windows give informations about externals obstacles (1 to 100cm)
How to use the Leap Motion
- Put your right hand verticaly allign with the device at a heigh of 20cm
- Put your left hand next to it at the same heigth
- Close your right hand to engage the system
- Choose one of the 8 cardinals direction reconize by the system with your right hand (The robot must move the way you choose)
- Close your left hand to start the speed control system
- Try to
rise/down
your left hand vertically to see the robotaccelerate/decelerate
- You can also turn your right wrist to turn the robot itself (turn left for left, right for right)
- Make sure to keep your hands not far away from the leap motion
WARNING !! To stop the robot, open your right hand!! Don't left to use the graphic interface to stop the robot if it is running away!
- Open the
UltraLeap Tracking Visualizer
to easiliy see what you are doing. (basicly if you are center to the leap motion device) - We strongly recommend to move slowly to start to understand the way the system works.
- If you sometimes loose the signal, please make sure your hand stay in the caption range of the device. (If you still get some issue, try to not completely close your hands.)
-
Co-author: Valentin Clergue
-
Co-author: Antoine Imbert
-
Professor: Marc Chevaldonné (Author of the librairies that make
LegoV3MindStorms
&Leap Motion
working with C#)