Cov txheej txheem:

Pulse Sensor Wearable: 10 Kauj Ruam (nrog Duab)
Pulse Sensor Wearable: 10 Kauj Ruam (nrog Duab)

Video: Pulse Sensor Wearable: 10 Kauj Ruam (nrog Duab)

Video: Pulse Sensor Wearable: 10 Kauj Ruam (nrog Duab)
Video: Polar H10 Scientific Review: Best for Heart Rate (99.6% Accurate) 2024, Hlis ntuj nqeg
Anonim
Pulse Sensor Hnav
Pulse Sensor Hnav
Pulse Sensor Hnav
Pulse Sensor Hnav
Pulse Sensor Hnav
Pulse Sensor Hnav

Nqe lus piav qhia

Txoj haujlwm no yog hais txog kev tsim qauv thiab tsim kom hnav tau uas yuav txiav txim siab kev noj qab haus huv ntawm tus neeg siv uas yuav hnav nws.

Nws lub hom phiaj yog ua kom zoo li exoskeleton uas ua haujlwm yog txhawm rau so thiab ua kom tus neeg siv nyob rau lub sijhawm muaj kev ntxhov siab lossis teeb meem nyuaj siab los ntawm kev tawm suab hauv cov ntsiab lus siab uas peb muaj hauv lub cev.

Lub cev muaj zog kev co yuav nyob rau thaum lub photoplethysmographic mem tes sensor tau txais, thaum qee lub sijhawm, nce siab ntawm nrawm nrawm pulsations. Thaum tus mem tes tus nqi txo qis, txhais tau tias tus neeg siv tau nqig, qhov kev co yuav nres.

Ib qho kev xav luv luv raws li qhov xaus

Ua tsaug rau txoj haujlwm no peb tau tuaj yeem siv ib feem ntawm kev paub uas tau kawm hauv chav kawm, uas peb ua haujlwm ntawm ntau lub tshuab hluav taws xob siv ntau lub ntsuas hluav taws xob thiab lub cev muaj zog hauv qhov xwm txheej tiag tiag: hnav tau uas ua rau cov neeg siv nyob rau lub sijhawm ntxhov siab lossis teeb meem.

Nrog txoj haujlwm no, tsis tsuas yog peb tau tsim cov khoom muaj tswv yim thaum tsim tus neeg saib xyuas thiab xaws nws, tab sis kuj yog cov ceg engineering, thiab peb sib xyaw lawv tag nrho ua ke ntawm ib qhov haujlwm.

Peb kuj tau xyaum ua kev paub txog hluav taws xob thaum tsim cov hluav taws xob hluav taws xob ntawm lub protoboard thiab xa nws mus rau LilyPad Arduino soldering cov khoom siv.

Khoom siv

Photoplethysmographic mem tes sensor (Analog input)

Lub ntsuas mem tes yog lub ntsaws-thiab-ua si lub plawv ntsuas rau Arduino. Lub sensor muaj ob sab, ntawm ib sab LED tau muab tso nrog lub teeb pom kev ib puag ncig thiab ntawm lwm sab muaj qee qhov kev sib txuas. Qhov no yog lub luag haujlwm rau kev ua kom nrov nrov thiab tshem tawm suab nrov. LED nyob rau sab xub ntiag ntawm lub ntsuas tau muab tso rau ntawm cov leeg hauv peb tib neeg lub cev.

Qhov LED no tso lub teeb uas ntog rau ntawm cov leeg ncaj qha. Cov hlab ntshav yuav muaj ntshav ntws sab hauv lawv tsuas yog thaum lub plawv tso, yog li yog peb saib xyuas cov ntshav ntws peb tuaj yeem saib xyuas lub plawv dhia ib yam. Yog tias pom cov ntshav ntws tawm mus, lub teeb pom kev ib puag ncig yuav khaws lub teeb ntau dua vim tias lawv yuav pom los ntawm cov ntshav, qhov kev hloov pauv me me hauv lub teeb tau txais kev tshuaj xyuas lub sijhawm kom txiav txim siab peb lub plawv dhia.

Nws muaj peb lub xov hlau: thawj qhov txuas nrog hauv av ntawm qhov system, qhov thib ob +5V muab qhov hluav taws xob thiab qhov thib peb yog lub teeb liab pulsating.

Hauv qhov haujlwm no ib lub mem tes sensor tau siv. Nws tau muab tso rau hauv qab lub dab teg kom nws tuaj yeem kuaj pom qhov mob hnyav.

Kev co lub cev muaj zog (Analog tso zis)

Qhov tivthaiv no yog DC lub cev muaj zog uas vibrates thaum tau txais lub teeb liab. Thaum nws tsis tau txais nws ntxiv, nws nres.

Hauv peb txoj haujlwm peb lub tshuab ua kom muaj zog tau siv los ua kom tus neeg siv ntsiag to los ntawm peb qhov sib txawv ntawm cov ntsiab lus uas nyob ntawm lub dab teg thiab tes.

Arduino Ib

Arduino Uno yog qhov qhib qhov microcontroller thiab tsim pawg thawj coj los ntawm Arduino.cc. Nws kuj tseem muaj 14 Digital pins, 6 Analog pins thiab tuaj yeem tsim tau nrog Arduino IDE (Kev Txhim Kho Ib Leeg Ib puag ncig) ntawm hom B USB cable.

Cov xov hluav taws xob

Cov xov hlau hluav taws xob yog cov siv hluav taws xob uas xa hluav taws xob los ntawm ib qho mus rau lwm qhov.

Hauv qhov haujlwm peb siv lawv los txuas cov hluav taws xob hluav taws xob txuas rau ntawm phaj Bakelite rau Arduino pins.

Lwm cov ntaub ntawv:

- Lub dab teg

- Cov xov dub

- Xim dub

- Npuag

Cov Cuab Yeej:

- Vuam

- Txiab

- Koob

- Cardboard tes mannequin

Kauj ruam 1:

Duab
Duab

Ua ntej, peb tau ua hluav taws xob siv hluav taws xob tiv thaiv protoboard kom peb tuaj yeem txheeb xyuas seb peb xav kom lub Circuit Court zoo li cas uas peb xav siv.

Kauj ruam 2:

Duab
Duab
Duab
Duab

Tom qab ntawd, peb tau ua qhov kawg ntawm qhov peb yuav muab tso rau sab hauv lub cev los ntawm kev siv cov khoom siv sib xyaw ua ke. Lub voj voog yuav tsum zoo li kev yees duab saum toj no.

Txhua lub xov tooj yuav tsum txuas nrog lub chaw xa xov hauv Arduino Uno thiab nws tau pom zoo kom npog cov hluav taws xob ntawm cov thaiv kom tsis txhob luv luv siv cov kab xev insulating.

Kauj ruam 3:

Peb tau teeb tsa txoj cai siv Arduino software thiab them nws rau Arduino siv USB cable.

// tsis los lim qhov qis zaus#txhais BSIZE 50 ntab buf [BSIZE]; int bPos = 0;

// Lub plawv dhia algorithm

#define THRESHOLD 4 // nrhiav tau qhov pib tsis tau kos npe ntev t; // kawg pom lub plawv dhia ntab lastData; koj lastBpm;

void teeb tsa () {

// pib ua kev sib txuas lus ntawm 9600 khoom ib ob: Serial.begin (9600); pinMode (6, NTAWV); // tshaj tawm tus vibrator 1 pinMode (11, OUTPUT); // tshaj tawm vibrator 2 pinMode (9, OUTPUT); // tshaj tawm vibrator 3}

void voj () {

// nyeem thiab ua cov tswv yim los ntawm lub ntsuas pa ntawm tus lej analog 0: ntab ua tiavData = txheej txheem txheej txheem (analogRead (A0));

//Serial.println(processedData); // tsis pom zoo qhov no los siv cov phiaj xwm phiaj xwm

yog (ua tiav Cov Ntaub Ntawv> THRESHOLD) // siab dua tus nqi no suav tias yog lub plawv dhia

{yog (lastData <THRESHOLD) // thawj zaug peb hla dhau qhov pib peb xam BPM {int bpm = 60000 /(millis () - t); yog (abs (bpm - lastBpm) 40 && bpm <240) {Serial.print ("Lub plawv dhia tshiab:"); Serial.print (bpm); // qhia hauv qhov screen bpms Serial.println ("bpm");

yog (bpm> = 95) {// yog bpm siab dua 95 lossis 95…

analogWrite (6, 222); // vibrator 1 vibrates

analogWrite (11, 222); // vibrator 2 vibrates analogWrite (9, 222); // vibrator 3 vibrates} lwm yam {// yog tias tsis yog (bpm qis dua 95)… analogWrite (6, 0); // vibrator 1 tsis ua kom sib zog analogWrite (11, 0); // vibrator 2 tsis vibrates analogWrite (9, 0); // vibrator 3 tsis vibrates}} lastBpm = bpm; t = millis (); }} lastData = ua tiav cov ntaub ntawv; ncua (10); }

ntab txheej txheemData (int val)

{buf [bPos] = (ntab) val; bPos ++; yog (bPos> = BSIZE) {bPos = 0; } ntab nruab nrab = 0; rau (int kuv = 0; kuv <BSIZE; kuv ++) {nruab nrab+= buf ; } rov qab (ntab) val - nruab nrab / (ntab) BSIZE; }

Kauj ruam 4:

Duab
Duab

Thaum lub sijhawm tsim cov txheej txheem peb yuav tsum tau txiav txim siab qhov chaw ntawm cov ntsiab lus siab hauv lub cev kom paub qhov twg yuav tsum tau muab lub cav sib zog, thiab peb xaiv peb ntawm lawv.

Kauj ruam 5:

Duab
Duab
Duab
Duab
Duab
Duab

Txhawm rau kom tau hnav, ua ntej peb tau pleev xim rau lub cev xim dab teg siv dub zas xim raws li cov lus qhia ntawm cov khoom.

Kauj Ruam 6:

Duab
Duab
Duab
Duab

Thaum peb muaj lub dab teg, peb tau ua plaub lub qhov nyob rau hauv daim duab los qhia tes mannequin. Peb ntawm lawv tau tsim los rho tawm peb lub tshuab hluav taws xob uas peb tau siv hauv hluav taws xob hluav taws xob thiab qhov kawg tau ua tiav los tso lub mem tes ntsuas ntawm tus txiv neej lub dab teg. Sib nrug ntawm qhov ntawd, peb kuj tau txiav me me ntawm lub dab teg kom pom qhov ntsuas qhov kawg no pom.

Kauj ruam 7:

Duab
Duab
Duab
Duab

Tom qab ntawd, peb tau ua ib lub qhov kawg ntawm sab qis ntawm daim duab los txhais tes txhawm rau txhawm rau txuas thiab txuas lub USB cable los ntawm lub khoos phis tawj mus rau Arduino pawg thawj coj los ua hluav taws xob. Peb tau ua qhov kev xeem zaum kawg los xyuas txhua yam ua haujlwm tau zoo.

Kauj ruam 8:

Duab
Duab
Duab
Duab

Txhawm rau muab peb cov khoom tsim qauv tsim tau ntau dua, peb kos thiab txiav lub voj voog hauv cov xim garnet uas peb tom qab ntawd xaws qee txoj kab los sawv cev rau lub plawv hluav taws xob ntaus.

Kauj ruam 9:

Duab
Duab
Duab
Duab

Thaum kawg, raws li lub dab teg dub npog lub tshuab ua kom muaj zog, peb txiav thiab xaws peb lub plawv me me ntawm qhov hnav kom paub lawv qhov chaw nyob.

Pom zoo: