Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Cheeb Tsam Nthuav Qhia
- Kauj Ruam 3: Teeb NodeMCU hauv Arduino IDE
- Kauj Ruam 4: Txoj Haujlwm
- Kauj ruam 5: Qhov tshwm sim
Video: Automation Siv NodeMCU: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Yuav ua li cas los tswj kev siv lub web server.
Kauj Ruam 1: Cheeb Tsam
Kho vajtse
- NodeMCU Development board
- Relay
- USB cable
Software
Arduino IDE Cov
Kauj Ruam 2: Cheeb Tsam Nthuav Qhia
Dab tsi yog Relay
Kev xa tawm yog cov cuab yeej siv hluav taws xob uas siv los cais tawm ob lub tshuab hluav taws xob thiab txuas lawv sib nqus. Lawv yog cov cuab yeej muaj txiaj ntsig zoo thiab tso cai rau ib qho kev hloov pauv mus rau lwm qhov thaum lawv sib cais tag nrho. Lawv feem ntau siv los cuam tshuam cov hluav taws xob hluav taws xob (ua haujlwm ntawm qhov hluav taws xob qis) rau hluav taws xob hluav taws xob uas ua haujlwm ntawm qhov hluav taws xob siab heev. Piv txwv li, kev xa xov tuaj yeem ua rau 5V DC lub roj teeb hluav taws xob hloov mus rau 230V AC mains Circuit.
Nws ua haujlwm li cas
Kev hloov pauv hloov pauv tuaj yeem muab faib ua ob ntu: kev nkag thiab tawm. Cov lus nkag tau muaj cov kauj uas tsim cov hlau nplaum thaum lub zog me me los ntawm cov hluav taws xob hluav taws xob tau siv rau nws. Qhov hluav taws xob no hu ua kev khiav hauj lwm qhov hluav taws xob. Feem ntau siv relays muaj nyob hauv kev teeb tsa sib txawv ntawm kev ua haujlwm zoo li 6V, 9V, 12V, 24V thiab lwm yam. Hauv kev xa tawm yooj yim muaj peb tus neeg sib txuas: ib txwm qhib (TSIS), ib txwm kaw (NC) thiab ib txwm muaj (COM). Thaum tsis muaj lub xeev nkag, COM txuas nrog NC. Thaum qhov hluav taws xob ua haujlwm tau thov cov xa hluav taws xob tau txais lub zog thiab COM hloov kev sib cuag rau NO. Kev teeb tsa sib txawv sib txawv muaj nyob xws li SPST, SPDT, DPDT thiab lwm yam, uas muaj cov lej sib txawv ntawm kev hloov pauv. Los ntawm kev siv kev sib txuas ua ke kom raug, cov hluav taws xob hluav taws xob tuaj yeem qhib thiab tawm. Tau txais cov ncauj lus ntxaws ntxaws txog cov qauv ntawm kev hloov pauv.
Lub davhlau ya nyob twg COM yog qhov dav dav dav. Yog tias COIL cov davhlau ya nyob twg tau txhawb zog nrog qhov ntsuas hluav taws xob, COM thiab TSIS tsis muaj lub dav hlau txuas ntxiv mus. Yog tias COIL lub davhlau ya nyob twg tsis muaj zog, tom qab ntawd COM thiab TSIS tsis muaj lub dav hlau tsis muaj qhov txuas ntxiv.
Lub davhlau ya nyob twg NC yog Lub Caij Nyoog Kaw. Nws yog lub davhlau ya nyob twg uas tuaj yeem siv hluav taws xob txawm hais tias lub relay tsis tau txais ib qho lossis qhov hluav taws xob txaus los ua haujlwm.
Tsis muaj lub davhlau ya nyob twg yog Feem ntau Qhib davhlau ya nyob twg. Nws yog lub davhlau ya nyob twg uas koj tso cov zis uas koj xav tau thaum lub relay tau txais nws qhov ntsuas hluav taws xob. Yog tias tsis muaj qhov hluav taws xob rau COIL cov davhlau ya nyob twg lossis qhov hluav taws xob tsis txaus, cov zis tau qhib thiab tsis tau txais qhov hluav taws xob. Thaum lub COIL lub davhlau ya nyob twg tau txais qhov ntsuas hluav taws xob lossis qis dua hauv qab, NO lub davhlau ya nyob twg tau txais qhov hluav taws xob txaus thiab tuaj yeem qhib lub cuab yeej ntawm qhov tso tawm.
Dab tsi yog NodeMCU
NodeMCU yog qhov qhib IoT platform. Nws suav nrog cov software uas khiav ntawm ESP8266Wi-FiSoC los ntawm Espressif Systems thiab kho vajtse uas yog raws ESP-12 module.
Yuav ua li cas rau phiaj xwm NodeMCU nrog Arduino IDE
Txhawm rau txuas NodeMCU rau pc ntu koj yuav tsum nruab cp2102 tus tsav tsheb. Thaum koj teeb tsa tus tsav tsheb, txuas NodeMCU nrog lub PC, qhib Arduino IDE thiab xaiv pawg thawj coj NodeMCU 1.0 thiab xaiv chaw nres nkoj. Tom qab ntawd upload cov cai.
Yuav ua li cas txuas NodeMCU nrog txuas ntxiv Ntawm no, Kuv tsuas yog txuas ib qho kev sib txuas. Koj tseem tuaj yeem txuas tus lej hluav taws xob rau Vin ntawm NodeMCU hloov ntawm 3.3V.
Kauj Ruam 3: Teeb NodeMCU hauv Arduino IDE
Kauj Ruam 1 Qhib Arduino IDE. Tom qab ntawd mus rau File => Preference
Kauj Ruam 2 Hauv Tus Thawj Saib Xyuas Haujlwm Ntxiv, luam thiab muab qhov URL thiab nyem ok:
arduino.esp8266.com/stable/package_esp8266c…
Kauj Ruam 3 Qhib Tus Thawj Saib Xyuas Haujlwm los ntawm kev mus rau Cov Cuab Yeej => Pawg Thawj Coj => Boards Manger.
Kauj Ruam 4 Qhib Tus Thawj Saib Xyuas Haujlwm thiab tshawb rau nodemcu.
Kauj Ruam 5 Tom qab rub tawm ESP8266WiFi lub tsev qiv ntawv. Qhib tus neeg saib xyuas lub tsev qiv ntawv: Sketch => suav nrog tsev qiv ntawv => Tswj Tsev Qiv Ntawv
Tshawb nrhiav ESP8266WiFi lub tsev qiv ntawv
Kauj Ruam 6 Xaiv Board thiab Port.
Kauj Ruam 4: Txoj Haujlwm
Kauj ruam 5: Qhov tshwm sim
Pom zoo:
Tsev Automation Siv ESP8266 lossis NODEMCU: 6 Cov Kauj Ruam
Kev Siv Tshuab Hauv Tsev Siv ESP8266 lossis NODEMCU: Puas xav ua kom koj lub tsev tsis siv neeg ntawm wifi? Xav tau tswj lub teeb, kiv cua thiab txhua lwm yam khoom siv los ntawm koj lub xov tooj? Puas yog puas xav tau kev qhia paub txog cov cuab yeej txuas nrog thiab pib nrog nws? Qhov Kev Ua Haujlwm Hauv Tsev Automation no xav tau
Cov Khoom Siv Teeb Meem Siv Chaw Taws Teeb Siv Arduino: 7 Kauj Ruam
Cov Khoom Siv Teeb Meem Siv Khoom Siv Hluav Taws Xob Siv Arduino: Tam sim no, Cov Tsim, Cov tsim tawm tau nyiam Arduino rau kev txhim kho sai ntawm cov qauv ntawm cov phiaj xwm. Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Arduino muaj zej zog cov neeg siv zoo heev. Hauv qhov no
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
Yuav Ua Li Cas Ua Firebase Tsev Automation System Siv NodeMCU - hauv IOT Platform: 14 Kauj Ruam
Yuav Ua Li Cas Ua Firebase Tsev Automation System Siv NodeMCU | hauv IOT Platform: NTAWV NTAWV THOV KEV PAB CUAG Txoj haujlwm no yog lub hom phiaj txhawm rau txhim kho kev siv tshuab hauv tsev uas muab rau tus neeg siv ua tiav kev tswj hwm txhua yam khoom siv tswj tau ntawm nws lub tsev siv IOT Android app. Muaj ntau tus neeg thib peb hauv online server thiab platform
Tsev Automation: Tsis Siv Neeg Hloov Board Nrog Dimmer Tswj Via Bluetooth Siv Tiva TM4C123G: 7 Cov Kauj Ruam
Kev Siv Lub Tshuab Hauv Tsev: Tsis Siv Neeg Hloov Lub Rooj Tswjhwm Saib Nrog Dimmer Tswj Via Bluetooth Siv Tiva TM4C123G: Tam sim no, peb muaj kev tswj chaw taws teeb rau peb cov TV thiab lwm yam tshuab hluav taws xob, uas tau ua rau peb lub neej yooj yim heev. Koj puas tau xav tsis thoob txog kev siv tshuab hauv tsev uas yuav muab lub chaw tswj cov raj teeb, kiv cua thiab lwm yam khoom siv