Smart Home – Control everything with ESP8266 Series (Part 1)

Tram Ho

Question

* IoT (Internet of things) is a term you have heard a lot recently. What are they? What do they do?
* Your answers are many. You imagine, hot summer, coming home in the tiredness of the traffic jam, then welcome you otherwise when the cooling of the air conditioner is on. 30 minutes earlier, but the question was “Are you home. Are you tired?” from the “pretty” virtual assistant, the water is prepared you just need to release the minfnh, … It is interesting, isn’t it. They are all run smoothly. So why not do it yourself Give yourself such a smart system? Is it difficult? I think so, but let’s start from the simplest things. This series, I would like to share the controls of every device in the smartest way!

Prepare

1. 1 ESP8266 NodeMCU Wifi Transceiver Module Lua CP2102

  1. 1 Module 1 Relay With Opto Isolation Size H / L (5VDC)
  2. 1 Usb mini cable, nano cable (Usb to Mini Usb cable)
  3. Of course you have a computer with Arduino installed, and you know how to program (this is obvious! Hehe)

Hardware installation


As shown in the figure, you only need to connect 1 3v pin, 1 GND pin and 1 signal pin (as many as you like) on the NodeMCU module with 3 pins, respectively: VCC, GND and IN.
With 1 electrical device you need to connect 2 wires for it to work. You need to put 1 power cord into the COMMON port and 1 device wire into 1 other port in the other 2 ports.
Oke so simple. In the next article we will go to the programming step. Remember to follow it!

Demo

For your enjoyment, I have the results you can do after reading this series!

Share the news now

Source : Viblo