Cov txheej txheem:

Hloov Lub Teeb + Ntxuam Dimmer hauv Ib Pawg Nrog ESP8266: 7 Cov Kauj Ruam (nrog Duab)
Hloov Lub Teeb + Ntxuam Dimmer hauv Ib Pawg Nrog ESP8266: 7 Cov Kauj Ruam (nrog Duab)

Video: Hloov Lub Teeb + Ntxuam Dimmer hauv Ib Pawg Nrog ESP8266: 7 Cov Kauj Ruam (nrog Duab)

Video: Hloov Lub Teeb + Ntxuam Dimmer hauv Ib Pawg Nrog ESP8266: 7 Cov Kauj Ruam (nrog Duab)
Video: 디밍스위치수리하는곳 에이비아이시스템스 HBSD6 Lighton Dimming Switch 다산지앤지 ABI시스템스 전자식스위치기판수리 2024, Hlis ntuj nqeg
Anonim
Hloov Lub Teeb + Ntxuam Dimmer hauv Ib Pawg Nrog ESP8266
Hloov Lub Teeb + Ntxuam Dimmer hauv Ib Pawg Nrog ESP8266

Hauv qhov kev qhia no koj yuav kawm paub tsim koj tus kheej lub teeb hloov thiab kiv cua dimmer hauv ib pawg xwb nrog lub microcontroller thiab WiFi module ESP8266.

Nov yog qhov haujlwm zoo rau IoT.

Ceev faj:

Lub voj voog no tswj hwm AC qhov hluav taws xob tseem ceeb, yog li ceev faj.

Ntxiv: Kuv tshaj tawm ntawm no cov vis dis aus qhia uas qhia koj tag nrho cov txheej txheem.

Kauj Ruam 1: Tutorial Video

Image
Image

Yog tias koj yog tus kawm paub pom kev, ntawm no koj muaj kev qhia ua tiav ntawm tu teeb tsa thiab tsim cov cuab yeej.

Kauj Ruam 2: Schematics, Cov Ntaub Ntawv thiab PCB:

Cov duab, Cov ntaub ntawv thiab PCB
Cov duab, Cov ntaub ntawv thiab PCB
Cov duab, Cov ntaub ntawv thiab PCB
Cov duab, Cov ntaub ntawv thiab PCB

Ntawm no koj muaj cov duab ntawm cov duab nrog cov kev sib tham thiab qhov tshwm sim ntawm PCB tsim los ntawm PCBGOGO.

Nyem qhov no rau Gerber cov ntaub ntawv ntawm PCB tsim yog li koj tuaj yeem xaj koj li ntawm PCBGOGO.

Cov ntaub ntawv:

  • 1 x ESP8266 (ESP-01)
  • ESP8266 Programmer
  • 7x 1k ohm Resistores 1/4W
  • 4x 470 ohm Resistores 1/2W
  • 2x Triacs BTA16 lossis BTA24
  • 2x MOC3010 (Opto Triacs)
  • 1x Hi-Link 3.3v fais fab mov
  • 1 x Optoacoplador H11AA
  • 2x 33 kohm Resistores 1W
  • 2x Terminal Blocks 2 tus pin
  • 1 x 100 ohm Resistor
  • 3 x 100 nf 400v Capacitor
  • 2x Push Button

Kauj ruam 3: Code thiab Programming:

Code thiab Programming
Code thiab Programming
Code thiab Programming
Code thiab Programming
Code thiab Programming
Code thiab Programming

Nws yog lub sijhawm los teeb tsa koj li ESP module thiab teeb tsa txhua yam.

  1. Txuas ESP Programmer rau koj lub PC
  2. Txuas koj ESP8266 mus rau Tus Thawj Coj.

Ntawm no koj tuaj yeem rub Cov Cai thiab Cov Tsev Qiv Ntawv.

  1. Xaiv lub Rooj Tswjhwm Saib: Generic ESP8266 Module
  2. Xaiv txoj cai COM chaw nres nkoj.
  3. Sau qhov khoob (Ubidots TOKEN, WiFi SSID, WiFI PASS).
  4. Nyem rau Upload khawm.
  5. Koj yuav tsum tau npaj los xeem.

Kauj Ruam 4: Ubidots Chaw:

Ubidots Chaw
Ubidots Chaw
Ubidots Chaw
Ubidots Chaw
Ubidots Chaw
Ubidots Chaw

Ua ntej tshaj plaws peb xav tau tus lej Ubidots, Nyem qhov no los tsim koj li dawb.

  1. Tsim Ib Lub Npe hu ua dimmer.
  2. Tsim ob qhov sib txawv foob pob thiab cua tshuab.
  3. Nyem rau Cov Ntaub Ntawv thiab tsim lub Dashboard tshiab hu ua raws li koj xav tau.
  4. Ntxiv ob lub cuab yeej khawm thiab khawm swb cuam tshuam rau lub cuab yeej thiab sib txawv.
  5. Hloov kho koj cov widgets thiab qhov ntawd yog nws.

Kauj Ruam 5: teeb tsa IFTTT

IFTTT teeb tsa
IFTTT teeb tsa
IFTTT teeb tsa
IFTTT teeb tsa
IFTTT teeb tsa
IFTTT teeb tsa
IFTTT teeb tsa
IFTTT teeb tsa
  1. Tsim tus lej IFTTT.com.
  2. Nyem rau Tau ntau dua thiab tom qab ntawd nyem rau +.
  3. Nyem rau IF+ thiab tshawb rau Google Assistant.
  4. Nyem rau Hais Cov kab lus yooj yim / tus lej.
  5. Txhais koj kab lus thiab lus teb.
  6. Nyem rau ntawd+ thiab tshawb rau WebHooks.
  7. Sau cov khoob:

URL:

Txoj Kev: POST

Hom Ntsiab Lus: thov/json

Lub cev: {"ventilador": 0} // Rov ua dua rau Tawm, thiab Ntxuam nrawm.

8. Ua tiav

Kauj Ruam 6: Teeb Kho Vajtse:

Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb

Txhais cov Terminal thaiv cov davhlau ya nyob twg, Kab, Nruab Nrab, Qij thiab Vent. (L, N, B, V)

  • Nthuav tawm cov khoom siv tam sim no. (Kev ruaj ntseg)
  • Txuas txhua xaim ntawm nws qhov chaw.
  • Muab txhua yam tso rau hauv lub thawv hlau.
  • Lub pob xiav yog Lub Teeb rau thiab tawm khawm.
  • Liab khawm yog Pib dua.

Kauj Ruam 7: Xeem Nws

Kuaj Nws
Kuaj Nws
Kuaj Nws
Kuaj Nws
Kuaj Nws
Kuaj Nws
Kuaj Nws
Kuaj Nws

Tom qab txhua yam nyob hauv qhov chaw raug, qhib qhov khoom ntawm koj lub tsev thiab ntsuas.

Tsuas yog yuav tsum hais "Ok, Google" thiab cov lus uas koj tau tsim thiab npaj, lossis tsuas yog mus rau Ubidots App ntawm koj lub xov tooj lossis PC thiab los so qhov swb thiab thawb lub pob.

Pom zoo: