Cov txheej txheem:

Superstock (Stock Controlled by Barcode Scanner): 5 Kauj Ruam
Superstock (Stock Controlled by Barcode Scanner): 5 Kauj Ruam

Video: Superstock (Stock Controlled by Barcode Scanner): 5 Kauj Ruam

Video: Superstock (Stock Controlled by Barcode Scanner): 5 Kauj Ruam
Video: Get Started with Super Stock Screener 2024, Kaum ib hlis
Anonim
Superstock (Tshuag Tswj los ntawm Barcode Scanner)
Superstock (Tshuag Tswj los ntawm Barcode Scanner)

Hauv phau ntawv qhia no kuv yuav qhia koj yuav tsim Superstock, kuv lub tsev kawm ntawv txoj haujlwm rau 1MCT ntawm Howest. Lub tswv yim ua tus neeg siv tus phooj ywg database uas koj tuaj yeem nkag mus tau los ntawm lub vev xaib kom suav ntawm yam koj muaj hauv Tshuag (hauv kuv cov khaub ncaws rau kuv hom khaub ncaws).

Khoom siv

Raspberry Pi 3 qauv B.

DS18B20 dej tsis ntsuas kub

DHT11 kub thiab av noo sensor

USB LASER Barcode Scanner

lub suab nrov

zaub

Circuit board (rau tus nqi thiab cov ntaub ntawv ntxiv, saib BOM_bill_of_materials-Ian-Remy.xlsx)

Kauj Ruam 1: Tsim Circuit Court

Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit
Tsim lub Circuit

Fais fab tua koj Pi ua ntej txuas cov khoom siv. Koj tuaj yeem pom txhua qhov kev sib txuas ntawm cov txheej txheem fritzing thiab qee qhov piv txwv hauv cov duab saum toj no, txhua yam yuav tsum piav qhia tus kheej zoo nkauj. Koj tsuas tuaj yeem ntsaws lub tshuab luam ntawv barcode hauv raspberry pi rau nws ua haujlwm.

Kauj ruam 2: Tau Txais Cov Ntaub Ntawv

Cov ntaub ntawv rau txoj haujlwm no tuaj yeem pom hauv Github qhov chaw cia khoom no:

github.com/howest-mct/1920-1mct-project1-remyian.git

Cov backend yog Python/Flask program uas sib txuas lus nrog peb cov cuab yeej siv thiab ua haujlwm cov ntaub ntawv los ntawm nws mus rau tom ntej, uas yog lub vev xaib sib tham. Koj yuav tsum tau hloov qee yam ib puag ncig rau nws kom ua haujlwm tau zoo, zoo li cov neeg siv mysql lossis ip-adresses cov haujlwm ua haujlwm.

Kauj ruam 3: Database

Database
Database

Koj tuaj yeem tso cov ntaub ntawv khaws tseg (khaws cov ntaub ntawv hauv Github chaw cia khoom hauv qab daim nplaub tshev Database-export) ntawm Pi ntawm MySQL Workbench los ntawm kev ua cov ntaub ntawv ntshuam. Cov ntaub ntawv hauv qhov chaw cia khoom yog pov tseg ntawm cov ntaub ntawv khaws cia tag nrho cov ntaub ntawv khaws cia hauv 1 cov ntaub ntawv. Txwv tsis pub koj yuav ntsib teeb meem vim tias Pi siv MariaDB hloov chaw ntawm MySQL. Koj kuj tseem yuav tsum tsim tus neeg siv tshiab lossis hloov cov ntaub ntawv pov thawj no hauv cov cai. Koj tuaj yeem pom ERD hauv daim duab saum toj no.

Kauj ruam 4: Soldering

Soldering
Soldering
Soldering
Soldering
Soldering
Soldering

Hauv cov duab saum toj no koj tuaj yeem pom txhua qhov nws sib txuas koj yuav tsum ua, kuv siv ob peb lub rooj sib txawv los ua txhua yam me me. Kuv kuj tseem siv 20 tus pin ntsaws los txuas GPIO lub rooj sib tham txuas ntxiv kom lub tsev yuav ntsaws thiab ua si. Tag nrho cov seem tsuas yog siv cov khoom sib txawv ntawm cov laug cam.

Kauj Ruam 5: Vaj Tsev

Vaj tse
Vaj tse
Vaj tse
Vaj tse
Vaj tse
Vaj tse

Txog vaj tsev kuv tau siv lub thawv yas ua haujlwm thiab txiav qhov hauv nws nrog dremel ntau lub cuab yeej los tso lub qhov (socket), GPIO txuas lub rooj tsavxwm thiab cov cim los ntawm qhov uas koj tuaj yeem pom hauv cov duab saum toj no thiab ua kom txhua yam nyob hauv qhov chaw tsis zoo li nws yuav yooj yim qhib thiab kaw.

Pom zoo: