Cov txheej txheem:
- Kauj Ruam 1: Sau Qhov Chaw
- Kauj Ruam 2: Sau Cov Ntaub Ntawv Rainbird
- Kauj Ruam 3: Nqa Duab Ntawm Txhua Yam
- Kauj ruam 4: Rub tawm OSPi Pre-configured SD Image
- Kauj Ruam 5: Hlawv OSPi Duab rau Micro SD Card
- Kauj Ruam 6: Teeb OSPi Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 7: Kuaj Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 8: Teeb Raspberry Pi
- Kauj Ruam 9: Txuas Raspberry Pi (RPi) rau OpenSprinkler (OSPi)
- Kauj ruam 10: OSPI Web Interface
- Kauj ruam 11: Nruab OSPi
- Kauj Ruam 12: Cov Xov Tooj Hluav Taws Xob
- Kauj Ruam 13: Teeb Zones thiab Cov Kev Pabcuam
- Kauj Ruam 14: Cov Ntawv Ntxiv: Hloov Kho
Video: OpenSprinkler: 14 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
OpenSprinkler Pi (OSPi) yog qhov qhib-qhov chaw txau / dej txuas txuas rau pawg Raspberry Pi. Nws yog qhov yooj yim thiab siv tus nqi qis los hloov Raspberry Pi rau hauv lub peev xwm tswj cov kais dej nrog 8 thaj chaw rau cov nyom thiab dej hauv vaj.
OpenSprinkler tsis xav tau kev qhia paub. Cov ntawv qhia yooj yim no sau kuv qhov kev nce qib hauv Tsev Automation. OpenSprinkler cov ntaub ntawv yog qhov zoo. Qhov kawg tshwm sim yog qhov xav tsis thoob. Nov yog qhov haujlwm zoo tshaj plaws hauv tsev hauv tsev. Yog tias koj tab tom nrhiav rau thawj qhov haujlwm, ua qhov no.
Lub hom phiaj ntawm txoj haujlwm no yog:
- Tsis txhob poob ib qho kev ua haujlwm los ntawm Rainbird cov dej tam sim no
- Tswj cov dej los ntawm lub vev xaib
- Ntxiv kev ua haujlwm rau cov dej
- Koom nrog cov ntawv ceeb toom huab cua (ua hauv OpenSprinkler)
- Ntxiv nag sensor
- Ntxiv cov ntsuas av (Kuv tseem tsis tau ua qhov no - tsis txhawb los ntawm Open Sprinkler raws li hnub tshaj tawm)
- Siv WiFi tsis txhob siv xov tooj txuas
- Siv Raspberry Pi
OpenSprinkler v1.4+ Tus Neeg Siv Phau Ntawv (hloov kho lub Tsib Hlis 31, 2015) yog lub hauv paus rau daim ntawv no. Nov yog lub hauv paus zoo rau OpenSprkler cov ntaub ntawv tshiab kawg.
Kuv hloov qhov kev txiav txim ntawm qee qhov OpenSprinkler cov kauj ruam. Piv txwv li, thaum ua raws li OSPi Cov Neeg Siv Phau Ntawv Qhia cov kauj ruam, Kuv txuas Raspberry Pi mus rau OSPI (Kauj Ruam 2) thiab tom qab ntawd ntau cov kauj ruam tom qab ntsuas lub micro SD daim npav (kauj ruam 8 = 7 qib kho vajtse ntxiv rau 1 qib software). Txawm li cas los xij, ib zaug Raspberry Pi thiab OSPI txuas nrog, lub micro SD qhov nkag tsis tau. Yog li, kuv yuav tsum coj RPi thiab OSPi sib nrug, ntxig daim npav micro SD. Tsis tas li, cov npe ntu hauv phau ntawv OSpi tsis tiav.
Kuv siv MacBook los tham nrog Raspberry Pi, tab sis siv lub khoos phis tawj twg los tau.
Rau kaum xyoo dhau los, Central Texas tau muaj huab cua qhuav heev. Kuv lub zej zog nyob hauv qhov txwv tsis pub ywg dej ntau. Yog tias kuv ywg dej rau hnub tsis raug, lub sijhawm tsis raug (tom qab 10 teev tsaus ntuj thiab ua ntej 7 teev sawv ntxov), lossis yog dej ntws mus rau hauv txoj kev, tom qab ntawd kuv yuav raug nplua $ 50. Feem ntau, kuv sim ywg dej kom tsawg li sai tau, tab sis vim tias nws khiav thaum ib tag hmo kuv tsis nco qab txog nws.
Kuv lub tsev tuaj nrog Rainbird ESP-M maub los, uas tsis yog WiFi siv tau thiab nkag tsis tau los ntawm lub vev xaib. Yam tsawg kawg, Kuv yuav tsum tau hloov kho tus tswj Rainbird.
Sau ntawv:
- cov ntawv nyob hauv spades, zoo li no ♣ hloov-qhov no ♣ yuav tsum hloov nrog tus nqi tiag
- Kuv tau sim ua credit txhua qhov chaw siv. Kuv thov txim rau txhua qhov tsis suav.
- $ qhia txog cov lus txib ua tiav hauv lub qhov rais qhib ntawm MacBook thiab feem ntau yog ua tiav ntawm Raspberry Pi
OSPi tus neeg siv interface yog qhov paub zoo heev. OSPi koom ua ke nrog huab cua thiab lub ntsuas dej nag, uas txhais tau tias tsis muaj dej thaum nws tsis xav tau. Vam tias, kev txuag nyiaj ntawm nqi dej ua pov thawj rau txoj haujlwm.
Kauj Ruam 1: Sau Qhov Chaw
Kuv yuav cov no:
-
Qhib Sprinkler qhov:
- OSPi v1.4 cov khoom siv $ 139.00
- 24V AC sprinkler transformer (tso zis 22V AC ∼ 30V AC, nco ntsoov tias nws yog AC, tsis yog DC!) $ 12.00
-
Raspberry Pi qhov chaw:
- FTDI TTL-232R-RPI Serial rau USB cable los ntawm Mouser $ 15
- Raspberry Pi 2 Qauv B Element14 $ 35
- Panda 300n WiFi Adapter Amazon $ 16.99
- Micro USB rau USB cable 3ft los ntawm Amazon $ 4.69
- SanDisk Ultra 16GB Ultra Micro SDHC UHS-I/Class 10 Card nrog Adapter (SDSQUNC-016G-GN6MA) los ntawm Amazon $ 8.49
- Orbit nag sensor
Hauv lwm daim ntawv thov Raspberry Pi, kuv tau ntsuas thiab pom cov teeb tsa saum toj no ua tau zoo dua li cov khoom siv pib. Txawm li cas los xij, cov khoom siv Raspberry Pi pib yuav ua haujlwm zoo. Ib rooj plaub thiab lub hwj chim rau Raspberry tsis xav tau.
Kuv muaj cov no:
- Rainbird irrigation system nrog 7 aav thiab 24V AC sprinkler li qub (OSPi tuaj yeem lis ntau thaj tsam nrog ntu ntxiv)
- Tapered tshuab ntsia hlau txuas rov qab rau pem hauv ntej ntawm OpenSprinkler vaj tse (lub taub hau taub hau yuav tsum haum rau hauv OSPi qhov)
- 8x 8 nti khoom hlau (tib lub ntsuas cua zoo li Rainbird xaim)
- Cov khoom siv mounting: 4 screws thiab pop toggles
- MacBook nrog SD Card qhov
- Laum nrog 5/8 nti drillbit
- 8 x kab
- Ntsia taub hau me me, Phillips taub hau ntswj taub hau, thiab rab koob qhov ntswg tshuab hluav taws xob
OSPi v1.4 cov khoom siv suav nrog lub thawv ntawv (nrog lub qhov rai ntshiab acrylic), sib sau ua ke thiab sim OSPi Circuit Court board thiab cov davhlau ya nyob twg. Cov khoom siv suav nrog suav nrog 24V AC rau 5V DC hloov pauv kev tswj hwm, cov tsav tsheb solenoid, lub dav hlau los nag, DS1307 RTC thiab roj teeb, PCF8591T 8-ntsis A/DD/A hloov pauv (4 tawm thiab 1 tso tawm), fuse, ib-nres chaw nres tsheb tiv thaiv hluav taws xob.
Kauj Ruam 2: Sau Cov Ntaub Ntawv Rainbird
Yog tias txoj haujlwm tsis ua lossis kuv xav rov nruab Rainbird maub los, kuv xav tau Rainbird cov ntaub ntawv rau kuv tus qauv, uas suav nrog:
- Rainbird ESP-M Watering Cycle (aka, daim ntawv sau npe)
- Rainbird Khoom Ntawv ESP-M
- Rainbird ESP-M Modular Controller Manual
Nplooj ntawv 42 ntawm Rainbird ESP-M Modular Controller Manual qhia tau hais tias thaj tsam muaj xaim li cas.
Kauj Ruam 3: Nqa Duab Ntawm Txhua Yam
Ib zaug ntxiv, yog tias kuv xav rov qab mus rau Railbird maub los, Kuv tau thaij duab txhua yam.
Cov xaim dawb nyob hauv nruab nrab ntawm daim duab yog COM.
Thiab xya lub xov hlau nyob hauv qab cov xaim dawb yog cov xov tooj cua
Kauj ruam 4: Rub tawm OSPi Pre-configured SD Image
Daim duab teeb tsa ua ntej OSPi SD daim duab muaj nyob online. Qhov hloov tshiab kawg muaj nyob ntawm no: OSPi SD Card Duab 2 (nrog Unified Firmware, hloov tshiab 05/31/15)
Kuv nyiam tshem kuv phau ntawv teev npe rub tawm. Txhua yam kuv xav khaws tseg tau hloov mus rau lwm cov npe. Kuv khaws kuv cov duab Raspberry Pi hauv cov npe: ♣ macbook-image-directory ♣. Yog li, rub daim duab thiab txav mus rau phau ntawv teev npe.
Kuv siv unarchiver rau decompress cov duab cov ntaub ntawv (.7z) ntawm MacBook.
Kauj Ruam 5: Hlawv OSPi Duab rau Micro SD Card
TSEEM CEEB: Nco ntsoov tias koj ntaus tus lej disk raug - yog tias koj nkag mus rau tus lej disk tsis raug, koj yuav so koj lub MacBook hard disk
Cov txheej txheem hlawv OSPi duab mus rau daim npav SD zoo ib yam li hlawv cov duab Raspbian.
Ntxig daim npav micro SD rau hauv SD Adapter, thiab tom qab ntawd ntxig daim npav SD rau hauv MacBook.
Ntawm MacBook siv cov lus qhia no los ntawm Raspberry Pi.org, uas tau piav qhia ntawm no:
Qhib MacBook lub dav hlau qhov rai
Hloov mus rau cov npe uas muaj OSPi duab
$ cd (macbook-duab-phau ntawv teev npe)
Txheeb tus lej naj npawb (tsis faib) ntawm koj daim npav SD Hauv qhov no, disk4 (tsis disk4s1) thiab = 4
Hauv cov theem hauv qab no, tus lej disk yog ♣ micro-SD-card-disk#♣
Txhawm rau txheeb xyuas koj daim npav micro SD, khiav cov lus txib:
$ daim ntawv teev npe
Unmount koj daim npav SD los ntawm kev siv:
$ diskutil unmountDisk /dev /disk ♣ micro-SD-card-disk#♣
Luam daim duab OSPi rau koj daim npav SD. Xyuas kom lub npe duab thiab raug.
$ sudo dd bs = 4M yog = ospi2new.img ntawm =/dev/rdisk ♣ micro-SD-card-disk#
CTRL-t kom pom cov xwm txheej ntawm kev theej.
Yog tias muaj qhov ua yuam kev, sim qhov sib txawv rau bs xaiv, xws li, 1m, 4m, lossis 1M. Cov Loj Loj Loj (bs) xav tau rau cov tsav loj.
Thaum ua tiav, unmount SD Card:
$ diskutil unmountDisk /dev /disk ♣ micro-SD-card-disk#♣
Tshem SD adapter los ntawm MacBook thiab tshem daim npav micro SD los ntawm adapter
Ntxig micro SD Card hauv Raspberry Pi
Kauj Ruam 6: Teeb OSPi Cov Khoom Siv Hluav Taws Xob
Lub zog OSPi muaj ob lub xov hlau: ib qho yog cim 300V lwm qhov tsis yog. Nws tsis muaj teeb meem uas xaim nkag mus rau qhov twg ntawm 24V AC clip.
OpenSprinkler clips tshem tawm tau.
- Tshem qhov clip rau 24V AC cov tswv yim.
- Ntawm daim kab xev txiv kab ntxwv, xoob cov ntsia hlau.
- Ntxig ib lub xaim los ntawm lub zog xa mus rau txhua qhov hauv 24V AC clip raws li qhia hauv daim duab.
- Ceev cov ntsia hlau
Kauj Ruam 7: Kuaj Cov Khoom Siv Hluav Taws Xob
Nyeem kom zoo ua ntej ua cov kauj ruam no:
- Ntxig qhov hloov pauv clip rau hauv lub davhlau ya nyob twg sib xws ntawm OSPi.
- Plug rau hauv lub transformer.
- Tus hloov pauv yuav ua lub zog rau OpenSprinkler board thiab Raspberry Pi.
- Raspberry Pi lub zog siv hluav taws xob yuav tsum tsis txhob siv. Muab tso tseg.
- Lub ntsuab LED yuav tsum ci, qhia tias lub zog qhib. Saib daim duab hauv cov kauj ruam dhau los.
- Yog tias LED tsis teeb, tshem lub hwj chim tam sim ntawd
- Yog tias koj tsis tuaj yeem daws qhov teeb meem, xa email rau [email protected]
Tshem tawm cov khoom siv hluav taws xob los ntawm OSPi pawg thawj coj
Kauj Ruam 8: Teeb Raspberry Pi
Txij li qhov haujlwm no siv OSPi duab thiab tsis yog duab raspbian, pib nrog Kauj Ruam 4 hauv cov lus qhia hauv qab no:
Teeb Raspberry Pi yam tsis muaj Monitor lossis Keyboard
Disconnect zog thiab USB serial cable. Cov no yuav tsis xav tau ntxiv lawm.
Kauj Ruam 9: Txuas Raspberry Pi (RPi) rau OpenSprinkler (OSPi)
OSPi muaj ob tus ncej txhawb nqa uas phim cov ntsia hlau ntawm Raspberry Pi.
Nrog micro SD daim npav tso rau hauv Raspberry Pi:
- Tshem ob lub hau ntswj sab saum toj los ntawm cov ncej txhawb nqa
- Plug Raspberry Pi rau hauv OSPi los ntawm 2x20 tus pin headers
- Txheeb xyuas ob qho kev taw qhia thiab xyuas kom txhua tus pins tau ua raws. Ob lub qhov ntsia hlau yuav tsum ua ke nrog cov ncej txhawb nqa.
- Maj mam, ntxig Raspberry Pi txhua txoj kev mus rau qhov kawg. USB thiab Ethernet txuas yuav tsum hla qhov kev txiav tawm ntawm PCB.
- Ntxig cov ntsia hlau rau cov ntawv thiab maj mam muab ob lub ntsia hlau ntswj.
Cov duab sab laug qhia cov txuas, thiab Raspberry Pi teeb tsa tus pin. Daim duab sab xis qhia qhov chaw nyob ntawm USB WiFi dongle thiab SD daim npav.
Kauj ruam 10: OSPI Web Interface
Daim duab OSPi muaj lub vev xaib tsim.
Tom ntej no, qhib qhov browser, thiab ntaus hauv https:// ospi-ip-address which, uas yog Raspberry Pi tus IP chaw nyob (xws li https:// ospi-ip-address ♣, Ib nplooj ntawv txais tos nrog OSPI cov lus qhia ntxiv tshwm. Yog tias nplooj ntawv no tshwm, nrog koj zoo siab! Cov duab tau hlawv tau zoo ntawm daim npav micro SD thiab WiFi ua haujlwm.
Qhov tseeb OSPi Tus Neeg Siv Kev Sib Tham yog siv tau los ntawm https:// ospi-ip-address 80: 8080
password = ua haujlwm
Yog tias txhua yam zoo, tom qab kaw raspberry:
$ sudo kaw
Kauj ruam 11: Nruab OSPi
Kuv lub tsev Rainbird system muaj xya thaj chaw thiab tau teeb tsa rau ntawm phab ntsa chav nres tsheb. Yog li, txav OpenSprinkler mus rau lub nkas -las thiab tsa OSPi ntawm phab ntsa.
- Tshem tawm hluav taws xob los ntawm Rainbird thiab Open Sprinkler.
- Yog tias tsim nyog, Kuv xav kom tuaj yeem teeb tsa kuv li Rainbird system dua. Yog li, Kuv tabtom tawm ntawm Rainbird maub los nyob rau hauv qhov chaw, ntxiv rau, nws txoj hlua. Kuv khiav cov xov hlau los ntawm OSPi los ntawm lub qhov hauv Rainbird cov ntaub ntawv tswj
- Rainbird tswj vaj huam sib luag swings tawm. Lob tus nqis siab tshaj ntawm sab laug thiab viav vias tawm ntawm lub tswj vaj huam sib luag
- Laum 3/5in qhov hauv qab sab laug ntawm rooj plaub Rainbird
- Txuas rau pem hauv ntej thiab nraub qaum ntawm OSPi cov ntaub thaiv uas siv cov ntsia hlau ntswj. Tsis txhob nruj.
- Nrhiav qhov chaw tsim nyog rau OSPi thiab txuas rau phab ntsa ntawm sab laug ntawm Rainbird maub los.
- Kuv siv toggle mounts rau OSPi
Kauj Ruam 12: Cov Xov Tooj Hluav Taws Xob
Txhawm rau txuas cov chaw tso dej:
-
Tshem tawm COM (ib txwm) xaim los ntawm Rainbird Controller thiab ntxig nws rau hauv OSPi's COM davhlau ya nyob twg
- Ntawm kuv lub kaw lus COM xaim yog dawb (pom hauv duab zoo li daj)
- Lub davhlau ya nyob twg COM muaj ob lub chaw nres nkoj - lawv tau txuas nrog sab hauv yog li koj tuaj yeem txuas rau ob qho chaw nres nkoj
- Txiav 8 daim hlau rau tib qhov ntev (ntsuas thiab tawm qee qhov ntxiv - txhua lub xov hlau yuav tsum ntev txaus los ntawm Rainbird maub los rau OSPI
- Khiav cov xov hlau 8 xaim los ntawm OSPi rau hauv rooj plaub Rainbird
-
Rau txhua tus xaim hauv Rainbird rooj plaub ua cov hauv qab no (ua ib qho zuj zus):
- Loosen Phillips lub taub hau ntsia hlau ntawm cheeb tsam xaim hauv rooj plaub Rainbird
- Tshem cov xaim xoob los ntawm qhov txuas
-
Siv cov txiv ntoo xaim txuas txuas xaim xaim mus rau ib qho ntawm cov xaim txiav
Cov xaim txiav hla los ntawm tus tswj Rainbird, hla lub qhov, thiab mus rau OSPi maub los
- Loosen lub taub hau ntsia hlau ntawm OSPi txuas uas sib haum rau Rainbird (ob leeg suav tus lej mus rau sab laug)
- Ntxig xaim rau hauv OSPi txuas
Kauj Ruam 13: Teeb Zones thiab Cov Kev Pabcuam
OSPi tuaj yeem nthuav dav los tswj thaj chaw ntxiv. Kuv tsuas xav tau 7 thaj chaw. Yog tias koj xav tau ntau ntxiv xa mus rau OSPi Phau Ntawv.
OSPi's GUI yog qhov yooj yim siv.
- Teeb Zones thiab Kho Cov Haujlwm.
- Kuaj kom paub tseeb tias txhua yam ua haujlwm.
Koj ua tiav!
Kauj Ruam 14: Cov Ntawv Ntxiv: Hloov Kho
01 Lub Xya Hli 2016:
- Export thiab thaub qab teeb tsa ua ntej hloov tshiab
- Hloov kho OpenSprinkler firmware rau 2.1.6 tsuas yog ua kauj ruam B
cd OpenSprinklerGen2
git rub sudo./build.sh ospisudo /etc/init.d/OpenSprinkler.sh restart
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab