Cov txheej txheem:

WI-Fi Tswj 4CH Relay Module rau Tsev Automation: 7 Kauj Ruam (nrog Duab)
WI-Fi Tswj 4CH Relay Module rau Tsev Automation: 7 Kauj Ruam (nrog Duab)

Video: WI-Fi Tswj 4CH Relay Module rau Tsev Automation: 7 Kauj Ruam (nrog Duab)

Video: WI-Fi Tswj 4CH Relay Module rau Tsev Automation: 7 Kauj Ruam (nrog Duab)
Video: Vuam Puj Tswj Tauj Sua - Keej Yaj 2024, Hlis ntuj nqeg
Anonim
WI-Fi Tswj 4CH Relay Module rau Tsev Automation
WI-Fi Tswj 4CH Relay Module rau Tsev Automation
WI-Fi Tswj 4CH Relay Module rau Tsev Automation
WI-Fi Tswj 4CH Relay Module rau Tsev Automation
WI-Fi Tswj 4CH Relay Module rau Tsev Automation
WI-Fi Tswj 4CH Relay Module rau Tsev Automation

Kuv tau siv ntau qhov WI-FI Raws li kev hloov pauv yav tas los. Tab sis cov ntawd tsis haum nrog Kuv Qhov Xav Tau. Tias yog vim li cas kuv xav tsim kuv tus kheej, uas tuaj yeem hloov pauv ib txwm Phab Ntsa Hloov qhov tsis muaj kev hloov kho. ESP8266 Chip yog Wifi qhib IoT platform rau txhua tus. Kuv tau ua dab tsi yog tsim plaub Channel relay board rau nws thiab qhov txias tshaj plaws yog pawg thawj coj saib tseem muaj 100-240V-AC rau 5V-DC Lub zog siv hluav taws xob ntawm lub nkoj yog li koj yuav tuaj yeem txuas nws ncaj qha rau AC qhov tseem ceeb thaum tsim lub Wifi qhib hloov lub rooj tsavxwm. Nws kuj tseem muaj lub taub hau uas koj yuav tuaj yeem txuas Tx-RX raws cov cuab yeej (Ib yam li Nextion Dispalys).

Cov lus qhia luv luv ntawm pawg thawj coj yog raws li tau hais hauv qab no

  • Nws los nrog lub taub hau uas koj tuaj yeem ntsaws TX-RX raws cov cuab yeej & Txuas TTL-USB Programmer rau program ESP12E WI-FI nti.
  • Plaub Relays los txuas plaub AC/DC thauj khoom thiab ob qho tib si NC/NO txuas ntawm qhov txuas tau muab
  • Tau tuaj yeem npaj ua ntej nrog Tsev automation kev koom ua ke.
  • 100-240VAC lossis 5VDC xaiv tau cov tswv yim.
  • Lub zog: 3W
  • LED rau Kev Xeem uas txuas nrog GPIO thiab tseem yog qhov taw qhia thaum qhov txuas mus /tawm
  • Qhov ntev ntawm lub rooj tsavxwm yog 76 x 76 hli

Khoom siv

1x Hi-Link HLK-PM01 (230V-5 VDC 3W)

1 x ESP12E/ESP12F

4x PC817 Opt coupler

4x 5 V Relay

4x D400 Transistor lossis ib qho NPN Switching Transistors

1x AMS1117 - 3.3v

4x LED Daj (SMD 1206)

1x LED Liab (SMD 1206)

8 x 10KΩ Resistor (SMD 1206)

4 x 330Ω Resistor (SMD 1206)

1 x 120Ω Resistor (SMD 1206)

2x Micro Hloov

3x Ntsia Hlau Terminal 5mm suab 2pin

Kauj ruam 1: Xaiv Hardware

Xaiv Hardware
Xaiv Hardware

Ib qho ntxiv, koj yuav tsum muaj cov khoom siv ntsuas kom haum thiab ntsuas ntsuas, uas suav nrog cov hlau txuas, cov laug, (cov khoom siv cua sov), Multimeter thiab lwm yam.

Cov Cuab Yeej:

  • Soldering Iron lossis zoo dua los siv Cov Cua Kub Phom
  • De soldering twj tso kua mis
  • Hlau Cutter thiab Stripper
  • Ntsia Hlau Tsav
  • USB TTL Programmer (Txhawm rau upload qhov program koj yuav tsum siv TTL hloov pauv lossis koj tuaj yeem siv Arduino UNO los ntawm tshem Atmega328 ib yam li TTL hloov pauv.)

Kauj Ruam 2: Tsim thiab Xeem Lub Circuit Court

Tsim thiab Xeem Lub Circuit Court
Tsim thiab Xeem Lub Circuit Court
Tsim thiab Xeem Lub Circuit Court
Tsim thiab Xeem Lub Circuit Court
Tsim thiab Xeem Lub Circuit Court
Tsim thiab Xeem Lub Circuit Court

Thawj kauj ruam tom qab nkag siab tias ESP12E ua haujlwm li cas. Kuv pib los ntawm kev sib sau tag nrho cov khoom kuv xav tau: 10K thiab 330 ohm resistors, NPN Transistors, Breadboard, Jumper Wire. Kuv ua raws nrog kev luam tawm ntawm ESP12E. Cov txheej txheem tau nkees tab sis kuv muaj peev xwm tau txais daim duab qhia chaw ua haujlwm rau ESP Chip Stand Alone hom. Kuv yuav khi cov tswv yim siab lossis qis thiab siv lub multimeter los ntsuas cov txiaj ntsig. Tam sim no kuv tau npaj los txhais lub khob cij thiab cov phiaj xwm rau hauv PCB.

Txhawm rau tsim PCB Kuv siv Autodesk EAGLE tshwj xeeb. Muaj lwm cov haujlwm zoo xws li EasyEDA thiab Fritzing muaj los pab tsim PCB.

Kauj Ruam 3: Hloov Txoj Haujlwm mus rau qhov tseeb PCB (Los Ua Ke thiab Ua Haujlwm)

Tig Txoj Haujlwm Rau Hauv Qhov Tseeb PCB (Sib dhos thiab Ua Dua)
Tig Txoj Haujlwm Rau Hauv Qhov Tseeb PCB (Sib dhos thiab Ua Dua)
Tig Txoj Haujlwm Rau Hauv Qhov Tseeb PCB (Sib dhos thiab Ua Dua)
Tig Txoj Haujlwm Rau Hauv Qhov Tseeb PCB (Sib dhos thiab Ua Dua)
Tig Txoj Haujlwm Rau Hauv Qhov Tseeb PCB (Sib dhos thiab Ua Dua)
Tig Txoj Haujlwm Rau Hauv Qhov Tseeb PCB (Sib dhos thiab Ua Dua)

Koj tuaj yeem khawb PCB koj tus kheej hauv tsev. Tab sis kuv xaj PCB nrog cov chaw tsim khoom lag luam, uas muab tus nqi pheej yig thiab tsim khoom zoo. Yog li ntawd, tsis muaj laj thawj ua li ntawd hauv tsev. Ntxiv rau koj yuav muaj kev tshaj lij saib PCB tsim los ntawm koj! Kev sib dhos thiab sib dhos ntawm txoj haujlwm no yog qhov yooj yim heev.

Ua ntej koj muab tag nrho cov khoom sib txuas (zoo li hauv cov duab) ntawm lub rooj tsavxwm, tab sis nco ntsoov tias cov khoom siv SMD tau muab muag rau hauv qhov raug. Koj tuaj yeem paub qhov kev qhia raug los ntawm cov kab dawb nyob ntawm lub rooj tsavxwm. Thaum koj tau ua tiav cov tshuaj txhuam hniav, tsis txhob nyob hauv ib qho xwm txheej twg txuas rau lub rooj tsav xwm hluav taws xob nrog tam sim no, vim qhov no tuaj yeem ua rau cov khoom puas tsuaj! Kuv siv me ntsis ntawm cov tshuaj txhuam cov tshuaj txhuam kom ua haujlwm yooj yim dua. Cov tshuaj txhuam ua kom PCB tsis huv. Txhawm rau ntxuav nws, Kuv siv lub paj rwb swab nrog acetone.

Kauj Ruam 4: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas

Txhawm rau rub cov program koj yuav tsum siv TTL hloov pauv (qhia hauv qab no) lossis koj tuaj yeem siv Arduino UNO los ntawm kev tshem Atmega328 ib yam li TTL hloov pauv.

Ua txuas ntawm WiFi Txuas 4CH thiab TTL hloov pauv. PCB -> TTL Hloov Tus Pin

VCC -> 3v3

GND-> GND

DTR -> GND

RXD-> TXDTXD-> RXD

Kauj ruam 5: Yuav tsum tau cov ntaub ntawv

Kauj Ruam 6: Tshaj Tawm Txoj Haujlwm

Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm

Koj yuav tsum teeb tsa ESP cov laug cam rau Arduino IDE ua ntej siv ESP8266. Yog li, thov ua raws cov theem no.

  • Khiav Arduino IDE Mus rau File> Preference to Open preference window.
  • Muab tshuaj txhuam https://arduino.esp8266.com/stable/package_esp8266com_index.json URL rau hauv tus thawj tswj hwm URLs.

Kauj Ruam 7: Ntaus hauv Kev Ua

Ntaus hauv Kev Ua
Ntaus hauv Kev Ua
Ntaus hauv Kev Ua
Ntaus hauv Kev Ua
Ntaus hauv Kev Ua
Ntaus hauv Kev Ua

Kev Txuas Hluav Taws Xob & Kev sim ntawm PCB

Tom qab tso qhov program, tshem tawm txhua qhov kev sib txuas TTL thiab lub zog nce los ntawm 100-240 V AC. Tam sim no koj tus kheej Smart Hloov tau npaj siv.

Vam tias qhov no tuaj yeem pab tau rau ib tus neeg thiab kawm ntau npaum li kuv tau ua. Koj tuaj yeem siv txhua cov ntaub ntawv sib qhia ntawm no thiab muaj mus rau koj tus kheej.

Txhua qhov lus pom zoo, yog tias koj yog koj nyiam nws qhia koj cov lus tawm tswv yim lossis ib qho kev txhim kho uas yuav ua tau. Ua tsaug txhua tus thiab ntsib koj sai sai no.

Zoo siab ua!

Pom zoo: