Cov txheej txheem:
- Kauj Ruam 1: Tau Txais Cov Khoom Uas Xav Tau
- Kauj Ruam 2: Txhim Kho Cov Ntaub Ntawv
- Kauj Ruam 3: Ua Tus Nplai
- Kauj Ruam 4: Teeb Raspberry PI (RPi)
- Kauj Ruam 5: Ua Circuit Court
- Kauj Ruam 6: HX711
- Kauj Ruam 7: Stepper Motor
- Kauj Ruam 8: 3D Luam Turbine
- Kauj Ruam 9: Txhim Kho MySQL
- Kauj ruam 10: Txhim Kho Txoj Cai
- Kauj Ruam 11: Yuav Siv Li Cas
Video: Tsis Siv Neeg Chicken Feeder: 11 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Tej zaum koj tau muaj qhov kev xav no dhau los, koj tab tom taug txoj hauv kev mus rau koj txoj haujlwm thiab tom qab ntawd koj xav txog yuav ua li cas koj tsis nco qab muab koj cov qaib noj tshais me ntsis. Kuv xav tias koj tuaj yeem muaj peev xwm siv Tsis Siv Neeg Chicken feeder tom qab ntawd! Nrog IoT-ntaus ntawv no koj cov qaib yuav ib txwm noj tshais raws sijhawm!
Ua ntej peb pib nrog tsim qhov txaus ntshai no, Kuv yuav xub qhia kuv tus kheej. Kuv yog Bertil Vandekerkhove (Kuv paub nws yog lub npe weird, tab sis tsuas yog mloog Google Txhais Lus. Nws ua txoj haujlwm yuav luag zoo tag nrho) thiab kuv yog tub ntxhais kawm ntawm Howest kawm NMCT! Cov ntawv qhia no yog cov lus qhia ib qib zuj zus ntawm yuav ua li cas kuv tsim kuv thawj xyoo kev ua haujlwm zaum kawg. Kuv vam tias koj yuav txaus siab rau nws thiab cia peb pib!
Kauj Ruam 1: Tau Txais Cov Khoom Uas Xav Tau
Hauv cov npe saum toj no koj tuaj yeem pom txhua cov ntaub ntawv xav tau rau txoj haujlwm no.
Kauj Ruam 2: Txhim Kho Cov Ntaub Ntawv
Ua ntej peb tuaj yeem tsim lub thawv ntawv peb yuav tsum tau txais qee yam khoom siv los tsim nws los ntawm. Kuv siv 8mm MDF, vim nws pheej yig heev thiab siv tau yooj yim. Yog tias koj yuav rov tsim dua qhov no koj tuaj yeem xaiv hom ntoo twg koj xav tau lossis txawm tias ua los ntawm cov hlau. Tab sis tsuas yog ua kom ntseeg tau tias qhov ntsuas tau raug rau koj cov ntoo tuab.
Cov ntawv ntoo uas koj xav tau yog (hauv cm):
- 2 x (100, 8 x 44, 6) - sab vaj huam sib luag
- 1 x (50, 8 x 100) - rov qab vaj huam sib luag
- 1 x (50 x 80) - pem hauv ntej vaj huam sib luag
- 1 x (50 x 40) - sab hauv pem hauv ntej vaj huam sib luag
- 1 x (51, 6 x 50) - vaj huam sib luag sab saum toj
- 2 x (3.6 x 8) - sab sab me me
- 1 x (8 x 51, 6) - frontpanel me dua
- 1 x (11, 4 x 49, 8) - plank rau qhov ntsuas
- 1 x (50 x 20) - pem hauv ntej vaj huam sib luag rau txee
- 2 x (50 x 25) - lub qhov taub
- 2 x (30 x 35) - lub qhov taub
- 1 x (50 x 38) - vaj huam sib luag sab saum toj rau txee
- 1 x (18 x 5) - txee rau lub cav
Thiab tom qab ntawd rau cov khoom noj khoom haus peb yuav xav tau (hauv cm):
- 1 x (30 x 16)
- 2 x (20 x 16) x 2 po
- 1 x (30 x 21, 6)
Peb pib tawm nrog cov vaj huam sib luag sab, txuas ob txoj kev pab thaiv ib lub vaj huam sib luag. Nyob rau sab saum toj ntawm lub vaj huam sib luag koj tso qhov kev pab thaiv ntawm 13cm los ntawm sab thiab hauv qab ntawm 8cm los ntawm sab. Rov ua qhov no rau lwm sab vaj huam sib luag
Tom qab ntawd coj lub vaj huam sib luag nraub qaum thiab ntxiv kev pab thaiv hauv plaub fab.
Tam sim no coj koj cov phab ntsa thiab lub vaj huam sib luag tom qab thiab ntsia hlau lawv togheter siv qee qhov 3, 5mm ntsia hlau, tom qab ntawd ntswj lub txee vaj huam sib luag rau hauv qhov chaw siv hauv qab pab thaiv. Tom qab ntawd coj lub vaj huam sib luag sab hauv sab hauv thiab ntsia nws hauv cov pab cuam saum toj. Tam sim no yog tias koj ua txhua yam kom raug nws yuav tsum zoo li daim duab 3.
Tom qab qhov no peb yuav ua lub raj rau cov zaub mov. Siv cov vaj huam sib luag sab xis pom lawv ua peb tog, 50x25 vaj huam sib luag yuav tsum yog 50x24 daim duab peb sab thiab 30x35 vaj huam sib luag 30x32 daim duab peb sab. Nco ntsoov tias daim duab peb sab tsis xaus rau ntawm ib qho tab sis nrog 2cm sab.
Txhawm rau ua kom lub qhov taub teeb tsa cov khoom nyob ib sab ntawm ib leeg thiab tuav lawv togheter nrog qee cov kab xev.
Txhawm rau muab lub raj xa mus rau hauv lub thawv txuas qee qhov kev pab cuam sab hauv ntawm 22 cm los ntawm sab saud raws li qhia hauv daim duab 7. Tom qab qhov no tso lub raj mis tso rau hauv qhov chaw thiab ntsia nws rau hauv cov chaw pab. Koj tuaj yeem sau qhov khoob nrog qee cov kab xev.
Tom qab ntawd koj nqa lub txee lub cev, cov yeeb nkab pvc thiab lub cev nws tus kheej. Muab lub qhov ntawm pvc yeeb nkab tso rau hauv qab lub raj thiab txuas nws mus rau lub txee nrog qee qhov kev sib txuas zip, ua tib yam rau lub cev muaj zog. Tom qab qhov no siv qee qhov kev pab cuam txhawm rau txuas lub txee rau sab nraub qaum.
Tom qab qhov no coj cov vaj huam sib luag los ua cov khoom noj khoom haus thiab txuas lub vaj huam sib luag tom qab ntawm nws mus rau lub txee lub cev thiab cov phaj hauv qab mus rau lub thawv ntawv.
Tam sim no coj lub vaj huam sib luag pem hauv ntej loj los txuas nws mus rau lub thawv ntawv nrog qee lub hinges thiab teeb tsa lub xauv sib nqus, ua tib yam rau saum vaj huam sib luag.
Kauj Ruam 3: Ua Tus Nplai
Txhawm rau ntsuas ntau npaum li cas cov zaub mov lawv tau nyob hauv de feeder peb xav tau cov nplai ua los ntawm lub cell load. Nqa cov xov tooj ntawm tes thiab ntsia hlau rau hauv ib qho me me ntawm cov ntoo thiab tom qab ntawd nqa cov nplai nplai thiab txuas nws mus rau lwm sab ntawm lub xovtooj ntawm tes siv qee qhov ntsia hlau thiab txiv ntseej. Xyuas kom nws nyob nruab nrab thiab qib. Tom qab qhov no nce qhov ntsuas mus rau hauv lub thawv thiab siv sab me- thiab cov vaj huam sib luag pem hauv ntej ib puag ncig nws.
Kauj Ruam 4: Teeb Raspberry PI (RPi)
Txhawm rau siv Rpi koj yuav xav tau OS rau RPi, Kuv tau xaiv los siv Rapsbian. Rub tawm cov ntawv los ntawm lub vev xaib thiab tom qab ntawd siv Etcher kom nws mus rau SD-daim npav. Tom qab qhov no ua tiav mus rau SC-card thiab tshawb nrhiav cov ntaub ntawv "cmdline.txt" thiab ntxiv tom kawg ntawm kab: "ip = 169.254.10.1". Tom qab ntawd koj tuaj yeem siv Putty los ua SSH-txuas nrog RPi los ntawm kev ntaus 169.254.10.1 hauv Putty ntawm Tus Tswv Lub Npe thiab nyem rau Qhib. Thaum koj thawj khau raj koj RPi koj yuav tsum nkag mus nrog cov ntaub ntawv pov thawj tom ntej: username = pi thiab password = raspberry.
Txhawm rau txuas nrog koj lub network hauv tsev koj yuav tsum ntaus tus lej hauv qab no:
sudo -i ua
ncha "password" | wpa_passphrase “SSID” >> /etc/wpa_supplicant/wpa_supplicant.conf
Ntaus sudo nano /etc/wpa_supplicant/wpa_supplicant.conf thiab xyuas yog tias koj lub network nyob ntawd.
sudo wpa_cli cov
wb wl0
luam theej duab
rov tsim dua tshiab
Kaw wpa_cli nrog txiav tawm lossis Ctrl+D.
Txheeb xyuas yog tias koj muaj vaild IP-address nrog:
ip addr qhia dev wlan0
Txhawm rau txhawm rau ntsuas koj qhov kev sib txuas nrog:
wget google.com ua
Kauj Ruam 5: Ua Circuit Court
Hauv cov duab saum toj no koj tuaj yeem pom cov txheej txheem ntawm cov ntawv luam tawm, nco ntsoov thaum koj ua cov no koj tsis luv dab tsi. Kuv xaiv tso T-cobbler, DRV8825 thiab HX711 ntawm poj niam lub taub hau yog li koj tuaj yeem yooj yim pauv lawv yog tias qhov no yuav tsum tsim nyog tab sis koj tsis tas yuav ua qhov no.
Kauj Ruam 6: HX711
Txhawm rau kom tau txais kev ntsuas ntawm lub xov tooj ntawm tes koj yuav tsum siv lub ntsuas qhov hnyav. Kuv siv HX711.
Kev sib txuas rau HX711:
- E+: liab hlau.
- E-: xaim dub.
- A+: xaim dawb.
- A-: ntsuab xaim.
- VCC: 5 V.
- SCK: GPIO 22.
- NTUJ: GPIO23.
- GND: NCO.
Tom qab koj tau txuas txhua yam, koj yuav tsum ntsuas qhov ntsuas ua ntej. Siv chav HX711 thiab tom qab ntawd cov cai hauv qab no:
hx = HX711 (23, 24) hx.set_reading_format ("LSB", "MSB") #hx.set_reference_unit (327) -> qhov no yuav tsum tau hais tawm hx.reset () hx.tare () val = hx.get_weight (5) pw tsaug zog (0.5) hx.power_down () hx.power_up () print (val)
Tam sim no cia tus lej khiav thiab tso qee yam ntawm qhov ntsuas. Xyuas kom koj paub qhov hnyav ntawm nws. Tos kom txog thaum koj zoo li 20 qhov txiaj ntsig thiab tom qab ntawd coj qhov nruab nrab ntawm nws. Tom qab ntawd koj faib tus lej no nrog qhov hnyav ntawm cov khoom koj siv. Tam sim no sau tus lej ntawd mus rau hx.set_reference_unit (tus lej) thiab tsis pom zoo nws. Kuaj nws tawm los ntawm kev muab cov khoom sib txawv ntawm qhov ntsuas.
Kauj Ruam 7: Stepper Motor
Pom tseeb peb xav tau qee cov khoom siv hluav taws xob los ua kom tag nrho cov haujlwm ua haujlwm. Txhawm rau tswj lub stepper lub cev peb xav tau tus tsav tsheb stepper, Kuv xaiv DRV8825.
Kev Sib Txuas rau DRV8825:
- VMOT: +12V (los ntawm DC-DC-hloov pauv).
- GND: GND (los ntawm DC-DC-hloov pauv).
Nco ntsoov tso lub capacitor nruab nrab ntawm ob.
- 2B: liab stepper hlau.
- 2A: xiav stepper hlau.
- 1B: dub stepper hlau.
- 1A: ntsuab stepper hlau.
- FAULT: koj tuaj yeem tso qhov tsis xav tau tab sis tseem tuaj yeem dai nws mus rau 5V.
- GND: GDN (los ntawm Raspberry PI (RPi)).
- ENABLE: tsis xav tau xaim.
- MS1-MS2-MS3: tsis xav tau xaim.
- RESET - SLEEP: txuas rau ib leeg thiab tom qab ntawd rau 3, 3V.
- KAUJ RUAM: GPIO20.
- PIB: GPIO21.
Ua ntej koj txuas txhua yam, tsuas yog txuas VMOT+GND, GND rau Rpi, RESET-SLEEP thiab STEP-DIR. Peb thawj zaug yuav tsum teeb tsa Vref rau tus tsav tsheb. Vref yuav tsum yog ib nrab ntawm qhov tam sim no stepper lub cev muaj zog xav tau. Rau lub cav no nws nyob ib puag ncig 600mV, ntsuas qhov hluav taws xob thiab cov ntsia hlau me me thiab tig nws kom txog thaum nws nyob ib puag ncig 600mV. Tom qab qhov no koj tuaj yeem txuas lwm cov xov hlau.
Kauj Ruam 8: 3D Luam Turbine
Txhawm rau thawb cov zaub mov los ntawm cov chaw tso dej mus rau qhov chaw pub mis koj yuav xav tau lub cav no. Rau cov tib neeg uas tsis muaj kev nkag mus rau 3D -tshuab luam ntawv koj ib txwm tuaj yeem siv 3D hub, zoo li qhov no -> HUB
Kauj Ruam 9: Txhim Kho MySQL
Txhawm rau khaws cov ntaub ntawv los ntawm cov kab ke muaj cov ntaub ntawv khaws cia rau hauv. Txhawm rau cia cov ntaub ntawv ua haujlwm peb xub tau teeb tsa MySQL ntawm RPi.
Ntaus cov lus txib hauv qab no hauv koj qhov kev sib txuas Putty:
sudo apt hloov tshiab
sudo apt install -y python3-mysqldb mariadb-server uwsgi nginx uwsgi-plugin-python3
Kuaj yog tias koj MariaDB ua haujlwm nrog:
sudo systemctl xwm txheej mysql
Tom qab qhov no peb yuav tsim ob peb tus neeg siv rau hauv peb cov database nrog cov lus txib hauv qab no:
Tsim tus neeg siv 'project-admin'@'localhost' IDENTIFIED BY 'adminpassword';
Tsim tus neeg siv 'project-web'@'localhost' IDENTIFIED BY 'webpassword';
Tsim qhov project DATABASE;
ZOO TSHAJ PLAWS NTAWV QHOV TSEEB.* Rau 'project-admin'@'localhost' NROG QHOV ZOO TSHAJ PLAWS;
GRANT SELECT, INSERT, Hloov tshiab, Rho tawm ntawm qhov project.* TO 'project-web'@'localhost';
Hloov tshiab mysql.user SET Super_Priv = 'Y' WHERE user = 'project-web' THIAB host = '%';
NTSEEG NTAWV QHOV TSEEB;
Tam sim no cov ntaub ntawv muaj nyob peb tuaj yeem sau cov ntaub ntawv nrog cov ntxhuav uas tsim nyog thiab txheej txheem khaws cia.
Thawj hom:
sudo -i ua
thiab tom qab ntawd:
mariadb
tom qab qhov no, theej cov cai hauv Projectdb.sql dhau los nws rau hauv mariadb.
Yog tias qhov no ua haujlwm ces koj ua tib yam rau lwm peb.sql cov ntaub ntawv thiab koj xaus nrog:
NTSEEG NTAWV QHOV TSEEB;
Yog tias txhua yam mus zoo koj cov ntaub ntawv tam sim no npaj mus!
PS: Yog tias qee yam tsis ua haujlwm, nco ntsoov … Google yog koj tus phooj ywg;-)!
Kauj ruam 10: Txhim Kho Txoj Cai
Tam sim no peb tuaj yeem thaum kawg teeb tsa cov cai mus rau RPi, rub tawm cov cai los ntawm github thiab teeb tsa nws ntawm RPi siv Pycharm. Koj tuaj yeem pom cov lus qhia zoo yuav ua li cas ntawm no -> qhia.
Tau txais cov cai ntawm no: Code
Kauj Ruam 11: Yuav Siv Li Cas
- Muab ob lub ntsaws rau hauv.
- Tos me ntsis rau lub vev xaib server pib.
- Ntaus tus IP ntawm koj RPi rau hauv qhov browser.
- Ntawm 'lub tsev'-screen koj tuaj yeem pom daim duab qhia zaub mov ntsuas.
- Ntawm 'sijhawm pub mis'-tshuaj ntsuam koj tuaj yeem teev sijhawm pub mis.
- Ntawm 'keeb kwm'-nplooj ntawv koj tuaj yeem pom keeb kwm tso nyiaj.
Pom zoo:
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: 18 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: Peb tau Ua Kov Tsis Pub Siv Gumball Siv lub micro: me ntsis, Crazy Circuits Bit Board, ntsuas qhov deb, siv servo, thiab duab los qhia. Ua nws thiab siv nws yog "BLAST" "! ? ? Thaum koj tso koj txhais tes rau hauv lub hauv paus ntawm lub foob pob hluav taws, lub ntsuas qhov deb
Tsis Siv Neeg Tsiaj Feeder Siv AtTiny85: 6 Cov Kauj Ruam
Tsis Siv Neeg Tsiaj Feeder Siv AtTiny85: O trabalho Tsis Siv Neeg Tsiaj Feeder Siv AtTiny85 de PET Engenharia de Computação está licenciado com uma Licença Creative Commons - Atribuição 4.0 Internacional
Tsis Siv Neeg Chicken Coop: 7 Kauj Ruam
Tsis Siv Neeg Qaib Coop: Dab tsi? Txoj haujlwm no yog qaib qaib tsis siv neeg. Nws ntsuas cov dej thiab qib pub mis ntawm lub raj mis thiab lub raj mis nws kuj tseem yuav qhib thiab kaw tau. Qhov no yuav tshwm sim ntawm lub sijhawm lossis hnub pom kev. Thaum lub qhov rooj raug kaw nws tuaj yeem qhib los ntawm c
Tsis Siv Neeg Chicken House Project: 7 Kauj Ruam
Tsis Siv Neeg Chicken House Project: Raws li ib feem ntawm peb tus tswv thib 2 ’ s Kev Tshawb Fawb Kev Tshawb Fawb hauv tshuab hluav taws xob, peb yuav tsum paub qhov haujlwm nrog daim npav Arduino lossis Raspberry Pi. Txoj haujlwm yuav tsum tso cai los daws qhov teeb meem uas twb muaj lawm. Peb tes num yog Tsis Siv Neeg Chicken House
Tsis Siv Neeg Tsiaj Feeder Siv Tus Qub Digital Saib: 10 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Tsiaj Feeder Siv Tus Qub Digital Saib: Nyob zoo, hauv cov lus qhia no kuv yuav qhia koj li cas kuv tau ua Tus Tsis Siv Neeg Tsiaj Feeder siv lub Digital Digital Watch. Ive kuj tau teeb tsa cov vis dis aus ntawm yuav ua li cas kuv thiaj ua tus pub mis no. Cov lus qhia no yuav raug nkag mus rau hauv PCB kev sib tw thiab raws li qhov kuv nyiam