Cov txheej txheem:

Ntse Tsiaj Feeder: 11 Kauj Ruam
Ntse Tsiaj Feeder: 11 Kauj Ruam

Video: Ntse Tsiaj Feeder: 11 Kauj Ruam

Video: Ntse Tsiaj Feeder: 11 Kauj Ruam
Video: 6 Nqi Lus Qhia Kev Ua neej ( leej twg mloog lub neej yuav zoo tuaj) 2024, Kaum ib hlis
Anonim
Ntse Tsiaj Feeder
Ntse Tsiaj Feeder

Kuv yog menyuam kawm ntawv ntawm Howest Kortrijk Academy hauv Belgium. Kuv ua tus pub mis tshwj xeeb tshaj yog rau miv thiab dev. Kuv ua qhov haujlwm no rau kuv tus dev. Ntau zaus kuv tsis nyob hauv tsev los pub kuv tus dev thaum yav tsaus ntuj. Vim li ntawd kuv tus dev yuav tsum tau tos kom nws tau zaub mov. Nrog txoj haujlwm no nws yuav tau txais nws cov zaub mov ntawm lub sijhawm uas kuv xaiv. Koj tseem tuaj yeem tswj cov zaub mov uas koj tus dev tau txais. Nws yog txoj hauv kev yooj yim rau cov tswv kom pub lawv cov tsiaj. Yog li lawv tsis tas yuav txhawj xeeb txog kev pub zaub mov rau lawv tus tsiaj yog tias lawv tsis nyob hauv tsev.

Kuv ua nws nrog Raspberry Pi thiab ntau yam khoom siv. Txhua cov ntaub ntawv raug khaws tseg ntawm lub hauv paus. Kuv kuj tau tsim lub vev xaib yog li koj tuaj yeem teeb tsa koj lub cuab yeej.

Kauj Ruam 1: Cov Khoom Siv

Koj yuav xav tau ntau yam khoom siv los ua qhov haujlwm no.

- Raspberry Pi 3 Qauv B, € 32.49 ntawm Amazon.com

- RFID Sensor, € 6.95 ntawm Amazon.com

- PIR Sensor, € 8.99 ntawm Amazon.com

- Load Sensor (1kg), € 11, 16 ntawm Amazon.com

- LCD Zaub, € 12, 95 ntawm Amazon.com

- Load Cell Amplifier, € 9, 95 ntawm Amazon.com

- Servo Motor, € 9, 99 ntawm Amazon.com

- Xov, € 7, 99 ntawm Amazon.com

- 9V Roj Teeb, € 10, 99 ntawm Amazon.com

- 16G SD Card, € 9, 98 ntawm Amazon.com

- Soldering hlau, € 13, 99 ntawm Amazon.com

- Pin header strip, € 4, 59 ntawm Amazon.com

- Cov hlau xaim, € 9, 99 ntawm Amazon.com

- Ethernet cable 1, 5m, € 6, 28 Amazon.com

Kauj Ruam 2: Cov Qauv Hluav Taws Xob

Hauv cov ntawv pdf koj yuav pom cov phiaj xwm hluav taws xob. Txheeb xyuas ntau zaus kom koj tsis txhob ua yuam kev. Ib txoj xov hlau tsis raug tuaj yeem rhuav tshem ntau yam khoom siv.

Kauj Ruam 3: Nruab Duab ntawm Raspberry Pi

Koj yuav tsum nruab ib daim duab ntawm koj daim npav SD. Koj yuav pom cov duab hauv cov ntawv.

Txhawm rau nruab cov duab ntawm koj daim npav SD koj yuav tsum nruab "wind32diskimager".

Kauj Ruam 4: Pib Raspberry Pi

Pib Raspberry Pi
Pib Raspberry Pi

Txhawm rau txuas nrog Raspberry Pi koj yuav tsum teeb tsa "Putty". Txuas Raspberry Pi thiab koj lub khoos phis tawj nrog Ethernet cable. Pib Putty thiab sau IP-adres: 169.254.10.1

Thaum txuas nrog koj ntaus tus username: pi thiab password: raspberry

Kauj ruam 5: Ntshuam Cov Ntaub Ntawv Los ntawm Github

Nkag mus rau hauv koj li Raspberry Pi. Txhawm rau tsim daim duab qhia chaw "phiaj xwm" koj ntaus: "mkdir project".

Mus rau phau ntawv teev npe nrog "cd project". Thaum koj nyob hauv cov npe koj ntaus "git clone https://github.com/howest-mct/1920-1mct-project1-LanderVanLuchene" Cov ntaub ntawv yuav teeb tsa ntawm koj li Raspberry Pi.

Kauj Ruam 6: Teeb MySQL Workbench

Teeb MySQL Workbench
Teeb MySQL Workbench

Txhawm rau khaws koj cov ntaub ntawv koj yuav tsum tau teeb tsa "MySQL Workbench".

Thaum koj qhib "MySQL Workbench" koj yuav pom "MySQL Txuas". Nias lub khawm ntxiv kom ntxiv kev sib txuas tshiab.

Koj tsim kev sib txuas SSH nrog cov chaw teev tseg hauv daim duab. Tus SSH lo lus zais yog "raspberry". Koj tuaj yeem xaiv lwm tus password. Kuv siv "mysql" ua lo lus zais. Koj tuaj yeem khaws tus password hauv lub vault, yog li koj tsis tas yuav ntaus koj tus password txhua zaus koj qhib qhov kev sib txuas.

Yog tias koj ua tiav nrog kev teeb tsa koj tuaj yeem txuag kev sib txuas.

Kauj ruam 7: Ntxiv Database

Ntxiv Database
Ntxiv Database
Ntxiv Database
Ntxiv Database

Qhib qhov kev txuas. Ntawm sab laug koj yuav pom "Administration". Nyem rau ntawm "kev tswj hwm thiab tom qab ntawv nyem rau" Cov ntaub ntawv ntshuam/rov qab ". Xaiv" Ntshuam los ntawm Tus Kheej "thiab xaiv cov ntaub ntawv ruam. Tom qab ntawd koj nias" Pib ntshuam ".

Kauj ruam 8: Teeb Visual Studio Code

Txhawm rau sau cov cai koj yuav tsum teeb tsa "Visual Studio Code".

Thaum koj qhib "Visual Studio Code" koj yuav tsum teeb tsa lub npe txuas ntxiv "Remote SSH". Qhov kev txuas ntxiv no ua rau koj txuas rau koj li rapsberry pi.

Nias ntawm lub pob ntsuab nyob hauv qab sab laug txhawm rau txuas nrog Raspberry Pi. Xaiv txuas mus rau tus tswv tsev thiab ntaus ntawv: ssh [email protected]

Koj yuav tsum ntaus tus password "raspberry".

Kauj Ruam 9: Nruab Pob Khoom ntawm Visual Studio Code

Koj qhib lub davhlau ya nyob twg tshiab hauv Visual Studio Code. Hauv lub davhlau ya nyob twg koj yuav tsum teeb tsa ntau pob. Kuv yuav teev lawv hauv qab no:

-pip3 nruab mysql-txuas-sej

- pip3 nruab lub raj mis-socketio

- pip3 nruab flask-cors

- pip3 nruab gevent

- pip3 nruab gevent-websocket

Kauj Ruam 10: Txhim Kho Lub Ntsej Muag Tsiaj Feeder

Tsim Lub Ntsej Muag Tsiaj Feeder
Tsim Lub Ntsej Muag Tsiaj Feeder

Kuv tsis muaj daim ntawv qhia tag yuav ua li cas thiaj ua rau Smart Pet Feeder lub cev. Kuv thov txim txog qhov ntawd!

Lub xovtooj ntawm tes yuav tsum tau ua haujlwm zoo li daim duab. Muab tus xub tso thaum koj tab tom tsim nws.

Pom zoo: