Cov txheej txheem:

Handheld EEG Focus Monitor: 32 Cov Kauj Ruam
Handheld EEG Focus Monitor: 32 Cov Kauj Ruam

Video: Handheld EEG Focus Monitor: 32 Cov Kauj Ruam

Video: Handheld EEG Focus Monitor: 32 Cov Kauj Ruam
Video: Controlling Electronics with my Mind! | EEG Brain Computer Interface 2024, Hlis ntuj nqeg
Anonim
Image
Image

Lub neej nyob hauv tsev kawm qib siab xav kom tsom mus rau chav kawm, haujlwm thiab phiaj xwm. Ntau tus tub ntxhais kawm pom nws nyuaj rau tsom mus rau lub sijhawm no uas yog vim li cas kev saib xyuas thiab nkag siab koj lub peev xwm tsom mus rau yog qhov tseem ceeb heev. Peb tsim cov cuab yeej biosensor uas ntsuas koj lub suab paj nruag txhawm rau ntsuas koj qib siab thiab qhia cov ntaub ntawv rau koj pom. Cov ntawv luv "EEG" sawv rau electroencephalograph, uas txhais tau tias nws yog lub tshuab siv los sau cov haujlwm hluav taws xob hauv lub hlwb.

Tus biosensor no xav tau EEG teeb liab nkag mus thiab koj tus ntiv tes nias rau ntawm lub vijtsam txhawm rau tsim cov duab nrawm thiab rho tawm cov ntaub ntawv (xaiv tau) uas tuaj yeem theej mus rau Excel.

Kev tsis lees paub: Tus biosensor no TSIS yog khoom siv kho mob.

Khoom siv

  • Arduino Uno ($ 23)
  • Cov qhob cij ($ 5.50)
  • 2.8 "TFT Touch Shield rau Arduino nrog Resistive Touch Screen ($ 34.95)
  • Hlau ($ 0.95)
  • EEG Bitalino ($ 40.79)
  • Cov Hluav Taws Xob ($ 9.13)
  • 3-txhuas khoom siv ($ 21.48)
  • Dej cawv swabs ($ 4.65) (xaiv tau)
  • 9V roj teeb ($ 2.18)
  • Lub roj teeb 9V ($ 1.69)
  • USB 2.0 Cable hom A/B $ 3.95)
  • Cov cuab yeej

    • Hlau Stripper ($ 6.26)
    • Cov plaub hau / lub mloog pob ntseg kom ruaj ntseg xov hlau saum koj taub hau (xaiv tau)

Tus nqi tag nrho: $ 142 (nyob ntawm tus nqi hloov pauv)

Kauj ruam 1: Yam yuavtsum tau kawm uantej

Kev Nyab Xeeb Kev Nyab Xeeb
Kev Nyab Xeeb Kev Nyab Xeeb
  • Qee qhov kev paub yooj yim ntawm yuav ua li cas nyeem ntawv lub hlwb yuav pab tau kom nkag siab lub teeb, tab sis tsis tsim nyog.

    Nov yog cov peev txheej zoo rau qee cov ntaub ntawv keeb kwm yav dhau los.

  • Koj tseem yuav xav tau nkag mus rau GitHub lub vev xaib kom tau txais peb cov cai.
  • Koj yuav tsum rub tawm daim ntawv thov Arduino.

Kauj Ruam 2: Kev Nyab Xeeb Kev Nyab Xeeb

  • Nco ntsoov tias lub Circuit Court tsis siv hluav taws xob (pob roj teeb tau tawm, USB tsis tau ntsaws) thaum hloov kho lub Circuit Court.
  • Nco ntsoov tias tsis muaj cov kua nyob ze uas tuaj yeem nchuav rau hauv Circuit Court.
  • CEEB TOOM: Qhov no tsis yog khoom siv kho mob thiab tsis muaj qhov tseeb ib yam. Siv qhov EEG kom raug yog tias koj xav tau kawm txog ntawm lub hlwb.
  • Khaws koj txhais tes kom qhuav thaum ua haujlwm nrog lub Circuit lossis biosensor.

Kauj Ruam 3: Cov Lus Qhia thiab Cov Lus Qhia

Cov Lus Qhia thiab Cov Lus Qhia
Cov Lus Qhia thiab Cov Lus Qhia

Teeb meem

  • Nco ntsoov tias koj cov xov hlau txuas nrog rau tus pin zoo. Yog tias tsis yog, kev nyeem tsis nkag siab yuav tshwm sim.
  • Thaum koj ntsaws rau hauv koj lub vijtsam, xyuas kom tseeb tias koj tsis haum txhua yam ib tus pin qis dua (yog tias koj pom tias ib qho ntawm lub vijtsam pins tsis txuas nrog, qhov no yog vim li cas)
  • Nco ntsoov tias koj tau ntsaws BITalino kom raug (raws li lub cim thiab EEG kos npe raws li pom hauv cov lus qhia)
  • Nco ntsoov yog tias lub vijtsam raug ntsaws rau kom raug rau lub ntsiab lus uas cov hlau ntawm cov pins tsis pom ntxiv lawm.
  • Yog tias txoj cai ua tsis tiav thiab lawv tsis tuaj yeem nrhiav lub tsev qiv ntawv tshwj xeeb, nco ntsoov tias koj tau teeb tsa txhua lub tsev qiv ntawv hais.

Kev nkag siab

Nco ntsoov suav nrog qhov chaw koj xav tau hle cov xaim ua ntej koj txiav nws kom ntev

  • Ua ntej siv cov electrodes rau koj lub hauv pliaj, Nco ntsoov ntxuav thiab qhuav nws ua ntej lossis siv cawv cawv los txo qis kev tiv thaiv.
  • Siv Arduino Mega yuav muab cov Analog thiab Digital pins ntxiv, uas txhais tau tias koj yuav tsis xav tau "sib koom" pins ntawm cov xov hlau thiab lub vijtsam zoo li peb tab tom ua hauv tus qauv no.

Kauj Ruam 4: Kev Tshawb Fawb Tom Qab Ntaus Ntawv

Kev Tshawb Fawb Tom Qab Ntaus Ntawv
Kev Tshawb Fawb Tom Qab Ntaus Ntawv

Koj lub paj hlwb tsim cov zaus sib txawv ntawm cov cim hluav taws xob nyob ntawm koj qib kev nco qab/ua kom pom tseeb. Nws tsim Gamma nthwv dej (32-100 Hz) thaum nws mob siab rau lub luag haujlwm, ua cov ntaub ntawv lossis kawm. Nws ua rau Beta nthwv dej (13-32 Hz) thaum koj ceeb toom, xav lossis txaus siab. Alpha nthwv dej (8-13 Hz) yog tsim tawm yog tias koj lub cev thiab lub paj hlwb so. Theta nthwv dej (4-8 Hz) tshwm sim thaum sib sib zog nqus xav lossis REM (txav qhov muag nrawm) tsaug zog. Delta nthwv dej (<4 Hz) tshwm sim thaum sib sib zog nqus, tsis tsaug zog.

Peb lub sensor yuav qhia rau koj paub ntau npaum li cas ntawm txhua qhov nthwv dej tam sim no los tso cai rau koj ntsuas koj qib kev tsom. Nws tsuas yog pom lub nthwv dej ntawm 0Hz-59Hz, uas yog thaj tsam uas feem ntau lub paj hlwb tshwm sim.

Yog tias koj xav tau cov vis dis aus qhia, ntawm no yog daim vis dis aus zoo uas koj tuaj yeem saib.

Hauv peb cov vis dis aus, peb tham txog Fast Fourier Transform. Daim vis dis aus no piav qhia tias yog dab tsi.

Kauj Ruam 5: Txiav thiab txiav cov hlua

Txiav thiab txiav cov kab
Txiav thiab txiav cov kab

Rau qhov ua tau zoo tshaj plaws, koj xav tau 3 daim ntawm qhov tsawg kawg ntawm 5 ntev.

Yog tias koj tsis tau xaim hlau ua ntej, ntawm no yog cov lus qhia yooj yim.

Tswv yim: Thaum koj txiav cov hlau, nco ntsoov tawm ntawm qhov chaw kom tshem cov xaim.

Kauj Ruam 6: Loop Ib Kawg Ntawm Txhua Cov Hlau

Loop Ib Qhov Kawg Ntawm Txhua Cov Hlau
Loop Ib Qhov Kawg Ntawm Txhua Cov Hlau

Lub hom phiaj ntawm no yog txhawm rau tsim lub voj ntawm ib kawg qhov nthuav tawm ib feem ntawm cov xaim. Lub voj no yuav tsum yog txog qhov loj ib yam li tus pin nyob hauv TFT Touch Shield lossis loj dua.

Kauj Ruam 7: Nrhiav Cov Pins Sib Cais Hauv Qab Qhov screen

Nrhiav cov Pins uas Nyob Hauv Qhov Screen
Nrhiav cov Pins uas Nyob Hauv Qhov Screen

Sib piv Arduino Uno thiab sab hauv qab ntawm lub vijtsam txhawm rau txheeb xyuas tus lej sib xws rau 3.3V, GND thiab A5.

Hint: Yog tias koj ua tib zoo saib, koj tuaj yeem pom cov kab liab liab nyob hauv daim duab puag ncig cov pins ntawm kev txaus siab.

Kauj Ruam 8: Txuas Cov Xov Tooj rau TFT Touch Shield Pins

Txuas Cov Hluav Taws Xob rau TFT Touch Shield Pins
Txuas Cov Hluav Taws Xob rau TFT Touch Shield Pins

Txuas cov kab uas koj tau ua rau TFT Touch Shield pins uas sib haum rau 3.3V cov zis, GND thiab A5 analog pin ntawm Arduino.

Tswv yim: Yog tias koj tsis paub meej tias yuav muab cov ntawv twg los txuas rau, koj tuaj yeem siv cov uas tau piav qhia hauv daim duab saum toj no.

Kauj Ruam 9: Ceev Cov Hlau Loops

Tighten Cov Hlau Loops
Tighten Cov Hlau Loops

Pinch cov hlau ib feem ntawm cov xaim xaim kom nruj nws. Qhov no yuav ua kom muaj kev sib txuas zoo dua.

Kauj ruam 10: Txuas rau hauv TFT Touch Shield

Plug rau hauv TFT Kov Shield
Plug rau hauv TFT Kov Shield

Siv koj cov ntiv tes los tiv thaiv cov xov hlau nyob hauv lawv qhov chaw thiab tig lub TFT Touch Shield hla. Txuas nws mus rau Arduino.

Kauj Ruam 11: Txuas Cov Hluav Taws Xob rau hauv Breadboard

Txuas Cov Hluav Taws Xob rau hauv Breadboard
Txuas Cov Hluav Taws Xob rau hauv Breadboard

Txuas lub

  • 3.3V xaim mus rau + kem ntawm lub khob cij.
  • GND xaim mus rau - kem ntawm lub khob cij.
  • A5 xaim rau txhua kab ntawm daim ntawv tais.

Tswv yim: Cov xov hlau uas koj pom hla lub vijtsam yog rau lub ntsiab lus piv txwv. Peb tau xaiv los khiav cov xov hlau nyob hauv qab lub vijtsam txij li cov xov hlau peb tau luv heev.

Kauj Ruam 12: Txuas Koj 3-lead Accessory

Txuas koj 3-lead Accessory
Txuas koj 3-lead Accessory

Txuas 3-cov khoom siv txuas ntxiv mus rau BITalino EEG sensor. Txuas qhov no rau ntawm sab uas sau tias "EEG".

Kauj Ruam 13: Txuas koj li EEG Sensor mus rau Hlau

Txuas koj EEG Sensor mus rau Hlau
Txuas koj EEG Sensor mus rau Hlau

Txuas koj lub xov tooj EEG sensor ntawm sab nrog BITalino lub logo rau nws.

Kauj Ruam 14: Txuas EEG mus rau Breadboard

Txuas EEG mus rau Breadboard
Txuas EEG mus rau Breadboard

Txuas lwm qhov kawg ntawm cov xov hlau mus rau daim txiag ntoo raws li pom hauv daim duab.

  • Txuas cov xaim liab mus rau + kem ntawm lub khob cij
  • Txuas cov xaim dub mus rau - kem ntawm lub khob cij
  • Txuas cov xaim liab liab rau kab nrog xaim los ntawm tus lej A5.

Kauj Ruam 15: Khaws Electrodes rau Koj Lub Hauv Paus

Khaws Electrodes rau Koj Lub Hauv Paus
Khaws Electrodes rau Koj Lub Hauv Paus

Tua tawm cov electrodes thiab lo rau koj lub hauv pliaj raws li pom hauv daim duab.

Kauj Ruam 16: Txuas Koj Tus Kheej

Plug Koj Tus Kheej!
Plug Koj Tus Kheej!

Ua ib qho nrog lub voj voog los ntawm kev txuas qhov kawg ntawm 3-cov khoom siv txuas ntxiv rau cov hluav taws xob ntawm koj lub hauv pliaj. Cov hlau me ntsis ntawm cov electrode yuav tsum haum zoo rau hauv lub qhov ntawm 3-lead accessory.

Nws tsis muaj teeb meem uas cov hlau lead mus rau qhov hluav taws xob ntev npaum li qhov dawb nyob hauv nruab nrab.

Kauj Ruam 17: Ruaj Ntseg Cov Hluav Taws Xob (xaiv tau)

Ruaj Ntseg Cov Hluav Taws Xob (xaiv tau)
Ruaj Ntseg Cov Hluav Taws Xob (xaiv tau)

Yog tias koj tsis xav kom cov xov hlau thaiv koj qhov kev pom, swb lawv rov qab saum koj lub taub hau thiab tiv thaiv lawv nrog qee yam. Kuv xaiv siv lub mloog pob ntseg los ua qhov no.

Kauj Ruam 18: Ntxig 9V Roj Teeb Rau Hauv Cov Roj Teeb

Ntxig lub roj teeb 9V rau hauv Cov Roj Teeb
Ntxig lub roj teeb 9V rau hauv Cov Roj Teeb

Ntxig lub roj teeb 9V rau hauv lub roj teeb.

Kauj Ruam 19: Plug rau hauv 9V Roj Teeb Pob

Plug rau hauv 9V Roj Teeb Pob
Plug rau hauv 9V Roj Teeb Pob

Txuas lub roj teeb 9V rau lub chaw nres nkoj uas qhia hauv daim duab. Khaws lub roj teeb ntim tawm thaum koj ua qhov no.

Kauj ruam 20: Tau txais Txoj Cai Los ntawm Github

Tau txais Code los ntawm Github
Tau txais Code los ntawm Github
  • Mus rau qhov txuas no:
  • Nyem rau ntawm Hand_Held_EEG.ino cov ntaub ntawv. Luam thiab muab cov cai tso rau hauv koj lub qhov rais Arduino.

Xwb, koj tuaj yeem nyem rau ntawm ntsuab "clone lossis rub tawm" khawm, khaws nws ua zip, tom qab ntawd rho tawm cov ntawv thiab qhib nws

Kauj Ruam 21: Rub Cov Tsev Qhua Tsim Nyog

Rub tawm Cov Tsev Qhua Tsim Nyog
Rub tawm Cov Tsev Qhua Tsim Nyog

Thaum koj sim sau cov cai, koj yuav raug hais kom saib rau cov tsev qiv ntawv tshwj xeeb.

  • Mus rau cov cuab yeej> Tswj Cov Tsev Qiv Ntawv
  • Ntaus hauv lub tsev qiv ntawv koj xav tau hauv kab tshawb nrhiav. Rub tawm qhov uas haum rau lub tsev qiv ntawv xav tau tshaj plaws.
  • Nov yog cov tsev qiv ntawv koj yuav xav tau:

    • arduinoFFT.h
    • Adafruit_GFX.h
    • SPI.h
    • Hlau.h
    • Adafruit_STMPE610.h
    • Adafruit_ILI9341.

Xwb, koj tuaj yeem rub cov tsev qiv ntawv los ntawm cov kab ntawv txuas no. thiab luam lawv rau hauv koj lub tsev qiv ntawv tais ceev tseg.

Arduino FFT:

SPI:

Hlau:

Adafruit ILI9341:

Adafruit STMPE610:

Adafruit GFX:

Kauj Ruam 22: Txuas rau Arduino UNO rau Koj Lub Computer

Txuas lub Arduino UNO rau koj lub khoos phis tawj
Txuas lub Arduino UNO rau koj lub khoos phis tawj

Txuas lub Arduino UNO rau koj lub khoos phis tawj siv USB cable.

Kauj Ruam 23: Tshaj Tawm Txoj Cai

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Nias lub pob upload hauv koj lub qhov rais Arduino raws li qhia hauv lub voj voog liab hauv daim duab saum toj no. Tos kom cov uploading tiav.

Kauj Ruam 24: Cov Khoom Kawg

Cov Khoom Kawg!
Cov Khoom Kawg!

Tshem lub USB cable thiab tam sim no koj muaj cov khoom kawg! Txhua yam koj yuav tsum ua yog tig lub roj teeb pob thiab coj mus rhaub qhov screen kom pib sau cov ntaub ntawv!

Qhov ntau spikes koj pom ntawm sab laug, qis koj qib ua kom pom tseeb.

Kauj Ruam 25: EAGLE Daim duab

EAGLE Daim duab
EAGLE Daim duab

Saum toj no yog daim duab EAGLE. TFT Touch Shield, EEG sensor thiab 9V roj teeb tau sau lo lus. Arduino UNO muaj nws tus kheej daim ntawv lo luam tawm ntawm nws lawm.

Lub 9V Roj Teeb muaj nws qhov kawg txuas nrog 5V tus pin thiab qhov tsis zoo txuas nrog GND tus pin ntawm Arduino Uno.

EEG Sensor muaj nws VCC tus pin txuas nrog rau 3V tus pin, GND tus pin rau GND tus pin thiab REF tus pin rau A5 tus pin ntawm Arduino Uno.

Lub TFT Touch Shield txuas nrog txhua tus pin ntawm Arduino Uno.

Kauj Ruam 26: Nyeem Cov Ntaub Ntawv

Nyeem Cov Ntaub Ntawv
Nyeem Cov Ntaub Ntawv

Hauv qib 4, muaj daim duab qhia pom ntau zaus ntawm lub paj hlwb sib xws mus rau qib twg ntawm kev nco qab/tsom mus. Peb daim duab yog ntsuas ntawm 10Hz ib square. Yog li, yog tias koj pom lub ncov ntawm qhov kawg ntawm lub xwmfab thib 2 (zoo li hauv daim duab). Nws txhais tau tias muaj feem ntau ntawm lub hlwb ntawm 20Hz. Qhov no qhia txog Beta nthwv dej, txhais tau tias tus neeg ntawd tsaug zog thiab mob siab rau.

Kauj Ruam 27: Qhib Serial Monitor (Yeem Tau)

Qhib Serial Monitor (Tsis teb los tau)
Qhib Serial Monitor (Tsis teb los tau)

Qhib cov ntawv saib hauv qab cov cuab yeej tab nyob rau sab saud.

Lossis, koj tuaj yeem nias Ctrl+Ua haujlwm+M.

Kauj Ruam 28: Siv Kev Nyeem Ntawv ntawm Serial Monitor (Yeem Tau)

Ua Kev Nyeem Ntawv ntawm Serial Monitor (Tsis teb los tau)
Ua Kev Nyeem Ntawv ntawm Serial Monitor (Tsis teb los tau)

Nrog lub arduino ntsaws rau hauv lub khoos phis tawj, nyeem ntawv siv lub vijtsam kov.

Kauj Ruam 29: Luam Koj Cov Ntsiab Lus (Tsis teb los tau)

Luam Koj Cov Ntsiab Lus (Tsis teb los tau)
Luam Koj Cov Ntsiab Lus (Tsis teb los tau)

Nyem rau ntawm Serial Monitor, Nias CTRL+A, thiab tom qab ntawd CTRL+C kom theej tag nrho cov ntaub ntawv.

Kauj Ruam 30: Muab Cov Ntsiab Lus tso rau hauv Cov Ntawv Sau. (Tsis teb los tau)

Muab tshuaj txhuam cov txiaj ntsig rau hauv Cov Ntawv Sau. (Tsis teb los tau)
Muab tshuaj txhuam cov txiaj ntsig rau hauv Cov Ntawv Sau. (Tsis teb los tau)

Qhib cov ntawv nyeem zoo li Notepad thiab nias CTRL+V kom muab cov txiaj ntsig tso.

Kauj Ruam 31: Txuag Cov Ntsiab Lus Raws Li.txt File. (Tsis teb los tau)

Txuag Qhov Ua Tau Raws Li.txt File. (Tsis teb los tau)
Txuag Qhov Ua Tau Raws Li.txt File. (Tsis teb los tau)

Cov cai no tuaj yeem xa tawm mus rau hauv software xws li excel txhawm rau txheeb xyuas cov ntaub ntawv.

Kauj Ruam 32: Cov Tswv Yim Ntxiv

Cov Tswv Yim Ntxiv
Cov Tswv Yim Ntxiv
  • Koj tuaj yeem tsim cov cuab yeej uas ua rau koj tsaug zog thaum koj poob siab los ntawm kev ntxiv lub zog vibrating thiab qee cov cai uas ua rau lub cev muaj zog yog tias nws pom lub paj hlwb qis dua qee qhov zaus (zoo ib yam li Fitbit vibrates).
  • Ntxiv SD daim peev xwm yuav tso cai rau koj khaws cov ntaub ntawv thiab ua nws hauv lwm txoj hauv kev los ntawm kev siv xws li Microsoft Excel.

Pom zoo: