Cov txheej txheem:

Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Laub Khawm: 7 Kauj Ruam
Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Laub Khawm: 7 Kauj Ruam

Video: Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Laub Khawm: 7 Kauj Ruam

Video: Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Laub Khawm: 7 Kauj Ruam
Video: Ua luam 2019 2024, Hlis ntuj nqeg
Anonim
Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Push Button
Tsev Automation WiFi Teeb Hloov Nrog ESP-01 thiab Relay Module Nrog Push Button

Yog li hauv cov lus qhia dhau los peb tau teeb tsa ESP-01 nrog Tasmota siv ESP Flasher thiab txuas ESP-01 rau peb lub network wifi.

Tam sim no peb tuaj yeem pib ua haujlwm nws kom qhib/tua lub teeb hloov siv WiFi lossis lub laub khawm.

Rau kev ua haujlwm hluav taws xob, thov txiav txim siab mus ntsib tus kws kho hluav taws xob. Thov tsis txhob sim qhib lub teeb hloov lossis sim ua ib qho ntawm cov hauv qab no

Kev phom sij: Ua si nrog lub qhov hluav taws xob thiab cov hloov hluav taws xob tuaj yeem tua koj. thov txiav txim siab tau txais kev tshaj lij los ua cov kev teeb tsa no rau koj

Kauj ruam 1: Relay Module

Relay Module
Relay Module

Koj tuaj yeem tau txais tus qauv xa tawm los ntawm txhua qhov chaw. Nov yog qhov txuas rau tus muag khoom Amazon:

Relay Module rau ESP-01

  • Cov koog no ua haujlwm nrog 5v - 9v DC thiab tuaj yeem tswj cov khoom thauj mus txog 10A ntawm 125VAC. thov nco ntsoov tias ESP-01 module ntawm qhov tod tes yuav tsum ua haujlwm ntawm 3.3V nkaus xwb. Txhua qhov siab dua yuav tua tus txiv leej tub. Cov qauv xa tawm no muaj qhov ntsuas hluav taws xob ua-hauv los muab ESP-01 nrog cov khoom 3.3v los ntawm 5v uas tau muab rau ntawm ob lub dav hlau ntawm lub nkoj.
  • Nws muaj qhov hloov pauv hloov.
  • Nws muaj tus poj niam zoo 8pin txuas rau ESP-01
  • relay 3 tus neeg tsav dav hlau tuaj yeem ua haujlwm hauv Qhib Li Qub (NO) lossis Zoo Li Qub (NC) raws li nws tau cim rau sab nraum qab ntawm lub rooj tsav xwm hauv Circuit Court. CO yog qhov chaw nres nkoj ntau.

Kauj Ruam 2: Ntxiv Esp-01

Ntxiv rau Esp-01
Ntxiv rau Esp-01

Thaum twb tau teeb tsa ESP-) 1 tau muab tso rau hauv qhov txuas txuas:

  • txhawb lub zog siv chav sab nraud 5V-9V.
  • Koj yuav tsum paub tus IP chaw nyob ntawm chav tsev no txuas nrog koj lub WiFi hauv tsev
  • Koj tuaj yeem pom tus IP chaw nyob no los ntawm kev saib koj cov npe wireless router cov neeg siv khoom
  • Lossis koj tuaj yeem siv lub network scanner thiab luam theej duab koj lub network wifi rau tus IP tshiab ntxiv.
  • Yog tias koj tsis tau txheeb xyuas, txheeb xyuas MAC chaw nyob ntawm koj li khoom siv.
  • Yog tias qhov no yog thawj ESP-01 tus qauv ntawm koj lub network, nws qhov chaw nyob MAC muaj 5C: CF: 7F ua thawj 3 octet.

Kauj Ruam 3: Nkag Mus thiab ESP-01 Nrog Browser

Nkag mus thiab ESP-01 Nrog Browser
Nkag mus thiab ESP-01 Nrog Browser

Thaum koj pom tus IP chaw nyob ntawm koj li ESP, tso koj tus browser thiab ntaus https:// thiab nkag mus rau tus IP chaw tom qab ntawd (Tsis Muaj Chaw).

Koj yuav tsum pom nplooj ntawv zoo li hauv daim duab.

Nyem rau ntawm "Configuration"

Kauj Ruam 4: Hloov Kho

Hloov Kho
Hloov Kho
Hloov Kho
Hloov Kho
Hloov Kho
Hloov Kho

Tam sim no nyem rau Configure Module.

Los ntawm qhov nco cia, mus rau hauv qab ntawm cov npe thiab xaiv Tus Qauv (18) los ntawm cov npe thiab nyem tseg.

Chav tsev yuav rov pib dua koj yuav tsum rov qab mus rau Main Menu.

Ib zaug ntxiv xaiv "Configure Module" thiab tom qab ntawd ntxiv:

  • Txuas 1 (21) rau GPIO0 (D3)
  • Kuj ntxiv khawm 1 (17) rau GPIO2 (D4)

Kev xa xov twb txuas nrog ESP-01 ntawm Relay Module.

peb yuav ntxiv lub laub khawm hloov mus rau GPIO0 yog li peb tuaj yeem qhib thiab kaw lub teeb txawm siv lub wifi lossis lub laub khawm. Koj tuaj yeem qhib lub teeb nrog lub laub khawm thiab tua nws nrog wifi lossis lwm txoj hauv kev.

Kauj Ruam 5: Xeem ESP-01 Via WiFi

Kuaj ESP-01 Ntawm WiFi
Kuaj ESP-01 Ntawm WiFi

Tam sim no koj yuav tsum tuaj yeem rov qab mus rau lub tshuab raj tseem ceeb thiab pom khawm toggle.

Koj yuav tsum tuaj yeem hnov lub suab hloov pauv thiab qhib thaum lub toggle khawm raug nias.

Qee lub sij hawm koj yuav tsum hloov txoj kev teeb tsa kev sib txuas raws li yog tias koj siv NC lossis TSIS txuas.

Kuv tus kheej, nyiam kom muaj kev sib txuas ib txwm nyob hauv qhov ntau dua (Lub teeb tawm)

yog li ntawd kuv txuas ntau lub 'meter' rau NO thiab CO chaw nres nkoj thiab xyuas kom tseeb tias ESP tau muab tua

Yog tias tom qab ESP-01 tau txhawb zog, koj pom tias koj TSIS txuas txuas tsis sib xws ntawm lub vijtsam hloov chaw (ON lossis OFF), koj tuaj yeem hloov Relay1 (21) hauv kev teeb tsa rau Relay1i (29) hauv koj kev teeb tsa npo.

Kauj Ruam 6: Ua Lub Thawv thiab Lub Hwj Chim Adapter

Ua Lub Box thiab Lub Hwj Chim Adapter
Ua Lub Box thiab Lub Hwj Chim Adapter
Ua Lub Box thiab Lub Hwj Chim Adapter
Ua Lub Box thiab Lub Hwj Chim Adapter
Ua Lub Box thiab Lub Hwj Chim Adapter
Ua Lub Box thiab Lub Hwj Chim Adapter

Yog li cia tau txais cov hauv qab no rau koj qhov project. Thov koj xav dawb rau google rau kev sib tham vim tus nqi tsis zoo ib yam nyob txhua qhov chaw. Kuv tsuas yog ntxiv qhov txuas rau qhov chaw koj tuaj yeem yuav nws nruj me ntsis rau cov ntaub ntawv ntawm yam khoom nws tus kheej. koj tsis muaj lub luag haujlwm thiab txhawb rau google rau tus nqi zoo tshaj. (Tau kawg koj paub qhov ntawd).

Nov yog qhov txuas rau kuv nplooj ntawv tinkercad.com yog tias koj xav luam lub npov rau txhua yam: Lub thawv rau qhov hloov pauv tus qauv thiab lub hwj chim

Blank ib leeg pab pawg hloov phaj. Koj yuav tsum tau siv lub qhov taub ntawm qhov nruab nrab ntawm nws loj txaus rau lub laub khawm hloov. 1 Gang Blank Adapter

Kauj ruam Down Module 120v/250v AC rau 5v DC kauj ruam-nqis zog module

Laub lub taub ntim nrog lub teeb ci LED.push khawm nrog lub teeb

Kauj Ruam 7: Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke

Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke
Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke
Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke
Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke
Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke
Tam sim no Cia Txuas Lawv Txhua Tus Ua Ke

Txuas cov zis ntawm 125/5v dc module rau Relay Module DC hu rau lub davhlau ya nyob twg

Txuas tus + thiab - ntawm lub laub khawm mus rau Step -Down Module

Txuas ntawm ib sab ntawm lub sijhawm thawb khawm rau GND, Tsis Zoo

Txuas lwm sab ntawm Bush khawm mus rau GPIO2 nyob tom qab ntawm ESP-01. Kuv tau siv cov hlau me me thiab ua qhov sib txuas ntawd. Saib daim duab saum toj no rau qhov chaw ntawm GPIO2 Lub xub xub liab khau rau GPIO2 chaw nres nkoj

Siv ob lub xov hlau rau lub hwj chim nkag mus rau DC adapter module

Ntxiv ob daim ntawm cov xov hluav taws xob mus rau NO thiab CO ntawm Cov Qauv Txuas

Ntim txhua daim rau hauv lub thawv luam ntawv siv cov duab muab

NCO TSEG:

Kuv yuav tsis piav qhia qhov sib txuas rau lub teeb hloov ntawm no. Thov tau tus kws tshaj lij los nruab nws rau koj.

Yog tias koj muaj lus nug txog qhov ntawd, thov hu rau kuv thiab kuv yuav qhia kuv cov duab kos nrog koj.

Kev sib haum xeeb.

Pom zoo: