Cov txheej txheem:
- Kauj Ruam 1: Wring Raspberry Pi Nrog 8-channel Relay
- Kauj Ruam 2: Teeb Raspbian Lite ntawm Raspberry Pi
- Kauj ruam 3: Hloov kho Raspbian
- Kauj Ruam 4: Nruab Pob
- Kauj Ruam 5: Clonning "HomeAutomationServer" Repository
- Kauj Ruam 6: Khiav Server Nrog Pm2
- Kauj ruam 7: Reboot Server
Video: Tsev Automation: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hloov koj lub tsev mus rau hauv lub tsev ntse, nrog rau qhov no koj tuaj yeem tswj hwm txhua yam khoom siv hluav taws xob hauv koj lub tsev hauv ib qho app nkaus xwb. Tab sis rau txoj haujlwm no, kuv tau ua kom tsuas yog tswj hwm txhua lub teeb pom kev hauv tsev. Txhua yam ua tau yooj yim nrog Raspberry pi 3 thiab xa tawm rau kev tswj lub cev hloov pauv thiab ib qho app tsim los ntawm kos kom tswj kev xa mus rau kev tswj chaw taws teeb.
YUAV TSUM MUAJ NTAUB NTAWV
Raspberry pib 3
8-Channel 5v Relay Module
Micro SD daim npav (8GB)
Poj niam-rau-Poj Niam Jumper hlau
SOFTWARE SIV
Win32DiskImager
Kauj Ruam 1: Wring Raspberry Pi Nrog 8-channel Relay
Hlau raws li daim duab qhia saum toj no
Kauj Ruam 2: Teeb Raspbian Lite ntawm Raspberry Pi
Mus ntsib
Scroll cia thiab rub tawm Raspbian Lite (tam sim no - Buster)
unzip cov ntaub ntawv.zip thiab koj yuav tau txais cov ntawv.img
khiav Win32DiskImager
xauj rau.img cov ntaub ntawv hauv qab "Cov Ntaub Ntawv Duab" xaiv
xaiv qhov tseeb tsav "Ntaus" (piv txwv li E:)
nyem rau ntawm "Sau" khawm kom pib txheej txheem hlawv
nyem "YOG" thaum hais kom sai
ib zaug ua tiav, ntxig koj daim npav SD rau hauv raspberry pi thiab qhib nws
Kauj ruam 3: Hloov kho Raspbian
Teeb IP zoo li qub rau Raspbian ua ntej hloov tshiab, YUAV UA LI CAS?
Nkag mus rau hauv raspbian davhlau ya nyob twg
Tus neeg siv: piPassword: raspberry
yam
sudo nano /etc/dhcpcd.conf
nqes mus rau txhua txoj hauv kev thiab muab cov kab ntawv no tso rau
eth0 ua
zoo li qub ip_address =/24 zoo li qub routers = zoo li qub domain_nameservers = interface wlan0 zoo li qub ip_address =/24 routers zoo li qub = zoo li qub domain_nameservers =
txuag nws los ntawm nias "ctrl+x" thiab "y"
thaum kawg reboot koj pi, nrog "sudo reboot"
tom qab ua tiav kev rov pib dua, khiav cov lus txib no kom hloov kho raspbian rau qhov hloov tshiab kawg
sudo apt-tau hloov tshiab
sudo apt-tau hloov tshiab
sudo apt-tau nruab dist-upgrade
Kauj Ruam 4: Nruab Pob
Lub sijhawm los teeb tsa txhua qhov kev cia siab yuav tsum tau ua
hauv davhlau ya nyob twg khiav cov lus txib no
sudo apt-tau nruab nodejs
sudo apt-tau nruab npm
sudo apt-tau nruab git
sudo npm nruab pm2 -g
Txheeb xyuas yog txhua yam teeb tsa raug los ntawm kev ua cov lus txib no
node -v
npm -v
pm2v wb
git -rov qab
Kauj Ruam 5: Clonning "HomeAutomationServer" Repository
Clone "HomeAutomationServer" repository los ntawm github
git clone
ib zaug cloned, mus rau hauv "HomeAutomationServer" cov npe thiab khiav qhov no
npm nruab
Txhua qhov kev cia siab uas yuav tsum tau ua rau txoj haujlwm yuav raug teeb tsa
Kauj Ruam 6: Khiav Server Nrog Pm2
Khiav server nrog pm2
ntaus qhov no hauv dav hlau los tsim txoj hauv kev rau pm2
pm2 pib
theej cov lus txib tsim thiab muab tshuaj txhuam rau hauv lub davhlau ya nyob twg thiab ua nws
Thaum kawg, pib server nrog pm2, ntaus cov lus txib no, koj yuav tsum nyob hauv cov npe raug los ntawm tam sim no
pm2 pib server.js -npe "HomeAutomationServer" -saib
khiav cov lus txib no kom txuag neeg rau zaub mov mus rau pm2 yog li pm2 yuav pib siv koj lub server ntawm txhua lub khau raj
pm2 ruaj
Kauj ruam 7: Reboot Server
Reboot server nrog cov lus txib no
sudo rov pib dua
ib zaug rebooted, ntaus cov lus txib no txhawm rau txheeb xyuas yog tias cov neeg rau zaub mov cia li khiav tom qab rov pib dua
pm2 lis
Nrog qhov ntawd koj tau ua tiav qhov kev qhia rau teeb tsa server ua haujlwm nrog pm2
Tab sis Ua Ntej Ua Ntej QHOV TSEEB KAWG, cia kuv qhia koj tias qhov no tsuas yog ib nrab ntawm daim ntawv thov, yog li, qhov twg yog cov lus qhia ntxiv uas koj nug, mus ntsib https://github.com/khairmuhammad-ybh/HomeAutomati… rau qhov kev qhia zaum kawg rau nruab lub app ntawm koj lub cuab yeej.
Hloov tshiab
Rub tawm thiab teeb tsa lub apk muab ntawm no: HomeAutomation thiab sim nws
Pom zoo:
Plug & Ua Si CO2 Sensor Zaub Nrog NodeMCU/ESP8266 rau Cov Tsev Kawm Ntawv, Tsev Kawm Qib Siab lossis Koj Lub Tsev: 7 Kauj Ruam
Plug & Ua Si CO2 Sensor Zaub Nrog NodeMCU/ESP8266 rau Cov Tsev Kawm Ntawv, Lub Tsev Kawm Qib Siab lossis Koj Lub Tsev: Kuv yuav qhia koj sai npaum li cas txhim kho lub plug & ua si CO2 sensor qhov twg txhua qhov ntawm txoj haujlwm yuav txuas nrog DuPont xov hlau. Yuav muaj tsuas yog 5 cov ntsiab lus uas yuav tsum tau muab siv, vim tias kuv tsis tau muab tshuaj txhuam ua ntej qhov haujlwm no txhua lub sijhawm
Siv Kev Cia Siab Lub Hauv Paus txuas ntxiv txhawm rau Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Txoj Cai Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: 11 Kauj Ruam
Siv Kev Cia Siab Lub Hauv Paus Txuas Ntxiv kom Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: Lub hom phiaj ntawm cov lus qhia no yog los qhia seb yuav tshawb nrhiav koj tsev neeg tsob ntoo li cas hauv Tsev Neeg Nrhiav rau cov poj koob yawm txwv nrog kev ua haujlwm hauv lub tuam tsev tsis tiav siv Kev Cia Siab lub hauv siab txuas ntxiv. Siv Kev Cia Siab Lub Hauv Paus tuaj yeem ua rau koj qhov kev tshawb nrhiav tsis tiav
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Ua Lag Luam Hauv Tsev: Hauv qhov haujlwm ua haujlwm hauv tsev no, peb yuav tsim lub tsev ntse hloov chaw uas tuaj yeem tswj tau 5 yam khoom siv hauv tsev. Qhov kev hloov pauv no tuaj yeem tswj tau los ntawm Txawb lossis smartphone, IR chaw taws teeb lossis TV nyob deb, Kev hloov pauv ntawm tes. Qhov kev tshaj tawm ntse no tseem tuaj yeem paub txog r
Pib Nrog Tsev Automation: Txhim Kho Tsev Pabcuam: 3 Kauj Ruam
Pib Nrog Tsev Automation: Txhim Kho Tsev Pabcuam: Tam sim no peb tab tom yuav pib ua haujlwm hauv tsev tsis siv neeg, qhov uas peb tsim lub tsev ntse uas yuav tso cai rau peb tswj hwm yam xws li teeb, hais lus, ntsuas thiab lwm yam siv lub hauv paus nruab nrog nrog lub suab pab. Hauv kab ntawv no, peb yuav kawm paub yuav ua li cas txhawm rau
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