Professional Documents
Culture Documents
FinalTechnicleWriting Tran-Ngoc-Khoa SmartSwitch 20173986 English
FinalTechnicleWriting Tran-Ngoc-Khoa SmartSwitch 20173986 English
a. KIT Wi-Fi
[RES€RVSD}-
FLASH
MOSI
HGPIQ12|- HMISO |
[GPI013]
GPIOl H TXPO |
Power supply unit is the important area that determines the stability of system.
The availability of raw source is 220 V, the controller which is used in the system
was operates at 3.3V. The transformer steps downs the mains voltage to 12V /
200mA which is then rectified by the four 1N4007 diodes and filtered by the
470uF 330nF capacitor and finally goes to the L78L33 IC which steps down the
voltage to 3.3V / 100mA. The 100nF capacitor is used to filter the output of the IC.
c. MODULE RELAY
The WI-FI switch was operated at DC voltage and to interlink this switch AC
source by using relays. The relay circuit gets input from the controller (WI-FI
switch) and controls the switch to Turn On or OFF. The interconnection of WI-FI
switch and the relay connection was shown below.
The Arduino IDE is used to embed the coding to the Arduino board. The same
software package is used to ESP8266 switch by installing the ESP nodeMCU
switch driver. The programming language, coding syntax used for arduino is too
used here. The programmer window is shown below.
♦include <ESP8266WiFi.h>
♦include <ESP8266WebServer.h>
ESP8266WebServer webServer(80}; char* ssid
= "loan Thang"; char* pass = "0912574232";
/ / =====Bi#n chua ma HTLM Vebsite==//
const char MainPage[] PROGMEM = R"== (
<!DOCTYPE html>
<html>
<head>
<title>HOME PAGE</titie> |
<meta charset="OTF-8">
</head>
<body>
<hl>ESP8266 Web Server</hl>
<div>Em Khoa Remote <bxpan
id=ntrangthaiDl"><pan></bx/div>
<div>
<button class=”bt_on"
onclick="getdata(T
onDl')">ON</button> <button
class="bt_off"
onclicfc="getdata('offDl')">OFF</b
utton>
</div>
Figure 4 Programmer Window
The web sever is created using Eclipse- Java developer coding for to control
the Internet controlled switch for ON and OFF command using pre-defined
syntax’s. The Snap Shot of the websever was given below.
© HOME PAGE X+
a. WIRE CONNECTION
ESP8266 NodeMCU Relay Led
VU => <= VCC
G => <= GND
D4 => <= IN
COM => <= Hot wire
NO => <= Hot wire
3.3V DC j
The smart switch by using ESP8266 and relay to control led was successfully
developed.
Shown in this link ( video): (Ctrl+click to follow link)
https://drive.google.com/open?id=16ANOUxbboYuhGdEljcGmHHsqOydKBnFo
V. CONCLUSIONS
This paper deals with the proposed basic design of Internet controlled switch
box. This paper contribute to an easy design of IoT device.
By keeping this paper as a base one using ESP switches the smart-home has
been planned to do in a future. Each and Every rooms will become automated
Thank you for listening