Cov txheej txheem:
- Kauj Ruam 1: Koj Xav Tau Elektronics Dab Tsi?
- Kauj Ruam 2: Fritzing Scheme
- Kauj Ruam 3: Koj Xav Tau Cov Cuab Yeej Dab Tsi?
- Kauj Ruam 4: Kev Tsim Khoom
- Kauj Ruam 5: Cov Qauv Txheej Txheem Zoo Li Cas
- Kauj Ruam 6: Teeb Raspberry Pi
- Kauj Ruam 7: Code ntawm Github
Video: Ntse Violin Case: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Suab paj nruag yog ib feem tseem ceeb ntawm kuv lub neej. Kuv tau ntaus nkauj laus ncas tau 10 xyoo, tab sis muaj 1 qhov teeb meem. Kuv yeej tsis paub ntev npaum li cas kuv xyaum rau. Hauv kuv qhov haujlwm kuv yuav taug qab qhov ntsuas kub, av noo thiab lub sijhawm ua haujlwm. Nws yog qhov haujlwm nyob ib leeg, tab sis kuv kuj tsim lub vev xaib uas yuav qhia qhov kub thiab txias, thiab sijhawm siv sijhawm. Hauv cov lus qhia no kuv yuav qhia koj tias kuv tau ua li cas rau lub suab nkauj.
Yog li txhawm rau suav txhua yam:
- kub thiab av noo tau raug taug qab
- lub sijhawm xyaum ua yog taug qab
- IP chaw nyob yog qhia
Kuv tau ua txoj haujlwm no nrog Raspberry Pi, Kuv tau ua txhua yam hauv Visual Studio Code. Rooj plaub no tseem yog tus kheej. Kuv tau sau PDF nrog txhua cov ntaub ntawv. Koj tuaj yeem rub nws ntawm no.
Kauj Ruam 1: Koj Xav Tau Elektronics Dab Tsi?
ua ntej, yam khoom siv hluav taws xob twg koj xav tau los ua qhov no rau koj tus kheej?
Cov hauv paus:
- Raspberry Pi 4
- Raspberry Pi USB-C 3A
- Micro SD-daim npav (+/- 16GB)
- Cov qhob cij (2)
- Breadboard fais fab mov 9V
- T-cobbler
- 40 tus pin txuas ntxiv board adapter
Sensors:
- DHT11
- Laub khawm (x3)
Tus Actuator:
Electromagnet ZYE1-P20/15
Lwm yam:
- LCD zaub 1602A
- Resistor 220 Ohm (x3)
- Txiv neej-rau-txiv neej cables
- Txiv neej-rau-poj niam cables
Kauj Ruam 2: Fritzing Scheme
Kuv tau ua ob lub tswv yim frizting. Thawj lub tswv yim yog li cas kuv hloov nws thiab qhov thib ob yog kev teeb tsa ntawm lub khob cij. Koj tuaj yeem rub tawm cov PDFs kom nthuav dav.
Kuv soldered tag nrho cov nyees khawm. Tsis txhob hnov qab tso 220 Ohm resistor nrog txhua lub pob. Qhov no yog rau kev nyab xeeb yog tias koj hloov nws tsis raug. Kuv txuas lub LCD zaub rau ntawm daim ntawv tais nrog txiv neej-rau-poj niam thiab txiv neej-rau-txiv neej cables. Lub potentiometer tau hloov pauv ntawm lub khob cij.
Kauj Ruam 3: Koj Xav Tau Cov Cuab Yeej Dab Tsi?
Kuv siv ntau yam cuab yeej sib txawv los tsim rooj plaub. Kuv tau teev lawv txhua tus rau koj.
- Ntsia Hlau
- Laum
- Milling tshuab
- Ntoo nplaum
- Square cuab yeej
- Rauj
- Ntsia hlau clamp
- Cyllinder qhov siab
- Jigsaw
Tau kawg koj siv tsis tau cov cuab yeej yog tias koj tsis muaj dab tsi los txuas koj rooj plaub nrog. Tias yog vim li cas kuv tau teev txhua yam khoom.
- Ntsia Hlau
- Ducktape
- Daim kab xev
- Pob khawm Piano (100 cm)
- Ntoo (qhov ntev theem 4)
- Roj caij nplooj ntoos hlav 50N/5kg 250mm
- Fastener Toggle Latch (2x)
Kauj Ruam 4: Kev Tsim Khoom
Koj xav tau ob peb qhov sib txawv ntawm cov ntoo. Lub thickness ntawm ntoo yog 1.8 cm.
Sab nraum ntawm rooj plaub
- Lub ntsej muag tom qab = 98, 6 x 16, 0 x 1, 8 cm
- Lub ntsej muag pem hauv ntej = 98, 6 x 16, 0 x 1, 5 cm
- Lub ntsej muag qis = 95, 0 x 34, 0 x 1, 8
- Up ntsej muag = 98, 6 x 37, 8 x 1, 8
- Lub ntsej muag laug = 16, 0 x 34, 0 x 1, 8 cm
- Lub ntsej muag sab xis = 16, 0 x 34, 0 x 1, 8 cm
Sab hauv ntawm rooj plaub
- Up ntsej muag = 20, 0 x 34, 0 cm
- Lub ntsej muag sab laug = 11, 0 x 34, 0 cm
- Daim phiaj = 34, 0 x 2.5 cm
- ntoo ntoo = 8,0 x 4,. cm
-
Txhawb cov thaiv = 8, 0 x 4, 0 cm
Kuv kuj txiav tawm cov duab ntawm kuv nkauj laus ncas los ntawm isomo kom nws nyob hauv qhov chaw hauv lub thawv.
- Isomo = 71, 0 x 34, 0 cm
- ntoo = 71,0 x 34,0 cm
Kuv yuav piav qhia ib qib zuj zus tias kuv tso rooj plaub li cas.
Kauj ruam 1
Txuas lub ntsej muag pem hauv ntej thiab nraub qaum nrog lub ntsej muag qis. Kuv siv 13 tus ntsia hlau thiab ntoo kua nplaum. Tom qab ntawd kuv txuas ob sab nrog 4 tus ntsia hlau thiab ntoo kua nplaum. Laum ib lub qhov rau thaiv cov khoom siv hluav taws xob nyob rau sab laug.
Kauj ruam 2
Lub nraub qaum yog ntev 98.6 cm. Kuv kuj txiav lub pob khawm piano ntev li ntawd; yog li kuv tuaj yeem txuas nws ntev nyob tom qab sab hauv. Ua ntej kuv txuas nws rau saum lub ntsej muag tom qab. Txhawm rau muab nws tso rau hauv lub hau, nws yog qhov zoo tshaj los nug ib tus neeg kom pab. Koj ua tib txoj hauv kev ib yam li yav dhau los.
Kauj ruam 3
Nthuav cov hlua khawm toggle latches. Xaiv qhov chaw koj tso lawv. Kuv tso lawv 20 cm ntawm ntug. Ob sab laug thiab sab xis. Lawv yuav tsum yooj yim los txuas. Tom qab ntawd sab nrauv ntawm lub thawv rau khaub ncaws tiav lawm.
Kauj ruam 4
Kuv yuav tsum muaj peev xwm muab cov khoom siv hluav taws xob tso rau qhov chaw. Kuv kos npe tawm txhua yam ntawm daim phiaj saum toj. Tom qab ntawd kuv milled txhua yam tawm. Nws yog txoj haujlwm raug, tab sis nws muab qhov txiaj ntsig zoo tshaj plaws. Cov hlau nplaum yog qhov teeb meem, tab sis kuv tau daws nws los ntawm kev muab ib qho ntoo thaiv ntxiv qhov twg cov hlau nplaum yuav tsum yog. Nrog lub tog raj kheej xyaum ntawm 20 koj tuaj yeem ua lub qhov nyob hauv cov ntoo thaiv. Cov hlau nplaum yuav haum raws nraim.
Txuas rau sab thiab sab saum toj los ntawm kev ntswj lawv ua ke thiab tsis txhob hnov qab muab cov kua nplaum ntoo nyob nruab nrab. Cov phiajcim tivthaiv yuav tsis haum vim tias lub caij nplooj ntoo hlav tuaj. Cas kuv xav tau qhov cua. Kuv txuas ib daim phiaj ntawm 34, 0 x 2, 5 cm ntawm sab laug mus rau sab saum toj plank. Kuv tseem yuav tsum tau mus txog kuv li RPi rau lwm qhov haujlwm, yog li kuv tsis ntsia nws mus rau sab nraud ntawm rooj plaub. Kuv tau ua ob qhov kev txhawb nqa uas cov txee sab hauv tuaj yeem dag.
Dai ob qhov kev txhawb nqa qhov twg lub ntsej muag font pib. Yog li sab ze rau hauv qab. Sab saum toj yog daim duab kom pom meej dua. Tam sim no koj tuaj yeem tso cov khoom siv hluav taws xob thiab chav tso rau hauv.
Kauj ruam 5
Tam sim no cov ntaub ntawv nkauj laus ncas yuav luag tiav. Ib qho chaw tseem tsis tau ua rau tus nkauj laus ncas. Muab koj tus nkauj laus ncas tso rau ntawm cov ntoo ntoo thiab kos rau nws. Kuv tsis tau theej daim ntawv rau lub caj dab. Txoj kev no nkauj laus ncas tau txais kev txhawb nqa. Thaum koj tau kos nws, tam sim no koj tuaj yeem txiav tawm cov duab nrog tus jigsaw.
Tom qab kuv txiav nws tawm, Muab cov ntoo tso rau ntawm isomo thiab taug qab cov duab. Tom qab ntawd kuv txiav tawm cov nkauj zoo nkauj nrog rab riam muaj txiaj ntsig. Yog tias koj xav tau, koj tuaj yeem pleev xim rau cov ntoo ntoo. Kuv ua haujlwm nrog graffiti dub. Ceev faj tsis txhob siv qhov no ntawm isomo, nws yuav nqus cov xim! Thaum nws qhuav, koj tuaj yeem tso txhua yam rau hauv rooj plaub.
Kauj Ruam 5: Cov Qauv Txheej Txheem Zoo Li Cas
Kuv ua kuv li qub database hauv MySQL Workbench.
TblDevice:
- deviceId
- ntsiab lus
- chav tsev
- yam
sib tham:
- tus lej
- chaws
- deviceId
- pib Hnub tim
- Hnub kawg
- ntsuas
- xyaum
blActie:
- chaws
- kev piav qhia
Kauj Ruam 6: Teeb Raspberry Pi
Hauv daim ntawv pdf ntawm cov lus qhia no kuv tau sau ib qib zuj zus yuav teeb tsa RPi li cas. Muaj cov kab txuas rau txhua qhov haujlwm koj xav tau. Cov lus txib raug rau RPi kuj suav nrog.
Thaum koj tau ua tiav txhua qib, koj yuav tsum muaj peev xwm tsim kom muaj kev sib txuas SSH rau koj RPi.
Kauj Ruam 7: Code ntawm Github
Hauv qib dhau los koj tau tsim chaw ua haujlwm nrog daim nplaub tshev rau ntawm lub ntsej muag thiab daim nplaub tshev rau lub nraub qaum. Lawv tuaj yeem pab tau tam sim no. Kuv tau sau kuv tus lej backend nrog sej thiab kuv lub ntsej muag muaj html, CSS thiab Javascript.
Txuas mus rau tus lej ntawm Github:
Backend
config.py
Kuv pib nrog cov ntawv config.py. Qhov no muaj cov ntaub ntawv ntawm koj lub database. Lub hostname thiab password yog tib yam li koj tus ID nkag mus ntawm MySQL. Hauv database koj muab lub npe ntawm koj lub database.
projectDataRepository
Hauv projectDataRepository kuv tuaj yeem ua txhua yam CRUD ua. CRUD sawv rau Tsim, Nyeem, Hloov Kho thiab Rho Tawm. Kuv khaws cov ntaub ntawv los ntawm lub hauv paus, kuv tuaj yeem hloov kho nws lossis ntxiv cov ntaub ntawv tshiab. Yog tias tsim nyog kuv tseem tuaj yeem tshem tawm, tab sis kuv tsis siv qhov ntawd hauv qhov haujlwm no. Kuv thov cov ntaub ntawv rau kab kos thiab ntsuas kawg. Kuv kuj muaj 3 qhov ntxig ntxiv cov ntaub ntawv los ntawm cov ntsuas.
app.py ua
Hauv cov ntaub ntawv no kuv muab cov cai kom tau txais cov ntaub ntawv rau kuv cov ntaub ntawv, kuv cov lej hluav taws xob thiab cov cai kom tau txais yam khoom rau kuv tus frontend lossis kom tau txais cov khoom los ntawm tus frontend.
Hauv qab ntawm txoj cai kuv ua txhua yam. Yog tias koj tau txais qhov yuam kev los ntawm GPIO, saib cov pins koj siv rau koj cov nyees khawm, LCD …
Frontend
app.js ua
Cov duab kab rau lub xaib raug tsim los ntawm no. Kev sib txuas tau ua rau lub nraub qaum, tab sis txhua yam tseem tuaj ntawm tus backend mus rau tom ntej.
index.html
Cov ntaub ntawv no muaj tag nrho cov ntaub ntawv rau lub vev xaib. Kuj txuas rau Javascript cov ntaub ntawv.
screen.css
Nov yog qhov chaw teeb tsa lub vev xaib ua tiav.
Pom zoo:
Ntse Rooj LED Teeb - Ntse Teeb Pom Kev W/ Arduino - Neopixels Chaw Ua Haujlwm: 10 Kauj Ruam (nrog Duab)
Ntse Rooj LED Teeb | Ntse Teeb Pom Kev W/ Arduino | Neopixels Chaw Ua Haujlwm: Tam sim no ib hnub peb tau siv sijhawm ntau nyob hauv tsev, kawm thiab ua haujlwm virtualy, yog li vim li cas ho tsis ua peb qhov chaw ua haujlwm ntau dua nrog kev cai thiab teeb pom kev zoo Arduino thiab Ws2812b LEDs raws li ntawm no Kuv qhia koj li cas tsim koj li Smart Lub teeb LED teeb uas
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: 10 Kauj Ruam (nrog Duab)
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: Koj puas tau xav tau lub moos ntse? Yog tias yog, qhov no yog kev daws teeb meem rau koj! Thaum lub tswb nrov tawm, yuav muaj lub suab (buzzer) thiab 2 lub teeb yuav
Daim Ntawv Qhia Ntse ntawm Idaho Nrog Cov Ntaub Ntawv LED + Duab: 8 Kauj Ruam (nrog Duab)
Daim Ntawv Qhia Ntse ntawm Idaho Nrog LED Cov Ntaub Ntawv + Kos Duab: Kuv ib txwm xav tau txoj hauv kev los kos duab thiab ua kom pom cov ntaub ntawv thaj chaw los ntawm " tha xim " daim duab qhia chaw nrog lub teeb. Kuv nyob hauv Idaho thiab nyiam kuv lub xeev yog li kuv xav tias qhov no yuav yog qhov chaw pib zoo! Ntxiv rau qhov yog ib qho txuj ci kev txawj ntse
Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)
Lub Hnab Ntse Hnab Ntse Ntse Computer: Qhov no yog "hnab looj tes ntse" nas lub computer uas tuaj yeem siv nrog ib lub PC, Mac, lossis Linux computer. Nws tau tsim los siv Binho Nova ntau tus txheej txheem USB host adapter, uas tso cai rau koj txuas cov ntsuas thiab lwm yam khoom siv rau koj lub khoos phis tawj thiab tom qab ntawd txuas ntxiv
Ntse Duab Duab: 4 Cov Kauj Ruam (nrog Duab)
Ntse Daim Duab Duab: Lub hauv paus ntawm txoj haujlwm no yog los daws peb teeb meem: txheeb xyuas huab cua hauv cheeb tsam sai sai kom ntseeg tau tias tag nrho tsev neeg tau hloov kho tshiab ntawm txhua qhov haujlwm uas tau teem tseg tso saib kom pom cov duab hnub so loj raws li nws tau tig tawm, Kuv muaj cov laus dua