Cov txheej txheem:

Auto PetFeeder: 5 Kauj Ruam
Auto PetFeeder: 5 Kauj Ruam

Video: Auto PetFeeder: 5 Kauj Ruam

Video: Auto PetFeeder: 5 Kauj Ruam
Video: Автоматическая кормушка для кошек и собак. Автокормушка Automatic Pet Feeder 4PLDH5001 с таймером. 2024, Kaum ib hlis
Anonim
Nws pib PetFeeder
Nws pib PetFeeder

Nyob zoo, kuv lub npe yog Gilian, Kuv kawm ntawm Howest Kortrijk Belgium thiab kuv yog tub ntxhais kawm MCT raws li txoj haujlwm kawg kuv yuav tsum ua IOT-ntaus ntawv.

Kuv muaj tus aub nyob hauv tsev uas tau noj 2 zaug hauv ib hnub ntawm lub sijhawm tshwj xeeb thiab cov zaub mov tau ceev heev yog li ob zaug ib hnub peb hnyav 56 grams zaub mov thiab pub rau nws. Yog li kuv tau tsim lub cuab yeej uas siv cov txheej txheem no thiab nws hu ua PetFeeder. Ntawm lub vev xaib koj tuaj yeem ntxiv ntau lub sijhawm los ntawm kev xaiv lub sijhawm thiab qhia qhov hnyav ntawm cov zaub mov uas koj xav kom faib. Yog tias koj tsis xav tos mus rau lub sijhawm pub mis tom ntej ntawm nplooj ntawv hauv tsev yog lub pob uas faib cov zaub mov tam sim ntawd.

Kauj ruam 1: Cov ntaub ntawv

Sab hauv rooj plaub yog lub tshuab ntsia hlau uas thawb cov zaub mov qhuav rau hauv lub tais, kuv tsis tau tsim qhov no rau kuv tus kheej vim tias kuv pom qhov kuv xav tau ntawm yam khoom txawv thiab xav tau los ntawm George Tsianakas. Kev tsim thiab rub tawm rau yam kuv siv, koj tuaj yeem pom ntawm no.

Hauv qab no yog cov npe ntawm ntu uas koj xav tau ntxiv rau txoj haujlwm no.

  • raspberry pib
  • micro SD daim npav (yam tsawg kawg 8gb)
  • 20x4 lcd screen nrog i2c module nyob tom qab
  • teb incoder + pob qhov rooj
  • srf-05 ultrasonic sensor
  • 1kg loadcell + hx711 amplifier
  • 12/5v fais fab mov
  • nema 17 stepper tsav + drv8825 stepperdriver
  • 2 resistors (2 kohm thiab 1 kohm)
  • 40 tus pin flatcable + cobler

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Cov kauj ruam tom ntej yog xaim txhua yam ntawm lub khob cij thiab ntsuas yog tias txhua yam ua haujlwm. Koj tuaj yeem tso nws txoj hauv kev no tab sis kuv txiav txim siab muab txhua yam tso rau ntawm tus protoboard kom txhua yam zoo dua qub thiab tsis hnyav dua thiab siv thaj chaw hauv rooj plaub tom qab.

Kauj ruam 3: Database

Database
Database

Txoj haujlwm no ua rau siv cov ntaub ntawv khaws cia cov ntaub ntawv sensor thiab txhua lub sijhawm pub mis thiab wieghts uas mus nrog nws. Muaj 3 lub rooj:

  • Pub mis nyob qhov twg txhua lub sijhawm thiab qhov hnyav koj tso rau hauv lub vev xaib raug cawm.
  • Keeb kwm qhov twg qhov txiaj ntsig ntawm lub ntsuas hluav taws xob ultrasonic tau khaws cia nrog rau hnub sau cia
  • Sensors qhov twg al sensors yog uas tau siv hauv txoj haujlwm tau txais kev cawmdim nrog tus ID rau tam sim no tus nqi uas yog los ntawm dab tsi sensor hauv keeb kwm lub rooj.

Kauj ruam 4: Code

Ua ntej koj yuav tsum teeb tsa apache2 kom koj lub vev xaib ua haujlwm, qhov no koj tuaj yeem ua tau los ntawm cov lus txib hauv qab no hauv qhov kub ntawm koj tus pi.

sudo apt nruab apache2 -y

Koj kaw kuj teeb tsa lub wireless txuas rau koj tus pi vim tias tom qab koj muab txhua yam tso rau hauv rooj plaub koj yuav tsis tuaj yeem ntsaws rau hauv ethernet cable tau yooj yim.

Koj kuj tseem yuav tsum teeb tsa MariaDB database yog li koj tuaj yeem nkag mus rau nws.

Tom qab ua tiav qhov no koj tuaj yeem tso cov ntawv txuas rau hauv cov ntawv hauv qab no:/var/www/html

Tus lej backend koj nyuam qhuav muab tso rau hauv lub tsev ntawv tais ceev tseg.

Nws kuj tseem yooj yim los ua qhov kev pabcuam ntawm app.py yog li thaum koj pib khau raj cov haujlwm ua haujlwm tsis siv neeg. Txhawm rau ua qhov no koj tsuas yog yuav tsum tau theej cov ntawv pabcuam (uas suav nrog hauv zip file hauv qab) mus rau daim nplaub tshev raug nrog cov lus txib hauv qab no:

sudo cp petfeeder.service/etc/systemd/system/petfeeder.service

Kauj ruam 5: Rooj plaub

Case
Case
Case
Case
Case
Case
Case
Case

Txog qhov kuv tsim nws hauv Fusion 360 thiab xa cov duab kos rau dxf cov ntaub ntawv mus rau lasercut ntawm qhov chaw hauv zos uas kuv paub. Kuv tsim nws nrog cov ntiv tes sib txuas kom txhua yam haum zoo ua ke. Tom qab nws tau txiav tawm kuv glued lub pannels ua ke exept rau lub vaj huam sib luag tom qab thiab nruab nrab vaj huam sib luag qhov twg lcd thiab ultrasonic sensor tau muab tso rau tseem muaj qhov yooj yim nkag mus rau txhua yam yuav tsum tau hloov pauv tom qab. Txawm hais tias lawv tsis tau glued lawv nyob kaw zoo vim yog cov ntiv tes sib txuas.

Qhov ntawd yog txhua yam kuv vam tias koj txaus siab rau txoj haujlwm no. - Gilian

Pom zoo: