Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Lub Tswv Yim
- Kauj Ruam 2: Tsim - Cia Khoom
- Kauj Ruam 3: Tsim - Zaub Caj Npab
- Kauj Ruam 4: 3D-Luam Ntawv & Xim Xim
- Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 6: Tus Txheej Txheem Software
- Kauj Ruam 7: Cov Qauv Cov Qauv
- Kauj Ruam 8: Sib dhos - Khoom Siv Hluav Taws Xob
- Kauj Ruam 9: Los Ua Ke - Cov Txheej Txheem Cia
- Kauj Ruam 10: Kev Sib Tham
Video: Cov Txheej Txheem Cia Khoom: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Qhov Txheej Txheem Tshaj Lij Tshaj Lij Tshaj Plaws yog qhov kev daws teeb meem tshwj xeeb rau kev teeb tsa thiab khaws cov khoom siv hluav taws xob. Cov kev cai software tso cai rau teev npe cov khoom sib xyaw nrog kev ua haujlwm tshawb nrhiav kom tau txais kev nkag tau sai rau cov khoom tshwj xeeb. LEDs saum txhua lub tub rau khoom tau siv los qhia qhov chaw thiab xwm txheej ntawm tus kheej, lossis pab pawg, ntawm cov khoom.
Khoom siv
Ua tsaug rau DFRobot rau muab cov hauv qab no rau qhov haujlwm no!
2 x 5V @ 3A USB Lub Hwj Huam Fais Fab
Muaj nyob ntawm no (koom nrog txuas):
1 x Raspberry Pi 4 Qauv B
Muaj nyob ntawm no (koom nrog txuas):
1 x 8.9 "1920x1200 IPS Touch Display
Muaj nyob ntawm no (koom nrog txuas):
1 x WS2812b LED-Sawb, 30LED/m
Muaj nyob ntawm Ebay
Txhua cov ntaub ntawv rau txoj haujlwm no tuaj yeem pom ntawm kuv GitHub:
Kauj ruam 1: Lub Tswv Yim
Keeb kwm yav dhau
Kuv ib txwm muaj teeb meem kev teeb tsa thiab khaws cia kuv cov khoom. Daim duab saum toj no qhia txog lub xeev ntawm kuv cov tshuaj tiv thaiv tam sim no. Thaum muaj cov khoom sib xyaw hauv ntau lub thawv thoob plaws lub rooj cob qhia yuav ua haujlwm rau qee qhov, nws ib txwm tsis muaj txiaj ntsig hauv kuv tus kheej txoj haujlwm. Yog li, kuv tuaj nrog txoj haujlwm los daws qhov teeb meem no.
Lub Tswv Yim
Lub tswv yim yog khaws tag nrho cov khoom siv hauv tib lub kaw lus. Lub kaw lus cia yuav suav nrog ntau lub tub rau khoom thiab txhua lub tub rau khoom yuav muaj LED teeb tsa saum nws.
Tus neeg siv yuav siv cov software tshwj xeeb los cuam tshuam nrog lub kaw lus cia. Thaum tus neeg siv tshawb xyuas ib feem, lub kaw lus qhia cov txiaj ntsig tshawb fawb saum toj kawg nkaus ntawm lub vijtsam. Nyob rau tib lub sijhawm, LEDs sib xws rau kev tshawb nrhiav qhib, yog li qhia qhov chaw ntawm cov khoom siv hauv lub kaw lus.
Dhau li tso saib qhov chaw nyob, xim ntawm LEDs yuav qhia qhov xwm txheej (piv txwv li ntau npaum li cas) ntawm txhua qhov khoom siv ib yam.
Qhov yuav tsum tau ua
Lub tswv yim tau tawg mus rau hauv cov kev xav tau hauv qab no uas qhov phiaj xwm no ua kom txaus siab:
Tsim qhov yooj yim cia thiab khaws cov txheej txheem rau cov khoom me thiab nruab nrab
Tsim software interface rau teev npe thiab tshawb nrhiav los ntawm cov khoom
Siv RGB LEDs los qhia qhov chaw nyob thiab xwm txheej ntawm txhua feem
Kauj Ruam 2: Tsim - Cia Khoom
Kuv pib los ntawm 3D ua qauv ua qhov system cia nws tus kheej.
Kuv tsim cov txheej txheem khaws cia hauv daim ntawv ntawm cov ntawv luam ntawm 3D-luam cov tub rau khoom sib txawv. Cov tub rau khoom tau muab tso rau hauv 35 × 12 daim phiaj rau tag nrho ntawm 310 tus tub rau khoom. Qhov ntawd yog qhov chaw txaus los khaws tag nrho kuv cov khoom tam sim no thiab tawm chaw rau kev nthuav dav yav tom ntej.
Qhov sib nrug nruab nrab ntawm cov tub rau khoom hauv txoj kab ntsug tau tsim los kom haum rau 10mm dav LED-sawb saum txhua kab ntawm cov tub rau khoom. Qhov sib nrug ntawm kab rov tav yog tsim los kom sib npaug ntawm qhov sib nrug ntawm LED-strip. Kuv xam pom tias siv 30LED/meter LED-strip yuav ua rau qhov loj txaus ntawm txhua lub tub rau khoom.
Txhua lub tub rau khoom thiab cov tub rau khoom tuav tau tsim los luam tawm cais thiab sib sau ua ke rau hauv kev teeb tsa. Cov tub rau khoom muaj nyob hauv ntau qhov sib txawv thiab kev teeb tsa ntawm cov tub rau khoom yuav ua haujlwm nrog software tom qab qee qhov hloov pauv.
Txhawm rau txo qis kev siv cov ntaub ntawv thiab lub sijhawm luam tawm, phab ntsa tuab ntawm txhua qhov luam tawm 3D tau khaws cia kom tsawg. Thaum sib sau ua ke, tag nrho cov chaw khaws khoom yog khov kho txaus rau lub tsev feem ntau hnyav thiab cov khoom nruab nrab.
Kauj Ruam 3: Tsim - Zaub Caj Npab
Txij li cov txheej txheem khaws cia yuav tsum muaj HDMI zaub rau cov neeg siv sib cuam tshuam, Kuv txiav txim siab los tsim lub caj npab uas tuaj yeem kho tau kom nce cov zaub thiab khoom siv hluav taws xob rau.
Txhua feem ntawm cov zaub pom tau tsim los ua 3D-luam tawm thiab sib sau ua ke nrog M8 ntsia liaj qhov rooj thiab txiv ntseej. Cov caj npab tso tawm yog tsim los tuav cov zaub HDMI, Raspberry Pi thiab txhua txoj hlua hlau.
Ib feem ntawm cov zaub pom tau raws qhov tsim los ntawm Thingiverse.
Kauj Ruam 4: 3D-Luam Ntawv & Xim Xim
Tom qab 3D ua qauv txhua qhov, nws yog lub sijhawm pib luam tawm ntau pua lub tub rau khoom.
Kuv siv kuv Prusa MK2S rau txhua qhov 3D luam tawm ntawm qhov haujlwm no. Kuv siv PLA filament nrog 0.2 hli txheej siab thiab 0% infill.
Cov ntaub ntawv txhawb nqa tsuas xav tau ntawm tus tuav lub tub rau khoom me me thiab tus tuav lub tub rau khoom loj. Kuv txiav txim siab ua siab ntev zoo tshaj plaws ntawm cov tub rau khoom thiab cov tub rau khoom tuav yog 0.2 hli. Koj cov nqi yuav nyob deb ntawm koj lub tshuab luam ntawv 3D.
Tom qab luam tawm txhua qhov ntawm qhov sib cais, Kuv siv superglue los sib sau ua ke txhua tus tub rau khoom tuav rau hauv 35 × 12 daim phiaj.
Kuv tsis muaj cov ntsiab lus txaus ntawm cov xim ib yam, yog li kuv txiav txim siab ntxiv lub tsho xim dub los muab cov txheej txheem khaws cia txawm tias saib zoo li cas.
Txog kev siv, kuv tag nrho 35 × 12 lub kaw lus nrog 310 tus tub rau khoom xav tau txog 5kg ntawm cov ntawv sau los luam tawm.
Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob
Raws li rau cov khoom siv hluav taws xob, kev xaiv kho vajtse tau ncaj ncaj.
Kuv xaiv Raspberry Pi 4 Model B txuas nrog rau HDMI zaub raws li tus neeg siv interface. Koj kuj tseem tuaj yeem siv lub taub hau Raspberry Pi thiab cuam tshuam nrog cov kab ke ntawm SSH. Cov ntawv qub ntawm Raspberry Pi kuj tseem tuaj yeem ua haujlwm yog tias lawv muaj peev xwm ua haujlwm Python 3. Lub tsev qiv ntawv Neopixel siv hauv txoj haujlwm no tsis txhawb rau Python 2.
Rau cov LEDs, Kuv xaiv 30LED/m, WS2812b, LED-strip tsis muaj qhov laj thawj tshwj xeeb. Lwm qhov LED-kab ntawv tseem yuav ua haujlwm yog tias lawv tau txais kev txhawb nqa los ntawm Neopixel lub tsev qiv ntawv.
Raws li rau txoj kab hluav taws xob, peb lub USB-C cables tau siv los muab lub zog rau Raspberry Pi, cov zaub thiab LEDs. Ib qho HDMI cable tau siv los txuas cov zaub thiab Raspberry Pi.
Arduino Uno thiab USB cable qhia hauv daim duab yog xaiv tau. Koj tuaj yeem xa cov ntaub ntawv mus rau Arduino ntawm Serial thiab siv nws ua tus tswj LED. Kom yooj yim, Kuv xaiv tsis siv Arduino hauv txoj haujlwm no.
Kev tsim qauv zoo yuav yog suav nrog qib hloov pauv ntawm cov kab ntawv rau LEDs txij li Raspberry Pi GPIO tsuas yog 3V3. Kuv tsis tau muaj teeb meem txog tam sim no tab sis yog kuv ua, kuv yuav siv qee yam xws li "74AHCT125 Quad Level-Shifter".
Phau ntawv qhia siv Neopixel nrog Python thiab Raspberry Pi muaj nyob ntawm no.
Kauj Ruam 6: Tus Txheej Txheem Software
Thaum tag nrho cov ntu tau luam tawm 3D, Kuv tau ua haujlwm ntawm software uas tswj hwm tag nrho cov kab ke.
Lub software tau sau hauv Python 3 thiab yog lub ntsiab lus kom ua raws li daim ntawv thov console ntawm Raspberry Pi. Kev ua haujlwm ntawm cov software tuaj yeem tawg rau hauv cov hauv qab no:
- Nyeem cov neeg siv tswv yim
- Nyeem los ntawm ntawv / sau rau ntawv
- Tso tawm cov txiaj ntsig rau lub console thiab LEDs
Kuv yuav muab cov lus piav qhia yooj yim ntawm txhua kauj ruam hauv qab no.
Nyeem cov neeg siv tswv yim
Thaum tau txais cov neeg siv khoom nkag, cov kab lus Regex tau siv los txiav txim siab cov neeg siv thov. Tus neeg siv muaj cov haujlwm hauv qab no los xaiv los ntawm:
Muaj nuj nqi | Hu Piv Txwv |
---|---|
Sau tag nrho cov khoom siv: | tag nrho |
Tshawb nrhiav ib feem los ntawm ID: | ID 22 |
Tshawb nrhiav ib feem ntawm qhov tsis: | R, 22, SMD |
Hloov qhov ntau ntawm ib feem: | ID35+10 |
Ntxiv ib feem tshiab: | PI89: PI90, 100pcs, C, 470u, SMD: ntxiv |
Tshem tawm cov khoom siv uas twb muaj lawm: | ID 10: Rm |
Syntax pab: | pab |
Nyeem los ntawm ntawv / sau rau ntawv
Cov ntaub ntawv tivthaiv tau khaws cia rau hauv.txt cov ntaub ntawv. Nyob ntawm qhov kev nkag mus, software yog tshawb nrhiav cov ntaub ntawv hauv cov ntawv lossis sau cov ntaub ntawv tshiab rau hauv cov ntawv. Cov ntaub ntawv tshiab tau sau thaum tshem tawm, ntxiv lossis hloov kho cov khoom.
Tso tawm cov txiaj ntsig
Lub software tso tawm cov txiaj ntsig los ntawm kev ua haujlwm rau lub console. Yog tias tau tshawb nrhiav, nws tseem tsim thiab tso tawm cov ntaub ntawv LED tib lub sijhawm.
Kauj Ruam 7: Cov Qauv Cov Qauv
Cov ntaub ntawv tivthaiv hauv cov ntaub ntawv.txt ua raws cov qauv tshwj xeeb. Txhua kab ntawm cov ntawv muaj cov ntaub ntawv hais txog ib qho khoom siv uas tau khaws cia hauv cov kab ke. Txhua qhov tivthaiv yog tsim los ntawm ntau qhov ntsuas uas sib cais los ntawm tus lej.
Qee qhov tsis yog qhov yuav tsum tau ua thiab tau siv los ntawm lub software txhawm rau taug qab ntawm qhov chaw tiv thaiv thiab LED xim. Yog li ntawd lawv yuav tsum ua raws cov qauv tshwj xeeb.
Qhov yuav tsum tau ua thiab lawv cov qauv yog:
-
ID (hauv hom IDX qhov twg X yog ib lossis ntau tus lej)
Tus ID ua raws li tus cim tshwj xeeb rau txhua feem. Nws yog siv thaum tshawb nrhiav thiab tshem tawm cov khoom
-
PI (hauv hom PIX: X qhov twg X yog ib lossis ntau tus lej)
PI piav qhia qhov LEDs sib raug rau cov khoom siv twg
-
Quantity (hauv hom Xpcs qhov twg X yog ib lossis ntau tus lej)
Qhov ntau yog siv los txiav txim siab xim LED rau txhua qhov tivthaiv
Lwm qhov tsis yog tsuas yog txhais rau tus neeg siv. Lub software tsis tas yuav cuam tshuam nrog cov ntawd thiab lawv cov ntawv yog vim li ntawd xaiv tau.
Kauj Ruam 8: Sib dhos - Khoom Siv Hluav Taws Xob
Lub rooj sib txoos tuaj yeem muab faib ua ob ntu, thawj ntu yog lub caj npab thiab cov khoom siv hluav taws xob.
Kuv tau sib sau ua ntu 3D-luam ntawv siv cov ntsia liaj qhov rooj thiab cov txiv ntoo. Tom qab ntawd kuv txuas tus 3D-luam caj npab rau HDMI-zaub siv 4mm ntsia hlau. Raspberry Pi tau txuas rau hauv qhov chaw yooj yim thiab cov hlua txuas nrog raws li daim duab hauv "Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob".
Ib qho kev sim tau ua rau cable tswj cov xov hlau los ntawm kev sib txuas nws nyob ib puag ncig cov khoom tso saib. Kuv siv cov hlua txuas los qhia lub zog thiab cov ntaub ntawv xov tooj raws cov caj npab tso rau txuas mus rau qhov seem ntawm lub kaw lus.
Kauj Ruam 9: Los Ua Ke - Cov Txheej Txheem Cia
Qhov thib ob ntawm kev sib dhos yog lub kaw lus cia nws tus kheej.
Siv cov ntsia hlau nrog, kuv txuas txhua qhov sib cais tub rau khoom mus rau ib qho ntawm cov xim pleev xim plywood uas ua raws li lub nraub qaum.
Tom qab ntawd, Kuv txuas cov LED-kab txaij ntawm txhua kab thiab txuas txhua kab ua ke rau hauv ib qho LED-sawb. Kev teeb tsa ntawm txhua kab thiab kev taw qhia ntawm LED-sawb tsis muaj teeb meem vim nws tuaj yeem rov kho dua hauv software.
Ua kom tiav qhov kev sib dhos, Kuv txuas lub caj npab zaub nrog cov khoom siv hluav taws xob nyob ntawm ib sab ntawm lub rooj ntoo plywood.
Kuv txheeb txhua yam ntawm cov khoom siv rau hauv lawv lub tsev tshiab thiab ntxiv rau hauv.txt cov ntaub ntawv database.
Kauj Ruam 10: Kev Sib Tham
Tam sim no txoj haujlwm tau ua tiav thiab kuv zoo siab heev nrog qhov nws tshwm sim!
Kuv tsuas muaj sijhawm siv kuv lub kaw lus tshiab rau ob peb hnub thiab nws tau ua haujlwm zoo. Kuv zoo siab tau pom tias qhov kev hloov pauv no ua haujlwm li cas rau yav tom ntej vim tias yog lub hom phiaj ntawm txoj haujlwm no.
Kuv vam tias koj txaus siab rau txoj haujlwm no thiab yog tias koj muaj kev xav, lus pom, lossis lus nug, thov tso lawv hauv qab no.
Pom zoo:
4 txog 20 MA Cov Txheej Txheem Txheej Txheem Calibrator DIY - Kev Siv Hluav Taws Xob: 8 Kauj Ruam (nrog Duab)
4 txog 20 MA Cov Txheej Txheem Txheej Txheem Calibrator DIY | Kev Siv Hluav Taws Xob: Cov cuab yeej siv hluav taws xob thiab khoom siv hluav taws xob yog thaj chaw kim heev thiab nws tsis yooj yim kawm txog nws yog tias peb tsuas yog kawm tus kheej lossis nyiam ua haujlwm. Vim li ntawd kuv chav kawm ntsuas hluav taws xob thiab kuv tsim qhov peev nyiaj qis no 4 txog 20 mA
Xim Txheej Txheem Txheej Txheem: Arduino Raws Li Txheej Txheem Nrog Ob Txoj Siv: 8 Kauj Ruam
Xim Txheej Txheem Txheej Txheem: Arduino Raws Li Txheej Txheem Nrog Ob Txoj Siv: Kev thauj mus los thiab/lossis ntim khoom ntawm cov khoom thiab cov khoom hauv thaj chaw ua haujlwm tau ua tiav siv cov kab ua siv siv txoj siv thauj khoom. Cov menyuam no pab txav cov khoom ntawm ib kis mus rau lwm qhov nrog qhov nrawm. Qee qhov kev ua lossis kev qhia paub ua haujlwm yuav yog
Cov Txheej Txheem Hluav Taws Xob rau FTC Robots - Cov Txheej Txheem thiab Cov Lus Qhia: 4 Cov Kauj Ruam
Muaj Cov Txheej Txheem Hluav Taws Xob rau FTC Neeg Hlau - Cov Txheej Txheem thiab Cov Lus Qhia: Ntau pawg FTC tso siab rau cov txheej txheem thaiv yooj yim thiab cov cuab yeej los teeb tsa hluav taws xob rau lawv cov neeg hlau. Txawm li cas los xij, cov txheej txheem yooj yim no thiab cov ntaub ntawv yuav tsis txaus rau cov kab hluav taws xob xav tau ntau dua. Txawm hais tias koj pab neeg tab tom siv kev paub ntau dua
D4E1: Kev nyeem ntawv-cuab yeej 2.0 (Txheej Txheem Txheej Txheem Txheej Txheem): 9 Cov Kauj Ruam (nrog Duab)
D4E1: Kev nyeem ntawv-cuab yeej 2.0 (Txheej Txheem Txheej Txheem Txheej Txheem): Cov ntaub ntawv:-Ob tus tub ntxhais kawm Muaj cov khoom lag luam tsim qauv hauv Kortrijk (Belgium) tuaj nrog cov cuab yeej nyeem ntawv no. Peb pib raws qhov tsim qauv uas twb muaj lawm thiab tau txhim kho nws mus rau lwm qhov kev tsim. Kev nyeem ntawv-cuab yeej thaum xub thawj tau raug txhim kho rau cli & nte
Nthuav nthuav Cov Txheej Txheem Qhia rau Tus Tsim Qauv-Txheej Txheem Txheej Txheem Tswj- Loop Nqe Lus: 8 Kauj Ruam
Nthuav nthuav Cov Txheej Txheem Qhia rau Tus Tsim-Txheej Txheem Txheej Txheem- Loop Nqe Lus: Cov Txheej Txheem Txheej Txheem- Loop Nqe Lus Los ntawm tshooj no, koj yuav ntsib nrog qhov tseem ceeb thiab muaj zog paub txog-Loop Nqe Lus. Ua ntej nyeem tshooj no, yog tias koj xav kos 10,000 lub voj voos hauv txoj haujlwm, koj tsuas tuaj yeem ua nrog lub suab