Cov txheej txheem:
- Kauj Ruam 1: Xeem FSR Nrog Arduino
- Kauj Ruam 2: Kos Tawm Cov Plans rau Pawg Thawj Coj
- Kauj Ruam 3: Ua Qauv Pawg Thawj Coj hauv TinkerCad
- Kauj Ruam 4: Xeem LCD Screen
- Kauj Ruam 5: Kuaj Cov Qub Encoder Nrog LCD Screen
- Kauj Ruam 6: Sib sau ua Pawg
- Kauj Ruam 7: Hlau Txhua Qhov
- Kauj Ruam 8: Ua tiav Coding Txhua Yam
- Kauj Ruam 9: Xaus
Video: Prototype Arduino-Raspberry Pi Soundboard: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Lub suab tsim qauv tsim nrog Arduino thiab Raspberry Pi txhais tau tias yog txoj hauv kev yooj yim ntawm kev ua si 4 lub suab sib txawv lossis nrov nrov thaum muaj kev xaiv los hloov lub suab teeb nrog lub pob qhov rooj thiab tso saib lub suab tam sim no teeb nrog lub vijtsam LCD.
*Thov nco tseg: Txoj cai rau txoj haujlwm yog 99% ua tiav, tab sis tsis ua haujlwm.
Raspberry Pi tswj hwm 16x2 LCD npo thiab tus lej nkag teb chaws thaum Arduino nyeem cov lus sib piv los ntawm kev quab yuam tiv thaiv tus neeg tiv thaiv (FSRs) thiab xa lub teeb liab mus rau Arduino los ua suab. Peb ob leeg yeej tsis tau siv Arduino lossis Pi yav dhau los rau hauv chav kawm no, tab sis peb tus kws tshaj lij tau muab peb txhua yam ntawm cov cuab yeej tsim nyog thiab kev taw qhia kom yooj yim code thiab tsim txoj haujlwm no. TinkerCad, cov cuab yeej ua qauv 3D online dawb los ntawm AutoDesk, tau siv los ua qauv rau peb txoj haujlwm.
Qhov nyuaj tshaj plaws ntawm txoj haujlwm yog nrhiav txoj hauv kev kom tau txais Arduino thiab Raspberry Pi los tham nrog kev sib txuas lus. Peb thawj zaug tsuas yog xav siv Pi rau tag nrho txoj haujlwm, tab sis peb xav tau Arduino txhawm rau txhawm rau nyeem cov teeb liab sib piv los ntawm FSRs. Peb tau yooj yim tuaj yeem xa kab lus lossis tus lej los ntawm Arduino thiab tso tawm ntawm Pi, tab sis qhov teeb meem tuaj yog thaum peb sim nyeem cov txiaj ntsig no rau hauv Python thiab siv lawv rau hauv cov lus pom zoo los ua lawv.
Yuav tsum muaj txuj ci
- Kev nkag siab yooj yim ntawm C/C ++ rau Arduino coding
- Kev nkag siab yooj yim ntawm Python rau Raspberry Pi coding
- Kev paub txog yuav ua li cas thiaj li tau txais daim kab xev
- Kev txawj ua qauv 3D yooj yim
- Lub siab xav kawm thiab nthuav dav cov phiaj xwm, thaiv, thiab tsim qee yam zoo
Daim Ntawv Teev Npe
1 x Raspberry Pi 3
1 x Elegoo Uno LOSSIS Arduino Uno
1 x 830 Tie Breadboard
1 x GPIO Breakout Board (RSP-GPIO)
1 x Ribbon Cable rau Breakout Board
4 x Me Nyuam Yooj Yim Ruaj Ntseg Resistors
1 x Basic 16x2 Character LCD Screen
1 x Rotary Encoder Module
24 x Txiv neej rau poj niam cov xov hlau
10 x Txiv neej rau txiv neej xaim
4 x 10k resistors
1 x 10k potentiometer
1 x Lub vaj ua npuas ncauj hauv caug hauv ncoo (duas khw)
Kauj Ruam 1: Xeem FSR Nrog Arduino
Peb xub txiav txim siab sim tawm FSR nrog Arduino. FSRs xa cov teeb liab analog thiab yog li ntawd peb yuav tsum siv Arduino raws li Pi tsis tau txais analog yam tsis muaj lwm yam khoom siv. Peb xav sim qhov chaw pib kom paub tseeb tias cov nias ntawm lub siab zoo. Peb pom nws nyob ib puag ncig 150 tawm ntawm tag nrho 1000. Cov phiaj xwm phiaj xwm ntawm Arduino IDE tau pab tau zoo rau theem no.
Kauj Ruam 2: Kos Tawm Cov Plans rau Pawg Thawj Coj
Tom qab ntawd peb tau kos thiab ntsuas cov phiaj xwm rau pawg thawj coj. Peb xav kom muaj 4 daim ntaub los ua suab nrog, ib qho chaw rau lub vijtsam LCD los tso saib cov pab pawg suab tam sim no, thiab cov lus teb kom hloov cov pab pawg suab.
Kauj Ruam 3: Ua Qauv Pawg Thawj Coj hauv TinkerCad
Tom qab cov phiaj xwm tau kos, peb ua qauv pawg thawj coj hauv online, pub dawb, 3D tus qauv lub vev xaib hu ua TinkerCad los ntawm Autodesk. Peb pom zoo nws rau cov ntawm koj uas tsis xav siv nyiaj ntau ntawm cov qauv 3D loj loj vim nws yooj yim siv, huab raws, thiab muaj kev txhawb nqa tag nrho rau 3D luam ntawv.
Tom qab nws tau ua qauv, peb yuav tsum faib nws ua 2 daim thiaj li haum nws ntawm lub tshuab luam ntawv. Nws luam tawm tau zoo heev, tab sis kuv qhov yuam kev tsis tau ntsuas qhov loj ntawm lub vijtsam LCD tau zoo heev (tsis txhob ua qhov yuam kev!) Peb tau tso cov ntawv sab laug thiab sab xis. STL cov ntaub ntawv yog tias koj xav tshuaj xyuas lawv.
Kauj Ruam 4: Xeem LCD Screen
Peb twb tau siv lub vijtsam ntawm Arduino thiab nws yooj yim heev rau teeb tsa. Txawm li cas los xij, nws nyuaj dua los khiav nrog Pi. Nrog ntau qhov teeb meem teev nyob rau Google thiab fidgeting nrog cov xov hlau, thaum kawg peb tau txais nws ua haujlwm. Thov saib zaum kawg Python code thaum kawg saib nws ua haujlwm li cas. Peb siv ob peb lub vev xaib los pab peb xaim nws thiab sau cov cai. Txheeb xyuas lawv:
learn.adafruit.com/drive-a-16x2-lcd-direct…
www.raspberrypi-spy.co.uk/2012/07/16x2-lcd…
Kauj Ruam 5: Kuaj Cov Qub Encoder Nrog LCD Screen
Tom qab ntawd peb xav pom yog tias peb tuaj yeem hloov pauv lub vijtsam LCD nws cov ntawv thaum tus lej nkag tau tig. Tus encoder tsis muaj qhov teeb tsa ntawm cov ces kaum lossis kev sib hloov, yog li hauv cov cai peb suav pes tsawg zaus nws tau tig lub moos los yog counter clockwise thiab ua rau suav rau 3. Yog tias nws dhau mus, nws yuav rov qab mus rau 0, thiab yog tias nws mus qis dua 0, nws yuav rov qab mus rau 3. Cov lej no tuaj yeem teeb tsa rau ntau lub suab uas koj nyiam, tab sis peb tsuas yog ib txwm ua tiav qhov ntsuas ib lub suab. Xyuas kom tseeb tias koj lub suab nyob hauv tib lub nplaub tshev/qhov chaw zoo li qhov uas lub ntsiab Python tau ua tiav.
Kauj Ruam 6: Sib sau ua Pawg
FSRs swb hauv qab plaub qhov sib txawv. Peb nyob nruab nrab ntawm lawv thiab kaw lawv. Peb pom zoo kom kaw cov kab xev lossis tej zaum txawm tias gluing vim tias daim kab xev yooj yim scotch yog qhov txaus ntshai ntawm kev ua raws li cov ntawv luam tawm 3D. Tom qab taug kev nrawm mus rau lub khw muag nyiaj daus las, peb pom cov mos mos tab sis squishy lub hauv caug lub hauv ncoo uas peb tuaj yeem txiav ua plaub daim los siv ua cov nyees khawm rau pawg thawj coj saib. Peb txiav lawv kom lawv muaj peev xwm haum tau yooj yim hauv lawv qhov chaw kom lawv tuaj yeem nyob hauv qhov chaw, tab sis tseem raug tshem tawm tau yooj yim yog xav tau.
Kauj Ruam 7: Hlau Txhua Qhov
Tom qab sib dhos lub rooj tsavxwm thiab tso FSRs, tus lej nkag, thiab tshuaj ntsuam rau hauv qhov chaw, peb txuas txhua yam. Koj tuaj yeem siv 2 lub thawv ntawv, tab sis peb tuaj yeem haum txhua yam ntawm ib qho. Daim duab zoo li tsis meej pem, tab sis peb tau tsim daim duab qhia chaw hauv qhov kev pab dawb hu ua Fritzing. Nco ntsoov tias koj tuaj yeem hloov pauv tus lej twg koj xav muab txhua yam rau, tab sis daim duab sib xws nrog peb cov cai.
Kauj Ruam 8: Ua tiav Coding Txhua Yam
Qhov no yog qhov nyuaj. Raws li tau hais hauv cov lus qhia, peb tsis tuaj yeem ua tiav ntu no. Txoj cai yog 99% txhua qhov nyob ntawd, tab sis ib feem uas tsis ua haujlwm yog kev sib txuas lus txuas los ntawm Arduino rau Pi. Peb tuaj yeem xa cov ntaub ntawv yooj yim thaum peb txuas Arduino rau Pi nrog USB cable, tab sis Pi tsis tuaj yeem ua dab tsi tshwj tsis yog tso tawm cov ntaub ntawv ntawm lub vijtsam. Peb xav kom tuaj yeem qhia lub pob twg tau raug nias thiab ua qhov ntawd ua lub suab tshwj xeeb, tab sis cov ntaub ntawv uas tau los ntawm kev sib txuas lus tsis tuaj yeem muab tso rau hauv nqe lus pom zoo los ntsuas seb lub khawm tau nias li cas.
Thov saib cov kab ntawv txuas, sau ntawv tau tawm tswv yim hauv Python code rau Pi. Arduino code yuav tsum yog 100%.
Kauj Ruam 9: Xaus
Zuag qhia tag nrho, txoj haujlwm no yog qhov kev kawm paub ntau rau peb thiab peb vam tias qhov kev sau no tuaj yeem muab rau cov tub ntxhais kawm yav tom ntej, cov kws qhia ntawv, lossis cov kws tshaj lij qee qhov kev tshoov siab rau lawv tus kheej txoj haujlwm thiab coj lawv los ntawm kev kawm los ntawm peb qhov ua yuam kev. Qhib rau peb tus kws tshaj lij neeg hlau uas tau pab ntau heev thaum peb lub sijhawm nyob hauv chav kawm thiab muab sijhawm rau peb kom muaj kev lom zem thiab kawm ntau yam hauv chav kawm COMP laus! Ua tsaug rau kev nyeem:)
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev yees duab Lighbox Ua Los Ntawm Cov Duab Duab: 6 Kauj Ruam (nrog Duab)
Kev yees duab Lighbox Ua Los Ntawm Cov Duab Duab: Koj puas tau nyob hauv qhov xwm txheej uas koj yuav tsum tau thaij duab zoo ntawm qee yam thiab koj tsis muaj xob laim zoo nkauj lossis keeb kwm yav dhau zoo? Puas yog koj mus yees duab tab sis koj tsis muaj nyiaj ntau rau cov cuab yeej kim kim? Yog tias muaj, qhov no yog
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab