Cov txheej txheem:

Pw Tsaug Yooj Yim: 5 Kauj Ruam (nrog Duab)
Pw Tsaug Yooj Yim: 5 Kauj Ruam (nrog Duab)

Video: Pw Tsaug Yooj Yim: 5 Kauj Ruam (nrog Duab)

Video: Pw Tsaug Yooj Yim: 5 Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Hlis ntuj nqeg
Anonim
Pw Yooj Yim
Pw Yooj Yim
Pw Yooj Yim
Pw Yooj Yim

Nyob zoo, kuv lub npe yog Jakob. Kuv ua xua rau cov hmoov av hauv tsev thiab kuv muaj mob hawb pob. Nov yog qhov kev tshoov siab rau txoj haujlwm no. Rau kuv thawj xyoo ntawm MCT peb tau txais txoj haujlwm los ua ib qhov haujlwm los ntawm kos siv txhua qhov kev paub uas peb tau txais xyoo no.

Kuv tau xaiv los ua qee yam uas tuaj yeem pab tau kuv thiab cov neeg zoo li kuv uas muaj teeb meem ua xua. Feem ntau kuv tsis muaj teeb meem ntau thaum nruab hnub. Qhov teeb meem tiag yog thaum kuv tsaug zog thiab tswj tsis tau ib puag ncig kuv. Thaum hmo ntuj cua sov tuaj yeem nce, cov av noo tuaj yeem poob thiab huab cua zoo tuaj yeem ua rau tsis zoo. Txhua yam no tuaj yeem cuam tshuam rau txoj kev koj pw.

Kuv yuav lub tshuab nqus cua ib pliag rov qab thiab pom tam sim ntawd tias tsis muaj plua plav hauv huab cua thiab yog li ntawd kuv tuaj yeem tsaug zog zoo dua. Kuv tsis muaj qhov ntswg txhav thaum kuv sawv los thiab kuv tau so zoo, tab sis nws tsis zoo tag nrho. Kuv tseem yuav tsum tau qhib lub tshuab ua kom huv thiab tawm txhua lub sijhawm thiab tsis paub tiag thaum nws tsim nyog.

Nov yog qhov uas txoj haujlwm no tau los rau siab. Kuv txiav txim siab pib ntsuas qhov sib txawv, feem ntau yog: plua plav, huab cua zoo, kub thiab av noo. Nrog cov txiaj ntsig no kuv tuaj yeem tig kuv lub tshuab ua kom huv thiab kuv yuav muaj kev pom zoo dua ntawm qhov uas tuaj yeem ua rau kuv tsaug zog tsis zoo.

Nov yog kuv thawj qhov haujlwm thiab kuv hu nws tsaug zog yooj yim.

Khoom siv

Kuv txiav txim siab ntxiv lub tshuab ua pa rau kuv qhov haujlwm vim qhov tseem ceeb ntawm cov av noo ntawm kev pw tsaug zog zoo thiab nyob ib puag ncig kev noj qab haus huv. Kuv kuj muaj qee qhov teeb meem nyiag kuv lub tshuab lim cua kom tam sim no kuv tsuas yog siv lub kiv cua me me ua piv txwv.

Txhawm rau rov ua txoj haujlwm no qhov no yog yam koj yuav xav tau. Lub ntsiab:

  • 1 x Raspberry Pi thiab adapter
  • 1 x Arduino thiab USB cable
  • 1 x SD daim npav yam tsawg kawg 8gb

Actuators:

  • 1 x Cua purifier (me me 12v kiv cua)
  • 1 x Cua Humidifier (Medisana UHW)

Sensors:

  • 1 x DHT22
  • 1 x Grove - Huab Cua Zoo Sensor v1.3
  • 1 x Grove - Plua plav sensor

Cheebtsam:

  • 1 x 5V relay module
  • 1 x LCD Zaub 16x02
  • 1 x Khawm
  • 1 x Breadboard fais fab mov thiab adapter
  • 1 x 12v adapter
  • 4 qhov hluav taws xob qhov hluav taws xob

Cheebtsam me:

  • 1 x 10kOhm potentiometer/trimmer
  • 1 x transistor bc337
  • 1 x resistor 470-220Ohm
  • 1 x Diode
  • Txog 10 jumper xov hlau m/m
  • Txog 15 jumper xov hlau f/f
  • Txog 10 jumper xov hlau m/f

Rooj plaub:

Kuv tau siv qee cov ntoo kuv tau pw ib puag ncig tab sis koj tuaj yeem siv txhua yam los ua lub thawv me me.

Cov Cuab Yeej:

  • Ethernet Cable
  • Rauj
  • Soldering Hlau
  • Ntoo nplaum
  • Cov ntsia hlau me
  • Laum
  • Ntoo ntawv
  • Pom
  • Xim (xim uas koj nyiam)

Koj tuaj yeem pom Cov Nqi Ntawm Cov Khoom hauv qab no.

Kauj Ruam 1: Sib dhos Circuit & Raspberry Pi

Sib dhos Circuit & Raspberry Pi
Sib dhos Circuit & Raspberry Pi
Sib dhos Circuit & Raspberry Pi
Sib dhos Circuit & Raspberry Pi
Sib dhos Circuit & Raspberry Pi
Sib dhos Circuit & Raspberry Pi

Txuas nrog koj tuaj yeem pom daim ntawv qhia zaub mov thiab hluav taws xob kos duab.

Lub hauv paus tseem ceeb ntawm Circuit no yog cov ntsuas: DHT22 (Kub thiab Vaum), Huab Cua Zoo thiab Plua Plav Sensor thiab tus ua haujlwm: kiv cua thiab cua tshuab ua pa.

Tus kiv cua yog tswj los ntawm kev siv lub bc337 transistor. Yog tias koj siv lub tshuab ua kom lub tshuab lim cua tiag tiag nws yuav zaum nrog kev xa khoom zoo li lub tshuab ua kom cua txias.

Txij li muaj ntau ntau dawb GPIO pins kuv txuas lub LCD ncaj qha rau Raspberry Pi kom muaj kev sib txuas lus meej thiab nrawm.

Nco Ntsoov Sab: Kuv tau siv Arduino los nyeem hauv lub ntsuas cua rau qhov laj thawj tseem ceeb uas lub plua plav sensor xav tau qee lub sijhawm los xam cov hmoov av hauv cov huab cua thiab Arduino zoo dua rau cov haujlwm yooj yim no.

Thaum xub thawj kuv txuas nrog Arduino thiab Raspberry Pi nrog lub logic hloov pauv, tab sis kuv pom tau tias kuv tuaj yeem txuag tus adapter thiab qee cov xov txuas los ntawm kev txuas Arduino nrog usb cable ncaj qha rau Raspberry Pi.

Teeb tsa Raspberry Pi

Kuv tus phooj ywg kawm ntawv Killian Okladnicoff tau ua phau ntawv qhia zoo txog yuav teeb tsa Raspberry Pi rau txoj haujlwm zoo li no li cas. Txheeb tawm theem 2 ntawm nws txoj haujlwm rau phau ntawv qhia thiab txheeb xyuas nws qhov haujlwm ib yam!

Kauj Ruam 2: Tsim Rooj plaub

Tsim Rooj Plaub
Tsim Rooj Plaub
Tsim Rooj Plaub
Tsim Rooj Plaub
Tsim Rooj Plaub
Tsim Rooj Plaub

Hauv theem no koj tuaj yeem tsim kho ntau yam uas koj xav tsim rooj plaub. Kuv xaiv lub thawv ntawv yooj yim nrog cov zawv zawg kom kuv nkag tau mus rau sab hauv yooj yim. Rau cov ntaub ntawv kuv tsuas yog siv ntoo ntoo.

Hauv cov duab koj tuaj yeem pom thawj daim duab nrog txhua qhov ntsuas. Nws yog qhov tsim qauv yooj yim uas txhua tus neeg uas muaj txuj ci me me tuaj yeem ua tau.

Kauj Ruam 3: Teeb Lub Vev Xaib thiab Database

Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database
Teeb tsa Lub Vev Xaib thiab Database

Tom qab teeb tsa Raspberry Pi koj tuaj yeem siv Visual Studio Code nrog cov chaw taws teeb ssh txuas mus txuas rau koj Pi. Txuas nrog muaj pdf uas piav qhia yuav ua li cas kom tau txais cov ntawv hauv qhov chaw raug hauv txoj hauv kev yooj yim thiab yooj yim siv Github. Koj tuaj yeem pom kuv Github chaw cia khoom ntawm no.

Cov ntaub ntawv:

Los ntawm cov chaw cia khoom, rub tawm Database nplaub tshev rau koj lub khoos phis tawj. Koj yuav tsum tsim cov qauv ntaub ntawv ntawm koj tus Pi kom txuag tau txhua cov ntaub ntawv. Rau qhov no ua raws cov lus qhia hauv pdf. Koj yuav tsum rub tawm Mysql Workbench

Kev Xeem:

Yog tias koj ua raws li pdf txhua yam yuav tsum ua haujlwm. Yog tias koj txuas nrog Ethernet cable koj tuaj yeem nthwv mus rau 169.254.10.1 thiab koj yuav pom qhov home page ntawm lub vev xaib. Txawm li cas los xij qhov kawg rov qab tseem tsis tau ua haujlwm yog li koj yuav tsis pom cov ntaub ntawv tshiab ntawm lub vev xaib.

Yog tias koj qhib cov ntawv app.py hauv Visual Studio Code thiab khiav nws los ntawm txhaj rau daim duab peb sab ntsuab nyob ntawm kaum sab xis. Qhov kawg rov qab yuav pib xa cov ntaub ntawv mus rau lub database. Yog tias koj rov kho lub vev xaib hauv ob peb feeb koj yuav tsum tau pom qhov kub thiab txias tam sim no, huab cua zoo, thiab cov hmoov av ntau npaum li cas.

Lub Vev Xaib:

Hauv thawj nplooj ntawv koj tuaj yeem pom cov ntaub ntawv tam sim no.

Yog tias koj mus rau nplooj ntawv 'Toestel' koj tuaj yeem tig lub kiv cua/cua tshuab ua kom txias thiab tso tawm.

Ntawm nplooj ntawv 'Historiek' koj tuaj yeem pom daim duab qhia cov ntaub ntawv los ntawm cov hnub sib txawv.

Kauj ruam 4: Automation

Automation
Automation
Automation
Automation
Automation
Automation

Txhawm rau ua rau koj Pi pib qhov kawg tom qab txhua qhov pib koj yuav tsum teeb tsa ob peb lus txib.

Qhib koj Pi dua hauv Visual Studio Code thiab qhib lub davhlau ya nyob twg hauv qab.

Sau thawj lo lus txib:

Sudo nano /etc/systemd/system/Sleepeasy.service

Txuag nrog Ctrl + O thiab tawm nrog Ctrl + X

Koj tuaj yeem hloov lub npe thaum kawg mus rau yam koj xav tau.

Luam cov ntawv los ntawm cov ntawv txt hauv qab no rau hauv lub davhlau ya nyob twg.

Tom qab ntawd nkag mus rau cov lus txib hauv qab no:

  • Sudo systemctl daemon-reload
  • Sudo systemctl pab kom Sleepeasy.service
  • Sudo systemctl pib Sleepeasy.service
  • Sudo systemctl xwm txheej Sleepeasy.service

Nrog cov lus txib zaum kawg koj yuav tsum pom tias cov kev pabcuam tau pib thiab ua haujlwm. Tam sim no koj tuaj yeem sim rov pib dua nrog sudo rov pib dua.

Tom qab ob peb feeb qhov kev pabcuam yuav pib thiab koj yuav pom tus IP chaw nyob tshwm ntawm LCD.

Lus ceeb toom:

Qhov kev pabcuam yuav pib qeeb. Txhawm rau kho qhov no koj yuav tsum tshem "ip = 169.254.10.1" los ntawm khau raj/cmdline.txt cov ntaub ntawv.

Siv cov lus txib no los kho.

sudo nano /boot /cmdline.txt

Txuag nrog Ctrl + O thiab tawm nrog Ctrl + X

Kauj ruam 5: Thaum kawg

Ua tsaug rau koj nyeem Kuv Cov Lus Qhia. Kuv vam tias koj nyiam nws thiab tuaj yeem rov tsim txoj haujlwm no yam tsis muaj teeb meem ntau.

Yog tias koj muaj lus nug lossis lus pom zoo thov koj tawm tswv yim hauv qab no. Kuv yuav sim teb cov lus nug asap.

Nyob zoo, Jakob Soens

Pom zoo: