Cov txheej txheem:

WiFi Fan Speed Regulator (ESP8266 AC Dimmer): 8 Kauj Ruam (nrog Duab)
WiFi Fan Speed Regulator (ESP8266 AC Dimmer): 8 Kauj Ruam (nrog Duab)

Video: WiFi Fan Speed Regulator (ESP8266 AC Dimmer): 8 Kauj Ruam (nrog Duab)

Video: WiFi Fan Speed Regulator (ESP8266 AC Dimmer): 8 Kauj Ruam (nrog Duab)
Video: The SMARTEST Home Automation System ๐Ÿ˜Ž๐Ÿ˜Ž with FAN Speed Control using ESP32 Blynk | IoT Project 2022 2024, Kaum ib hlis
Anonim
WiFi Ntxuam Ceev Tswj (ESP8266 AC Dimmer)
WiFi Ntxuam Ceev Tswj (ESP8266 AC Dimmer)

Cov lus qhia no yuav taw qhia yuav ua li cas thiaj ua rau Qab nthab Ntxuam Ntxaiv Tus Tswj Kev Siv Triac Phase lub kaum ntse ntse tswj txoj kev. Triac yog tswj hwm los ntawm Atmega8 standalone arduino teeb tsa nti. Wemos D1 mini ntxiv WiFi ua haujlwm rau tus tswj hwm no.

Ua yeeb yam -

1. Ob lub zos thiab wifi tswj tau (Laub khawm & Smartphone wifi).

2. Lub xeev txuag lub zog kom rov pib dua qib kiv cua txawm tias tom qab lub zog cuam tshuam.

3. Tsawg qis kiv cua txiav tawm (zam kev ua kom sov dhau ntawm Fan stator).

4. LED Qhia tawm tswv yim rau khawm laub thiab qib nrawm.

5. Standalone pheej yig Atmega8 DIY board ntau dua li Arduino Uno R3.

6. Tsis muaj snubber capacitor thiab resistor tuaj yeem siv ua dimmer rau AC qhov muag teeb.

Ceev faj tias txoj haujlwm no cuam tshuam nrog kev ua haujlwm ncaj qha AC 220V qhov twg yog qhov txaus ntshai heev

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

LEVEL: TSHIAB

1. ATMEGA8 lossis ATMEGA8A 28 Pin Chip + 28 Pin IC Base

2. AT24C32 EEPROM + 8 Pin IC Base

3. Berg sawb

4. 1k Network resistor + 10 LEDs lossis 10 channel bar LED

5. 10uF 25V Electrolytic capacitor

6. Cov xov hlau txuas

7. 5 X 10k resistor

8. 3 X 2N2222 Transistor

9. 22pf + 16mhz siv lead ua

10. 2 X 120k 2W Resistor

11. 2W10 Choj Rectifier

12. 4N35 Optocoupler

13. 2way davhlau ya nyob twg thaiv

14. BT136 Triac

15. MOC3021 Optocoupler + IC Base

16. 1k resistor

17. 0.01uF X Rated AC Capacitor (Snubber Circuit)

18. 47ohm 5W resistor (Snubber Circuit)

19. 2 X 390ohm 2W resistor

20. 5V 2A SMPS Fais fab mov

21. Perf board (Raws li qhov xav tau me me)

22. Dupont F-F txuas

23. 4 X Xaub khawm

24. Ntoo lub thawv (Cov Ntaub Ntawv)

25. Wemos d1 mini

Kauj Ruam 2: Kuaj Circuit Court

Kev Xeem Circuit Court
Kev Xeem Circuit Court
Kev Xeem Circuit Court
Kev Xeem Circuit Court
Kev Xeem Circuit Court
Kev Xeem Circuit Court
Kev Xeem Circuit Court
Kev Xeem Circuit Court

Lub Circuit Court muaj 4 ceev tswj ua tib zoo xaiv. Pins 13, A0, A1, A2, A3 qhia txog xwm txheej ntawm kev nrawm. Tus Pin 13 ntsais muag thaum twg khawm tau nias lossis tau txais Wemos mem tes.

Pin2 yog cov tswv yim los ntawm xoom hla tus ntes

Pin3 yog tsav mus rau triac optocoupler

Atmega8 standalone version sau ntawm 16mhz sab nrauv siv lead ua.

Laub cov nyees khawm nrog lub taub hau sib luag rau Wemos, ua rau lub plawv dhia mus rau pin7 thiab pin8 rau kev nce lossis txo qis ntawm kiv cua. Cov pins no rub tawm.

Schematic muaj tus kheej Zero cross detector rau txhua tus channel. Txhua channel piv txwv li txhua tus kiv cua tau cais Atmega8 ib leeg. Kev teeb tsa tus qauv ntawm MOC3021 tsav Triac. Snubber Circuit ntxiv rau qhov ntsuas hluav taws xob no.

Tus Pin A0 tab tom qhia qis tshaj rau tus kiv cua uas tau tsav los ntawm lub tshuab transistor mus rau MOC3021 kom ntseeg tau tias qis heev rau AC kiv cua raug zam.

I2C EEPROM txuag qhov nrawm thaum twg hloov pauv qib sib txawv.

Kauj Ruam 3: Schematic thiab Soldering

Schematic thiab Soldering
Schematic thiab Soldering
Schematic thiab Soldering
Schematic thiab Soldering
Schematic thiab Soldering
Schematic thiab Soldering

Nrhiav cov txheej txheem txuas nrog thiab tsim koj tus qauv lossis ua ib qho PCB los ntawm kuv cov lus qhia yav dhau los.

Kuv tau siv hom pawg thawj coj no kom yooj yim rau siv.

Txij li thaum kuv tab tom tswj ob tus kiv cua kuv tau siv 2 lub laug cam raws li qhia. A 10 channel bar LED rau kev tawm tswv yim thiab xwm txheej lub hom phiaj.

Raws li qhia hauv daim duab thawb cov nyees khawm tau muab muag rau dupont kom yooj yim txuas rau txiv neej lub taub hau hauv perfboard.

Lub network resistor ntawm 1k tau siv los tsav 5 xwm txheej LEDs

Txij li 220VAC zerocross detector yog nyob hauv tib lub vaj huam sib luag ntawm Atmega8 qhov sib txawv txaus tau muab thiab nyob tom qab (thaj tsam tooj liab) kub kub tiv thaiv kom tsis txhob kis tau 220V.

Kauj Ruam 4: Hlawv HEX Cov Ntaub Ntawv

Hlawv HEX Cov Ntaub Ntawv
Hlawv HEX Cov Ntaub Ntawv
Hlawv HEX Cov Ntaub Ntawv
Hlawv HEX Cov Ntaub Ntawv

Kho lub Atmega8 nti rau siv nrog Arduino IDE tom qab kab lus no zoo heev.

Thaum Arduino Optiboot loader tau teeb tsa ntawm Atmega8, tsuas yog ntsaws tawm Atmega328p nti thiab ntsaws rau hauv Atmega8 bootloader tshiab hlawv nti rau hauv Arduino Uno R3 board 28 tus pin ntsaws rau hauv tus lej tus lej nqis.

Tom qab ntawd rub tawm cov ntawv Burn.zip rho tawm nws rau hauv daim nplaub tshev. Txoj cai nyem 'bet.bat' cov ntaub ntawv thiab nyem Kho kom raug thiab qhib cov ntaub ntawv hauv notepad thiab hloov COM5 rau koj qhov sib txuas ua haujlwm nquag arduino COM chaw nres nkoj, uas tuaj yeem pom yooj yim los ntawm "devmgmt.msc" los ntawm Kev hais kom ua.

Tom qab ntawv kaw notepad thiab khiav cov ntaub ntawv bet.bat

Avrdude yuav hlawv cov ntawv hex rau Atmega8

Kauj Ruam 5: Kev Xeem Sijhawm

Kev Xeem Sijhawm
Kev Xeem Sijhawm
Kev Xeem Sijhawm
Kev Xeem Sijhawm
Kev Xeem Sijhawm
Kev Xeem Sijhawm
Kev Xeem Sijhawm
Kev Xeem Sijhawm

Tom qab siv cov laug thiab xa cov cai, tau sim qhov Circuit hauv daim ntawv thov lub sijhawm thiab pom cov txiaj ntsig zoo.

Kauj Ruam 6: Kho Wemos D1 Mini

Txog Wifi teeb tsa kuv tau siv EspEasy firmware uas yog qhov ua haujlwm zoo.

Yeej pins D6 thiab D7 tsim cov mem tes rau 300ms rau lub hauv paus ntawm transistor

Siv qhov txuas no thiab hlawv cov firmware rau Wemos D1 Mini.

Siv qhov txuas no peb tuaj yeem nce https://192.168.4.1/control?cmd=Pulse, 13, 1, 300

Siv qhov txuas no peb tuaj yeem txo qis https://192.168.4.1/control?cmd=Pulse, 12, 1, 300

Cov kev sib txuas saum toj no yuav ua haujlwm raug tom qab hlawv firmware rau Wemos

Tom qab ntawd yog Access Point cov ntaub ntawv tau ntxiv rau Espeasy, nco ntsoov siv tus IP chaw nyob hauv qhov chaw 192.168.4.1 hauv qhov txuas saum toj no.

Hauv qhov xwm txheej ntawm kev ua qhov IOT ntaus ntawv teeb tsa raws li hauv Espeasy raws tu qauv xaiv.

Kauj Ruam 7: Siv Android App los Tswj

Siv Android App los Tswj
Siv Android App los Tswj
Siv Android App los Tswj
Siv Android App los Tswj
Siv Android App los Tswj
Siv Android App los Tswj
Siv Android App los Tswj
Siv Android App los Tswj

play.google.com/store/apps/details?id=ch.rmy.android.http_shortcuts

HTTP Shortcuts hauv app tso cai rau tswj tus kiv cua nrawm raws li qhia hauv cov duab txuas.

Kauj Ruam 8: Kawg Mounting

Kawg Mounting
Kawg Mounting
Kawg Mounting
Kawg Mounting
Kawg Mounting
Kawg Mounting

Kuv siv lub iav iav pem hauv ntej thiab lub thawv ntoo rov qab. Lub thawv ntoo tau ruaj ntseg rau phab ntsa siv ob lub ntsia hlau thiab thauj tog rau nkoj siv qhov txuas no raws li phau ntawv qhia rau nruab.

Ua raws li cov lus qhia no txhawm rau txhim kho lub thawv yaug nrog phab ntsa kom ua tiav zoo.

Yog tias muaj lus nug pls hu rau kuv @

Pom zoo: