Cov txheej txheem:

Kev Ua Vaj Tsev Zoo Ua Rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: 16 Cov Kauj Ruam (nrog Duab)
Kev Ua Vaj Tsev Zoo Ua Rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: 16 Cov Kauj Ruam (nrog Duab)

Video: Kev Ua Vaj Tsev Zoo Ua Rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: 16 Cov Kauj Ruam (nrog Duab)

Video: Kev Ua Vaj Tsev Zoo Ua Rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: 16 Cov Kauj Ruam (nrog Duab)
Video: Musicians talk about Buckethead 2024, Hlis ntuj nqeg
Anonim
Image
Image
Automated Garden System Ua rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi
Automated Garden System Ua rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi
Automated Garden System Ua rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi
Automated Garden System Ua rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi
Automated Garden System Ua rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi
Automated Garden System Ua rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi

Koj puas nyiam ua vaj tab sis nrhiav tsis tau lub sijhawm los tu nws? Tej zaum koj muaj qee cov nroj tsuag hauv tsev uas tab tom nqhis dej me ntsis lossis tab tom nrhiav txoj hauv kev los siv koj li hydroponics kom siv tau? Hauv txoj haujlwm no peb yuav daws cov teeb meem no thiab kawm paub pib ntawm MudPi los ntawm kev tsim lub tshuab ua teb kom zoo los pab saib xyuas tej yam. MudPi yog qhov qhib qhov system uas kuv tau ua los tswj thiab tswj cov khoom siv hauv vaj tsim los ntawm Raspberry Pi. Koj tuaj yeem siv MudPi rau ob qhov haujlwm sab hauv tsev thiab sab nraum zoov raws qhov koj xav tau raws li nws tau tsim los kho.

Hnub no peb yuav pib nrog kev teeb tsa yooj yim Kuv tau siv hauv tsev los saib yuav ua li cas MudPi tuaj yeem siv los tswj lub vaj sab nraum zoov thiab tswj cov dej. Hauv qhov kev qhia no koj yuav kawm paub yuav siv tus tswj hwm tseem ceeb li cas khiav MudPi. Yuav muaj qee qhov peev txheej ntxiv nyob ze rau qhov kawg rau cov uas xav nthuav lawv cov kev teeb tsa ntxiv mus dhau qhov pib lossis leej twg xav pom kev kawm paub ntau ntxiv rau kev teeb tsa sib txawv xws li sab hauv tsev. MudPi tuaj yeem teeb tsa rau ntau yam kev teeb tsa thiab muaj cov ntaub ntawv pov thawj ntawm qhov chaw ua haujlwm.

Khoom siv

Xav tias dawb los ntxiv/tshem tawm cov cim tshwj xeeb lossis cov khoom koj xav tau rau koj tus kheej li koj qhov xav tau yuav txawv ntawm kuv li.

Khoom siv dav dav

  • Raspberry Pi nrog Wifi (Kuv siv Pi 3 B)

    Debian hnub 9/10

  • Saib/Keyboard/Mouse (rau Pi teeb)
  • SD daim npav rau Raspbian (8gb)
  • Sab nraum zoov nyob cable (4 xaim)
  • Lub thawv dej tsis sib haum rau sab nraum zoov
  • Cov kab mob
  • Din Rail (txhawm rau txhawm rau txhawm rau thiab DC khoom)
  • PVC cev
  • Laum w/ Spade Bits

Cov Khoom Siv Hluav Taws Xob

  • DHT11 Kub / Vaum Sensor
  • Ua Kua Ntab Qib Sensor x2
  • 2 Channel relay
  • 12v twj tso kua mis (lossis 120v yog tias koj siv lub zog hluav taws xob)

    DC rau DC hloov pauv yog tias koj siv 12v

  • 5v Fais Fab Khoom

    lossis DC fais fab mov (yog tias txhawb lub zog los ntawm lub zog)

  • 10k Resistors rau rub nce/nqis

Cov cuab yeej

  • Ntsia Hlau
  • Hlau stripper
  • Multimeter
  • Soldering Hlau
  • Solder
  • Screws (rau mounting thawv sab nraum)
  • Silicone Kab

Kauj Ruam 1: Kev Npaj Vaj & Dej

Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej
Kev Npaj Vaj & Dej

Nco ntsoov npaj koj cov dej npaj tseg yog tias koj tab tom tsim cov txheej txheem tshiab. Nws yuav yog qhov tseem ceeb kom muaj cov khoom no twb tau muaj lawm thaum koj mus npaj kho vajtse kom koj paub koj cov khoom xav tau. Kev xav tau tuaj yeem hloov pauv lub sijhawm tab sis nws yog kev coj ua zoo los npaj rau yav tom ntej. Koj ob qhov kev xaiv tseem ceeb ntawm kev xa dej yog siv lub twj tso kua mis hauv cov dej tso dej lossis lub qhov dej nrog lub solenoid qhib thiab kaw kab. Qhov kev xaiv yuav yog nyob ntawm koj nyob ntawm koj lub vaj xav tau. Cov txheej txheem loj dua tuaj yeem siv ob qho tib si (piv txwv li tso dej los ntawm solenoids li qub rau thaj tsam dej). Yog tias koj npaj yuav siv MudPi sab hauv tsev koj yuav zaum siv lub twj tso kua mis yog tias muaj dab tsi. MudPi tuaj yeem tswj hwm koj lub teeb tsob ntoo sab hauv tsev siv kev xa khoom ib yam nkaus.

Maker Tip: Nco ntsoov koj tuaj yeem tsim koj txoj haujlwm ntawm txhua qhov loj me. Yog tias koj tsuas yog xav sim MudPi thawj zaug sim ib yam dab tsi zoo li lub raj mis dej thiab 3.3v lub twj tso kua dej rau hauv tsev!

Kuj xav txog kev xaiv xa dej. Koj puas yuav siv cov kab txau, lub soakerhose lossis cov kais tsuag dej? Nov yog ob peb txoj hauv kev:

  • Sprinkler
  • Soakerhose
  • Txau kab
  • Los ntawm txhais tes dej

Txhawm rau ua kom dav ntawm qhov kev qhia no los ntawm kev loj hlob loj heev cia xav tias koj twb muaj dej nyob hauv qhov chaw thiab tsuas yog xav ua kom siv tau nws. Hauv kuv qhov teeb tsa kuv muaj lub tank dej nrog lub twj tso kua mis sib txuas mus rau qee txoj kab dej. Cia peb kawm paub yuav siv lub twj tso kua mis li cas.

Kauj Ruam 2: Kev Tshawb Fawb & Kev Npaj Ua Haujlwm

Lwm qhov kev npaj tseem ceeb los txiav txim siab yog cov ntaub ntawv twg koj yuav xav tau los ntawm koj lub vaj. Feem ntau qhov kub thiab txias yog ib txwm muaj txiaj ntsig. Cov av noo thiab nrhiav pom nag yog qhov zoo tab sis yuav tsis xav tau kev teeb tsa sab hauv tsev. Nws yuav yog koj qhov kev txiav txim siab zaum kawg ntawm yam xwm txheej twg yog qhov tseem ceeb los saib xyuas koj li kev xav tau. Rau peb qhov kev qhia sab nraum zoov peb yuav saib xyuas:

  • Kub
  • Vaum
  • Cov dej (ntab hloov x2)

Kuv siv 5 lub ntsuas dej ntsuas ntsuas qib 10%, 25%, 50%, 75%thiab 95%hauv lub tank loj. Hauv qhov kev qhia no peb yuav ua 10% rau qhov tseem ceeb qis thiab 95% puv rau qhov yooj yim.

Koj kuj tseem xav tswj cov cuab yeej hauv koj lub vaj. Yog tias koj npaj yuav hloov lub twj tso kua mis lossis lub teeb uas tsis ua haujlwm ntawm 3.3v (tus lej GPIO txwv) ces koj yuav xav tau kev xa rov qab. Kev xa rov qab tso cai rau koj los tswj cov hluav taws xob hluav taws xob ntau dua thaum siv qis dua hluav taws xob los hloov qhov kev xa tawm. Rau peb lub hom phiaj peb muaj lub twj tso kua mis uas khiav ntawm qhov hluav taws xob siab dua 3.3V yog li peb yuav xav tau kev xa mus los hloov lub twj tso kua mis. Tsuas yog ib qho kev xa tawm xwb xav tau los tswj lub twj tso kua mis. Txawm hais tias rau yav tom ntej lub hom phiaj (thiab vim tias kev xa khoom pheej yig) Kuv tau teeb tsa 2 channel xa tawm thiab sab laug qhov txuas ntxiv muaj rau tom qab hloov khoom dua tshiab.

Qhov tseem ceeb tshaj plaws rau kev npaj yog kev siv fais fab. Yuav ua li cas Pi yuav raug siv thiab qhov twg los. Tsis tas li koj yuav tsum xav txog cov cuab yeej koj siv thiab yuav ua li cas lawv thiaj li muaj zog. Feem ntau Pi tuaj yeem siv tau los ntawm lub tshuab hluav taws xob usb tab sis qhov ntawd yuav tsum tau ntsaws ntawm nws tus kheej. Yog tias peb tab tom txhawb lwm yam khoom siv uas muaj hluav taws xob ntau dua DC rau DC cov khoom siv hluav taws xob tuaj yeem siv rau theem hluav taws xob qis rau 5v rau Pi. Yog tias koj npaj yuav tau txais lub hwj chim txhawm rau txo qis qhov hluav taws xob Kuv pom zoo kom tsis mus nrog qhov kev xaiv pheej yig tshaj.

Nco ntsoov Raspberry Pi tuaj yeem txhawb nqa digital GPIO nkaus xwb. Qhov no txhais tau tias koj tsis tuaj yeem cia li nqes tus ntsuas qhov av uas siv cov lus sib piv rau Pi GPIO. Txhawm rau kom ua tau zoo sib xws nrog cov khoom sib piv koj yuav tsum tau siv lub micro-maub los nrog kev txhawb nqa analog xws li Arduino lossis ESP32 (lossis ESP8266).

Luckily MudPi muaj kev txhawb nqa rau kev tswj hwm cov cuab yeej zoo li qhev qoj rau cov lus txib rau ntau yam khoom siv los ntawm ib tus tswj hwm tseem ceeb (pi). Qhov no ua rau nws muaj peev xwm muaj lub maub los tseem ceeb nrog ntau lub ntsuas qhov ntsuas uas nws tuaj yeem tswj hwm nrog lawv cov khoom sib txuas sib piv. Kuv siv lub maub los tseem ceeb los saib xyuas thaj chaw tso twj tso kua mis thiab chav ntsuas ntsuas rau txhua lub txaj hauv vaj. Hnub no cia txuas ntxiv tsim tus tswj hwm tseem ceeb kom pib.

Kauj Ruam 3: Sau cov khoom siv

Sau Cov Khoom Siv
Sau Cov Khoom Siv

Nws yog lub sijhawm rau peb los sau peb cov ntaub ntawv. Cov khoom siv thiab cov cuab yeej siv hauv kev tsim no yog txhua yam lag luam tawm ntawm cov khoom txee kom yooj yim rau lwm tus los tsim lawv tus kheej hauv tsev. Feem ntau tuaj yeem pom hauv online lossis ntawm cov khw muag khoom kho vajtse hauv cheeb tsam. Qhov nqi ntawm cov ntaub ntawv yuav nyob ntawm koj lub vaj tshwj xeeb. Txog rau qhov kev qhia no peb yuav khaws cov khoom mus rau qhov tseem ceeb raws li tau npaj tseg kom tau txais chav ua haujlwm ua ntej mus ntxiv.

Nco tseg: Kuv xav sau tseg ntawm qhov no yog tias koj npaj yuav hloov pauv cov khoom siv uas tawm ntawm qhov hluav taws xob qhov hluav taws xob thov CAREFUL! Nws yog ib qho tseem ceeb uas koj muaj kev nyab xeeb thaum tsim hluav taws xob thiab tsis txhob tinker nrog cov hluav taws xob siab yog tias koj tsis paub tias koj tab tom ua dab tsi. Nrog qhov hais tias kuv tau siv lub twj 120v hauv kuv lub tsev teeb tsa. Cov txheej txheem yog tib yam rau lub twj tso kua mis 12v nrog qhov sib txawv tseem ceeb xav tau 12v tus tswj hwm. Koj kuj tseem tuaj yeem siv txuas mus rau teeb lub teeb lossis lwm yam khoom siv.

Kauj Ruam 4: Nruab MudPi ntawm Raspberry Pi

Nruab MudPi ntawm Raspberry Pi
Nruab MudPi ntawm Raspberry Pi

Nrog txoj kev npaj npaj thiab khoom siv ntawm tes nws yog lub sijhawm los npaj kho vajtse. Txhawm rau pib koj yuav tsum tau txais koj li raspberry pi npaj rau nruab MudPi. Koj yuav xav tau Raspberry Pi nrog Wifi muaj peev xwm khiav Debian 9 lossis siab dua. Yog tias koj tsis muaj Raspbian twb tau teeb tsa koj yuav xav rub Raspbian los ntawm lawv nplooj ntawv no.

Nrog daim duab rub tawm sau nws mus rau SD daim npav siv tus kws sau duab uas koj xaiv. Raspberry pi muaj phau ntawv qhia rau sau cov ntawv mus rau daim npav SD yog tias koj xav tau kev pab.

Ntsaws daim npav SD rau hauv koj lub pi thiab qhib nws. Txuas koj Pi rau Wifi siv GUI yog tias koj teeb tsa Raspbian Desktop lossis los ntawm kev kho /etc/wpa_supplicant/wpa_supplicant.conf cov ntaub ntawv los ntawm lub davhlau ya nyob twg ntawm Raspbian Lite.

Qhov txuas ntxiv uas koj yuav tsum tau ua tom qab Wifi txuas nrog yog kev hloov kho tshiab thiab hloov kho tshiab ntawm pi.

Txhawm rau hloov kho Pi tus ID nkag mus thiab los ntawm lub davhlau ya nyob twg khiav:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

Thaum ua tiav reboot

sudo rov pib dua

Tom qab Pi tau rov pib dua peb tam sim no tuaj yeem nruab MudPi. Koj tuaj yeem ua li ntawd siv MudPi Installer nrog cov lus txib hauv qab no:

curl -sL https://install.mudpi.app | tsoo

Tus nruab yuav saib xyuas txhua qhov xav tau pob thiab teeb tsa rau MudPi. Los ntawm lub neej ntawd MudPi tau teeb tsa rau hauv/home/mudpi phau ntawv teev npe nrog cov tub ntxhais nyob ntawm/home/mudpi/core.

Koj tuaj yeem khiav MudPi manually nrog cov lus txib hauv qab no:

cd /tsev /mudpi

pem --debug

Txawm li cas los MudPi muaj txoj haujlwm saib xyuas uas yuav ua haujlwm rau koj. Ntxiv rau koj yuav xub xav tau cov ntaub ntawv teeb tsa ua ntej khiav MudPi. Txhawm rau ua cov ntaub ntawv teeb tsa koj yuav tsum paub dab tsi pins koj tau sib koom ua ke yam twg ib yam nkaus uas yog dab tsi ua tiav hauv cov kauj ruam tom ntej. Ntxiv mus!

Kauj Ruam 5: Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem

Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem
Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem
Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem
Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem
Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem
Txuas Sensors & Cheebtsam rau Pi rau Kev Xeem

Cov kauj ruam tom ntej yog txuas peb cov khoom siv rau Pi. (Thov nco ntsoov kuv tau sim cov khoom ntxiv hauv daim duab) Koj tuaj yeem siv cov xov hlau txuas thiab cov ntawv ci rau kev ntsuas uas yog qhov zoo, tsuas yog nco ntsoov hloov kho rau qee yam uas ntseeg tau dua thaum koj tsim chav kawg rau thaj chaw.

Txuas DHT11/22 sensor DATA tus pin rau GPIO tus pin 25.

Txuas DHT11/22 lub zog thiab hauv av.

Txuas ib kawg ntawm txhua qhov 2 kua ntab sensors mus rau GPIO pins 17 & 27 feem nrog 10k rub qis resistors.

Txuas lwm qhov kawg ntawm cov ntab sensor mus rau 3.3v kom GPIO ib txwm rub qis tab sis ua kom siab thaum lub ntab hloov kaw.

Txuas 2 Channel Relay toggle pins rau GPIO pins 13 & 16.

Txuas tus txuas 5V rau lub zog thiab txuas rau hauv av.

Peb yuav txhawj xeeb txog kev sib txuas hluav taws xob siab ntawm kev xa tawm hauv cov kauj ruam tom ntej thaum peb txuas cov plugs. Txog tam sim no peb yuav tsum tau npaj los ua MudPi cov ntaub ntawv teeb tsa thiab sim cov khoom siv.

Kauj Ruam 6: Kho MudPi

Nrog cov ntsuas thiab cov khoom siv txuas nrog koj tuaj yeem ua MudPi cov ntawv teeb tsa thiab ntsuas tias txhua yam ua haujlwm ua ntej ua tiav chav sib dhos. Txhawm rau teeb tsa MudPi koj yuav hloov kho cov ntaub ntawv mudpi.config nyob hauv/home/mudpi/core/mudpi directory. Nov yog JSON cov ntaub ntawv tsim tawm uas koj tuaj yeem hloov kho kom haum rau koj cov kev xav tau. Nco ntsoov xyuas kom raug rau kev ua kom raug yog tias koj muaj teeb meem.

Yog tias koj ua raws cov ntaub ntawv teeb tsa hauv qab no yuav ua haujlwm rau cov khoom peb txuas nrog:

Muaj ntau ntau mus rau hauv kev teeb tsa saum toj no. Kuv pom zoo khawb rau hauv cov ntawv teeb tsa kom paub ntau ntxiv hauv cov ntaub ntawv ntxaws. Peb teeb DHT11 thiab ntab nyob rau hauv lub sensor sensor thiab muab cov teeb tsa sib txuas hauv qhov toggle array. Kev siv tshuab siv qhov chaw los ntawm kev teeb tsa thiab ua. Qhov ntsuas yog ib txoj hauv kev los qhia MudPi kom mloog rau qee yam xwm txheej uas peb xav kom ua raws li qhov kub siab dhau. Qhov ua rau tsis muaj txiaj ntsig zoo txog thaum peb muab nws ua rau ua rau muaj kev cuam tshuam. Hauv qhov teeb tsa saum toj no muaj ob lub sijhawm ua rau. Lub sijhawm ua haujlwm yuav siv txoj haujlwm cron teeb tsa txoj hlua los txiav txim siab thaum nws yuav tsum qhib. Lub sijhawm ua rau saum toj no tau teeb tsa rau txhua 12 teev (yog li ob zaug hauv ib hnub). Lawv yuav ua rau ob qhov kev nqis tes ua peb teeb tsa uas yuav tsuas yog qhib/tua peb qhov txuas nrog qhov xwm txheej tawm los ntawm MudPi. Qhov tshwm sim thib ob yog offset los ntawm 15 feeb kom peb lub twj tso kua mis qhib thiab dej rau 15 feeb ua ntej yuav raug kaw. Qhov no yuav tshwm sim ob zaug ib hnub ib hnub.

Tam sim no koj tuaj yeem rov pib dua MudPi los ntawm kev qhia tus thawj saib xyuas kom rov pib qhov haujlwm:

sudo supervisorctl rov pib dua mudpi

MudPi tam sim no yuav tsum rov ua dua qhov kev teeb tsa thiab khiav hauv keeb kwm yav dhau los txhawm rau nyeem cov ntawv nyeem thiab mloog rau cov xwm txheej los hloov qhov kev xa tawm. Koj tuaj yeem tshawb xyuas MudPi ua haujlwm nrog:

sudo supervisorctl xwm txheej mudpi

MudPi tseem yuav khaws cov ntaub ntawv teev cia hauv/home/mudpi/cav directory. Yog tias koj tab tom ntsib teeb meem uas yog qhov chaw zoo los tshuaj xyuas ua ntej.

Yog tias koj tau txheeb xyuas tias MudPi tau khiav nws yog lub sijhawm los pib qhov kev sib dhos zaum kawg ntawm chav. Kaw lub Raspberry Pi thiab cia ua tiav kev sib dhos kho vajtse.

Kauj Ruam 7: Cov Cheebtsam Cheeb Tsam rau Pawg Thawj Coj

Cov Cuab Yeej Cuab Yeej rau Pawg Thawj Coj
Cov Cuab Yeej Cuab Yeej rau Pawg Thawj Coj
Cov Cuab Yeej Cuab Yeej rau Pawg Thawj Coj
Cov Cuab Yeej Cuab Yeej rau Pawg Thawj Coj

Tam sim no tias MudPi tau teeb tsa koj tuaj yeem txuas ntxiv ua haujlwm ntawm kho vajtse. Cheebtsam uas tseem nyob hauv lub thawv yuav tsum tau muab muag rau lub rooj tsav xwm tsab ntawv kom muaj kev ruaj ntseg ntau dua li cov xov hlau txuas. Nws tsis zoo li lub rooj tsav xwm kev cai tab sis yuav ua haujlwm tam sim no. DHT11 sensor peb tab tom siv yuav yog sab nraud tab sis koj tuaj yeem xaiv muaj lwm qhov ntxiv rau sab hauv lub thawv kub.

Kuv tau siv lub tshuab hluav taws xob pi rau lub rooj tsav xwm nrog rau qee qhov txuas txuas kom yooj yim dua GPIO kev sib txuas thaum peb rov txuas lub ntsuas thiab xa rov qab. Cov kab hluav taws xob tawg ua rau nws zoo kom tuaj yeem txuas tus pi yam tsis tas yuav tshem tawm tag nrho cov qauv. Kuv kuj suav nrog qhov xav tau rub tawm cov tiv thaiv rau cov ntab ib yam. Nrog qhov ua tiav no peb tuaj yeem tso txhua yam hauv lub thawv rau sab nraum zoov zoo los tiv thaiv nws.

Kauj Ruam 8: Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov

Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov
Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov
Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov
Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov
Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov
Pib Muab Cov Khoom Siv Hluav Taws Xob tso rau hauv lub thawv rau sab nraum zoov

Los ntawm qhov no txhua yam tau raug sim ua haujlwm ntawm MudPi thiab nws lub sijhawm los sib sau ua ke sab nraum zoov kom sawv ntsug. Koj lub khw muag khoom kho vajtse hauv ib cheeb tsam yuav xaiv cov thawv sib txuas hauv cov khoom siv hluav taws xob uas koj tuaj yeem yuav tau qis dua 25 $. Nrhiav ib qho uas yog qhov loj me thiab muaj cov dej ntim tau. Kuv siv sijhawm me ntsis ntxiv kom tau txais lub thawv ntim khoom siv nrog lub caij nplooj ntoo hlav. Txhua yam koj xav tau yog qee yam uas yuav ua kom cov dej noo tawm thiab haum rau koj cov khoom sib xyaw. Koj yuav tau muab qhov hle hauv lub npov no kom tso cov kab hluav taws xob tawm ib yam.

Kauj Ruam 9: Txuas Cov Hluav Taws Xob mus rau Kev Txuas thiab teeb tsa hauv Lub Thawv Txuas *Ceeb Toom Qhov Siab Tshaj *

Txuas Cov Hluav Taws Xob mus rau Kev Sib Txuas thiab teeb tsa hauv Lub thawv hlws ris *Ceeb Toom Cov Hluav Taws Xob *
Txuas Cov Hluav Taws Xob mus rau Kev Sib Txuas thiab teeb tsa hauv Lub thawv hlws ris *Ceeb Toom Cov Hluav Taws Xob *
Txuas Cov Hluav Taws Xob mus rau Kev Sib Txuas thiab teeb tsa hauv Lub thawv hlws ris *Ceeb Toom Cov Hluav Taws Xob *
Txuas Cov Hluav Taws Xob mus rau Kev Sib Txuas thiab teeb tsa hauv Lub thawv hlws ris *Ceeb Toom Cov Hluav Taws Xob *
Txuas Cov Hluav Taws Xob mus rau Kev Sib Txuas thiab teeb tsa hauv Lub thawv hlws ris *Ceeb Toom Cov Hluav Taws Xob *
Txuas Cov Hluav Taws Xob mus rau Kev Sib Txuas thiab teeb tsa hauv Lub thawv hlws ris *Ceeb Toom Cov Hluav Taws Xob *

Tus Pi yuav tsum tau muab tua thaum txuas cov khoom sib txuas. Yog tias koj siv 120v lossis 12v rau lub twj tso kua mis xav txog lub ntsaws siv. Lub twj tso kua mis uas siv 12v feem ntau siv lub tog raj txuas. Ua haujlwm nrog 120v koj tuaj yeem ua haujlwm nrog poj niam txuas txuas ntsaws ntsaws. Tam sim no tsis txhob txiav txoj hlua txuas ntxiv thiab cuam tshuam nrog qhov no yam tsis muaj cov cuab yeej tsim nyog.

Siv lub laum lossis rab me ntsis laum ob 3/4in qhov hauv qab ntawm lub thawv rau sab nraum zoov thiab muab ob lub 3/4in kab txuas rau hauv. Khiav tus txiv neej txuas qaum los ntawm ib lub qog thiab poj niam ib nrab mus rau lwm qhov. Yog tias koj xav siv lwm txoj hauv kev sib txuas channel teeb tsa lwm tus poj niam xaus txoj hlua hauv.

Hauv lub thawv Kuv tau teeb tsa ntu me me ntawm txoj kab tsheb nqaj hlau. Ntawm txoj kev tsheb nqaj hlau yog DC Lub Hwj Huam Muab rau nqis qis dua 120v txog 5v txhawm rau txhawb lub zog Pi thiab ntxiv rau qee qhov thaiv kev nyab xeeb. Kuv tsuas yog siv ob lub tshuab tawg kom kuv tuaj yeem kaw Pi yam tsis kaw tag nrho cov kab ke. Ib tus tawg yuav txaus. Tam sim no sab hauv txoj kab txuas txuas muaj peb kab xim. WHITE yog nruab nrab, GREEN yog av, thiab BLACK yog 120v+. Ntsuab thiab dawb mus ncaj qha rau hauv DC Lub Hwj Chim. Cov dub ua ntej nkag mus rau cov khoom tawg tom qab ntawd mus rau DC lub zog hluav taws xob. Ntawm lub zog hluav taws xob yog cov ntsia hlau me me uas yog lub zog ntsuas kom txiav qhov hluav taws xob kom raug rau 5v.

Peb tab tom yuav siv cov davhlau ya nyob twg thaiv kom sib txuas ntawm cov ntsaws. Siv ib lub thaiv txuas tag nrho cov kab hluav taws xob nruab nrab dawb ua ke. Yog tias koj tsis muaj daim kab xev hluav taws xob daim kab xev yuav txaus. Cov kab hauv av ntsuab yuav tsum txuas nrog ua ke. Kev xa xov hluav taws xob sab muaj peb qhov sib txuas: COM (ib txwm muaj), NC (ib txwm kaw), thiab TSIS YOG (nquag qhib). Nyob ntawm koj qhov txuas nws tsuas yog muaj NC lossis TSIS tsis yog ob qho. Txuas me ntsis ntxiv ntawm cov xov hluav taws xob los ntawm lub tshuab hluav taws xob uas yuav muab 120v rau peb cov xa tawm COM (ib txwm) lub davhlau ya nyob twg ntawm qhov hluav taws xob sab. Tam sim no txuas tus poj niam txuas cov hlua dub 120v kab rau NC lub davhlau ya nyob twg. Qhov no yuav txhais tau tias lub ntsaws feem ntau yuav raug kaw thiab tsis txuas nrog tab sis thaum peb hloov qhov txuas ntawm nws yuav muab 120v rau lub ntsaws yog li tig ntawm peb lub twj tso kua mis.

Txog tam sim no txhua qhov txuas txuas txuas yuav tsum muaj lawv cov kab ke dawb txuas ua ke thiab lawv thaj av ntsuab tau khi ua ke. Cov poj niam cov hlua muaj lawv cov 120v dub txuas rau txuas NC lub davhlau ya nyob twg. Tus txiv neej txuas txuas txuas yuav tsum muaj nws txoj kev nyob dub hla mus rau ntawm txoj kev tsheb nqaj hlau din thiab tom qab ntawd faib mus rau DC lub zog hluav taws xob thiab COMs ntawm kev xa tawm.

Nws yog ib qho tseem ceeb txhawm rau txhim kho txhua yam hauv lub thawv tsis muaj dej thiab tiv thaiv kom raug/txoj hauv kev tag nrho koj cov cables. Qhov kawg uas koj xav tau yog hluav taws lossis ib tus neeg tau zapped. Tsis tas li tsis txhob cuam tshuam nrog qhov hluav taws xob siab yog tias koj tsis tuaj yeem muaj kev nyab xeeb. Koj tseem tuaj yeem ua tau me ntsis nrog 12v thiab cov khoom qis dua.

Kauj Ruam 10: Muab Sensors rau Hauv Tsev Tiv Thaiv

Muab Sensors Nyob Hauv Tsev Tiv Thaiv
Muab Sensors Nyob Hauv Tsev Tiv Thaiv
Muab Sensors Nyob Hauv Tsev Tiv Thaiv
Muab Sensors Nyob Hauv Tsev Tiv Thaiv
Muab Sensors Nyob Hauv Tsev Tiv Thaiv
Muab Sensors Nyob Hauv Tsev Tiv Thaiv

Xwm thiab noo noo tsis zoo heev rau cov khoom siv hluav taws xob. Koj tau tiv thaiv Pi nrog lub thawv rau sab nraum zoov tab sis tam sim no koj xav tau los tiv thaiv ib puag ncig sab nraud. Koj tuaj yeem ua qee lub tsev tsim nyog los tiv thaiv cov khoom sab nrauv siv qee cov yeeb nkab PVC lossis lwm yam khoom seem ntawm cov raj. Kuv nruj nruj lub hau yooj yim rau lub DHT11 sensor los pab tiv thaiv nws los ntawm nag thiab kab tab sis tso cai rau nws ua pa kom raug nyeem sab nraud. Siv silicone calk los kaw ib puag ncig cov hlua hauv cov kauj ruam tom ntej.

Tsis yog cov tshuaj zoo tshaj plaws tab sis nws ua haujlwm rau tus nqi pheej yig 4 $. (Kuv kuj tau ua qee yam rau cov ntsuas av uas kuv tau sim thaum lub sijhawm ib yam nkaus.) Lub ntsuas dej ntab yuav raug teeb tsa rau hauv lub tank dej thiab tsis xav tau vaj tsev ntxiv.

Koj tseem yuav pom tias cov ntsuas ntsuas feem ntau tsuas yog tuaj nrog qee qhov pheej yig ntsuas ntsuas xaim. Qhov no yuav tsis kav ntev rau qee qhov kev coj ua lossis huab cua sab nraud. Hauv qib tom ntej peb hais txog qhov no.

Kauj Ruam 11: Txuas Cov Hluav Taws Xob Nrog Sab Nraud Rated Cable & Plugs

Txuas Cov Hluav Taws Xob Nrog Sab Nraud Rated Cable & Plugs
Txuas Cov Hluav Taws Xob Nrog Sab Nraud Rated Cable & Plugs
Txuas Cov Hluav Taws Xob Nrog Sab Nraud Rated Cable & Plugs
Txuas Cov Hluav Taws Xob Nrog Sab Nraud Rated Cable & Plugs

Tau txais qee qhov ntsuas hluav taws xob sab nraum zoov yog qhov yuav tsum yog koj xav kom muaj cov ntsuas sab nraud txuas nrog lub thawv. Sab nraum zoov cov kab hluav taws xob tau tiv thaiv los tiv thaiv cov xov hlau sab hauv. Kuv khaws qee 4wire cable thiab ntsaws. Koj tsis xav tau cov plugs thiab tuaj yeem siv tau ntau lub qog kab mob tab sis kuv xav kom tuaj yeem hloov pauv sai sai.

Txiav ib co kab kom ntev rau koj qhov ntsuas kub thiab ntab cov ntsuas. Kuv yuav muab ob peb txhais taw ntxiv vim nws ib txwm zoo kom muaj qhov txiav ntxiv yog tias xav tau. Kuv hais kom muab cov xaim hluav taws xob txuas rau kev sib txuas zoo tshaj plaws thiab tom qab ntawd qhwv nrog kab xev hluav taws xob. Kuv hais qhia siv tib xim rau lub zog thiab hauv av nrog txhua lub xaim kom ua rau qee yam nco tau yooj yim. Nqa cov hlua txuas mus rau hauv vaj tse nrog silicone calk kaw qhov seem ntawm hauv qab ntawm lub tsev yog li tsuas yog lub qhov cua nkag yog qhov nkag.

Lwm qhov kawg ntawm txoj kab koj tuaj yeem khiav mus rau hauv lub thawv los ntawm cov kab txuas txuas thiab txuas rau Pi ntawm tus pin tib yam li ua ntej. Yog tias koj xaiv siv ntsaws ntsaws ntsaws ntsaws ntsaws rau hauv kab. Laum thiab nruab lwm qhov kawg rau hauv lub thawv sib txuas thiab tom qab ntawd txuas rau sab hauv.

Kauj Ruam 12: Nruab Float Sensors Rau Hauv Tank

Nruab Float Sensors Rau Hauv Tank
Nruab Float Sensors Rau Hauv Tank

Nrog rau lwm qhov kev tiv thaiv thiab npaj mus nws lub sijhawm los teeb tsa cov ntab sensor rau hauv lub taub dej. Txij li thaum peb tsuas yog siv ob qho koj yuav tsum teeb tsa 1 ntawm qhov tseem ceeb qis uas lub twj tso kua mis yuav tsum tsis txhob khiav thiab ib qho uas yuav tsum cim lub tank puv. Nrhiav qhov ntsuas me me kom raug thiab ua lub qhov rau hauv lub tank ntawm qib raug. Ntsia cov ntab sensor rau hauv lub tank nrog lub tshuab ntxhua khaub ncaws thiab txiv ntseej muab. Saib sab hauv lub tank thiab nco ntsoov tias lub ntsuas dej ntab tau taw qhia kom lawv nyob hauv qhov chaw tawm thiab tsa thaum dej nce ua rau lawv kaw lub Circuit Court.

Vim yog qhov rub tawm qhov ntsuas no txhais tau tias thaum qib dej tau ntsib lub ntab sensor ntawm qib ntawd nrog nyeem 1. Txwv tsis pub lub ntab sensor yuav rov qab 0 yog tias tam sim no cov dej tsis tam sim no rub lub sensor kaw lub Circuit Court.

Kauj Ruam 13: Tso Lub Tsev Sab Nraud

Tso Lub Tsev Sab Nraud
Tso Lub Tsev Sab Nraud
Tso Lub Tsev Sab Nraud
Tso Lub Tsev Sab Nraud
Tso Lub Tsev Sab Nraud
Tso Lub Tsev Sab Nraud

Chav MudPi tau npaj tiav thiab peb tuaj yeem rub nws sab nraum nws qhov chaw zaum kawg. Lub thawv sib txuas sab nraum zoov feem ntau tuaj nrog lub hau ntswj kom ua rau cov dej kaw nruj. Koj kuj yuav tsum pom qee qhov kev teeb tsa nyob tom qab kom siv rau kev teeb tsa chav nyob. Kuv tau teeb tsa kuv lub npov nyob ib sab ntawm cov dej ntws tawm sab nraum vim tias cov ntab sensor tsuas muaj qhov txwv tsis pub siv cable.

Koj tuaj yeem ntsaws tus txiv neej txuas txuas rau hauv lub qhov (socket) thiab ntxeev lub tawg kom nqa MudPi online. Nco ntsoov tias txhua yam ua haujlwm ua ntej tawm mus rau lub sijhawm txuas ntxiv. Kuaj tias cov ntsuas ntsuas tau nyeem los ntawm saib mus rau redis rau khaws cov txiaj ntsig lossis txheeb xyuas MudPi cav. Yog tias txhua yam zoo li zoo nws yog lub sijhawm cia MudPi ua haujlwm thaum koj so.

Kauj Ruam 14: Saib Xyuas MudPi

Saib Xyuas MudPi
Saib Xyuas MudPi
Saib Xyuas MudPi
Saib Xyuas MudPi

Tam sim no MudPi tab tom ua haujlwm koj yuav xav tsis thoob txog txoj hauv kev los saib xyuas koj li kab ke. Txoj hauv kev yooj yim tshaj plaws thiab ncaj tshaj yog saib xyuas MudPi cov ntaub ntawv teev cia:

tw -f /home/mudpi/logs/output.log

Lwm qhov kev xaiv yog los ntawm kev cuam tshuam zoo li lub vev xaib hauv zos. Kuv tsis tau muaj sijhawm los tshaj tawm MudPi UI rau pej xeem tseem tab sis koj tuaj yeem yooj yim tuav koj lub ntsuas thiab lub xeev tiv thaiv los ntawm redis nrog PHP. Kawm paub yuav ua li cas MudPi khaws koj cov ntaub ntawv hauv redis ntau hauv cov ntawv.

Qhov ntsuas qhov ntsuas kawg yuav raug khaws cia hauv redis hauv qab qhov kev xaiv tseem ceeb koj teeb tsa hauv kev teeb tsa. Siv qhov no koj tuaj yeem ua daim ntawv thov PHP yooj yim kom rub cov nyeem ntawm nplooj ntawv thauj khoom thiab tso saib lawv. Tom qab ntawd tsuas yog rov ua nplooj ntawv tshiab rau cov ntaub ntawv tshiab.

Nws kuj tseem tuaj yeem mloog MudPi cov xwm txheej ntawm redis thiab qhov no yog qhov kev xaiv zoo dua kom tau txais qhov hloov tshiab ntawm lub sijhawm. Koj tuaj yeem nyeem cov xwm txheej ncaj qha los ntawm redis-cli

redis-cli psubscribe '*'

Kauj Ruam 15: Hloov Cov Qauv Txheej Txheem Nrog PCBs Kev Cai (Yeem Xaiv)

Hloov Cov Phiaj Xwm Txheej Txheem Nrog Cov Cai PCBs (Tsis teb los tau)
Hloov Cov Phiaj Xwm Txheej Txheem Nrog Cov Cai PCBs (Tsis teb los tau)
Hloov Cov Phiaj Xwm Txheej Txheem Nrog Cov Cai PCBs (Tsis teb los tau)
Hloov Cov Phiaj Xwm Txheej Txheem Nrog Cov Cai PCBs (Tsis teb los tau)

Kuv tau mus deb me ntsis thiab ua qee qhov kev cai tswj hwm ib yam nkaus rau MudPi. Lawv pab kuv kom nrawm cov txheej txheem tsim nrog tsim ntau lub tsev MudPi thiab muaj kev ntseeg siab dua. Kuv tau pib hloov pauv kuv cov laug cam qub nrog cov PCBs uas ntseeg tau ntau hauv txhua chav uas kuv muaj. Yav tom ntej kuv xav ua cov laug cam no muaj muag hauv qhov me me los pab txhawb kuv txoj haujlwm qhib. MudPi tsis xav tau ib qho kev cai tswj hwm lub rooj tsav tsheb, nws tsuas yog pab txo qis kev ua haujlwm ntawm lub khoos phis tawj nrog cov khoom siv sab hauv uas twb tau teeb tsa xws li rub tawm cov neeg tawm tsam thiab ntsuas kub/av noo.

Kauj Ruam 16: So thiab Saib Koj Cov Nroj Tsuag Loj Hlob

So thiab Saib Koj Cov Nroj Tsuag Loj Hlob!
So thiab Saib Koj Cov Nroj Tsuag Loj Hlob!
So thiab Saib Koj Cov Nroj Tsuag Loj Hlob!
So thiab Saib Koj Cov Nroj Tsuag Loj Hlob!

Tam sim no koj muaj koj tus kheej lub tshuab ua teb uas koj tuaj yeem nthuav dav thiab ntsuas raws li koj xav tau. Ua ntau chav lossis nthuav tawm ib qho uas koj twb tau tsim lawm. Muaj ntau yam ntxiv uas koj tuaj yeem ua nrog MudPi thiab ntau cov ntaub ntawv ntawm qhov project lub vev xaib ntawm https://mudpi.app. Kuv lub hom phiaj yog ua MudPi rau hauv cov peev txheej uas kuv tau nrhiav thaum kuv pib ua haujlwm hauv vaj. Kuv vam tias koj yuav pom zoo siv hauv MudPi thiab qhia lo lus yog tias koj nyiam txoj haujlwm uas kuv ua. Kuv tus kheej siv MudPi ob sab nraum thiab sab hauv tsev los tswj kuv cov nroj tsuag thiab tau zoo siab heev nrog cov txiaj ntsig kom deb li deb.

MudPi tseem tab tom hloov kho nrog cov yam ntxwv ntxiv thiab kev txhim kho. Koj tuaj yeem mus ntsib lub xaib kom paub meej txog yam kuv tau ua haujlwm thiab txheeb xyuas qee qhov txuas hauv qab no kom coj koj mus rau qee qhov peev txheej ntxiv. Kuv kuj tau nkag mus rau MudPi hauv 2020 Raspberry Pi kev sib tw. Yog tias koj nyiam MudPi thiab xav pab kuv ua pov npav rau kuv hauv qab no.

Cov peev txheej muaj txiaj ntsig rau Mus Ntxiv

MudPi Cov Ntaub Ntawv

MudPi Source Code

MudPi Cov Lus Qhia

Qhia Koj MudPi Tsim

Txhawb Kuv Txoj Haujlwm ntawm MudPi

Txhawb MudPi

Zoo siab loj hlob txhua tus!

- Eric

Ua nrog ♥ los ntawm Wisconsin

Raspberry Pi Kev Sib Tw 2020
Raspberry Pi Kev Sib Tw 2020
Raspberry Pi Kev Sib Tw 2020
Raspberry Pi Kev Sib Tw 2020

Thawj qhov khoom plig hauv Raspberry Pi Contest 2020

Pom zoo: