Cov txheej txheem:

PiGMI: 3 Kauj Ruam
PiGMI: 3 Kauj Ruam

Video: PiGMI: 3 Kauj Ruam

Video: PiGMI: 3 Kauj Ruam
Video: Ruam Tsab Ntse 2024, Lub Xya hli ntuj
Anonim
PiGMI
PiGMI

Cia kuv qhia PiGMI - Pi Garage Monitor hla Internet

Nov yog kuv qhov version ntawm lub qhov rooj tsheb saib xyuas qhov system siv Pi. Tus Pi tseem tswj hwm qhov qhib thiab kaw ntawm lub qhov rooj thiab koom nrog hauv HomeBridge yog li kuv tuaj yeem hais: "Hav Siri, Qhib Dave lub qhov rooj!".

Txoj haujlwm no tau tsim xyoo 2016 thiab tau ua haujlwm txij thaum ntawd los. Kev tsim qauv tau ua raws qhov ua kom yooj yim li sai tau. Piv txwv li, lub qhov rooj rau tsheb muaj plaub lub xeev: Qhib, Kaw, Jammed, thiab Obstructed. Thawj ob qhov pom tseeb, ob qhov kawg sawv cev yog tias lub qhov rooj kaw thiab nws ua tsis tau, tom qab ntawd nws raug thaiv. Yog tias nws tau sim qhib thiab ua tsis tau li ntawd nws yog jammed. Kev tshawb pom ntawm cov xeev no ib zaug ntxiv tau khaws cia yooj yim. Lub qhov rooj pib qhib txog li 2 vib nas this los ntawm nias lub pob khawm, thiab siv sijhawm li 15 vib nas this los kaw ntawm phau ntawv khawm (lossis cov chaw taws teeb tswj). Ob lub sijhawm no tau siv los tshuaj xyuas cov xeev uas raug kaw thiab muaj kev cuam tshuam. Qhov hloov pauv sib nqus yooj yim pom lub xeev ntawm lub qhov rooj qhov rooj. Rov ua kom yooj yim qhov no txhais tau tias kuv tsis tas yuav koom nrog cov khoom siv hluav taws xob ntawm lub qhov rooj qhov rooj. Yog li yog tias lub xeev hloov pauv tsis hloov tom qab lub sijhawm teev tseg koj yuav tau txais cov lus. Tau kawg lub qhov rooj tuaj yeem qhib nyob rau lub sijhawm thiab tseem tab tom jam, tab sis koj yuav pom tias - sim ua kom yooj yim! Kev xa tawm raug siv hla cov khawm khawm hauv lub nkas -las. Nws tuaj yeem teeb tsa mus txog 3 lub qhov rooj.

Yog li tus tsim yog siv Pi los saib xyuas lub xeev ntawm qhov hloov pauv. Muab lub vev xaib sib cuam tshuam rau kev tswj hwm thiab tso cai nkag hauv internet rau kev saib xyuas thiab tswj chaw deb. Kuv tshuaj xyuas lub tswv yim no nrog tus phooj ywg (Tom Milner) uas tawm mus thiab ua tag nrho lub vev xaib cuam tshuam rau kuv. Koj tuaj yeem rub tawm cov cai thiab sim nws hauv hom ua ntej teeb tsa nws ntawm Pi. Lub interface tso cai rau koj teeb tsa GPIO tus pin rau cov hlau nplaum thiab cov txiaj ntsig ntawm kev xa tawm. Lub sijhawm qeeb siv nyob rau hauv rooj plaub koj lub qhov rooj yuav siv sijhawm ntau dua uas yog 2 thiab 15 vib nas this kom txav mus. Koj tsim tus neeg siv thiab tus lej zais rau kev nyab xeeb, muaj chaw txiav ntoo. Nws muaj peev xwm teeb tsa hauv lub tswb hom uas koj tuaj yeem tau txais SMS ceeb toom yog tias koj lub qhov rooj qhib thaum koj tsis mus so lossis tsuas yog tom haujlwm. Lub software tau sim ntawm Raspberry Pi 3 thiab Zero. Yog xav paub ntxiv ntawm no yog qhov txuas mus rau nplooj ntawv Wiki My Garage. Kev saib xyuas yog nyob ntawm yeem thiab ntawm no yog qhov txuas.

Khoom siv

Koj yuav xav tau:

Raspberry Pi (Pi3 thiab Zero tau raug sim) nrog Pi OS tshiab kawg ntawm SD daim npav thiab lub zog siv

Wifi dongle

Sib nqus hloov (s) (1 toj ib lub qhov rooj) TSIS muaj hom

Relay (s) (Kuv ib lub qhov rooj)

Feem ntau cov khoom siv hluav taws xob tau los ntawm Adafruit lossis Amazon.

Hlau - lub qhov rooj tswb hlau rau txuas cov hlau nplaum mus rau Pi

Cov xwm txheej rau kev xa tawm thiab Pi (Kuv 3D Luam kuv li ntawm Thingiverse: Tshaj Tawm, Pi)

My-Garage software

Yeem saib xyuas software

Kua nplaum los txuas cov hlau nplaum rau lub qhov rooj thiab lub qhov rooj.

Ntsia hlau rau rooj plaub teeb tsa

Cov Cuab Yeej:

Hlau strippers, Pliers

Phom phom rau txhawm rau xaim hlau khiav hauv chaw nres tsheb.

Hlau txiav

Kauj ruam 1: Teeb tsa Pi

Teeb tsa Pi
Teeb tsa Pi

Muaj ntau ntau cov lus qhia ntawm teeb tsa Pi yog li kuv yuav tsis npog lawv ntawm no tsis yog hais txog dab tsi xav tau ntawm Pi.

1) Apache, PHP, Nab hab sej. Ib zaug ntxiv muaj cov lus qhia ntawm cov no los ntawm cov chaw xws li Adafruit thiab ntawm chav kawm RaspberryPi Lub Koom Haum.

2) Tus Pi yuav xav tau nkag mus rau koj li Wifi thiaj li yuav tsum tau teeb tsa.

3) Txhawm rau nkag sab nraum koj lub tsev koj yuav tsum tau muab txoj hauv kev kom dhau los ntawm koj lub router lub phab ntsa hluav taws. Kuv siv lub vev xaib chaw nyob los ntawm noip.com thiab siv tus lej sib txawv chaw nres nkoj rau Apache ua qhov kev nyab xeeb ntxiv. Ib zaug ntxiv muaj ntau yam kev qhia hauv lub vev xaib rau qhov kev npaj no.

4) My-Garage software los ntawm Github

Kauj ruam 2: Txuas thiab teeb tsa

Teeb thiab teeb tsa
Teeb thiab teeb tsa
Teeb thiab teeb tsa
Teeb thiab teeb tsa
Teeb thiab teeb tsa
Teeb thiab teeb tsa

Xa mus rau daim duab tab sis lawv cov yam ntxwv tseem ceeb yog ib lub hlau nplaum thiab ib qho txuas ntawm ib lub qhov rooj. Rau kuv teeb tsa uas yog rau GPIO pins. Lawv tau teeb tsa hauv software, tsuas yog xyuas kom koj ua tiav txoj cai txuas nrog txoj cai hlau nplaum ntawm ntau lub qhov rooj! Xa mus rau daim duab saum toj no rau nplooj ntawv teeb tsa.

Ntawm no koj tuaj yeem teeb tsa cov qauv (simulation aka demo mode); Tus lej thiab cov npe ntawm lub qhov rooj; Lub sijhawm rau lub qhov rooj qhib thiab kaw thiab cov ntaub ntawv rau xa lub tswb thiab saib xyuas.

Lub cev txuas ntxiv tau khaws cia yooj yim li sai tau. Qhov tso tawm ntawm cov ntawv xa tawm tau dhia hla cov lus qhia khawm hauv cov chaw nres tsheb. Lub relay yog pulsed rau 1 thib ob txog thaum nws coj koj mus nias lub pob. Qhov sib nqus sib nqus kuv tau teeb tsa ntawm qhov muag ntawm lub qhov rooj. Kuv lub qhov rooj muaj cov hlau khiav qhov twg cov menyuam mus. Raws li software tsuas yog xav paub yog tias qhov hloov pauv tau qhib lossis kaw koj tuaj yeem txhim kho nws nyob txhua qhov chaw uas ua haujlwm zoo tshaj plaws rau koj lub qhov rooj. Cov hlau nplaum tau teeb tsa ntawm lub qhov rooj (txav ib feem) qhov hloov ntawm tus ncej. Lub qhov rooj lag luam tsis hloov kho txoj hauv kev. Qhov kawg uas twb muaj lawm nres thiab IR qhov ntsuas qhov ntsuas tseem ua haujlwm.

Pom zoo: