Cov txheej txheem:
- Kauj Ruam 1: Sau Koj Cov Khoom
- Kauj Ruam 2: Npaj lub MyoWare Sensor
- Kauj Ruam 3: Txuas lub MyoWare Sensor mus rau MaKey MaKey
- Kauj ruam 4: Upload Sketch rau MaKey MaKey
- Kauj Ruam 5: Txuas Tag Nrho Koj Cov Cheeb Tsam Ua Ke
- Kauj Ruam 6: Teeb Thresholds hauv Arduino IDE
- Kauj Ruam 7: Txaus Siab Rau Siv Koj Lub Tsev Tshiab EMG System
- Kauj Ruam 8: Ntxiv Qhov Kev Pom Zoo Thib Ob rau Koj li EMG System
Video: Ntaus Nrog EMG Siv MyoWare: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Sau:
L. Elizabeth Crawford & Dylan T. Vavra
Taw qhia:
Hauv qhov kev qhia no, peb yuav qhia koj yuav ua li cas tsim qhov yooj yim hauv tsev electromyography (EMG) system - ntawm tus nqi kwv yees li $ 100 - uas yuav nkag siab cov leeg ua haujlwm los ntawm cov tawv nqaij thiab siv nws los xa tus lej rau lub computer, hla dhau cov keyboard. Peb tau siv ib txwm MaKey MaKey thiab MyoWare sensor kom ua tiav qhov no, nrog rau kev sau me ntsis. Txoj haujlwm no tseem yuav tsum tau siv qee qhov kev sib txuas. Cov lus qhia muaj txiaj ntsig rau cov txheej txheem txheej txheem thiab kev nyab xeeb tuaj yeem pom ntawm no.
Ua ntej, peb yuav qhia koj yuav ua li cas ua tiav qhov no siv ib qho MyoWare sensor. Tom qab ntawd, peb yuav qhia koj yuav ua li cas ntxiv ib qho thib ob rau hauv kab ke (rau peb lub hom phiaj, peb siv ob).
Peb qhov kev cia siab yog tias lwm tus tuaj yeem ua raws li DIY DIY EMG thev naus laus zis, hloov kho nws rau lawv cov kev xav tau tshwj xeeb, thiab siv nws rau txhua tus lej ntawm cov ntawv thov nthuav. Peb siv nws hauv peb Qhov Kev Tshawb Fawb Txog Kev Nyuaj Siab ntawm Tsev Kawm Qib Siab Richmond kom rov ua dua kev tshawb fawb qhia tias tib neeg zoo li lwm tus lub ntsej muag.
Kauj Ruam 1: Sau Koj Cov Khoom
Cov ntaub ntawv:
- Khoos phis tawj
- MaKey MaKey nrog USB txuas nrog (koj yuav tsum muaj peev xwm ua qhov no nrog Arduino Leonardo ib yam nkaus, tab sis peb tsis tau sim nws)
- USB Fais fab cais (tshwj tsis yog khiav tawm ntawm lub roj teeb uas siv lub laptop), xws li Adafruit USB Isolator - 100mA Isolated Low/Full Speed USB (tsis muaj duab)
- MyoWare sensor (s) cov
- Electrodes (x3 rau MyoWare sensor) - peb siv Covidien Kendall Cov Khoom Siv Pov Tseg EMG/ECG/EKG Electrodes 1 "(24 mm)
- Lub taub hau tawg (peb siv lub taub hau zoo li L)
- Cov xov hlau nrog txiv neej txuas ntawm ib kawg, poj niam ntawm lwm tus
- Solder
- Daim kab xev hluav taws xob
Cov Cuab Yeej:
- Soldering hlau
- Hlau txiav
- Hlau splitter
Software:
Arduino IDE nrog MaKey MaKey addon
Kauj Ruam 2: Npaj lub MyoWare Sensor
1. Tua tawm ib txheej ntawm peb lub taub hau sib cais rau cov laug mus rau MyoWare.
2. Nrog rau MyoWare sensor tso nrog lub ntsej muag bicep nce, ntxig qhov luv luv ntawm peb lub taub hau los ntawm hauv qab no rau hauv lub qhov uas muaj "+" (ntxiv rau kos npe ","-"(tsis zoo kos npe), thiab" SIG " ib sab ntawm lawv. (Saib daim duab saum toj no.)
3. Muab cov taub hau tso rau hauv qhov chaw.
Kauj Ruam 3: Txuas lub MyoWare Sensor mus rau MaKey MaKey
1. Xaiv peb lub xov hlau (hom phiaj ntawm cov xim sib txawv), txiv neej ntawm ib kawg, poj niam ntawm lwm tus. Qhov ntev ntawm cov xov hlau koj xav tau nyob ntawm seb koj xav kom MyoWare nyob ntawm MaKey MaKey li cas. Kom muaj MyoWare ntawm lub ntsej muag thiab MaKey MaKey so ntawm lub rooj, koj yuav xav tau txog 18 ntiv tes.
2. Txiav txim siab qhov haujlwm ntawm cov hlau ntawm txhua xim yuav ua haujlwm. Ib qho yuav raug siv rau lub zog (ntsaws rau hauv + txuas rau ntawm MyoWare sensor), ib qho yuav raug siv rau hauv av (ntsaws rau hauv - txuas rau ntawm MyoWare sensor), thiab qhov thib peb yuav siv ua lub teeb liab hlau (ntsaws rau hauv SIG txuas ntawm MyoWare). Hauv cov duab qhia hauv cov lus qhia no, peb siv ntsuab rau lub zog, xim av rau hauv av, thiab txho rau lub teeb liab.
Kauj ruam 4: Upload Sketch rau MaKey MaKey
1. Nruab Arduino IDE hauv koj lub khoos phis tawj (Tutorial here).
2. Nruab MaKey MaKey addon rau Arduino (Tutorial ntawm no) los ntawm kev qhib koj li Arduino nyiam (Cov Ntaub Ntawv> Nyiam), mus rau Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs lub npov ntawv, thiab muab tso rau hauv:
raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
3. Hauv Arduino IDE, nyem cov ntaub ntawv, rub nqes los tsim daim duab tshiab. Luam thiab muab cov cai no tso rau hauv lub qhov rai ntawv:
/*thresholds rau sau npe tus yuam sij nias*/const int thresh1 = 1000;/*ua haujlwm ntawm cov tswv yim ntawm MaKey MaKey*/const int sensor1Pin = A3; #include "Keyboard.h" int LED (9); tsis muaj teeb tsa teeb tsa () { pinMode (LED, OUTPUT); Serial.begin (9600);}/*Cov cai hauv qab no piv rau MyoWare txhua 50 ms, xa nws tus nqi mus rau qhov chaw nres nkoj, thiab yog tias tus nqi siab dua qhov pib, xa tus lej. Koj tuaj yeem ua piv txwv ntau dua los ntawm kev txo qis. Qhov no yuav ua rau qhov ntsuas nyuaj nyeem hauv lub qhov rai.*/Void loop () {int sensor1Val = analogRead (sensor1Pin); Serial.println (sensor1Val); yog (sensor1Val> = thresh1) {Keyboard.begin ();/ /Xa qhov tseem ceeb ntawm tsab ntawv "c" Keyboard.write ('c'); // tos 50 ms ua ntej kuaj dua ncua sijhawm (50);} lwm qhov // tos 50 ms ua ntej kuaj dua (50);}
4. Txuas MaKey MaKey rau koj lub khoos phis tawj. Rub cov cuab yeej ntawv qhia zaub mov thiab xyuas kom cov pawg xaiv yog Arduino Leonardo lossis MaKey MaKey. Rub cov cuab yeej ntawv qhia zaub mov mus rau Chaw Nres Nkoj, thiab xyuas kom tseeb tias qhov chaw nres nkoj xaiv muaj lub npe ntawm koj pawg thawj coj xaiv. Muab koj daim duab kos rau ntawm lub rooj tsavxwm los ntawm txhaj rau sab xis tig xub rau sab saum toj ntawm Arduino IDE.
Kauj Ruam 5: Txuas Tag Nrho Koj Cov Cheeb Tsam Ua Ke
1. Txuas cov xov hlau los ntawm MyoWare sensor mus rau MaKey MaKey raws li hauv qab no:
- "+" Ntawm MyoWare mus rau 5V qhov ntawm MaKey MaKey.
- "-" ntawm MyoWare mus rau hauv av ("ntiaj teb") ntawm MaKey MaKey.
- "SIG" ntawm MyoWare mus rau A3 qhov ntawm MaKey MaKey.
2. Ntsuas peb qhov hluav taws xob mus rau MyoWare.
3. Plug rau hauv MaKey MaKey. Yog tias siv lub khoos phis tawj txuas nrog lub qhov hluav taws xob, ntsaws MaKey MaKey rau hauv USB lub zog cais thiab tom qab ntawd ntsaws rau hauv lub computer USB chaw nres nkoj. (Qhov no yog kev tiv thaiv kev nyab xeeb kom yog tias muaj qee yam tsis raug ntawm lub hwj chim hauv koj lub khoos phis tawj, tus neeg hnav tsis txuas ncaj qha mus rau cov kab hluav taws xob. Nws tsis zoo li qhov teeb meem yuav tshwm sim, tab sis peb xav kom koj nyab xeeb.) Yog tias siv lub khoos phis tawj tawm ntawm lub roj teeb (piv txwv li, TSIS TXHOB ntsaws rau hauv WALL) koj nyob nyab xeeb yam tsis muaj tus cais.
4. Txheeb xyuas kom pom tias txhua yam muaj zog. Lub MaKey MaKey liab LED thiab MyoWare ntsuab LED yuav tsum yog ob qho tib si.
5. Ntxuav cov tawv nqaij qhov twg koj xav muab cov MyoWare nrog cov dej cawv los so kom tshem tau cov av thiab roj.
6. Tev tawm cov nplaum rov qab rau ntawm cov hluav taws xob thiab muab cov MyoWare tso rau ntawm daim tawv nqaij. Koj xav kom ob lub tshuab hluav taws xob uas nyob ntawm MyoWare nyob saum cov leeg uas koj xav sau los ntawm. Cov hluav taws xob txuas rau cov hlau ua haujlwm sib piv, thiab yuav tsum tau muab tso tawm ntawm cov leeg nqaij hauv thaj chaw uas yuav tsis ua haujlwm thaum lub hom phiaj cov leeg nqaij tau cog lus.
7. Txheeb cov nplaum rau ntawm cov electrodes kom paub tseeb tias koj muaj lub foob zoo rau ntawm daim tawv nqaij. Tej zaum koj yuav tsum tau nias lub npoo ntawm cov nplaum nplaum rau hauv daim tawv nqaij kom tau txais lub foob zoo.
Kauj Ruam 6: Teeb Thresholds hauv Arduino IDE
1. Nrog txhua yam txuas nrog thiab siv tau, qhib lub saib nyob rau hauv Arduino IDE los ntawm txhaj rau lub iav tsom iav qhov cuab yeej nyob rau hauv kaum sab xis saum toj.
2. Tam sim no tus saib xyuas yuav tsum tam sim no qhia lub teeb liab los ntawm MyoWare. Thaum koj yoog thiab so cov leeg, koj yuav tsum pom qhov tseem ceeb hloov pauv raws li. Koj tseem yuav tsum pom lub teeb liab liab ntawm MyoWare teeb thaum koj cog cov nqaij tawv txaus.
3. Thaum saib cov ntawv saib xyuas, cog cov leeg nrog ntau qhov sib txawv, nco ntsoov so hauv nruab nrab ntawm kev cog lus kom rov qab mus rau lub hauv paus. Txiav txim siab tus nqi pib saum toj no uas koj xav kom qhov kev cog lus los tsim tus yuam sij. Cov txiaj ntsig siab dua yuav xav kom muaj kev cog lus ruaj khov txhawm rau sau npe tus yuam sij; qhov tseem ceeb qis yuav ua rau nws nkag siab me me rau kev cog lus me me tab sis kuj tseem muaj feem cuam tshuam rau lub tswb dag.
4. Hauv daim duab Arduino, hloov tus nqi pib (const int thresh1) los ntawm 1000 rau qhov koj xaiv pib.
5. Kaw qhov ntsuas saib, rov sau daim duab, thiab pib sau nrog EMG. Tej zaum koj yuav pom tias koj yuav tsum rov kho qhov pib kom tau txais qhov rhiab qhov uas koj xav tau. Koj tseem tuaj yeem sim nrog qhov ncua kom nws kuaj ntau dua lossis tsawg dua.
Kauj Ruam 7: Txaus Siab Rau Siv Koj Lub Tsev Tshiab EMG System
Koj tuaj yeem tso cov hluav taws xob nyob hauv ntau qhov chaw ntawm lub cev (piv txwv li, ntawm lub ntsej muag, raws li peb lub chaw kuaj ntshav cyborg Kyle Lee piav qhia saum toj no).
Kev sim nrog cov chaw tso cov electrodes thiab nrog ntau qhov muaj peev xwm ntawm yam koj tuaj yeem siv cov twj nias kom ua.
Tsis tas li, txuas ntxiv nyeem kom paub ntxiv yuav ua li cas ntxiv MyoWare sensor rau hauv kab ke no.
Kauj Ruam 8: Ntxiv Qhov Kev Pom Zoo Thib Ob rau Koj li EMG System
1. Rov Ua Dua Kauj Ruam 2 rau qhov thib ob MyoWare sensor.
2. Txhawm rau txuas ntau lub ntsuas hluav taws xob rau ib qho MaKey MaKey, koj yuav xav tau txoj hauv kev kom tau txais lub zog rau txhua tus. Peb tau ua qee qhov me me ntawm cov hlau xaim, siv tshuaj tua kab, thiab kaw kom tsim lub Y-txuas txuas (saib daim duab saum toj no), faib cov khoom tso tawm ib leeg los ntawm MaKey MaKey lub zog muab rau hauv ob lub xov hlau uas txuas rau "+" fais fab nkag rau txhua ntawm ob lub MyoWares.
3. Txuas qhov "SIG" qhov ntawm lub MyoWare sensors mus rau A-qhov sib txawv ntawm sab xis ntawm MaKey MaKey (cov cai peb muab hauv qab no xav tias koj siv A3 thiab A4).
4. Tshaj tawm daim duab kos rau ob lub cim:
/* daim duab no nyeem ob lub MyoWare cov cim qhia thiab xa tus lej "b" thaum ib tus mus rau qhov siab dua thiab 'c' thaum lwm tus mus siab dua qhov pib.* //* teeb tsa qhov pib*/const int thresh1 = 1000; const int thresh2 = 1000;/*ua haujlwm ntawm cov tswv yim ntawm MaKey MaKey*/const int sensor1Pin = A3; const int sensor2Pin = A4; #include "Keyboard.h" int LED (9); tsis muaj teeb tsa () {pinMode (LED, OUTPUT); Serial.begin (9600);} void loop () {int sensor1Val = analogRead (sensor1Pin); int sensor2Val = analogRead (sensor2Pin); Serial.print (sensor1Val); Serial.print (","); Serial.println (sensor2Val); yog (sensor1Val> = thresh1) {Keyboard.begin (); // Send keypress cKeyboard.write ('c'); ncua (50);} yog (sensor2Val> = thresh2) {Keyboard.begin (); // Xa keypress bKeyboard.write ('b'); ncua (50);} lwm yam // tos 50 ms ua ntej sam sim dua (50);}
5. Tam sim no ob leeg kev nyeem cov leeg nqaij yuav tsum pom hauv qhov saib ua ntej. Teem txhua qhov pib sib txawv hauv Arduino kos duab, ib yam li hauv Kauj Ruam 6, thiab tom qab ntawd rov qab kos duab.
Tam sim no koj li EMG system yuav muaj ob qhov kev nkag nkag cais
Yog tias koj tau hnov me ntsis tsiaj qus, koj tuaj yeem ua raws cov txheej txheem zoo sib xws los ntxiv ntau yam MyoWare sensors rau hauv kab ke. Yog tias koj tau txais kev xav tiag tiag, koj tuaj yeem ntxiv lwm MaKey MaKey rau hauv kab ke. Peb txhawb koj kom sim nrog cov qauv no.
Pom zoo:
(Ntau tus neeg sib ntaus) Sib ntaus ntawm GameGo Nrog Makecode Arcade: 6 Kauj Ruam
(Ntau tus neeg sib ntaus) Sib ntaus ntawm GameGo Nrog Makecode Arcade: GameGo yog Microsoft Makecode tau tshaj retro gaming portable console tsim los ntawm TinkerGen STEM kev kawm. Nws yog ua raws STM32F401RET6 ARM Cortex M4 nti thiab ua rau STEM cov kws qhia lossis tsuas yog cov neeg uas nyiam muaj kev lom zem tsim retro video ga
Ntaus Tus Ntaus Nrog Lub Qhov Ncauj Nas: 11 Kauj Ruam (nrog Duab)
Ntaus Tus Ntaus Nrog Lub Qhov Ncauj Qhov Ncauj: Lub Rooj Tswjhwm Saib Makey Makey tau tsis ntseeg tau qhib ntau txoj hauv kev rau kev cuam tshuam nrog PC lossis Laptop. Whilst piano ua si tsawb thiab cov ntawv nyiaj ua rau muaj kev lom zem thiab kev kawm Kuv xav nrhiav daim ntawv thov uas txawv thiab vam tias yuav koom nrog
Ntse Ntaus Pob Ntaus Pob Ua Si Nrog Cov Qub Suav Suav Hoops Siv Evive- Arduino Embedded Platform: 13 Cov Kauj Ruam
Ntse Ntaus Pob Ntaus Pob Ntaus Pob Ua Si Nrog Cov Ntsiab Lus Suav Hoops Siv Evive- Arduino Embedded Platform: Ntawm txhua qhov kev ua si tawm muaj, qhov lom zem tshaj plaws yog kev ua si arcades. Yog li, peb xav tias vim li cas ho tsis ua peb tus kheej hauv tsev! Thiab ntawm no peb yog, qhov lom zem tshaj plaws DIY game koj tau puas tau ua si txog tam sim no - DIY Arcade Basketball Game! Tsis yog tsuas yog
Yuav Ua Li Cas Ua Tus Kheej Ntaus Pob Ntaus Pob Ua Si Siv Tus Neeg Siv IRobot Tsim Ua Lub Hauv Paus: 7 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ua Tus Kheej Ntaus Pob Ntaus Pob Ntaus Pob Ua Si Siv IRobot Tsim Ua Lub Hauv Paus: Nov yog kuv nkag mus rau iRobot Tsim kev sib tw. Qhov nyuaj tshaj plaws ntawm tag nrho cov txheej txheem rau kuv tau txiav txim siab tias tus neeg hlau yuav ua dab tsi. Kuv xav ua kom pom cov yam ntxwv txias ntawm Tsim, thaum tseem ntxiv qee qhov kev xav ntawm robo. Txhua ntawm kuv
Yuav Ua Li Cas Siv Lub Tshuab Ntaus Ntaus Ntaus Pob lossis Ua Ob Qhov Rau Koj Lub Stereo: 17 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Siv Lub Tshuab Ntaus Ntaus Ntaus Ntaus lossis Tsim Ob Qhov Rau Koj Lub Stereo.: Kuv xav tau tus ntaus suab paj nruag tshiab mus nrog lub raj amp kuv tab tom tsim. Tus hais lus yuav nyob hauv kuv lub khw yog li nws tsis tas yuav muaj dab tsi tshwj xeeb. Tolex npog yuav yooj yim heev puas yog li kuv tsuas yog txau cov xim dub sab nraud tom qab lub teeb xuab zeb