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
SainSmart 2-Channel 5V Relay Module
http://www.sainsmart.com/arduino-pro-mini.html
Adafruit Huzzah ESP8266
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
Huzzah | mbed LPC1768 | External 5V DC supply >=500MA |
---|---|---|
gnd | gnd | gnd |
TX | RX - p27 | |
RX | TX - p28 | |
V+ | 5VDC | |
RST | p26(optional) |
MBED and ACS712 Sensor
ACS712 | mbed LPC1768 | External 5V DC supply >=500MA |
---|---|---|
gnd | gnd | gnd |
Vcc | 5VDC | |
OUT | p19(optional) |
MBED and Relay
Relay | mbed LPC1768 | External 5V DC supply >=500MA |
---|---|---|
gnd | gnd | gnd |
TX | RX - p27 | |
RX | TX - p28 | |
Vcc | 5VDC | |
OUT | p26(optional) |
You can import the program bellow:
Import programIOTSmartPlug
IOT Smart Plug using Huzzah ESP8266
1 comment on IOT Smart Plug with Huzzah ESP8266:
Please log in to post comments.
hi i am not getting ip neither mac address.... Can u pls help me out