Cov txheej txheem:

SmartFeeder: 10 Kauj Ruam
SmartFeeder: 10 Kauj Ruam

Video: SmartFeeder: 10 Kauj Ruam

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

Txhua tus tswv dev tau hnov qab pub zaub mov rau lawv tus tsiaj tsawg kawg ib zaug hauv lawv lub neej. Thiab kuv xav ua qee yam uas thaum koj tsis nco pub koj tus tsiaj ua ntej koj tawm mus, koj tseem tuaj yeem ua nws nyob deb lossis tej zaum tom qab qee lub sijhawm.

Hauv txoj haujlwm no peb tab tom yuav ua tus pub dev tsis siv neeg uas tuaj yeem tswj tau ntawm lub vev xaib. Lub vev xaib no yuav qhia koj cov ntaub ntawv ntawm cov zaub mov muaj nyob hauv lub tais thiab lub sijhawm nws tau rov ua dua lossis yog tias tus dev tau noj zaub mov.

Kuj tseem muaj teeb tsa uas yuav kho tau rau koj (lossis koj tus dev) xav tau.

Kauj Ruam 1: Cov khoom siv

Cov ntaub ntawv:

  • Raspberry Pi
  • 16GB SD daim npav
  • daim ntawv qhia zaub mov
  • jumper cov kab
  • ultra siab sonic sensor
  • siv
  • load cell (Kuv siv 5kg)
  • load cell amplifier (HX711)
  • yas/ntoo rau vaj tsev ntawm txoj haujlwm no
  • yas tais (rau lub xovtooj ntawm tes)

Cov Cuab Yeej:

  • Ntsia Hlau
  • Ntsia Hlau
  • Laum
  • Pom
  • Sanding ntawv
  • Super kua nplaum/Silicon (thiab phom silicon)

Kauj ruam 2: Kho RPI

Thawj kauj ruam kuv tau ua yog teeb tsa ntawm kuv tus raspberry pi, yog li kuv tau tshem txhua yam ntawm kuv daim npav SD thiab tso ib daim duab rau nws nrog Win32diskmanager nrog qhov no peb tuaj yeem sau Raspbian rau ntawd.

Kauj Ruam 3: SSH rau RPI rau Wireless

Tom qab cov duab raug teeb tsa, koj tuaj yeem tso lub ethernet cable rau hauv koj Pi thiab pc. mus rau qhov hais kom sai thiab ntaus ipconfig. Hauv qhov thaiv cov ntawv nrog "ethernet adapter" yuav tsum muaj tus IP-chaw nyob. Tus IP chaw nyob no yog qhov peb yuav mus rau SSH. Kuv siv PuTTY los ua cov kauj ruam no. Ntawm no koj yuav tsum ntxig tus IP thiab chaw nres nkoj (22 rau SSH), thiab ntxig koj tus password kom tau txais ntawm Pi (tus lej cim tus lej yog 'raspberry'). Ntawm no peb yuav tsum hloov peb lub network teeb tsa kom peb tuaj yeem txuas wireless. Nov yog lo lus txib kom ua qhov no "wpa_passphrase nameofnetwork" thiab tom qab qhov no koj yuav tsum sau tus password. Kev thaiv cov ntawv nrog network {…} yuav tshwm tuaj, luam qhov no thiab ntaus "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf". Hauv qhov no koj yuav tsum muab cov ntawv sau ua ntej rau hauv qab ntawm cov ntawv.

Tom qab qhov no koj tuaj yeem rov pib dua koj Pi.

Kauj Ruam 4: Txuas Nrog VS Code

Rau qhov coding peb xav tau Visual studio code. Thaum koj tau ua qhov no lawm koj yuav tsum tsis yog lub plugin rau SSH. Thaum qhov no tau teeb tsa koj tuaj yeem nyem rau hauv qab sab laug lossis qhib lub davhlau ya nyob twg thiab ntaus SSH pi@ipadress. Tom qab qhov no koj yuav tsum tso koj tus password thiab peb tuaj yeem pib coding.

Kauj ruam 5: Coding

Tam sim no peb yuav tsum teeb tsa lub vev xaib, koj tuaj yeem qhib daim nplaub tshev hauv vscode, mus rau var/www/html thiab ntawm no peb pib.

Ntawm no yuav los peb HTML, CSS, Duab thiab Javascript.

Tam sim no peb tuaj yeem qhib lwm daim nplaub tshev hauv tib qhov chaw ua haujlwm. Kuv muab hu ua kuv qhov haujlwm thiab tso qhov no rau hauv daim nplaub tshev tsev ntawm kuv tus pi. Nov yuav tuaj txhua yam rov qab cuam tshuam (yog li feem ntau ntawm cov ntaub ntawv nab nab).

Kauj Ruam 6: Sau Cov Khoom Siv rau Vaj Tsev

Sau Cov Khoom Rau Vaj Tsev
Sau Cov Khoom Rau Vaj Tsev
Sau Cov Khoom Rau Vaj Tsev
Sau Cov Khoom Rau Vaj Tsev
Sau Cov Khoom Rau Vaj Tsev
Sau Cov Khoom Rau Vaj Tsev

Rau vaj tsev kuv siv ntoo thiab phaj yas uas kuv txiav ua tej daim.

L daim yog 50x50 TAB SIS Kuv txiav tawm ib daim los ntawm 20x40. Qhov no yuav tsum tau ua ob zaug rau ob tog.

Cov pluaj nyias yog rau hauv qab thiab phaj rov qab. Cov no yog 20x50 ob qho tib si (ceeb toom: koj yuav tsum txiav ib qho luv dua tom qab sib dhos.)

Tom qab ntawd peb yuav xav tau ib daim uas yog 20x40 (koj tuaj yeem siv qhov seem uas tawm thaum txiav cov duab L) rau sab xub ntiag.

Ntawm no kuv cim ib nrab-lub voj voog rau cov zaub mov tawm tuaj.

Tom ntej no peb xav tau 2 daim phiaj me me uas yog 20x10 thiab 18x10 (18 dav vim tias cov phiaj ntoo yog 1cm tuab, yog li nws yuav yooj yim). qhov no yog rau lub tais uas lub tais yuav. (koj tuaj yeem laum tag nrho hauv 18x10 plank rau cov xov hlau ntawm lub xov tooj ntawm tes.)

Kauj Ruam 7: Sib dhos Sab Nrauv

Los Ua Ke Ntawm Sab Nraud
Los Ua Ke Ntawm Sab Nraud
Los Ua Ke Ntawm Sab Nraud
Los Ua Ke Ntawm Sab Nraud

Tom ntej no peb yuav ntsia hlau txhua qhov ua ke yog li peb paub tias nws yuav zoo li cas.

Kuv siv 9 tus ntsia hlau rau sab xub ntiag, 14 tus ntsia hlau rau ob sab.

Kauj Ruam 8: Nqes hav

Nqes hav
Nqes hav

Tom ntej no kuv ua ib txoj kab nqes hav nrog ntoo, sab saum toj yog lub plank ntawm 18x40cm thiab ib qho uas mus rau lub tais yog nyob rau sab saum toj 40cm dav tab sis mus me dua rau lub qhov nyob rau hauv. qhov ntev kuj yog 40cm. Kuv ntxiv tus tiv thaiv kab xev ntxiv kom cov zaub mov tsis txhob nchuav rau hauv tsev.

Kauj Ruam 9: Txuas cov nqes hav

Txuas cov nqes hav
Txuas cov nqes hav

Kuv txuas qhov nqes hav nrog cov ntsia hlau los ntawm kev ntxiv daim phiaj ntxiv rau txoj kab nqes nws tus kheej. Koj tseem tuaj yeem siv super kua nplaum lossis silicon.

Kauj ruam 10: Electronics

Qhov no tseem tab tom tsim

Pom zoo: