IOT Smart Plug with Huzzah ESP8266

This MBED based project reads in power values from devices connected to the plug and gives the user the ability to turn the plug on and off using an internet based interface. The smart plug reads in power data from the ACS712 current sensor connected to a started 120VAC plug and sends the data to an mbed and a Huzzah ESP8266 wifi board. The mbed LPC1768 sends commands to the Huzzah ESP8266 to create a server and display an on/off toggle switch and the power data.

Devices and Sensors:

ACS712 current sensor

/media/uploads/fepie3/acs712.jpg

http://www.allegromicro.com/en/Products/Current-Sensor-ICs/Zero-To-Fifty-Amp-Integrated-Conductor-Sensor-ICs/ACS712.aspx

SainSmart 2-Channel 5V Relay Module

/media/uploads/fepie3/relay.jpg

http://www.sainsmart.com/arduino-pro-mini.html

Adafruit Huzzah ESP8266

/media/uploads/fepie3/adafruit_products_2471_top_180rotated_orig.jpg

Newer ESP8266 Huzzah module from Adafruit. The FCC approved ESP8266 modules have a metal cover to reduce RF emissions. https://www.adafruit.com/products/2471 Hookup:

MBED and Huzzah ESP8266

Huzzahmbed LPC1768External 5V DC supply >=500MA
gndgndgnd
TXRX - p27
RXTX - p28
V+5VDC
RSTp26(optional)

MBED and ACS712 Sensor

ACS712mbed LPC1768External 5V DC supply >=500MA
gndgndgnd
Vcc5VDC
OUTp19(optional)

MBED and Relay

Relaymbed LPC1768External 5V DC supply >=500MA
gndgndgnd
TXRX - p27
RXTX - p28
Vcc5VDC
OUTp26(optional)

You can import the program bellow:

Import programIOTSmartPlug

IOT Smart Plug using Huzzah ESP8266


1 comment on IOT Smart Plug with Huzzah ESP8266:

16 Jun 2017

hi i am not getting ip neither mac address.... Can u pls help me out /media/uploads/rajendracj/untitled.png

Please log in to post comments.