Team X


ECE 4180 Team

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
/media/uploads/rahulchoudhury2/hexiwear_block_diag.png

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


Wiring

MbedVS 1053microSDSpeakerRGB LEDPower MOSFETMotorExt Power Supply (5V)RS232 Breakout
VOUT (3.3V)VCCVCCVCC
GNDGNDGNDGNDJP2-2 GNDGNDGND
p5DI
p6DO
p7SCK
p9CS
p11SI
p12SO
p13SCLK
p14CS
p18RESET
p19DREQ
p20BSYNC
p21JP2-3 Control
p22Blue
p23Green
p24Red
p27TX
p28RX
LEFTPositive
GBUFNegative
JP2-1 RAW5V
JP1-1-
JP1-2+

/media/uploads/rahulchoudhury2/board_pic.jpg


Video

We need to change its name.


Code

Hexiwear Code


Mbed Controller Code


C# code


Python Code


All wikipages