Cov txheej txheem:

Wifi Qhov (Socket): 4 Kauj Ruam (nrog Duab)
Wifi Qhov (Socket): 4 Kauj Ruam (nrog Duab)

Video: Wifi Qhov (Socket): 4 Kauj Ruam (nrog Duab)

Video: Wifi Qhov (Socket): 4 Kauj Ruam (nrog Duab)
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Hlis ntuj nqeg
Anonim
Image
Image

Siv ESP12E (kev teeb tsa hauv Arduino IDE) los tswj ON/OFF lub qhov (socket) 220V los ntawm lub xov tooj ntawm tes (hauv tib lub network wifi hauv tsev)

Qhov peb xav tau yog:

1. ESP12E

2. Lub zog hluav taws xob 220V rau 6VDC

3. Lub qhov (socket) ib txwm

4. LED teeb 220V

Kauj Ruam 1: Tswj PCB

Ua Tswj PCB
Ua Tswj PCB

Ua PCB rau ESP12E tswj 5V kev xa xov. Cov kis no yuav ON/OFF lub qhov (socket).

Sim ua kom nws me me li sai tau kom haum qhov chaw hauv qhov (socket).

Kauj Ruam 2: Code rau ESP12E

Tau txais cov cai rau ESP12E ntawm qhov txuas no (Google qhia tawm)

Kauj Ruam 3: Nruab PCBs rau Qhov (Socket)

Nruab PCBs rau Qhov (Socket)
Nruab PCBs rau Qhov (Socket)
Nruab PCBs rau Qhov (Socket)
Nruab PCBs rau Qhov (Socket)

Kuv qhov teeb meem, kuv yuav tsum tshem tawm 2 ntawm 3 lub qhov (socket) kom tau txais qhov chaw rau lub zog hluav taws xob thiab ESP12E PCB.

Nruab lawv kom haum rau sab hauv qhov (socket).

Kauj Ruam 4: Xeem Nws

Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!

Plug lub teeb rau kev sim.

Mus rau lub vev xaib, ntaus chaw nyob (qhov haujlwm no) yog

Lub vev xaib hauv ib cheeb tsam yuav tshwm, nyem rau "TOGGLE nws" rau ON/OFF relay rau lub qhov (socket).

Pom zoo: