Cov txheej txheem:

DIY WiFi Smart Socket: 7 Cov Kauj Ruam (nrog Duab)
DIY WiFi Smart Socket: 7 Cov Kauj Ruam (nrog Duab)

Video: DIY WiFi Smart Socket: 7 Cov Kauj Ruam (nrog Duab)

Video: DIY WiFi Smart Socket: 7 Cov Kauj Ruam (nrog Duab)
Video: Колыма - родина нашего страха / Kolyma - Birthplace of Our Fear 2024, Hlis ntuj nqeg
Anonim
DIY WiFi Ntse Qhov Ntsuas
DIY WiFi Ntse Qhov Ntsuas

Qhov no yog Smart Plug-point nrog Kub Vaum Sensor DHT 11 thiab LED Teeb Thaum Muaj Xwm Ceev. Raws li ib txwm muaj lub qhov (socket) tuaj yeem qhib thiab tawm los ntawm WiFi ntawm txhua lub xov tooj ntawm tes. Qhov no tseem tuaj yeem txuas nrog Is Taws Nem thiab muaj txiaj ntsig zoo li Internet of Things (IOT).

Nta xws li:

1. Inbuilt Kub Kub Sensor

2. Bypass hloov mus ncaj qha ua haujlwm lub qhov (socket)

3. ruaj khov ESP8266 PCB

4. 230VAC rau 3.3VDC sib koom ua ke

5. Wifi ua haujlwm thaum muaj xwm ceev LED teeb

6. Siv software thib peb tuaj yeem txiav tawm thiab txiav hauv lub laptop lossis lub roj teeb them nyiaj ntawm qee qib roj teeb.

7. Me me, ua tau zoo thiab compact.

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

LEVEL: INTERMEDIATE

1. ESP-12F lossis ESP-12E

2. Copper Clad board + Etchant

3. AMS1117 3.3V Voltage regulator

4. 1k thiab 3528 Liab SMD Resistor thiab LED

5. 10uF, 100uF, 220uF, 0.1uFx2, 470uF Capacitors

6. 10kOhm Resistor

7.15 Ohm Resistor

8. 1 Channel 5V Relay board (Kuv ua kuv tus kheej)

9. 230V txog 5V Nokia them lub zog them hluav taws xob

10. LED tsav Circuit

  • Berg kab pins
  • PC817 optocoupler
  • 2x 470Ohm resistor
  • 2N2222 Transistor

11. 5V LED Sawb

12. Berg sawb

13. Dupont Poj niam rau Poj niam xaim

14. 1 x 2 Txoj Kev Wago Connector

15. 1 x Poj Niam 3 Tus Pin

16. DHT11 lossis DHT22 Sensor

17. 1 x 6A Tig hloov

18. Cov ntaub yas

19. Ntsia hlau ntsia hlau

20. 1 x Kab Mob Hlwb

21. 1 x 3 Pin Plug

22. 3 tub ntxhais hlau ntawm qhov tsim nyog ntev

23. 1 Core hlau 1 meter (rau AC txuas)

Kauj ruam 2: Kev npaj

Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj

Yam yuav tau npaj:

1. ESP-12 PCB

2. Tsav Tsheb LED Thaum Muaj Xwm Ceev

ESP-12 PCB

Nrhiav qhov txuas rau Schematic ntawm PCB. Tau suav nrog cov ntaub ntawv rau Laser tshuab luam ntawv Toner Transfer method.

www.instructables.com/id/PCB-ETCHING-TONER…

Cov lus qhia saum toj no yuav taw qhia kom khawb PCB.

Kuv tau nthuav dav txoj hauv kev kom yooj yim kos.

Solder cov khoom.

LED tsav tsheb

Txuas nrog cov txheej txheem, muag ntawm lub dot board yuav ua rau 5V rau LED sawb thaum 3.3V teeb liab los ntawm ESP8266 tau txais los ntawm optocoupler.

Hwj chim muab

Txhawm rau teeb tsa lub teeb, Kuv tau siv lub xov tooj Nokia qub them nyiaj, qhib nws thiab coj lub hwj huam mov pawg thawj coj saib. Cov xaim xaim hluav taws xob rau 230V thiab tso cov hlua khi rau 5V tso tawm.

ROV QAB

Nws pheej yig dua los yuav khoom ua tiav 5V optoisolated relay board. Kuv muaj ib qho, uas kuv tau ua ntev ntev rov qab.

Kauj ruam 3: Thauj khoom Firmware

Ua tsaug rau ESPEASY firmware, uas tso kuv los ntawm Arduino coding.

Hauv qab no yog cov txheej txheem txheej txheem txhawm rau rub lub firmware yooj yim rau hauv ESP8266.

www.letscontrolit.com/wiki/index.php/Tutor…

Kauj ruam 4: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos

Nyob ntawm qhov thaiv, txiav nws tso tus poj niam lub qhov (socket), sau ESP-12 PCB thiab LED sawb nyob rau hauv.

Kuv tau tso lub DHT11 sensor thiab Bypass flip hloov ntawm ib sab ntawm qhov thaiv.

Tau laum 7mm dia qhov kom dhau DHT11 xov hlau.

Nyob rau sab saum toj 3 tus tub ntxhais hlau nrog 3 tus pin ntsaws txuas lub thaiv los ntawm kab txuas kab.

Muab cov khoom haum rau koj lub thaiv.

Kauj ruam 5: Kev sib txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Txuas siv dupont poj niam rau poj niam cov xov hlau nyob qhov twg berg sawb pins tau siv.

Nco ntsoov siv cov xov hlau txheem rau AC

Siv wago 2 txoj kev txuas rau AC qhov chaw, Txuas txuas, Tig hloov txuas, 230V txog 5V. Raws li cov xov hlau me me kuv tau tso 2 xov hlau nyob hauv 1 txoj kev ntawm wago txuas.

Qhov nruab nrab yog ntsia mus rau tus poj niam lub qhov (socket) thiab 230V txog 5V kuj tau txuas rau tib lub qhov (socket) rau poj niam qhov twg muaj chaw txaus rau nws.

GPIO 13 ntawm ESP-12 mus rau DHT11 siv dupont

GPIO 12 ntawm ESP-12 mus rau RelayBoard siv dupont

GPIO 14 ntawm ESP-12 mus rau LED Tsav Tsheb siv dupont

DHT11 tau siv lub zog siv los ntawm ESP-12 raws li nws ua haujlwm ntawm 3.3V

Relay board thiab LED tsav yog ncaj qha powered los ntawm 5V los ntawm lub charger module.

Kauj Ruam 6: Kev teeb tsa thiab Kev Xeem

Kev teeb tsa thiab Kev Xeem
Kev teeb tsa thiab Kev Xeem
Kev teeb tsa thiab Kev Xeem
Kev teeb tsa thiab Kev Xeem
Kev teeb tsa thiab Kev Xeem
Kev teeb tsa thiab Kev Xeem

Kuv tau txuas cov ntawv HTML los saib TEMP, HUMIDITY, lub qhov (socket) ua haujlwm thiab LED thaum muaj xwm ceev.

Rau thawj zaug teeb tsa ESP-12 raws li cov lus qhia hauv qab txuas hauv qab no

www.letscontrolit.com/wiki/index.php/ESPEa…

Los ntawm lub neej ntawd txuas nrog HTML IP Chaw Nyob tau teeb rau hom ib leeg. Qhov no yuav tsum tau hloov pauv yog tias ESP tau txuas nrog lub router.

Txij li nws yog lub cuab yeej IOT, thaum txuas nrog internet router, teeb tsa lub cuab yeej zoo ib yam IP ib txwm thaum ntau lub cuab yeej txuas nrog (qhov no tuaj yeem ua tiav yog router teeb tsa nplooj ntawv) thiab tawm tswv yim tus IP hauv HTML editor (Notepad) ntawm cov ntawv txuas. Piv txwv Hloov 192.168.4.1 rau 192.168.1.xxx (xijpeem)

Ua raws cov kauj ruam no thiab ntxiv DHT11 sensor cov ntaub ntawv rau ESP-12

www.letscontrolit.com/wiki/index.php/DHT11…

Tom qab txuas mus raws li cov kauj ruam dhau los ua ntej muab 230VAC, tau txuas 5VDC rau DC pins txhawm rau txheeb xyuas tus cwj pwm thiab amperage.

Tom qab txuas nrog AC fais fab mov thiab kuaj nrog AC LED LAMP.

Tom qab ntawd sim lub onboard LED.

Kauj Ruam 7: Laptop Pib Txiav thiab Txiav Tawm Teeb

Nrog rau kev siv thib peb daim ntawv thov Roj Teeb Deley thiab Curl kab lus txiav tawm lub qhov (socket) thaum qib roj teeb mus txog 90% thiab qhib lub qhov (socket) thaum qib roj teeb nce mus txog 16%.

Koj tuaj yeem tawm tswv yim koj tus kheej.

Txuas tus zip tau teeb tsa ua ntej rau kuv tus IP chaw nyob tsuas yog hloov tus IP chaw nyob rau koj li ESP IP chaw nyob hauv BatteryDeley.ini cov ntaub ntawv.

Cov apps zoo ib yam li Tasker, IFTTT rau Android tuaj yeem ua ib yam rau Android smartphones.

Yog tias muaj kev ua xyem xyav lossis kho lus tawm tswv yim lossis xa email tuaj rau kuv @

-Kumaran

Pom zoo: