Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj ruam 2: Tsim Circuit Court
- Kauj Ruam 3: Kev Sib Txuas rau Raspberry Pi
- Kauj Ruam 4: Qhib SPI
- Kauj Ruam 5: Teeb tsa Web Server
- Kauj Ruam 6: Teeb Tus Xa Ntawv Xa Ntawv
- Kauj Ruam 7: Hloov Cov Ntaub Ntawv Python
- Kauj Ruam 8: Teeb SQL + Ntshuam Database
- Kauj Ruam 9: Pib Qhov Kev Pab Cuam Thaum Koj Txuas Hluav Taws Xob
- Kauj ruam 10: Ntxiv Kev Txhais Lus
- Kauj Ruam 11: Tus Neeg Siv Phau Ntawv + Ua Tsaug
Video: FoodPlate: Phaj Uas Khaws Koj Cov Khoom Noj Kom sov: 11 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Koj puas tau ntsib dua tias koj cov zaub mov tau txias thaum koj tseem noj mov?
Hauv cov lus qhia no, Kuv yuav koj piav qhia yuav ua li cas ua kom cov phaj sov. Tsis tas li, daim phaj no yuav ua kom ntseeg tau tias tsis muaj dab tsi tuaj yeem poob los ntawm nws los ntawm kev khoov nws.
Qhov txuas rau kuv GitHub yog:
Kauj Ruam 1: Cheeb Tsam
Txog qhov haujlwm no peb xav tau cov khoom siv/cov cuab yeej/Cov khoom hauv qab no:
Cheebtsam
- Raspberry Pi 3 qauv B+ (€ 35, 66)
- Raspberry Pi fais fab mov (€ 18.95) (Daim duab 1)
- PCB RAU PED PLATE RAU K8200 - 3D tshuab luam ntawv (ZOO TSHAJ PLAWS) (€ 31.00) (Duab 2)
- NTC (€ 2.00) (Daim duab 3)
- Fais fab mov rau PCB (€ 35.11) (Duab 4+5)
- Relay - 3.3V rau Pi !!! (€ 4.40) (Duab 6)
- MPU-6050 (gyros + accelero) (€ 3.95) (duab 7)
- Load cell - 1KG (€ 4.96) (Daim duab 8)
- HX711 (rau load cell) (Sits by Load cell) (Daim duab 9)
- LCD (€ 16.07) (Duab 10)
- Buzzer nquag (€ 2.83) (Duab 11)
- Trimmer (€ 0, 63)
- 7 "JUMPER WIRES, 30 STUKS (€ 17, 97)
Cov cuab yeej
- Soldering hlau
- Phom phom
- Saber sawv
Khoom siv
Ntoo
Saib daim ntawv Excel kom ua tiav daim ntawv teev npe.
Tus nqi tag nrho ntawm txoj haujlwm no yog 3 183.
Kauj ruam 2: Tsim Circuit Court
Thawj kauj ruam koj yuav tsum tsim lub Circuit Court (saib PDF 1 + 2 + duab 3 + 4)
Nws yog qhov zoo tshaj plaws uas koj ua qhov no ua ntej ntawm lub khob cij. Tom qab ntawd, koj tuaj yeem txhuam txhua yam ua ke. Koj tuaj yeem siv rab yaj phom los ntxiv dag zog rau kev ua haujlwm.
Tom qab ntawd koj muab txhua yam tso rau hauv lub thawv ntoo ntawm 35 x 33 x 5, 5cm. Koj tuaj yeem pom qhov nrog lub saber pom.
Tom qab ntawd tso lub cell load rau ntawm lub platform kom lub phaj cua sov nyob ntawm nws.
Ceev cov cua sov phaj nrog cov ntsia hlau. Muab cov springs ncig cov ntsia hlau kom lub phaj ib txwm tuaj.
Kauj Ruam 3: Kev Sib Txuas rau Raspberry Pi
Ua ntej koj rub tawm thiab nruab qhov dawb version ntawm MobaXterm (https://mobaxterm.mobatek.net/download.html) thiab Raspbian (https://www.raspberrypi.org/downloads/raspbian/)
Tom qab ntawd qhib qhov program thiab nyem rau ntawm "Session" nyob rau sab saud sab saud.
Tom qab ntawd sau rau hauv IP chaw nyob ntawm Pi hauv qab "Tus tswv tsev nyob deb". Ntawm "Qhia meej lub npe" sau koj lub npe siv. Tom qab ntawd koj nias "OK" hauv qab ntawm qhov screen.
Thaum koj tau ua tiav qhov no, nws yuav cia li pib kev sib txuas. Tom qab qhov no koj yuav tsum nkag mus rau koj tus password. Tam sim no koj muaj kev sib txuas nrog koj Pi.
Kauj Ruam 4: Qhib SPI
Vim tias peb siv MCP3008, peb yuav tsum qhib SPI.
Txog qhov no koj ntaus hauv MobaXterm: "sudo raspi-config".
Tom qab ntawv, koj xaiv "Interface Options".
Tom qab ntawv nyem rau "SPI". Tom qab ntawv, nyem rau "Yog".
Tom qab ntawd mus rau MobaXterm thiab nkag mus rau cov lus txib hauv qab no:
sudo apt-tau nruab python3-spidev
Kauj Ruam 5: Teeb tsa Web Server
Tam sim no koj rov qab mus rau MobaXterm console.
Ua ntej peb yuav ua qhov hloov tshiab thiab hloov kho ntawm Raspbian yog li peb muaj qhov hloov tshiab kawg. Koj tuaj yeem ua qhov no nrog cov lus txib hauv qab no:
- sudo apt-tau hloov tshiab
- sudo apt-tau hloov tshiab
Tom qab ntawd peb yuav nruab Apache. Nrog rau qhov kev teeb tsa no koj tuaj yeem saib lub vev xaib ntawm txhua lub cuab yeej hauv koj lub network.
Koj ua qhov no nrog cov lus txib hauv qab no:
sudo apt-tau nruab apache2
Tam sim no mus rau daim nplaub tshev tom ntej los ntawm kev sau cov kab no hauv kab (saib daim duab 5):
/var/www/html/
Ntawm no koj tuaj yeem tso tag nrho cov ntaub ntawv los ntawm "Pem Hauv Ntej" nplaub tshev.
Koj tuaj yeem ua qhov no los ntawm txhaj rau lub cim tso tawm (saib daim duab 6).
Kauj Ruam 6: Teeb Tus Xa Ntawv Xa Ntawv
Ua ntej tshaj plaws, koj yuav tsum tsim tus as khauj ntawm Gmail.
Tom qab ntawd nthwv mus rau lub vev xaib no thiab teeb nws rau "On" (https://myaccount.google.com/u/1/lesssecureapps?pli=1&pageId=none).
Tom qab ntawv, qhib "class_mail.py" siv cov ntawv sau. Qhov no tuaj yeem pom hauv daim nplaub tshev "cov chav kawm". Tom qab ntawv, koj tuaj yeem hloov email chaw nyob thiab tus lej zais uas tau siv rau koj tus lej Gmail.
Kauj Ruam 7: Hloov Cov Ntaub Ntawv Python
Tam sim no peb tab tom sim ua kom rov qab ua haujlwm.
Ua ntej koj tsim daim nplaub tshev tshiab hu ua "project1".
Tom qab ntawd upload tag nrho.py cov ntaub ntawv los ntawm "Backend" nplaub tshev rau hauv nws.
Tam sim no peb tuaj yeem pib ntawm SQL server.
Kauj Ruam 8: Teeb SQL + Ntshuam Database
Kev sib txuas rau lub database
Ua ntej koj nruab MySQL workbench. (Nyem qhov no mus rau MySQL lub vev xaib)
Tom qab ntawd qhib MySQL Workbench thiab nyem rau ntawm qhov kos npe ntxiv (saib duab 1).
Tom qab ntawd sau rau hauv cov teb hauv qab no (saib duab 2):
-
Lub npe kev sib txuas
- Lub npe ntawm kev sib txuas
- Piv txwv li: Project1
-
Hostname
- Tus IP chaw nyob uas koj Pi txuas nrog.
- Piv txwv li: 169.254.10.1
-
Chaw nres nkoj
3306
-
Tus neeg siv lub npe
Lub npe siv uas koj siv los teeb tsa koj li MariaDB nrog
Tom qab ntawv nyem rau "Test connection".
Tam sim no koj pom koj qhov kev sib txuas (saib duab 3). Txhawm rau qhib nws, ob npaug nias rau nws.
Ntshuam lub database
Txhawm rau ntshuam cov ntaub ntawv khaws tseg, nyem rau ntawm "Cov ntaub ntawv ntshuam/Restore" nyob rau sab laug. (duab 4)
Tom qab ntawd, koj xaiv hauv qab "Ntshuam los ntawm Cov Ntaub Ntawv Tus Kheej" sql-file uas koj tuaj yeem pom hauv Github chaw cia khoom hauv daim nplaub tshev "Database".
Yog tias qhov no ua tiav, koj tuaj yeem mus rau theem tom ntej uas koj tuaj yeem pib qhov haujlwm tau txais thaum koj ntsaws rau hauv pawg thawj coj.
Kauj Ruam 9: Pib Qhov Kev Pab Cuam Thaum Koj Txuas Hluav Taws Xob
Thawj zaug mus rau MobaXterm.
Tom qab ntawd ntaus cov lus txib hauv qab no:
sudo crontab -e
Tom qab ntawv ntaus tus lej 2.
Tam sim no ntaus cov lus txib hauv qab no:
@reboot python3.5 /home/dp-user/Documents/project1/app.py
Tom qab ntawd koj ua qhov tseem ceeb ua ke hauv qab no:
ctrl+x os
Tom qab ntawv nyem rau "y". Tom qab ntawd nyem rau nkag mus.
Thaum kawg, ntaus cov lus txib hauv qab no
sudo rov pib dua
Kauj ruam 10: Ntxiv Kev Txhais Lus
Txhawm rau ntxiv kev txhais lus, pib "Translation_add.py". Koj tuaj yeem ua qhov no los ntawm kev mus rau daim nplaub tshev "project1" (ntawm cd), thiab ua raws cov lus txib hauv qab no:
- cd/tsev // Cov Ntaub Ntawv/project1 (Hais kom mus rau sab xis)
- python3.5 Txhais lus_add.py
Tom qab ntawd koj sau cov lus Askiv, Dutch thiab Fabkis lo lus lossis kab lus.
Tom qab ntawv nyem rau nkag. Tam sim no cov lus/kab lus nyob hauv lub database.
Kauj Ruam 11: Tus Neeg Siv Phau Ntawv + Ua Tsaug
Hauv kab lus no koj yuav pom yuav siv lub vev xaib li cas.
Ua tsaug rau koj nyeem cov ntawv qhia no thiab vam tias koj cov zaub mov yuav tsis txias dua.
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Yuav Ua Li Cas Kom Tau Txais Kev Kuj/Capacitance Siv Cov Khoom Uas Koj Muaj Lawm!: 6 Cov Kauj Ruam
Yuav Ua Li Cas Ua Kom Muaj Kev Kuj/Muaj Peev Xwm Siv Cov Cheeb Tsam Koj Twb Muaj!: Qhov no tsis yog tsuas yog lwm qhov/sib npaug sib npaug tiv taus lub laij lej! Qhov kev pabcuam no suav yuav ua li cas ua ke cov resistors/capacitors uas koj tam sim no yuav tsum ua tiav lub hom phiaj tsis kam/lub peev xwm tus nqi uas koj xav tau.Koj puas tau xav tau tshwj xeeb
Nyob sov lub caij ntuj no: CPU Tes Ua Kom sov: 4 Cov Kauj Ruam (nrog Duab)
Nyob Zoo Lub Caij Ntuj No: CPU Tes Ua Kom sov: Hauv qhov haujlwm me me no kuv yuav qhia koj li cas kuv rov txhim kho AMD CPU qub los tsim lub me me, lub teeb thiab yooj yim siv hluav taws xob tes sov. Nrog kev pab ntawm lub txhab nyiaj hluav taws xob me me lub cuab yeej no tuaj yeem ua kom sov koj li ntawm 2 thiab ib nrab teev thiab tuaj yeem yooj yim
Nkaum Koj Cov Khoom thiab Cov Ntaub Ntawv - Khaws Kom Zoo Los Ntawm Lub Ntiaj Teb: 8 Kauj Ruam
Nkaum Koj Cov Khoom thiab Cov Ntaub Ntawv - Khaws Kom Zoo Los Ntawm Lub Ntiaj Teb: Lub ntiaj teb zoo nkauj ib txwm muaj ntau qhov xav tsis thoob. Kuv qhia rau koj me ntsis ntawm kuv qhov kev paub kom kuv tus kheej thiab kuv cov khoom muaj kev nyab xeeb. Vam tias nws yuav pab koj
Ua Haujlwm Rau Koj Lub Khoos phis tawj kom txiav tawm ncaj qha los ntawm Kev Kos Npe Lub Sijhawm Uas Koj Xav Kom Nws Ua Li No: 4 Kauj Ruam
Ua Haujlwm Rau Koj Lub Khoos phis tawj kom txiav tawm ncaj qha los ntawm Lub Sijhawm Uas Koj Xav Kom Nws Ua Li No: Hav, qhov ntawd yog lwm cov lus qhia coj los ntawm kuv lub neej txhua hnub … zaum kawg kuv tau rub ntau software rau kuv lub PC thiab kuv yuav tsum cia nws rub tawm hmo ntuj, kuv tsis xav kom kuv lub PC qhib txhua hmo ntev tom qab ua tiav rub tawm thiab ntawm