Have you ever wanted to control your lights, or anything else plug into an outlet, with just your hand gestures? By utilizing Myo's gesture control armband, Belkin's WeMo switch and Octoblu's IoT platform, your hand is the remote control to your outlet!
What You Will Need
1. Free Octoblu account
2. Gateblu (Octoblu's gateway)
3. Myo armband
4. Belkin WeMo
To make your Myo talk to your WeMo you will need to connect them both to Octoblu and import a flow.
Myo/WeMo Setup
1. Download Gateblu
2. Make sure you keep Gateblu running on your computer.
3. Log into your Octoblu account and navigate to the "Things" page.
4. Claim your Gateblu by finding Gateblu in the list of "Things".
5. Now you will need to add two devices: Myo and Belkin WeMo.
6. Before you can connect your Belkin WeMo to your Octoblu account, you will need to first download the app for WeMo on your phone and set up your switch.
7. Now you can go back to "Things", click on WeMo, and add it to your Gateblu.
8. Give your WeMo a whatever name you like, but make sure the "friendlyName" is the same as the name you gave it in the WeMo app.
9. To setup your Myo, you will first need to have Myo Connect running on your computer.
10. You can then go to "Things", click on Myo, and add it to your Gateblu.
11. Once you have successfully added both devices to your account, you should be able to see them online in your Gateblu.
Now that you have your devices connected to your Octoblu account, you need a flow to control them.
Gesture Controlled Outlet Flow
Import this flow (follow the hyperlink, click "Import"):
https://app.octoblu.com/bluprints/import/e37fb839-e9a4-47ef-b5fb-4eb9436a5b1b
Now just start the flow and begin controlling your outlet with your hand gestures!
A few things to note about this flow:
- The Myo node(or instance) in your flow will send messages as it gets them, so as you make gestures. When you click on it, you can make it vibrate and such, however, we have no use for those options in this use case.
- The Pluck tool is used to reference the gesture data from the Myo in an easier way. Instead of having to call {{msg.payload.event}}, which would return something like "fist", you can just call {{msg.event}} after the data has passed through the pluck.
- The Equal tool will compare two things and pass the message on if it is true. For this flow, we need to compare {{msg.event}} to a gesture and associate that with an action, such as turning on and off a WeMo.
- A few different gestures you could try are: "fingers_spread", "fist", "double_tap"(middle finger to thumb), "wave_in", and "wave_out".
Comments