Cov txheej txheem:

OpenSprinkler: 14 Cov Kauj Ruam (nrog Duab)
OpenSprinkler: 14 Cov Kauj Ruam (nrog Duab)

Video: OpenSprinkler: 14 Cov Kauj Ruam (nrog Duab)

Video: OpenSprinkler: 14 Cov Kauj Ruam (nrog Duab)
Video: BAOBAI VUE: Contestant: 14: Cover Contest: Tsis Phim Koj Singing Competition 2024, Kaum ib hlis
Anonim
OpenSprinkler
OpenSprinkler

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

Nqa Duab Ntawm Txhua Yam
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

Teeb OSPi Cov Khoom Siv Hluav Taws Xob
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)

Txuas Raspberry Pi (RPi) rau OpenSprinkler (OSPi)
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

Nruab OSPi
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: