Cov txheej txheem:

Ua Haujlwm Los Ntawm Lub Sijhawm Teev Npe Hauv Tsev Siv Raspberry Pi: 7 Kauj Ruam
Ua Haujlwm Los Ntawm Lub Sijhawm Teev Npe Hauv Tsev Siv Raspberry Pi: 7 Kauj Ruam

Video: Ua Haujlwm Los Ntawm Lub Sijhawm Teev Npe Hauv Tsev Siv Raspberry Pi: 7 Kauj Ruam

Video: Ua Haujlwm Los Ntawm Lub Sijhawm Teev Npe Hauv Tsev Siv Raspberry Pi: 7 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Ua Haujlwm Los Ntawm Lub Sijhawm Teev Npe Hauv Tsev Siv Raspberry Pi
Ua Haujlwm Los Ntawm Lub Sijhawm Teev Npe Hauv Tsev Siv Raspberry Pi

Xyoo dhau los, Kuv muaj lub sijhawm los ua haujlwm hauv tsev. Rau qhov kuv xav tau kom taug qab cov teev uas kuv ua haujlwm.

Pib los ntawm kev siv daim ntawv nthuav qhia zoo thiab nkag mus rau 'moos-hauv' thiab 'moos-tawm' lub sijhawm tus kheej, Kuv tsis ntev pom qhov no yog qhov nyuaj heev (thiab kuv yuav tsis hnov qab nkag mus lub sijhawm).

Kuv muaj Raspberry Pi ntawm kuv lub rooj, thiab yog li txiav txim siab teeb tsa lub sijhawm ua haujlwm kaw cov lus daws teeb meem siv nws thiab qee qhov khoom siv los ntawm kuv tus tub Arduino pib ua haujlwm cov khoom siv.

Khoom siv:

- Raspberry Pi

- 450ohm resistor x3

- 2 LEDs

- Mini Arduino khawm

- Breadboard rau tsab ntawv

- Dupont txuas

Kauj ruam 1: Prototyping

Prototyping
Prototyping

Kuv pib los ntawm kev tsim ib qho qauv ntawm lub sijhawm kaw ntawm ib nrab ntawm lub khob cij. Thaum kuv zoo siab nrog txoj hauv kev nws ua haujlwm txoj phiaj xwm tau muab tso ua ke ib lub thawv ntawv uas siv cov ntawv luam tawm 3d thiab txuas txuas.

Cov khoom sib txuas tau txuas nrog siv Dupont cov xov hlau raws li qhia los ntawm daim duab fritzing.

Kauj Ruam 2: Teeb Kho Raspberry Pi

Teeb tsa Raspberry Pi
Teeb tsa Raspberry Pi
Teeb tsa Raspberry Pi
Teeb tsa Raspberry Pi

Kuv tau tsim tsab ntawv nab nab luv uas yuav kuaj pom lub pob nyem thiab hloov lub xeev LED. Ntawm kev hloov pauv, lub sijhawm tau sau tseg hauv phau ntawv ua haujlwm zoo.

Kuv tau siv Openpyxl Library los cuam tshuam nrog phau ntawv ua haujlwm (uas kuv tau tsim los ntawm tus kheej hauv cov ntawv tais ceev tseg hauv tsev ntawm Raspberry Pi).

Tsab ntawv nkag mus rau lub sijhawm pib, sijhawm kawg, thiab tag nrho rau lub sijhawm ua haujlwm.

Tsim ib tsab ntawv hauv phau ntawv qhia tsev siv koj li tus kws kho mob nyiam (Kuv siv Thonney Python IDE) thiab txuag ua clockin.py

Nruab LibreOffice ntawm Pi, yog tias nws tsis tau teeb tsa lawm, thiab tsim phau ntawv ua haujlwm dawb hu ua hours.xlsx Khiav cov ntawv los ntawm lub davhlau ya nyob twg siv lub davhlau ya nyob twg hais kom ua python3 clockin.py. Los yog khiav nws hauv Python plhaub lossis Thonney.

Lub LED liab yuav tsum teeb kom pom tias nws ua haujlwm. Thaum lub pob nyem lub teeb xiav LED teeb, liab liab tawm mus, thiab lub sijhawm tau sau tseg hauv daim ntawv nthuav tawm.

Kauj ruam 3: Python Script

Kauj ruam 4: Boxing Up

Boxing Nws
Boxing Nws

Raspberry lub sijhawm kaw lub cuab yeej ua haujlwm li cas kuv xav tau, yog li nws yog lub sijhawm los ua kom nws zoo li kev tshaj lij.

Siv SketchUp los ua qauv lub thawv yooj yim los tuav lub pob thiab ob lub LEDs, nrog lub qhov rau cov xov hlau nkag mus.

Cov qauv tsim thiab luam cov ntawv tuaj yeem pom ntawm Thingiverse

Kuv luam lub thawv hauv dub PLA+, vim nws sib xyaw zoo nrog kuv lub desktop. Cov ntaub ntawv STL tau muab hlais siv CURA software. Tus tsim yuav tsum tau luam tawm nrog kev txhawb nqa.

Kauj ruam 5: Soldering

Soldering
Soldering

Ib zaug ntxiv siv Dupont cov xov hlau, muab cov khoom sib dhos tso rau hauv qhov chaw hauv lub thawv luam ntawv.

Kauj Ruam 6: Sealing Nrog Tswm Ciab

Sealing Nrog Tswm Ciab Ciab
Sealing Nrog Tswm Ciab Ciab

Ntxiv ib qho ntawm cov cua sov-ntsws ntawm qhov tawm ntawm lub thawv kom rub cov xov hlau ua ke thiab ua kom tiav chav tsev los ntawm sau nws nrog tswm ciab.

Qhov ntxiv ntawm cov tswm ciab tiv thaiv thiab tuav cov kev sib txuas hauv qhov chaw, tib lub sijhawm ntxiv qhov hnyav los pab nres nws txav mus los thaum siv.

Kauj Ruam 7: Txuas rau Raspberry Pi

Txuas rau Raspberry Pi
Txuas rau Raspberry Pi
Txuas rau Raspberry Pi
Txuas rau Raspberry Pi
Txuas rau Raspberry Pi
Txuas rau Raspberry Pi

Chav ua tiav txuas nrog thiab ua haujlwm

Thaum kawg ntawm lub asthiv, kuv luam daim ntawv ua haujlwm rau hauv lwm phau ntawv ua haujlwm thiab ntxiv kuv cov sijhawm ua haujlwm.

Qhov teeb tsa no yog qhov zoo rau kev taug qab ntawm 'ua haujlwm los ntawm tsev' teev, zoo dua li nkag mus rau lub sijhawm.

Saib qhov haujlwm no ntawm kuv lub vev xaib myprojectcorner.com/raspberry-pi-time-recorder/

Pom zoo: