Cov txheej txheem:

Arduino Pulse Oximeter: 35 Kauj Ruam (nrog Duab)
Arduino Pulse Oximeter: 35 Kauj Ruam (nrog Duab)

Video: Arduino Pulse Oximeter: 35 Kauj Ruam (nrog Duab)

Video: Arduino Pulse Oximeter: 35 Kauj Ruam (nrog Duab)
Video: Pulse Oximeter using Arduino Uno | MAX30100 Pulse Oximeter Sensor | Pulse Oximeter | Arduino Uno 2024, Hlis ntuj nqeg
Anonim

Pulse oximeters yog cov cuab yeej siv rau kev teeb tsa tsev kho mob. Siv cov txheeb ze nqus cov pa oxygen thiab deoxygenated hemoglobin, cov cuab yeej no txiav txim siab feem pua ntawm tus neeg mob cov ntshav uas nqa cov pa oxygen (qhov noj qab nyob zoo yog 94-98%). Daim duab no tuaj yeem ua txoj sia nyob hauv qhov chaw kho mob, vim qhov poob ntawm cov ntshav oxygenation tam sim ntawd qhia txog teeb meem kev kho mob tseem ceeb uas yuav tsum tau hais tam sim.

Hauv txoj haujlwm no, peb sim tsim lub pulse oximeter siv cov khoom uas yooj yim mus nrhiav online/hauv khw muag khoom kho vajtse hauv ib cheeb tsam. Cov khoom kawg yog ib qho cuab yeej uas tuaj yeem muab cov ntaub ntawv txaus rau ib tus neeg los saib xyuas cov ntshav oxygenation nyob rau lub sijhawm tsuas yog $ x. Thawj lub tswv yim yog ua kom lub cuab yeej siv tau tag nrho, tab sis vim yog yam sab nraud ntawm peb kev tswj hwm, qhov no tsis tuaj yeem ua tiav hauv peb lub sijhawm. Muab ob peb yam ntxiv thiab siv sijhawm me ntsis ntxiv, txoj haujlwm no tuaj yeem dhau los ua tus coj tau thiab sib txuas lus wirelessly rau lwm lub cuab yeej.

Khoom siv

Cov Khoom Tseem Ceeb - Cov khoom uas koj yuav xav tau yuav (Peb pom zoo kom muaj ob peb seem ntawm txhua qhov khoom siv, tshwj xeeb tshaj yog cov ntu saum toj)

Arduino Nano * $ 1.99 (Banggood.com)

Dual -LED - $ 1.37 (Mouser.com)

Photodiode - $ 1.67 (Mouser.com) Cov.

150 Ohm Resistor - $ 0.12 (Mouser.com)

180 Ohm Resistor - $ 0.12 (Mouser.com)

10 kOhm Resistor - $ 0.10 (Mouser.com)

100 kOhm Resistor - $ 0.12 (Mouser.com)

47 nF Capacitor - $ 0.16 (Mouser.com)

*(Peb Nano tau nyam hauv Suav teb tam sim no, yog li peb siv Uno, tab sis ob leeg yuav ua haujlwm)

Tus Nqi Tag Nrho: $ 5.55 (Tab sis … peb muaj ntau yam khoom dag ib ncig thiab yuav ob peb qhov khoom ib yam nkaus)

Daim Ntawv Teev Npe Thib Ob - Yam uas tau pw ib puag ncig rau peb, tab sis koj yuav xav tau yuav

Copper Clad Board - pheej yig heev (Piv txwv). Hauv qhov no, koj tuaj yeem ua thiab xaj PCB.

PVC - Ib yam tsawg kawg yog inch inch. Hom thinner ua haujlwm zoo.

Cov xov hlau - suav nrog qee cov xov hlau txuas rau lub khob cij thiab qee qhov ntev dua los txuas lub oximeter mus rau lub rooj tsavxwm. Hauv qib 20 Kuv qhia kuv qhov kev daws rau qhov no.

Poj Niam Pin Header - Cov no yog nyob ntawm yeem, yog tias koj tsuas yog xav tau txuas cov xov hlau rau cov laug cam nws yuav ua haujlwm zoo xwb.

Ua Npuas Ncauj - Kuv siv L200, uas yog qhov tshwj xeeb zoo nkauj. Koj tuaj yeem siv txhua yam uas koj xav tias yuav xis nyob. Old mousepads yog qhov zoo rau qhov no!

LEDs thiab Resistors - Zoo nkauj heev yog tias koj xav yuav lawv. Peb siv 220Ω resistors thiab muaj ob peb xim nyob ib puag ncig.

Pom Zoo Cov Cuab Yeej thiab Khoom Siv

Phom Kub

Soldering Hlau nrog Cov Lus Qhia Zoo

Dremel Cov Cuab Yeej nrog Kev Qhia thiab Txiav cov khoom (Koj tuaj yeem tau txais los ntawm rab riam hluav taws xob, tab sis tsis nrawm dua)

Pliers, Hlau txiav, Hlau Strippers, thiab lwm yam.

Kauj Ruam 1: Kev Npaj: Npias-Lambert Txoj Cai

Kev Npaj: Npias-Lambert Txoj Cai
Kev Npaj: Npias-Lambert Txoj Cai

Txhawm rau nkag siab yuav tsim lub pulse oximeter li cas, nws yog thawj qhov yuav tsum nkag siab txoj kev xav tom qab nws ua haujlwm. Cov hauv paus ntsiab lus ua zauv zauv siv yog hu ua Beer-Lambert's Law.

Npias-Lambert txoj cai yog qhov siv tau zoo uas piav qhia txog kev sib raug zoo ntawm kev sib xyaw ntawm cov tshuaj hauv kev daws teeb meem thiab kev sib kis (lossis nqus tau) ntawm lub teeb uas dhau los ntawm kev hais daws. Hauv kev nkag siab zoo, txoj cai lij choj hais tias ntau dua qhov pom kev ntawm lub teeb tau raug thaiv los ntawm ntau qhov ntau dua hauv kev daws teeb meem. Txoj cai lij choj thiab nws cov khoom tau piav qhia hauv qab no.

Absorbance = log10 (Io/I) = εbc

Qhov twg: Io = Teeb pom kev zoo (ua ntej ntxiv cov qauv) Kuv = teeb pom kev zoo (tom qab ntxiv cov qauv) ε = Molar nqus coefficient (kev ua haujlwm ntawm lub nthwv dej thiab cov khoom) b = Txoj kev ntev ntawm lub teeb = Cov ntsiab lus ntawm cov tshuaj hauv cov qauv

Thaum ntsuas ntsuas ntau yam siv Txoj Cai Lij Choj, nws yooj yim los xaiv lub nthwv dej ntawm lub teeb uas cov qauv nqus tau feem ntau. Rau oxygenated hemoglobin, qhov zoo tshaj plaws nthwv dej yog kwv yees li 660nm (liab). Rau deoxygenated hemoglobin, qhov zoo tshaj plaws nthwv dej yog kwv yees li 940nm (Infrared). Siv LEDs ntawm ob lub nthwv dej, qhov sib txheeb ze ntawm txhua tus tuaj yeem suav los nrhiav %O2 rau cov ntshav raug ntsuas.

Kauj Ruam 2: Kev npaj ua ntej: Pulse Oximetry

Kev npaj ua ntej: Pulse Oximetry
Kev npaj ua ntej: Pulse Oximetry

Peb lub cuab yeej siv dual LED (ob lub LEDs ntawm tib lub nti) rau 660nm thiab 940nm wavelengths. Cov no yog hloov pauv/tawm, thiab Arduino sau cov txiaj ntsig los ntawm lub ntsuas hluav taws xob ntawm sab nraud ntawm tus ntiv tes los ntawm LEDs. Lub teeb liab ntes rau ob qho tib si LEDs pulses hauv lub sijhawm nrog lub plawv dhia ntawm tus neeg mob. Yog li lub teeb liab tuaj yeem faib ua ob ntu: ib feem ntawm DC (sawv cev rau kev nqus ntawm qhov nthwv dej tshwj xeeb ntawm txhua yam tab sis cov ntshav), thiab ib feem AC (sawv cev rau nqus dej ntawm qhov tshwj xeeb nthwv dej ntawm cov ntshav). Raws li tau hais tseg hauv ntu Beer-Lambert, Kev nqus tau cuam tshuam nrog ob qho ntawm cov txiaj ntsig no (log10 [Io/I]).

%O2 tau txhais tias: Oxygenated Hemoglobin / Tag nrho Hemoglobin

Hloov pauv hauv Beer Lambert Equations, daws rau kev mloog, qhov tshwm sim yog qhov nyuaj heev ntawm kev faib ua feem. Qhov no tuaj yeem yooj yim hauv ob peb txoj kev.

  1. Txoj kev ntev (b) rau ob qho tib si LEDs zoo ib yam, ua rau nws poob ntawm qhov sib npaug
  2. Ib qho piv txwv nruab nrab (R) tau siv. R = (AC640nm/DC640nm)/(AC940nm/DC940nm)
  3. Molar Absorption coefficients yog qhov ruaj khov. Thaum muab faib, lawv tuaj yeem hloov pauv nrog qhov sib haum haum sib xws tas li. Qhov no ua rau poob me ntsis hauv qhov raug, tab sis zoo li yog tus qauv zoo nkauj rau cov khoom siv no.

Kauj Ruam 3: Kev npaj ua ntej: Arduino

Kev npaj ua ntej: Arduino
Kev npaj ua ntej: Arduino

Arduino Nano xav tau rau txoj haujlwm no hu ua microprocessor, chav kawm ntawm cov khoom siv uas txuas ntxiv ua cov txheej txheem kev npaj ua ntej. Microprocessors tuaj yeem nyeem cov tswv yim rau lub cuab yeej, ua ib qho lej uas xav tau, thiab sau lub teeb liab rau nws cov pins tso tawm. Qhov no muaj txiaj ntsig zoo rau txhua qhov haujlwm me me uas xav tau lej thiab/lossis kev xav.

Kauj ruam 4: Kev npaj ua ntej: GitHub

GitHub yog lub vev xaib uas muaj cov chaw khaws khoom, lossis chaw rau sau cov duab kos rau ib qhov haujlwm. Tam sim no peb tau khaws cia hauv https://github.com/ThatGuy10000/arduino-pulse-oximeter. Qhov no tso cai rau peb ua ntau yam.

  1. Koj tuaj yeem rub tus lej rau koj tus kheej thiab khiav ntawm koj tus kheej Arduino
  2. Peb tuaj yeem hloov kho cov cai ntawm txhua qhov chaw yam tsis hloov qhov txuas ntawm no. Yog tias peb pom cov kab lossis txiav txim siab ua lej sib txawv, peb yuav thawb tawm qhov hloov tshiab uas yuav nkag tau rau ntawm no tam sim ntawd
  3. Koj tuaj yeem kho qhov chaws koj tus kheej. Qhov no yuav tsis ua rau hloov tshiab tam sim, tab sis koj tuaj yeem tsim "rub thov" uas nug yog tias kuv xav suav nrog koj qhov kev hloov pauv hauv tus tswv tswv. Kuv tuaj yeem lees txais lossis tsis lees paub cov kev hloov pauv no.

Rau cov lus nug ntawm GitHub lossis nws ua haujlwm li cas, saib cov ntawv qhia no luam tawm los ntawm GitHub nws tus kheej.

Kauj Ruam 5: Kev Nyab Xeeb Kev Nyab Xeeb

Raws li lub cuab yeej, qhov no yog hais txog kev nyab xeeb zoo li nws tuaj yeem tau txais. Muaj tsawg heev tam sim no, thiab tsis muaj dab tsi ua haujlwm dhau 5V. Qhov tseeb, lub Circuit Court yuav tsum ntshai tshaj koj li.

Hauv txoj kev tsim kho txawm hais tias, muaj qee yam tseem ceeb yuav tsum nco ntsoov.

  • Kev nyab xeeb riam yuav tsum tau muab, tab sis qee qhov muaj cov organic zoo heev uas tuaj yeem ua rau nws ntxias kom tuav lawv hauv qhov chaw uas koj cov ntiv tes yuav tsum tsis txhob yog. Cia li ceev faj.
  • Yog tias koj muaj tus kav hlau, phom kub, lossis cov cuab yeej dremel, kuv xav tias koj yuav tsum paub siv lawv li cas. Txawm li cas los xij, ua qhov kev tiv thaiv tsim nyog. Tsis txhob ua haujlwm dhau kev ntxhov siab. So so, tshem koj lub taub hau, thiab rov qab mus rau nws thaum koj nyob ruaj khov dua. (Cov ntaub ntawv hais txog kev nyab xeeb rau cov hlau txuas, phom cua sov, thiab cov cuab yeej dremel tuaj yeem pom hauv qhov txuas)
  • Raws li koj sim ib qho kev hloov pauv lossis txav khoom ib puag ncig ntawm lub khob cij, nws yog qhov zoo tshaj rau txhua yam tua. Muaj tiag tiag tsis tas yuav tsum sim dab tsi nrog lub zog muaj sia, yog li tsis txhob pheej hmoo ua rau luv thiab muaj peev xwm ua rau Arduino lossis lwm yam puas tsuaj.
  • Ceev faj thaum siv cov khoom siv hluav taws xob hauv thiab ib puag ncig dej. Cov tawv nqaij ntub tau tiv taus qis dua li cov tawv nqaij qhuav, uas tuaj yeem ua rau cov dej ntws uas dhau qib nyab xeeb. Ntxiv mus, hluav taws xob luv hauv cov khoom siv hauv pawg thawj coj tuaj yeem ua rau muaj kev puas tsuaj loj rau cov khoom. Tsis txhob siv cov khoom siv hluav taws xob nyob ze cov kua.

CEEB TOOM: Thov tsis txhob siv qhov no ua khoom siv kho mob muaj tseeb. Cov cuab yeej no yog pov thawj ntawm lub tswv yim, tab sis nws tsis yog cov cuab yeej siv tau zoo uas yuav tsum tau siv hauv kev saib xyuas cov neeg muaj mob. Muaj ntau qhov kev xaiv pheej yig uas koj tuaj yeem yuav uas muab qib siab dua ntawm qhov raug.

Kauj Ruam 6: Cov Lus Qhia thiab Cov Lus Qhia

Raws li txoj haujlwm tau tsim, muaj ntau yam kev kawm tau kawm. Nov yog qee qhov lus qhia:

  1. Thaum koj tab tom tsim cov phiajcim hauv Circuit Court, kev sib cais ntau ntxiv ntawm kev taug yog koj cov phooj ywg. Zoo dua yog nyob rau sab nyab xeeb. Txawm tias zoo dua yog tsuas yog xaj PCB los ntawm cov kev pabcuam zoo li Oshpark uas yuav ua cov laug cam zoo li no rau tus nqi tsim nyog.
  2. Ntawm daim ntawv zoo sib xws, ceev faj yog tias koj txiav txim siab siv lub zog rau cov laug cam ua ntej yuav npog lawv. Lub photodiode tshwj xeeb tshaj yog kov, thiab nws tsuas yog tsis lom zem yog tias nws tawg thaum koj mus txog nws. Nws zoo dua los sim cov khoom tsis muaj hwj chim thiab muaj kev ntseeg tias nws yuav dhau mus. Cov diode thiab teeb tsa txuas ntxiv yog koj cov phooj ywg.
  3. Thaum koj muaj txhua yam ua tau, nws zoo nkauj txiav thiab qhuav, tab sis ib qho ntawm qhov ua yuam kev feem ntau yog muaj LEDs Circuit board txuas tsis raug. Yog tias koj cov ntaub ntawv txawv, txheeb xyuas qhov txuas, thiab muaj peev xwm sim txuas ib qho ntawm LED txuas mus rau Arduino ib zaug. Qee lub sij hawm txhua yam ua kom meej dua li ntawd.
  4. Yog tias koj tseem muaj teeb meem nrog LEDs, koj tuaj yeem txuas 5V lub zog rau hauv lawv cov tswv yim. Liab yuav ci heev, tab sis infrared pom tsis tau. Yog tias koj muaj lub xov tooj lub koob yees duab ntawm koj, koj tuaj yeem saib los ntawm nws thiab koj yuav pom lub teeb ci ci. Lub xov tooj lub koob yees duab ntsuas pom nws zoo li pom kev, uas yooj yim heev!
  5. Yog tias koj tau txais lub suab nrov ntau, xyuas tias daim duab photodiode nyob deb ntawm txhua yam uas nqa lub zog tsis zoo 60Hz los ntawm phab ntsa. Tus nqi tiv thaiv siab yog tus hlau nplaum rau suab nrov ntxiv, yog li ceev faj.
  6. Kev ua lej rau xam SpO2 yog qhov nyuaj me ntsis. Ua raws cov cai tau muab, tab sis nco ntsoov hloov kho "fitFactor" qhov sib txawv los ua kom cov lus teb haum rau koj lub cuab yeej tshwj xeeb. Qhov no xav tau kev sim thiab yuam kev.

Kauj Ruam 7: Txhim Kho Cov Rooj Tsav Xwm

Tsim Cov Rooj Sib Tham Hauv Circuit
Tsim Cov Rooj Sib Tham Hauv Circuit

Peb yuav pib los ntawm kev ua ob daim phiaj xwm txheej uas mus rau hauv kev tsim qauv. Kuv siv ob tog tooj liab clad board thiab Dremel cov cuab yeej los ua cov no los ntawm txhais tes, uas tsis zoo tag nrho, tab sis nws ua haujlwm. Yog tias koj muaj cov peev txheej Kuv pom zoo kom kos cov phiaj xwm thiab ua qhov no milled nrog lub tshuab, tab sis nws ua tau-yam tsis muaj.

Kauj Ruam 8: Pawg Thawj 1 - Tus Kws Yees Duab

Pawg 1 - tus kws yees duab
Pawg 1 - tus kws yees duab

Nov yog qhov Circuit Court kuv tso rau ntawm thawj lub rooj tsavxwm, rho tawm tus capacitor. Nws yog qhov zoo tshaj kom khaws cov ntaub ntawv qis, txij li qhov no yuav mus ncig koj cov ntiv tes sab hauv ntawm oximeter. Tus photodetector, hauv qhov no, yog photodiode uas txhais tau tias nws yog hluav taws xob zoo ib yam li diode, tab sis yuav tsim hluav taws xob tam sim no rau peb raws li lub teeb ci.

Kauj Ruam 9: Milling Board

Milling lub Rooj Tswjhwm Saib
Milling lub Rooj Tswjhwm Saib

Kuv txiav txim siab pib los ntawm kev luam ntawv thiab txiav tawm cov qauv ntsuas ntawm qhov pom zoo hneev taw. Vim tias kuv tsuas yog qhov muag pom kuv qhov kev txiav, qhov no muab cov ntaub ntawv zoo ua ntej kuv coj tus photodetector tawm ntawm nws pob. Qhov no muaj nyob ntawm tus neeg muag khoom pom rau lub photodetector.

Kauj ruam 10: Drilling Down

Drilling Down
Drilling Down

Nov yog qhov tsim kuv tau mus rau PCB, uas kuv txiav tawm nrog lub me me dremel router me ntsis thiab rab riam muaj txiaj ntsig. Kuv thawj qhov tsim ntawm pawg thawj coj no tau ua tsis tiav rau ob peb yam. Cov kev kawm kuv tau kawm rau kuv qhov kev tsim thib ob yog txiav ntau tshaj li qhov tsawg kawg nkaus thiab txiav tawm qhov twg kuv kos kab dub rau ntawm daim duab saum toj no. Muaj tus pin uas tsis txuas nrog ntawm lub nti uas yuav tsum tau txais nws tus kheej ncoo, txij li nws tsis txuas rau lwm yam tab sis tseem pab tuav lub nti rau lub rooj tsavxwm. Kuv kuj tau ntxiv qhov rau tus tiv thaiv, uas kuv tau ua los ntawm kev tso tus tiv thaiv ib sab ntawm nws thiab qhov muag qhov muag.

Kauj Ruam 11: Tso Cheeb Tsam

Muab Cheebtsam
Muab Cheebtsam

Qhov no yog qhov nyuaj me ntsis. Kuv tau cim qhov kev taw qhia ntawm photodetector ntawm no dawb. Kuv muab ib qho me me tso rau hauv qab ntawm txhua tus pin ntawm lub nti, muab ib co laug rau ntawm lub rooj tsav xwm hauv Circuit Court, thiab tom qab ntawd tuav lub nti nyob hauv qhov chaw thaum kuv rhaub cov laug ntawm lub rooj tsavxwm. Koj tsis xav kom sov nws ntau dhau, tab sis yog tias cov laug ntawm lub rooj tsavxwm yog kua, nws yuav tsum txuas nrog lub nti zoo nkauj sai yog tias koj muaj cov laug zoo txaus. Koj yuav tsum tau muab cov tshuaj tiv thaiv kab mob 100kΩ 3-tus lej txuas rau tib sab ntawm pawg thawj coj saib.

Kauj Ruam 12: Ntxuav thiab Txheeb Xyuas

Ntxuav thiab Txheeb Xyuas
Ntxuav thiab Txheeb Xyuas

Tom qab ntawd, siv lub cuab yeej dremel los txiav tawm cov tooj liab nyob ib puag ncig tus tiv thaiv ua rau sab nraum qab ntawm lub rooj tsavxwm (kom tsis txhob luv luv tus tiv thaiv). Tom qab ntawd, siv lub ntsuas ntsuas ntawm nws qhov txuas txuas mus txhawm rau txheeb xyuas tias tsis muaj ib qho cim tseg tau luv luv hauv cov txheej txheem txheej txheem. Raws li qhov kev txheeb xyuas zaum kawg, siv lub ntsuas ntsuas ntawm lub ntsuas hluav taws xob (Qhia yog tias qhov no yog thev naus laus zis tshiab rau koj) hla cov photodiode kom paub tseeb tias nws tau ua tiav nrog lub rooj tsavxwm.

Kauj Ruam 13: Pawg 2 - cov LEDs

Board 2 - LEDs
Board 2 - LEDs

Nov yog cov phiaj xwm rau pawg thawj coj thib ob. Qhov no nyuaj me ntsis, tab sis hmoov zoo peb tau sov siab los ntawm kev ua qhov kawg.

Kauj Ruam 14: Drilling Down Redux

Drilling Down Redux
Drilling Down Redux

Tom qab ob peb qhov kev sim uas kuv tsis nyiam ntau, Kuv tau txiav txim siab ntawm tus qauv no, uas kuv tau siv siv tib lub dremel routing me ntsis ua ntej. Los ntawm daim duab no, nws nyuaj rau qhia, tab sis muaj kev sib txuas ntawm ob ntu ntawm pawg thawj coj los ntawm lwm sab (hauv av hauv Circuit). Qhov tseem ceeb tshaj plaws ntawm kev txiav no yog kev sib tshuam qhov twg LED nti yuav zaum. Tus qauv ntoo khaub lig no xav tau me me zoo nkauj vim tias kev sib txuas ntawm LED nti zoo nkauj nyob ua ke.

Kauj Ruam 15: Soldering Vias

Soldering Vias
Soldering Vias

Vim tias ob lub kaum ntse ntse sib txawv ntawm LED nti ob qho tib si yuav tsum tau txuas nrog, peb yuav tsum siv lub nraub qaum ntawm pawg thawj coj los txuas lawv. Thaum peb txuas hluav taws xob txuas ib sab ntawm pawg thawj coj mus rau lwm qhov, qhov ntawd hu ua "hla". Txhawm rau ua qhov vias ntawm lub rooj tsavxwm, Kuv tau siv lub qhov nyob hauv ob thaj chaw uas kuv tau cim tseg saum toj no. Los ntawm no, Kuv tso cov coj ntawm tus tiv thaiv ntawm lub rooj tsav xwm yav dhau los rau hauv lub qhov thiab muab phom rau ntawm ob sab. Kuv txiav tawm ntau cov xov hlau ntau li kuv tuaj yeem ua thiab tshawb xyuas txuas ntxiv kom pom tias muaj ze-xoom tsis kam ntawm ob thaj chaw no. Tsis zoo li lub rooj tsavxwm zaum kawg, qhov vias no yuav tsis xav tau piav nyob rau sab nraum qab vim peb xav kom lawv txuas nrog.

Kauj Ruam 16: Soldering LED Chip

Soldering LED Chip
Soldering LED Chip

Txhawm rau txhawm rau LED nti, ua raws cov txheej txheem ib yam li photodiode, ntxiv cov laug rau txhua tus pin thiab rau saum npoo ib yam. Kev taw qhia ntawm ib feem yog qhov nyuaj kom tau txais txoj cai, thiab kuv pom zoo ua raws cov ntaub ntawv kom tau txais koj cov kabmob. Ntawm sab hauv qab ntawm lub nti, "tus pin ib" muaj qhov sib txawv me ntsis, thiab tus lej ntxiv txuas ntxiv ib ncig ntawm lub nti. Kuv tau cim cov lej txuas rau ntawm cov ntsiab lus twg. Thaum koj tau muab nws tso rau hauv, koj yuav tsum rov siv qhov ntsuas ntsuas diode ntawm lub tshuab ntsuas kom pom tias ob tog txuas nrog kom raug. Qhov no yuav qhia koj tias LED yog xim liab ib yam nkaus, vim tias nws yuav ci me ntsis thaum lub multimeter txuas nrog.

Kauj Ruam 17: Tshwm Sim Ntawm Cheeb Tsam

Tus so ntawm Cheebtsam
Tus so ntawm Cheebtsam

Tom ntej no, muab tshuaj txhuam rau ntawm tus tiv thaiv thiab 3-tus pin header. Yog tias koj tau tshwm sim kom muaj LED nti tig 180 ° hauv cov kauj ruam dhau los, koj yeej tseem ua tau zoo ntxiv mus. Thaum koj tso rau ntawm tus tiv thaiv, nco ntsoov tias 150Ω tus tiv thaiv mus rau sab liab, thiab lwm sab muaj 180Ω.

Kauj Ruam 18: Ua tiav thiab Txheeb Xyuas

Tiav thiab Txheeb Xyuas
Tiav thiab Txheeb Xyuas

Ntawm sab nraub qaum, txiav ib ncig ntawm cov resistors zoo li ua ntej kom zam lawv luv nrog rau ntawm. Txiav tawm lub rooj tsavxwm, thiab ua ib qho kawg sweep nrog tus ntsuas txuas mus ntxiv ntawm lub multimeter, tsuas yog txhawm rau txheeb xyuas ob zaug tias tsis muaj dab tsi dhau los ua yuam kev.

Kauj Ruam 19: "Npaj" Cov Phiaj Xwm

Duab
Duab

Tom qab tag nrho cov haujlwm ua haujlwm zoo uas kuv tau ua, Kuv xav kom tsis muaj ib yam dab tsi yuav tsoo cov khoom thaum lub oximeter tau siv, yog li kuv txiav txim siab "lauj kaub" cov laug cam. Los ntawm kev ntxiv ib txheej ntawm qee yam uas tsis yog coj ua, txhua lub Cheebtsam yuav nyob hauv qhov chaw zoo dua qub thiab yuav muab cov nplaim nplaim nplaim rau oximeter. Kuv sim tawm ob peb yam uas kuv tau pw ib puag ncig, thiab cov khoom siv dag zog no ua haujlwm tau zoo. Kuv pib los ntawm npog sab nraub qaum thiab cia nws zaum ob peb teev.

Kauj Ruam 20: Ntxiv Potting

Potting Txuas Ntxiv
Potting Txuas Ntxiv

Tom qab cov hauv qab tau khov, ntxeev cov laug cam thiab tsho sab saum toj. Txawm hais tias nws yuav luag nplaum zoo, kuv xav khaws lub photodetector thiab LEDs tsis pom, yog li ua ntej yuav npog txhua yam, Kuv tau npog ob daim me me ntawm daim kab xev hluav taws xob thiab tom qab ob peb teev, kuv siv rab riam los ua tib zoo tshem cov nplaum rau saum cov no thiab muab daim kab xev tawm. Tej zaum nws yuav tsis tsim nyog kom lawv nthuav tawm, tab sis yog tias koj txiav txim siab tsuas yog npog lawv, tsuas yog ua kom tsis txhob muaj cua npuas. Nws zoo los muab cov nplaum ntau npaum li koj xav tau (hauv qhov laj thawj), txij li lub ntsej muag zoo nkauj yuav zaum zoo dua thiab ntxiv kev tiv thaiv ntxiv rau cov khoom, tsuas yog nco ntsoov cia nws zaum ib pliag kom nws tuaj yeem qhuav thoob plaws.

Kauj Ruam 21: Tsim Cov Hluav Taws Xob

Tsim Cov Hluav Taws Xob
Tsim Cov Hluav Taws Xob
Tsim Cov Hluav Taws Xob
Tsim Cov Hluav Taws Xob

Kuv tsuas muaj cov hlua xaim ntawm tes, yog li kuv txiav txim siab siv qee tus txiv neej 3-tus pin header los tsim qee cov xov hlau. Yog tias koj muaj nws ntawm tes, nws yooj yim dua li tsuas yog siv cov cuab yeej ntsuas cov xov hlau rau qhov no yam tsis siv tshuaj txhuam. Nws pab ua kom cov xov hlau sib koom ua ke txawm hais tias, vim qhov ntawd tiv thaiv snagging thiab tsuas yog feem ntau zoo li neater. Tsuas yog txhuam txhua lub xaim rau tus pin ntawm lub taub hau, thiab yog tias koj muaj nws kuv yuav npog txhua txoj hlua nrog qee qhov cua sov. Nco ntsoov tias koj muaj cov xov hlau nyob hauv tib qho kev txiav txim thaum koj txuas lub header ntawm lwm sab.

Kauj Ruam 22: Qhib Pov Thawj Cov Xov Tooj

Idiot-Pov Thawj Qhov Teeb
Idiot-Pov Thawj Qhov Teeb

Vim tias txoj kev kuv txuas cov laug cam no rau cov kab hluav taws xob, Kuv xav kom ntseeg tau tias kuv tsis tau txuas lawv tsis raug, yog li kuv xim xim sib txuas nrog cov cim xim. Koj tuaj yeem pom ntawm no tus pin twg yog qhov txuas thiab yuav ua li cas kuv cov xim coding ua haujlwm.

Kauj Ruam 23: Ua Kev Nkag Mus

Ua ib daim ntawv kaw
Ua ib daim ntawv kaw

Lub thawv rau lub oximeter Kuv tau ua nrog L200 ua npuas dej thiab ib daig ntawm PVC yeeb nkab, tab sis koj tuaj yeem siv tau txhua yam ua npuas dej thiab/lossis yas uas koj tau pw ib puag ncig. PVC ua haujlwm zoo vim tias nws twb yuav luag zoo li peb xav.

Kauj Ruam 24: PVC thiab Cov Phom Kub Kub

PVC thiab Kub Phom
PVC thiab Kub Phom
PVC thiab Cov Phom Kub Kub
PVC thiab Cov Phom Kub Kub

Siv rab phom kub ntawm PVC rau kev tsim yog yooj yim, tab sis tuaj yeem siv qee qhov kev coj ua. Txhua yam koj yuav tsum tau ua yog siv cua sov rau PVC kom txog thaum nws pib khoov dawb. Thaum nws kub, koj tuaj yeem khoov nws tsuas yog hais txog txhua yam uas koj xav tau. Pib tawm nrog ntu ntawm PVC yeeb nkab tsuas yog dav dua li cov laug cam. Txiav ib qho ntawm ob sab, thiab tom qab ntawd tsuas yog tso cua sov rau nws. Koj yuav xav tau qee lub hnab looj tes lossis qee qhov thaiv ntoo kom tuaj yeem tswj tau PVC thaum nws kub.

Kauj Ruam 25: Hloov cov Yas

Hloov cov yas
Hloov cov yas

Thaum koj khoov lub voj hauv, txiav tawm qee qhov PVC ntau dhau. Ua ntej koj ua kom nws khoov tag, siv rab riam lossis dremel cov cuab yeej los txiav tawm qhov thais ntawm ib sab thiab cov npoo ntawm ob sab. Qhov forked no tso cai rau koj kaw lub voj ntxiv. Nws kuj tseem muab rau koj ib qho twg txhawm rau txhawm rau qhib lub oximeter kom tso nws ntawm koj tus ntiv tes. Tsis txhob txhawj xeeb txog qhov nruj rau tam sim no, txij li koj yuav xav pom nws zoo li cas thaum ua npuas dej thiab cov laug cam nyob hauv.

Kauj Ruam 26: Tej Yam Me Me Softer

Ib yam me ntsis Softer
Ib yam me ntsis Softer

Tom ntej no, txiav ib daim ua npuas ncauj rau qhov dav ntawm koj PVC, thiab kom ntev uas yuav ua kom tag nrho nyob ib puag ncig sab hauv.

Kauj Ruam 27: Ib Qhov Chaw Rau Cov Rooj Sib Tham

Ib Qhov Chaw rau Cov Boards
Ib Qhov Chaw rau Cov Boards

Txhawm rau kom lub rooj tsavxwm tsis txhob khawb rau hauv koj tus ntiv tes, nws yog ib qho tseem ceeb uas yuav tsum tau so lawv mus rau hauv cov npuas dej. Teem cov duab ntawm cov laug cam rau hauv ua npuas ncauj thiab siv ob rab txiab txua cov khoom. Hloov chaw ntawm kev tshem tag nrho thaj tsam ib ncig ntawm lub taub hau, ntxiv qee qhov hlais ntawm sab sib txuas tuaj yeem tawm tab sis tseem me ntsis hauv qab ua npuas ncauj. Txij ntawm no mus, koj tuaj yeem tso cov laug cam thiab ua npuas dej rau hauv PVC thiab ntsuas qhov haum hauv PVC tiag tiag thiab tom qab ntawd ntawm koj tus ntiv tes. Yog tias koj ua qhov no pib plam kev ncig, koj yuav xav siv rab phom cua sov dua los qhib lub thawv me ntsis ntxiv.

Kauj Ruam 28: Boards rau Ua Npuas Ncauj

Boards rau Ua Npuas Ncauj
Boards rau Ua Npuas Ncauj

Peb tab tom yuav pib muab txhua yam ua ke tam sim no! Txhawm rau pib, tsuas yog pov qee cov epoxy/nplaum rau hauv lub qhov uas koj nyuam qhuav ua hauv cov npuas dej thiab muab cov laug cam tso rau hauv lawv lub tsev me. Kuv siv cov nplaum tib yam kuv tau siv los lauj kaub cov laug cam ua ntej, uas zoo li ua haujlwm tau zoo xwb. Nco ntsoov tias koj tso qhov no zaum ob peb teev ua ntej txav mus.

Kauj Ruam 29: Ua Npuas Ncauj Rau Hauv Yas

Ua Npuas Ncauj Rau Hauv Yas
Ua Npuas Ncauj Rau Hauv Yas

Tom ntej no, Kuv tau lined sab hauv ntawm PVC nrog tib cov kua nplaum thiab ua tib zoo muab ua npuas dej sab hauv. So tshaj thiab muab ib yam dab tsi sab hauv rau ua npuas ncauj kom chomp rau. Kuv rab riam siv hluav taws xob ua haujlwm tau zoo, thiab nws yeej pab thawb ua npuas ncauj tiv thaiv PVC kom tau lub zog ruaj khov.

Kauj Ruam 30: Kev Sib Txuas Arduino

Arduino Kev Sib Txuas
Arduino Kev Sib Txuas

Txij ntawm no mus qhov tseeb sensor tau ua tiav, tab sis tau kawg peb xav siv nws rau qee yam. Tsis muaj ntau yam los txuas rau Arduino, tab sis nws yog qhov tseem ceeb heev tsis txhob xaim ib yam dab tsi rov qab lossis koj yuav ua rau muaj kev puas tsuaj ntau ntawm cov laug cam. Nco ntsoov tias lub hwj chim raug kaw thaum koj txuas cov kab hluav taws xob (Nws yog txoj hauv kev nyab xeeb tshaj plaws kom tsis txhob muaj teeb meem).

Kauj Ruam 31: Tus Neeg Tawm Tsam Tsis Tau thiab Capacitor

Qhov seem Resistor thiab Capacitor
Qhov seem Resistor thiab Capacitor

Qee qhov kev ceeb toom ntawm thaiv rau hauv Arduino:

  • Lub capacitor los ntawm lub teeb liab mus rau hauv av ua qhov xav tsis thoob ntawm lub suab nrov. Kuv tsis muaj kev xaiv dav, yog li kuv siv "txiv lub thoob khib nyiab tshwj xeeb," tab sis yog tias koj muaj ntau yam tom qab ntawd mus rau qee yam ib puag ncig 47nF lossis tsawg dua. Txwv tsis pub koj yuav tsis tuaj yeem muaj kev hloov pauv nrawm ntawm qhov liab thiab IR LEDs.
  • Tus tiv thaiv mus rau hauv lub tshuab photodetector cable yog qhov muaj kev nyab xeeb. Nws tsis yog qhov tsim nyog, tab sis kuv ntshai tias thaum tuav lub rooj sib tham hauv rooj noj mov kuv yuav yuam kev qee yam thiab ua rau tag nrho txoj haujlwm. Nws yuav tsis npog txhua qhov xwm txheej, tab sis nws tsuas yog pab kom muaj lub siab me ntsis ntxiv.

Kauj Ruam 32: Xeem LED Tam Sim No

Kuaj LED Tam Sim No
Kuaj LED Tam Sim No

Thaum kuv muaj cov no hauv, sim tam sim no dhau los ntawm cov liab thiab IR LEDs siv lub ntsuas qhov ntsuas ntawm hom ammeter. Lub hom phiaj ntawm no tsuas yog txheeb xyuas tias lawv zoo sib xws. Kuv tau nyob ib puag ncig 17mA.

Kauj Ruam 33: Txoj Cai

Raws li tau hais hauv qib npaj, cov lej rau lub cuab yeej no tuaj yeem pom hauv peb GitHub chaw cia khoom. Tsuas yog:

  1. Rub tus lej no los ntawm txhaj "Clone lossis rub tawm"/"Download Zip".
  2. Unzip cov ntaub ntawv no siv 7zip lossis cov haujlwm zoo sib xws, thiab qhib cov ntawv no hauv Arduino IDE.
  3. Tshaj tawm nws rau koj Arduino thiab txuas tus pin raws li tau piav qhia hauv tus lej pin (lossis hloov pauv lawv hauv txoj cai, tab sis paub tias koj yuav tsum ua qhov no txhua zaus koj rub tawm tshiab los ntawm GitHub).
  4. Yog tias koj xav pom Serial tso tawm ntawm tus lej xov tooj, hloov serialDisplay boolean rau True. Lwm qhov kev hloov pauv tau piav qhia hauv txoj cai; qhov txiaj ntsig tam sim no ua haujlwm zoo rau peb, tab sis koj tuaj yeem sim nrog lwm tus kom ua tiav qhov ua tau zoo tshaj plaws rau koj teeb tsa.

Kauj Ruam 34: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Kauj Ruam 35: Cov Tswv Yim Ntxiv

Peb xav ntxiv (lossis ib qho ntawm peb cov thwjtim yuav xav txog kev ntxiv)

  1. Bluetooth txuas rau kev sib pauv cov ntaub ntawv nrog lub khoos phis tawj
  2. Kev txuas mus rau Google Tsev/Amazon lub cuab yeej los thov SpO2 cov ntaub ntawv
  3. Ntau yaug tawm lej rau kev suav SpO2, tam sim no peb tsis muaj qhov siv rau kev sib piv. Peb tsuas yog siv lej uas peb pom hauv online.
  4. Txoj cai los laij thiab tshaj tawm lub plawv dhia ntawm tus neeg mob, nrog rau SpO2
  5. Siv Kev Sib Koom Ua Ke rau peb kev ntsuas thiab lej, tshem tawm ntau qhov kev hloov pauv rau peb cov txiaj ntsig.

Pom zoo: