You are viewing an older revision! See the latest version
Device Automation with Hexiwear Echo Dot
Team Members : Lai-Kuei Hsueh, Amanvir Singh Sidana, Rahul Dutta Choudhury
Overview¶
This project demonstrates the use of Hexiwear, Mbed and Amazon Echo Dot for IoT applications. The Echo Dot is used for selecting the device that needs to be controlled and Hexiwear is used for controlling the device. Three devices have been used namely, a music player, LED and motor.
Data Flow Diagram¶
Hexiwear
Echo Dot
Description¶
Communication between Echo Dot and MBED¶
Amazon Echo Dot is used to select the device to be controlled. First, we enter the Smart Device Skill App created by us and then we set the device to be controlled using voice commands. The Amazon Echo Server is configured to send a trigger signal to If This Then That server. A java code which is running on a laptop continuously waits for signals from If This Then That server. When the trigger signal is received, it queries the required details from the server using HTTP GET POST functions. Then, according to the response, data is sent over serial to the mbed to set the device being controlled.
Communication between Hexiwear and MBED¶
Hexiwear's touch buttons and accelerometer have been used. When the user presses touch button, accelerometer readings are recorded and gesture value is computed. In this project, we use four gestures. Each gesture corresponds to a value which is uploaded to the wolksense cloud using Hexiwear App. For this Hexiwear App is installed on a smartphone and the phone is connected to Hexiwear. Also, the smartphone must be connected to the internet. The data is continuously monitored by a C# program running on a laptop. The C# program grabs the trigger input and sends it over serial to the mbed controller. The mbed then performs the required task according to the input received for the device which was set earlier using Echo dot.
Equipment¶
- mbed LPC1768
- Hexiwear and Docking Station
- Amazon Echo Dot
- RS232 to TTL Shifter
- VS 1053 MP3 Decoder
- microSD Socket
- Speaker
- RGB LED
- Power MOSFET
- Motor and Wheel
Wiring¶
Mbed | VS 1053 | microSD | Speaker | RGB LED | Power MOSFET | Motor | Ext Power Supply (5V) | RS232 Breakout |
---|---|---|---|---|---|---|---|---|
VOUT (3.3V) | VCC | VCC | VCC | |||||
GND | GND | GND | GND | JP2-2 GND | GND | GND | ||
p5 | DI | |||||||
p6 | DO | |||||||
p7 | SCK | |||||||
p9 | CS | |||||||
p11 | SI | |||||||
p12 | SO | |||||||
p13 | SCLK | |||||||
p14 | CS | |||||||
p18 | RESET | |||||||
p19 | DREQ | |||||||
p20 | BSYNC | |||||||
p21 | JP2-3 Control | |||||||
p22 | Blue | |||||||
p23 | Green | |||||||
p24 | Red | |||||||
p27 | TX | |||||||
p28 | RX | |||||||
LEFT | Positive | |||||||
GBUF | Negative | |||||||
JP2-1 RAW | 5V | |||||||
JP1-1 | - | |||||||
JP1-2 | + |
Video¶
We need to change its name.
Code¶
Hexiwear Code
Mbed Controller Code
C# code
Python Code