Cov txheej txheem:

Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj: 6 Cov Kauj Ruam
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj: 6 Cov Kauj Ruam

Video: Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj: 6 Cov Kauj Ruam

Video: Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj: 6 Cov Kauj Ruam
Video: Section 7: Connecting the Opener Power Cables 2024, Kaum ib hlis
Anonim
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj
Wifi BT_HDR (Heavy Duty Relay) Pawg Thawj Coj

Cov lus qhia no yog rau ARMTRONIX WIFI Heavy Duty Relay Board VER 0.1.

ARMtronix WiFi/BT Heavy Duty Relay Board yog pawg IOT. Nws tau tsim los txhawm rau txhawm rau txhawm rau lub zog siv hluav taws xob siab ntawm 240 V AC.

Kauj Ruam 1: Ceeb Toom Kev Nyab Xeeb

Ceeb Toom Kev Nyab Xeeb
Ceeb Toom Kev Nyab Xeeb

Nco tseg:

uas, pawg thawj coj no yuav tsum tau siv nrog AC 230V nrog qhov xav tau tam sim no. Ua haujlwm thiab ua tib zoo nrog AC lub zog vim nws muaj kev phom sij thiab txaus ntshai rau tib neeg. Kov cov xov hlau nyob lossis pawg thawj coj thaum nws ON yog qhov txaus ntshai thiab tsis pom zoo, nws yuav ua rau tuag, thov zam nws

Txawm tias 50 V AC khoom siv txaus los tua koj. Thov Hloov lub ntsiab lus ua ntej koj ua lossis hloov kev sib txuas, ua tib zoo saib xyuas. Yog tias koj tsis paub meej txog ib yam dab tsi cuam tshuam nrog AC cov kab xa khoom, thov hu rau kws kho hluav taws xob nug thiab nws pab koj nrog nws. Tsis txhob sim cuam tshuam rau lub ntsiab lus tshwj tsis yog tias koj muaj kev qhia txaus thiab nkag mus rau cov cuab yeej siv kev nyab xeeb tsim nyog. Tsis txhob ua haujlwm siab ntawm koj tus kheej thaum koj nyob ib leeg. Nco ntsoov xyuas kom koj muaj phooj ywg/koom nrog uas tuaj yeem pom thiab hnov koj thiab leej twg paub yuav kaw lub zog sai li cas thaum muaj xwm txheej. Siv 2A Fuse ua ke nrog cov tswv yim rau hauv pawg thawj coj los ntsuas kev nyab xeeb. Daim duab thaiv kab ntawv yooj yim muaj nyob ntawm peb nplooj ntawv qhia thiab github. Thov xa lawv mus

Kev Nyab Xeeb Hluav Taws: Ua kev sib txuas tsis raug, kos ntau dua lub zog ntsuas, tiv nrog dej lossis lwm yam khoom siv, thiab lwm yam kev siv tsis raug/siv ntau dhau/ua haujlwm tsis zoo tuaj yeem ua rau muaj cua sov ntau dua thiab muaj kev pheej hmoo pib tua hluav taws. Ntsuam xyuas koj lub Circuit Court thiab ib puag ncig uas nws tau siv kom zoo ua ntej tawm mus nws hloov pauv thiab tsis saib xyuas. Ib txwm ua raws txhua qhov kev tiv thaiv kev nyab xeeb hluav taws

Kauj Ruam 2: QHIA: Wifi_BT HDR (Heavy Duty Relay) Pawg Thawj Coj

QHOV TSEEB: Wifi_BT HDR (Heavy Duty Relay) Pawg Thawj Coj
QHOV TSEEB: Wifi_BT HDR (Heavy Duty Relay) Pawg Thawj Coj

Khoom Nta

1) Ua haujlwm ncaj qha nrog AC zog 100 - 240 V AC 50-60 Hz.

2) Cov khoom lag luam tuaj yeem hloov kho/rov ua dua tshiab/hloov pauv raws li tus neeg siv khoom xav tau.

3) Ib qho kev xa tawm nrog cov nyob AC tso tawm los ntawm TSIS muaj tus lej PIN ntawm kev xa tawm Tsis tuaj yeem nkag mus rau cov neeg siv.

4) Pawg thawj coj tso tawm tuaj yeem ua haujlwm siab dua.

5) WiFi nrog MQTT lossis HTTP raws tu qauv

6) MQTT authentication nrog Username thiab Password.

7) Firmware yooj yim nkag mus rau SSID thiab tus password los txuas rau lub router.

8) Firmware muaj peev xwm tswj tau lub cuab yeej los ntawm HTTP thiab MQTT hom.

9) Laub Khawm ntawm lub nkoj Muab rau ntaus ntawv rov pib dua.

10) tuaj yeem teeb tsa rau Amazon Alexa lossis Google Assistant

11) GPIO 21, 22, 33 thiab 34 tuaj yeem nkag tau hauv lub hauv paus rau tus neeg siv rau lawv daim ntawv thov.

Daim ntawv foos ntawm lub cuab yeej yog 100mm*50mm, raws li qhia hauv daim duab 1. Wifi BT HDR Hloov (Heavy Duty Relay) tuaj yeem siv rau WiFi qhib Lub tsev siv daim ntawv thov. Qhov no tuaj yeem daws lub nra nrog siv lub zog siab ntawm 240 V AC. Muaj kev xa xov txuas rau ntawm lub nkoj kom tswj tau (ON/OFF) cov khoom siv hluav taws xob sab nraud los ntawm daim ntawv thov mobile siv MQTT/HTTP raws tu qauv. Nws kuj tseem muaj cov yam ntxwv zoo li, lub zog ntsuas pom tom qab xa tawm thiab AC hloov pauv virtual. Lub Rooj Tswjhwm Saib muaj lub taub hau programming (TX, RX, DTR, RTS) ua tau zoo rau NodeMCU, nws tuaj yeem siv nrog Arduino IDE rau kev ua haujlwm siv sab nraud USB-UART hloov pauv. Nws muaj on-board fais fab mov module uas siv tus qauv AC voltage raws li kev tawm tswv yim thiab muab qhov xav tau DC voltage raws li tso tawm. DC qhov hluav taws xob tau siv los txhawb lub zog WiFi module siv hauv nkoj los tsim kev sib txuas WiFi nrog cov xov tooj ntawm tes.

Kauj Ruam 3: Daim Duab Thaiv Ua Haujlwm

Muaj nuj nqi Thaiv Daim Duab
Muaj nuj nqi Thaiv Daim Duab

SYSTEM ZOO TSHAJ

1. AC rau DC Fais fab mov module

AC rau DC hloov pauv yog lub zog siv hluav taws xob. Cov khoom siv hluav taws xob no kho thiab tswj qhov hluav taws xob los ntawm 230 V AC rau 5 V DC nrog cov peev txheej tam sim no ntawm 0.6A DC. Lub zog ntawm HLK-PM01 yog qhov siab tshaj ntawm 3W. Cov khoom siv 5V tau siv los ua lub zog ntawm kev xa tawm thiab USB-UATT hloov pauv

2. Wi-nkaus Module

Wifi module siv ntawm pawg thawj coj yog ESP32 nrog nws qhov tsawg kawg GPIOs nkag tau yooj yim hauv kab ntawv rau tus neeg siv rau lawv tus kheej daim ntawv thov. Wifi module tau siv los ntawm 3.3 V DC. Nws ua haujlwm ntawm ob qho tib si MQTT / HTTP raws tu qauv.

3. Electro Mechanical Relay

Electro Mechanical relay yog siv los ntawm 5 V DC. AC nyob lub davhlau ya nyob twg (TSIS MUAJ) tau muab nkag rau cov neeg siv hauv lub davhlau ya nyob twg thaiv kom tswj tau cov khoom thauj. Ib qho opto-isolator raws tus tsav tsheb tau siv los tsav qhov sib txuas, los tsim kev sib cais ntawm kev sib txuas AC thiab DC ib feem.

4. AC Virtual Hloov

AC Virtual hloov hluav taws xob txuas nrog Wi-Fi module los ntawm kev sib cais opto AC-DC cais. Nws muab ZCD tso tawm rau Wifi Module txhawm rau txheeb xyuas qhov hloov pauv ntawm xwm txheej hloov pauv.

5. DC Virtual Hloov

DC Virtual hloov hluav taws xob txuas nrog Wifi module ncaj qha nrog rub-resistor ntawm GPIO.

Nco tseg: Ob qho AC thiab DC hloov pauv hloov hluav taws xob txuas nrog tib GPIO tus pin ntawm ESP32. Yog li, nws tau hais kom txuas tsuas yog ib qho ntawm qhov hloov pauv virtual ntawm lub sijhawm sai

Kauj Ruam 4: Header Paub meej thiab Cov Txheej Txheem Ua Haujlwm

Cov ncauj lus kom ntxaws Header thiab cov txheej txheem Programming
Cov ncauj lus kom ntxaws Header thiab cov txheej txheem Programming
Cov ncauj lus kom ntxaws Header thiab cov txheej txheem Programming
Cov ncauj lus kom ntxaws Header thiab cov txheej txheem Programming
Cov ncauj lus kom ntxaws Header thiab cov txheej txheem Programming
Cov ncauj lus kom ntxaws Header thiab cov txheej txheem Programming

Ua qhov txuas hauv qab no rau ESP32S

1. Txuas tus "RX ntawm FTDI rau TXD" tus pin ntawm J1.

2. Txuas tus "TX ntawm FTDI rau RXD" tus pin ntawm J1.

3. Txuas "DTR ntawm FTDI rau DTR" tus pin ntawm J1.

4. Txuas "RTS ntawm FTDI rau RTS" tus pin ntawm J1.

5. Txuas "VCC ntawm FTDI rau 3.3V" tus pin ntawm J1.

6. Txuas "GND ntawm FTDI rau GND" tus pin ntawm J1.

7. Rau kev txuas txuas daim duab 4.

Nco tseg: Hloov Jumper teeb tsa 5Vcc rau 3.3Vcc hauv FTDI Board. Yog tias koj hnov qab hloov pauv muaj feem yuav ua rau ESP32S puas tsuaj

Qhib koj cov cai hauv ArduinoIDE, nyem rau ntawm cov cuab yeej tab xaiv 'Board: Arduino/Genuino Uno' thiab xaiv 'NodeMCU-32S' raws li qhia hauv qab daim duab 5.

Nyem rau ntawm cov cuab yeej tab xaiv 'Programmer: Arduino as ISP' xa mus rau daim duab 6.

Nyem rau ntawm cov cuab yeej tab, xaiv "Port:" COMx ", hauv qab no nyem rau" COMx "los xaiv. ("X" hais txog tus lej naj npawb muaj nyob hauv koj lub computer) Xa mus rau daim duab 7.

Rub tawm qhov program xa daim duab 8.

Kauj Ruam 5: Cov Kab Xaim

Cov kab hluav taws xob
Cov kab hluav taws xob
Cov kab hluav taws xob
Cov kab hluav taws xob
Cov kab hluav taws xob
Cov kab hluav taws xob
Cov kab hluav taws xob
Cov kab hluav taws xob

Txheej txheem hwj chim ntawm lub cuab yeej

1. Ua qhov txuas txuas AC theem thiab qhov tsis sib xws raws li qhia hauv daim duab 11.

2. Siv hluav taws xob sab nraud fuse thiab MCB nrog ntsuas 2A/250V, ua ntu zus los txuas kev sib txuas rau lub hom phiaj kev nyab xeeb.

3. Txheeb xyuas thiab xyuas kom tseeb tias tsis muaj qhov luv luv ntawm theem thiab nruab nrab.

4. Ua kom ntseeg tau tias, kev tiv thaiv kev nyab xeeb tau txais kev saib xyuas.

5. Hwj chim ON lub cuab yeej los ntawm tig ON lub ntsiab nkag nkag.

6. Tom qab ntawd soj ntsuam LED D2 ntawm lub cuab yeej yog nyob rau ON.

7. Yog tias lub cuab yeej tsis tau qhib ON, tom qab ntawd kaw qhov khoom siv tseem ceeb thiab tshuaj xyuas rau kev sib txuas los ntawm cov hauv qab no.

Pawg Thawj Coj Qhia tau pom hauv daim duab 9

Thauj khoom txuas kab duab kab lus xa daim duab 10

Lub qhov (socket) txuas daim duab qhia txog daim duab 11.

Nco tseg:

1. Rau kev thauj khoom ntau dua, thov tsis txhob siv cov khoom nruab nrab hauv nruab nrab thiab pom zoo kom siv sab nraud nruab nrab

2. On-Board fuse tsuas yog rau SMPS thiab tsis yog rau thauj khoom

Kauj Ruam 6: Cov txheej txheem los teeb tsa lub cuab yeej

Txheej txheem los teeb tsa lub cuab yeej
Txheej txheem los teeb tsa lub cuab yeej
Txheej txheem los teeb tsa lub cuab yeej
Txheej txheem los teeb tsa lub cuab yeej
Txheej txheem los teeb tsa lub cuab yeej
Txheej txheem los teeb tsa lub cuab yeej

Fais fab ntawm lub cuab yeej, yog li, nws yuav tuav lub chaw nkag raws li qhia hauv daim duab 12.

Txuas lub xov tooj ntawm tes/Laptop kom nkag mus tau nrog Armtronix- (mac-id). EX: Armtronix-1a-65-7 raws li qhia hauv daim duab 13.

Tom qab txuas, qhib browser thiab nkag mus rau 192.168.4.1 IP chaw nyob, nws yuav qhib lub web server raws li qhia hauv daim duab 14.

sau SSID thiab tus lej cim thiab xaiv HTTP, yog tus neeg siv xav txuas rau MQTT tom qab ntawd nws yuav tsum xaiv MQTT xov tooj cua khawm, nkag mus rau MQTT tus broker tus IP chaw nyob, nkag mus rau MQTT tshaj tawm lub ncauj lus ces MQTT sau npe thiab xa.

Tom qab xa teeb tsa, ESP32S yuav txuas rau lub router thiab router muab IP chaw nyob rau Pawg Thawj Coj. Qhib tus IP chaw nyob hauv qhov browser txhawm rau tswj kev hloov (Relay).

Nco tseg:

192.168.4.1 yog tus IP chaw nyob thaum ESP yog tus tswv, tom qab teeb tsa, txhawm rau txheeb xyuas tus IP chaw nyob muab los ntawm router koj xav tau tus ID nkag mus rau router, lossis lwm qhov rub tawm FING app los ntawm Google Play store, txuas koj lub xov tooj mus rau router, koj tuaj yeem tshawb xyuas txhua cov ntsiab lus ntaus ntawv txuas nrog koj lub router

Yog tias koj tau teeb tsa nrog tus lej tsis raug thiab SSID raug, qhov no ntaus ntawv tau sim txuas tab sis tus lej tsis sib xws, nws pib rov pib dua, yog li lub cuab yeej yuav tsis txuas rau router lossis nws yuav tuav, koj yuav tsum kaw lub router. Tom qab ntawd lub cuab yeej pib rov pib dua thiab koj yuav tsum rov teeb tsa dua (xa daim duab 12, 13, 14) thiab rov pib dua lub router

Tsis muaj teeb tsa SSID thiab Password peb tuaj yeem tswj hwm Wifi Hloov los ntawm kev txuas mus rau qhov chaw nkag ntawm lub cuab yeej thiab qhib IP chaw nyob ntawm lub cuab yeej piv txwv li 192.168.4.1 lub web server nplooj ntawv yuav qhia qhov txuas nrog lub npe Tswj GPIO raws li qhia hauv daim duab 10, los ntawm kev nyem qhov txuas no peb tuaj yeem tswj hwm Wifi Hloov lub rooj tab sis cov lus teb yuav qeeb.

Pom zoo: