Myo Armband controlling Lego Mindstorm EV3 RAC3 TRUCK with hand gestures.
You can follow the official building instructions for EV3 RAC3 TRUCK on lego site. Then you need to install lejOS on your EV3. It's quite simple and you will find all necesarry information and files here. I recommend you to download EV3 Eclipse plugin, which makes it very convenient to control your EV3 from Eclipse environment. Also, if you have the possibility to get NETGEAR Wifi Dongle for your EV3, it will allow you to connect to your EV3 wirelessly. Otherwise you can use Bluetooth or USB connection.
There are two classes in the project. You need to run the MyoTruck
.
MyoTruck
- Main class that handles connection to Myo, EV3 and does the main execution.MyoDataCollector
- This class collects orientation data and listens to gestures from your Myo.
I have also included myo-java library files within the source code, so you don't have to include it.
- Raise your hand -> speed increase
- Lower your hand -> speed decrease/switch to reverse gear
- Fist pose -> put the truck into sleep (stop moving)
- Fingers spread pose -> wake the truck up from sleep
- Thumb to pinky pose -> close the program
- Myo Armband (Developer Kit) - more info
- Lego Mindstorms EV3
- Myo Connect (version 0.6.0)
- myo-java
- lejOS EV3 Runtime Library (version 0.8.1)
The picture above describes the architecture I picked for this project. Although there are other options how to connect Myo to EV3:
- Through PC, Mac, Android or iOS devices
- Install Myo drivers directly on EV3 brick with leoJS
- NodeJS + websockets
- more...
- Mac, Windows, Linux (possibly Android and iOS, but some modifications would have to be made)