Cov txheej txheem:

Kev Nyuaj Siab Nyeem Ntawv Lub Taub Hau: 24 Kauj Ruam (nrog Duab)
Kev Nyuaj Siab Nyeem Ntawv Lub Taub Hau: 24 Kauj Ruam (nrog Duab)

Video: Kev Nyuaj Siab Nyeem Ntawv Lub Taub Hau: 24 Kauj Ruam (nrog Duab)

Video: Kev Nyuaj Siab Nyeem Ntawv Lub Taub Hau: 24 Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Image
Image

Koj puas tau xav tias koj tsaug zog hmo ntuj li cas? Cov cuab yeej zoo li FitBit taug kev tsaug zog los ntawm kev tshuaj xyuas koj lub zog nyob rau hmo ntuj, tab sis lawv tsis tuaj yeem saib seb koj lub paj hlwb ua dab tsi.

Tom qab ib semester ntawm kev kawm paub txog kev ntsuas kev kho mob, peb chav kawm tau sib tw nrog txoj haujlwm ntawm kev tsim cov cuab yeej siv tau los ntsuas qee qhov kev hloov pauv hauv lub cev. Kuv tus khub thiab kuv tau xaiv los tsim lub taub hau uas tuaj yeem saib seb koj lub paj hlwb ua dab tsi thaum tsaug zog. Lub taub hau nyeem ntawv lub suab nthwv dej lub suab kom saib xyuas kev pw tsaug zog. Nws txheeb xyuas yuav ua li cas tus neeg siv lub paj hlwb tsis nce qib los ntawm alpha, beta, gamma, thiab delta theem thaum hmo ntuj. Cov ntaub ntawv tuaj yeem raug xa tawm thiab tshuaj xyuas hauv Excel.

Peb puas tau hais txog nws qhov zoo nkauj ib yam?

Kauj Ruam 1: Cov Khoom & Cov Cuab Yeej

Kev npaj
Kev npaj

Txhawm rau tsim Lub Hau Kev Nyeem Ntawv Lub Hau, koj yuav xav tau cov ntaub ntawv hauv qab no:

  1. Headband (HOTER Sportline Headband tau siv rau txoj haujlwm no)
  2. Adafruit Flora Microcontroller
  3. Flora Wearable Bluefruit LE Module
  4. Flora RGB Neo Pixel LED
  5. Snaps
  6. Cov Xov Xwm Sib Txuas
  7. Hlau
  8. Xov
  9. Roj Teeb Pob
  10. Bitalino EEG nrog UC-E6 Cable thiab 3-Lead Electrode Cable
  11. Npuag
  12. Elastic pluaj

Cov cuab yeej hauv qab no yuav pab koj tsim lub taub hau:

  1. Xaws tus pin
  2. Txiab
  3. Cov hlua hlau
  4. Soldering Hlau thiab muab tub lim hlau

Kauj ruam 2: Kev npaj

Ua ntej tsim koj Lub Hau Nyeem Ntawv Nyeem Ntawv, siv sijhawm me ntsis los kawm txog lub hlwb nthwv dej thiab qee qhov pib siv hluav taws xob. Hauv lub hlwb, cov hlwb tshwj xeeb hu ua neurons tsim los ua haujlwm sib txawv hauv lub cev. Cov neurons no ua yeeb yam los ntawm kev xa me ntsis cov cim hluav taws xob uas ua rau daim ntawv nthwv dej. Lub hlwb tau paub los tsim plaub hom sib txawv ntawm nthwv dej - alpha, beta, theta, thiab delta. Cov nthwv dej no txawv ntawm qhov tshwj xeeb ntawm cov zaus, thiab txhua qhov sib xws nrog qee qib ntawm kev puas siab puas ntsws. Koj lub taub hau yuav siv lub cuab yeej hu ua electroencephalogram, lossis EEG, txhawm rau txheeb xyuas cov nthwv dej no vim koj lub paj hlwb ua rau lawv tsaug zog.

Txhawm rau ua kom koj Nyeem Ntawv Nyeem Ntawv, koj yuav tsum tau xaim qee lub cuab yeej rau lub taub hau. Cov cuab yeej tseem ceeb yog microprocessor, uas yog lub khoos phis tawj me me; Bluetooth module, uas yog lub nti uas tso cai rau lub taub hau sib tham nrog koj lub khoos phis tawj; NeoPixel, uas yog lub teeb hloov xim; a EEG; thiab roj teeb.

Cov kab ke ua tiav yog tsim los ntawm kev txuas txhua lub cuab yeej ua ke ntawm cov chaw tshwj xeeb ntawm cov xov hluav taws xob. Yog tias koj tsis tau muaj kev paub dhau los nrog kev siv cov xov no muaj kev qhia nyob ntawm no. Cov xov tau khi rau hauv snaps uas tso cai rau koj yooj yim txuas thiab tshem tawm Flora microprocessor thiab bluetooth module. Ib kawg ntawm qhov snap yuav mus rau hauv cov ntaub thiab lwm qhov mus rau cov cuab yeej hluav taws xob. Ib qho kev qhia rau kev siv cov snaps no muaj nyob ntawm no.

Tom qab tsim cov kab ke, nws yuav tsum tau muab cov lej. Txoj haujlwm no tshwj xeeb siv Arduino code. Yog tias koj xav paub koj tus kheej nrog Arduino code, https://www.arduino.cc yog tag nrho ntawm cov lus qhia muaj txiaj ntsig. Txhawm rau siv txoj cai siv rau txoj haujlwm no, koj yuav tsum rub tawm Arduino app ntawm https://www.arduino.cc/en/Main/Software. Qhov no yuav tsum tau ntxiv nrog Flora board, muaj nyob ntawm no. Koj kuj tseem yuav tsum rub tes los ntawm lwm lub tsev qiv ntawv los nthuav koj lub microprocessor lub peev xwm; qhov no tuaj yeem ua tiav siv www.github.com. Cov tsev qiv ntawv tsim nyog yog:

  • Fast Fourier Hloov (FFT)
  • Adafruit BLE (Bluetooth)
  • Adafruit NeoPixel

Thaum kawg, koj yuav tsum rub tawm Adafruit Bluefruit LE Txuas App ntawm koj lub xov tooj ntse rau siv nrog lub taub hau.

Kauj Ruam 3: Kev Nyab Xeeb

Kev Nyab Xeeb
Kev Nyab Xeeb

Tib neeg lub cev tsuas tuaj yeem tiv taus qhov muaj hluav taws xob tsawg, yog li xav tau kev saib xyuas kom raug thaum siv cov khoom siv hluav taws xob. Lub hauv paus ntsiab lus tseem ceeb ntawm kev nyab xeeb hluav taws xob yog kom tsis txhob ua rau koj lub cev muaj txoj hauv kev rau hluav taws xob tam sim no ntws los ntawm lub zog hluav taws xob. Qee qhov kev coj ua dav dav kom zam qhov no yog:

  • Tsuas yog kov cov xov hlau thiab lwm cov hlau txuas thaum lub zog OFF
  • Siv cov cuab yeej nrog cov leeg tuav
  • Sim ua kom cov dej nyob deb ntawm thaj chaw ua haujlwm thaum tsim koj lub Circuit Court
  • Sim ua haujlwm nrog ib txhais tes ob zaug ntau li ntau tau kom txo tau txoj kev pheej hmoo hluav taws xob ntws los ntawm koj lub siab

Lwm qhov kev txhawj xeeb uas yuav tsum paub txog thaum tsim koj lub xov tooj cua yog qhov hluav taws xob tuaj yeem ua rau cov khoom tawg tau yooj yim, yog li koj yuav tsum ua kom ntseeg tau tias cov xov hlau tau txuas nrog hauv Circuit Court. Txwv tsis pub, koj tuaj yeem taws koj cov plaub hau lossis lub taub hau ntawm hluav taws.

Lus ceeb toom: Lub taub hau no tsis yog ntawv pov thawj kho mob, thiab yuav tsum tsis txhob siv rau kev kuaj mob ntawm lub paj hlwb.

Kauj Ruam 4: Cov Lus Qhia thiab Cov Lus Qhia

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

Nov yog qee cov lus qhia kom nco ntsoov thaum koj tab tom tsim koj Lub Hau Nyeem Ntawv Nyeem Ntawv:

  • Nco ntsoov tias qhov kawg ntawm cov xov xov tsis sib chwv tom qab koj khi lawv
  • Yog tias qhov chaw nres nkoj tsis muaj nyob hauv Arduino thaum koj txuas lub micro tswj rau Arduino, ua raws cov theem hauv qab no txhawm rau upload koj cov cai:

    1. Thaum lub micro tswj tau txuas nrog, xa cov cai thaum tuav khawm rov pib dua ntawm lub microcontroller
    2. Thaum cov xwm txheej bar hloov pauv los ntawm kev suav sau rau uploading, tso mus ntawm lub khawm pib dua
    3. Cov cai yuav tsum rub tawm thiab chaw nres nkoj yuav tsum tau lees paub tam sim no
  • Thaum soldering ntawm lub snaps, ceev faj kom tsis txhob siv ob tus pin ua ke kom koj tsis txhob luv koj lub Circuit Court. Ib lub ntsuas cua tuaj yeem siv los ntsuas seb puas muaj kev sib txuas tau tsim los ntawm tus pin
  • Nco ntsoov tias snaps txuas nrog thaum muab tso rau ntawm lub taub hau
  • Nco ntsoov tias lub bluetooth module nyob hauv hom ntaub ntawv thiab tsis yog hom hais kom ua
  • Thaum koj lub taub hau tau tsim, koj yuav xav kom ntseeg tau tias nws ua haujlwm tau zoo! Txhawm rau kom ua tiav lub teeb liab zoo, xyuas kom koj muaj kev sib cuag huv ntawm cov hluav taws xob thiab koj lub hauv pliaj los ntawm kev tshem tawm cov hmoov av, xoob xov, plaub hau, lossis lwm yam cuam tshuam.

Kauj Ruam 5: Pib Tsim Koj Li Circuit Court

Pib Tsim Koj Li Circuit Court!
Pib Tsim Koj Li Circuit Court!

Tam sim no koj tau nruab nrog qee qhov kev paub keeb kwm yav dhau los thiab cov txheej txheem kev nyab xeeb, koj tau npaj tsim lub taub hau teev. Nyeem cov lus qhia hauv qab no kom zoo thiab pom cov lus tawm ntawm cov duab nrog cov lus qhia ntxiv.

Kauj Ruam 6: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Daim duab hluav taws xob saum toj no qhia txog kev sib txuas hauv Circuit Court ua tiav. Siv daim duab kab hluav taws xob no siv los ua kom ntseeg tau tias koj lub xov tooj tau txuas mus zoo.

Kauj Ruam 7: Solder Snaps Into Flora Microprocessor

Solder Snaps Rau Hauv Flora Microprocessor
Solder Snaps Rau Hauv Flora Microprocessor

Yog tias koj tsis tau txheeb xyuas qhov txuas rau kev qhia yuav ua li cas siv snaps hauv "Kev Npaj" kauj ruam, txheeb xyuas nws tam sim no. Txij ntawm no koj yuav txuas cov snaps rau microprocessor thiab bluetooth module. Koj tsis xav kom cuam tshuam qhov no vim tias txoj haujlwm tsis zoo tuaj yeem ua rau koj lub hauv paus puas tsuaj.

Lub microprocessor yuav xav tau snaps ntawm cov pins hauv qab no:

  • Txhua 3 hauv av (GND) tus pin
  • Ob leeg 3.3V fais fab tus pin
  • SCL #3
  • TxX #0
  • TXL #1
  • Cov Pin #9

Kauj Ruam 8: Solder Snaps Rau Hauv Bluetooth Module

Solder Snaps Rau Hauv Bluetooth Module
Solder Snaps Rau Hauv Bluetooth Module

Thiab lub bluetooth module yuav xav tau snaps ntawm cov pins no:

  • 3.3V zog
  • TX
  • RX
  • GND

Kauj Ruam 9: Xaws Snaps Rau Hauv Npuag rau Flora Microprocessor

Sew Snaps Rau Hauv Npuag rau Flora Microprocessor
Sew Snaps Rau Hauv Npuag rau Flora Microprocessor

Tam sim no koj tuaj yeem xaws lwm qhov kawg ntawm qhov snaps rau ntawm daim ntaub. Nco ntsoov siv lub bluetooth module thiab microprocessor nrog lawv cov snaps txuas rau kab no snaps kom raug!

Kauj Ruam 10: Xaws Snaps Rau Hauv Npuag rau Bluetooth Module

Sew Snaps Rau Hauv Npuag rau Bluetooth Module
Sew Snaps Rau Hauv Npuag rau Bluetooth Module

Tam sim no xaws hauv snaps rau Bluetooth.

Kauj Ruam 11: Hlau Bluetooth Module rau Flora Microprocessor

Hlau Bluetooth Module rau Flora Microprocessor
Hlau Bluetooth Module rau Flora Microprocessor

Tom ntej txuas lub Bluetooth module rau Flora Microprocessor los ntawm kev xaws xaim xov ntawm nruab nrab qhov sib txuas rau txhua lub cuab yeej. Cov txuas txuas hauv qab no xav tau:

  1. Bluetooth 3.3V rau Microprocessor 3.3V
  2. Bluetooth TX rau Microprocessor RX #0
  3. Bluetooth RX rau Microprocessor TX #1
  4. Bluetooth GND rau Microprocessor GND

Kauj Ruam 12: Hlau Neo Pixel rau Flora MicroProcessor

Hlau Neo Pixel rau Flora MicroProcessor
Hlau Neo Pixel rau Flora MicroProcessor

Txuas Neo Pixel mus rau microprocessor raws li hauv qab no:

  1. NeoPixel LED Hauv rau Microprocessor Digital Pin #9
  2. NeoPixel Av rau Microprocessor Av
  3. NeoPixel Fais Fab rau Microprocessor Fais Fab

Kauj Ruam 13: Hlau Roj Teeb Pob rau Flora Microprocessor

Hlau Roj Teeb Pob rau Flora Microprocessor
Hlau Roj Teeb Pob rau Flora Microprocessor

Qhov no yog yam tseem ceeb; koj yuav xav tau lub zog los ua kom txhua yam ua haujlwm!

Kauj Ruam 14: Tsim EEG Cable

Tsim EEG Cable
Tsim EEG Cable

Cov kab no tau tsim los siv EEG nti, 3-lead electrode cable, thiab UC-E6 cable. EEG nti yuav tsum tau ua kom raug raws li qhov kawg uas nyeem "EEG" txuas nrog cov kab hluav taws xob, raws li qhia hauv daim duab saum toj no.

Kauj Ruam 15: Hlau EEG rau Flora Microprocessor

Hlau EEG rau Flora Microprocessor
Hlau EEG rau Flora Microprocessor

Txuas EEG cable mus rau Flora microprocessor. Cov duab saum toj no tau sau nrog cov lus qhia los qhia cov ntsiab lus kom tsim nyog los txuas koj cov xov hlau. Cov kev sib txuas hauv qab no yuav ua:

  1. Liab xaim rau lub zog
  2. Cov xaim dub rau hauv av
  3. Ntshav xaim rau SCL #3

Kauj Ruam 16: Plooj Electrodes Rau Hauv Lub Taub Hau

Plooj Electrodes Rau Hauv Lub Taub Hau
Plooj Electrodes Rau Hauv Lub Taub Hau

Xaws cov electrodes rau sab hauv ntawm lub taub hau. Nco ntsoov tias cov electrodes tau muab tso rau hauv txoj haujlwm raug. Saib sab hauv ntawm lub taub hau, cov hluav taws xob liab yuav tsum tau muab tso rau sab laug, cov hluav taws xob dawb yuav tsum nyob hauv nruab nrab, thiab cov hluav taws xob dub yuav tsum nyob sab xis.

Kauj Ruam 17: Khaws Cov Ntaub thiab Pluaj rau Lub Hau

Plooj Ntaub thiab Pluaj rau Headband
Plooj Ntaub thiab Pluaj rau Headband

Tam sim no koj tau ua tiav koj lub taub hau! Woohoo!

Kauj ruam 18: Upload Code

Upload Code
Upload Code

Tam sim no koj tuaj yeem tso cov cai no rau koj lub taub hau kom muab nws lub peev xwm nyeem ntawv!

Kauj Ruam 19: Txuas Headband rau Xov Tooj

Txuas Headband rau Xov Tooj
Txuas Headband rau Xov Tooj

Qhib Adafruit Bluefruit LE Txuas App thiab txuas koj lub xov tooj rau koj Adafruit Bluefruit LE.

Kauj Ruam 20: Muab lub taub hau thiab khaws cov ntaub ntawv

Muab rau Headband thiab sau cov ntaub ntawv
Muab rau Headband thiab sau cov ntaub ntawv

Tam sim no koj tuaj yeem tso rau ntawm koj lub taub hau thiab sim nws tawm! Koj tuaj yeem xaiv "UART" ntawm Adafruit Bluefruit LE Txuas app los saib cov ntaub ntawv raws li nws tau los.

Kauj Ruam 21: Xa Cov Ntaub Ntawv Los Ntawm Xov Tooj Rau Computer

Export Cov Ntaub Ntawv Los Ntawm Xov Tooj Rau Computer
Export Cov Ntaub Ntawv Los Ntawm Xov Tooj Rau Computer

Thaum koj cov ntaub ntawv raug khaws tseg, koj tuaj yeem xa cov ntaub ntawv hauv ntau hom ntawv. Peb pom zoo kom xa nws mus ua.txt cov ntaub ntawv rau kev tshuaj xyuas hauv Excel.

Kauj Ruam 22: Txheeb Xyuas Cov Ntaub Ntawv

Kev Txheeb Xyuas Cov Ntaub Ntawv
Kev Txheeb Xyuas Cov Ntaub Ntawv

Nov yog qhov piv txwv ntawm hom kab uas koj tuaj yeem ua kom pom kev thiab txhais cov ntaub ntawv los ntawm koj lub taub hau. Peb muaj cov delta, theta, alpha, thiab beta ranges txhua qhov cim tseg los qhia seb qhov twg txhua qhov chaw poob hauv.

Kauj Ruam 23: Cov Tswv Yim Ntxiv

Cov Tswv Yim Ntxiv
Cov Tswv Yim Ntxiv

Tom qab koj tau ua tiav koj Lub Hau Nyeem Ntawv Nyeem Ntawv, xav tias dawb los tshawb qee qhov kev hloov pauv rau tus tsim. Tej zaum sim hloov kho txoj cai kom khaws cov ntaub ntawv thiab tsim daim ntawv tshaj tawm uas ntsuas tus neeg siv kev pw tsaug zog. Lossis koj tuaj yeem txuas lub sijhawm tiag tiag los saib xyuas lub sijhawm tseeb ntawm hmo ntuj thaum tus neeg siv tsaug zog, nce zuj zus los ntawm kev pw tsaug zog thiab REM pw tsaug zog, thiab sawv los. Tej zaum koj txaus siab rau kaw cov lus tham pw, hauv qhov xwm txheej twg koj tuaj yeem suav nrog lub kaw suab kaw uas tau qhib thaum tus neeg siv tsoo REM pw tsaug zog. Qhov muaj peev xwm tsis muaj qhov kawg!

Kauj Ruam 24: Kev lees paub

Kev lees paub
Kev lees paub

Plaub qhov kev hloov pauv ntawm cov cai rau txoj haujlwm no siv cov cai tshaj tawm ntawm nplooj ntawv no ntawm Norwegian Creations. Tsis tas li, NeoPixel feem ntawm cov cai hais txog cov piv txwv muab los ntawm Adafruit.

Pom zoo: