Cov txheej txheem:

Ib qho yooj yim Automated ECG (1 Amplifier, 2 Filters): 7 Kauj Ruam
Ib qho yooj yim Automated ECG (1 Amplifier, 2 Filters): 7 Kauj Ruam

Video: Ib qho yooj yim Automated ECG (1 Amplifier, 2 Filters): 7 Kauj Ruam

Video: Ib qho yooj yim Automated ECG (1 Amplifier, 2 Filters): 7 Kauj Ruam
Video: Automation with Python! Automatically Executing a Script (Windows 10) 2024, Hlis ntuj nqeg
Anonim
Ib qho yooj yim Automated ECG (1 Amplifier, 2 Filters)
Ib qho yooj yim Automated ECG (1 Amplifier, 2 Filters)

Kev ntsuas hluav taws xob (ECG) ntsuas thiab qhia txog kev ua haujlwm hluav taws xob ntawm lub plawv siv cov hluav taws xob sib txawv tso rau ntawm daim tawv nqaij. ECG tuaj yeem tsim tau siv lub tshuab ntsuas qhov ntsuas, ntsuas lim, thiab lim qis. Thaum kawg, cov lim dej thiab ua kom pom tseeb tuaj yeem pom tau siv LabView software. LabView tseem siv cov khoom nkag ntawm lub teeb liab los xam lub plawv dhia ntawm tib neeg kev kawm. Cov cuab yeej siv lub tshuab ua suab nrov tau ua tiav hauv kev coj lub teeb liab me me ntawm lub cev thiab ua kom nrov nrov rau 1 V, yog li nws tuaj yeem pom ntawm lub khoos phis tawj siv LabView. Cov thais thiab cov lim qis dhau tau ua tiav hauv kev txo 60 Hz suab nrov los ntawm cov khoom siv hluav taws xob thiab cuam tshuam cov cim siab dua 350 Hz. Lub plawv dhia ntawm so tau ntsuas kom 75 bpm, thiab 137 bpm tom qab tsib feeb ntawm kev tawm dag zog. Lub ECG tsim tau muaj peev xwm ntsuas lub plawv dhia ntawm qhov muaj txiaj ntsig tiag tiag thiab pom qhov sib txawv ntawm cov qauv ECG raug. Yav tom ntej, qhov ECG no tuaj yeem txhim kho los ntawm kev hloov pauv qhov muaj nuj nqis nyob hauv lub lim dej kom txo qis suab nrov ib puag ncig 60 Hz.

Kauj Ruam 1: Tsim Cov Khoom Siv Hluav Taws Xob

Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob

Koj yuav xav tau: LTSpice (lossis lwm qhov software pom kev siv hluav taws xob)

Cov cuab yeej ntsuas qhov ntsuas tau tsim los txhawm rau kom qhov loj me ntawm lub teeb liab kom nws thiaj li pom thiab tso cai rau kev tshuaj xyuas ntawm cov yoj yoj.

Los ntawm kev siv R1 = 3.3k ohms, R2 = 33k ohms, R3 = 1k ohms, R4 = 48 ohms qhov nce ntawm X tau ua tiav. Tau txais = -R4/R3 (1+R2/R1) = -47k/1k (1- (33k/3.3k)) = -1008

Vim hais tias nyob rau hauv qhov kawg op amp lub teeb liab nkag mus rau qhov hloov pauv tus lej, qhov nce yog 1008. Qhov kev tsim no tau tsim hauv LTSpice ces simulated nrog AC cheb los ntawm 1 txog 1kHz nrog 100 cov ntsiab lus ib xyoo rau sine wave input nrog AC amplitude ntawm 1V.

Peb tau tshuaj xyuas tias peb cov txiaj ntsig tau zoo ib yam li kev nce siab. Los ntawm kab ntawv peb pom Gain = 10^(60/20) = 1000 uas txaus ze rau peb qhov kev xav tau nce ntawm 1008.

Kauj Ruam 2: Tsim lub Notch Filter

Tsim Cov Ntsis Lim
Tsim Cov Ntsis Lim
Tsim Cov Ntsis Lim
Tsim Cov Ntsis Lim

Koj yuav xav tau: LTSpice (lossis lwm qhov software pom kev pom)

Lub taub lim dej yog ib hom tshwj xeeb lim qis ua raws los ntawm lub lim siab lim kom tshem tawm cov zaus tshwj xeeb. Lub taub ntim lim tau siv los tshem tawm lub suab nrov uas tsim los ntawm txhua lub tshuab hluav taws xob uas muaj tam sim no ntawm 60Hz.

Cov txiaj ntsig passive tau suav: C =.1 uF (tus nqi raug xaiv) 2C =.2 uF (siv.22 uF capacitor)

AQ factor ntawm 8 yuav raug siv: R1 = 1/(2*Q*2*pi*f*C) = 1/(2*8*2*3.14159*60*.1E-6) = 1.66 kOhm (1.8 kOhm) tau siv) R2 = 2Q/(2*pi*f*C) = (2*8)/(60 Hz*2*3.14159*.1E-6 F) = 424 kOhm (390 kOhm + 33 kOhm = 423 kOhm yog siv) Voltage Division: Rf = R1 * R2 / (R1 + R2) = 1.8 kOhm * 423 kOhm / (1.8 kOhm + 423 kOhm) = 1.79 kOhm (1.8 kOhm tau siv)

Cov lim dej tsim no tau txais txiaj ntsig ntawm 1, uas txhais tau tias tsis muaj lub zog ntxiv.

Plugging hauv qhov tsis txaus ntseeg thiab simulating ntawm LTSpice nrog AC Sweep thiab cov lus qhia tawm ntawm 0.1 V sine yoj nrog AC zaus ntawm 1 kHz tau hauv cov kab lus txuas.

Ntawm qhov ib puag ncig ntawm 60 Hz, lub teeb liab mus txog nws qhov qis tshaj plaws. Lub lim dej tau ua tiav hauv kev tshem tawm 60 Hz suab nrov rau qhov tsis pom kev ntawm 0.01 V thiab muab qhov nce ntawm 1, vim tias qhov hluav taws xob nkag yog.1 V.

Kauj Ruam 3: Tsim Qhov Tsawg Hla Lim

Tsim qhov Tsawg Pass Lim
Tsim qhov Tsawg Pass Lim
Tsim qhov Tsawg Pass Lim
Tsim qhov Tsawg Pass Lim
Tsim qhov Tsawg Pass Lim
Tsim qhov Tsawg Pass Lim

Koj yuav xav tau: LTSpice (lossis lwm qhov software pom kev siv hluav taws xob)

Lub lim qis dhau tau tsim los tshem tawm cov cim qhia saum toj no qhov pib ntawm kev txaus siab uas yuav muaj lub teeb liab ECG. Qhov pib ntawm kev txaus siab yog nyob nruab nrab ntawm 0 - 350Hz.

Tus nqi hluav taws xob tau xaiv los ua.1 uF. Qhov xav tau tiv thaiv yog xam rau qhov txiav tawm siab ntawm 335 Hz: C = 0.1 uF R = 1/(2pi*0.1*(10^-6)*335 Hz) = 4.75 kOhm (4.7 kOhm tau siv)

Plugging hauv qhov tsis txaus ntseeg thiab simulating ntawm LTSpice nrog AC Sweep thiab cov lus qhia tawm ntawm 0.1 V sine yoj nrog AC zaus ntawm 1 kHz tau hauv cov kab lus txuas.

Kauj Ruam 4: Tsim Circuit Court ntawm Breadboard

Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard

Koj yuav xav tau: tus tiv thaiv ntawm cov txiaj ntsig sib txawv, lub peev xwm sib txawv ntawm qhov muaj txiaj ntsig, UA 471 cov khoom siv ua haujlwm tau zoo, jumper cables, lub khob cij, txuas kab hluav taws xob, lub hwj chim lossis 9 V roj teeb

Tam sim no koj tau sim koj lub Circuit Court, nws yog lub sijhawm los tsim nws ntawm lub khob cij. Yog tias koj tsis muaj qhov txiaj ntsig tau teev tseg, siv yam koj muaj lossis sib txuas ua ke cov khoom tiv thaiv thiab cov khoom siv hluav taws xob los ua qhov txiaj ntsig koj xav tau. Nco ntsoov muab lub hwj chim rau koj lub rooj noj mov siv lub roj teeb 9 Volt lossis DC lub zog siv. Txhua op amp xav tau qhov zoo thiab qhov tsis zoo qhov hluav taws xob.

Kauj Ruam 5: Teeb LabView Ib puag ncig

Teeb LabView Ib puag ncig
Teeb LabView Ib puag ncig
Teeb LabView Ib puag ncig
Teeb LabView Ib puag ncig

Koj yuav xav tau: LabView software, khoos phis tawj

Txhawm rau kom siv lub tshuab ua kom pom tau zoo dua thiab suav nrog lub plawv dhia, LabView tau siv. LabView yog qhov haujlwm siv los pom thiab txheeb xyuas cov ntaub ntawv. Cov txiaj ntsig ntawm ECG Circuit Court yog cov tswv yim rau LabView. Cov ntaub ntawv tau nkag mus, nkag siab thiab tshuaj xyuas raws li daim duab thaiv tsim hauv qab no.

Ua ntej, DAQ Tus Pabcuam siv lub teeb liab analog los ntawm Circuit. Cov lus qhia piv txwv tau teeb tsa ntawm no. Tus nqi piv txwv yog 1k kuaj ib pliag thiab ncua sijhawm yog 3k ms, yog li ntawd lub sijhawm sib nrug pom hauv Waveform Graph yog 3 vib nas this. Waveform Graph tau txais cov ntaub ntawv los ntawm DAQ Tus Pabcuam tom qab ntawd npaj nws hauv lub qhov rai vaj huam sib luag. Ntu qis ntawm daim duab thaiv kab ntawv suav nrog ntsuas lub plawv. Ua ntej tshaj plaws thiab yam tsawg kawg ntawm nthwv dej raug ntsuas. Tom qab ntawd, cov ntsuas qhov dav tau siv los txiav txim siab yog qhov nce siab tshwm sim uas tau txhais raws li 95% ntawm qhov siab tshaj plaws, thiab yog li yog lub sijhawm teev tseg. Thaum pom qhov siab tshaj plaws, qhov dav thiab lub sijhawm taw tes tau khaws cia hauv cov kab. Tom qab ntawd tus naj npawb ntawm qhov siab tshaj/ vib nas this tau hloov pauv mus rau feeb thiab nthuav tawm ntawm lub vaj huam sib luag pem hauv ntej. Lub vaj huam sib luag pem hauv ntej qhia txog kev yoj thiab ntaus ib feeb twg.

Lub Circuit Court tau txuas nrog LabVIEW los ntawm National Instruments ADC raws li qhia hauv daim duab saum toj no. Lub tshuab hluav taws xob ua haujlwm tsim cov simulated ECG teeb liab tau nkag mus rau hauv ADC uas hloov cov ntaub ntawv mus rau LabView rau teeb duab thiab tshuaj xyuas. Ib qho ntxiv, thaum BPM tau xam hauv LabVIEW, Tus Zauv Qhov Taw Qhia tau siv los luam tawm tus nqi ntawd ntawm lub vaj huam sib luag pem hauv ntej ntawm daim ntawv thov nrog rau sab nraub qaum teeb duab, raws li pom hauv daim duab 2.

Kauj Ruam 6: Xeem Circuit Court Siv Lub Tshuab Hluav Taws Xob

Xeem Circuit Court Siv Lub Tshuab Hluav Taws Xob
Xeem Circuit Court Siv Lub Tshuab Hluav Taws Xob
Xeem Circuit Court Siv Lub Tshuab Hluav Taws Xob
Xeem Circuit Court Siv Lub Tshuab Hluav Taws Xob

Koj yuav xav tau: hluav taws xob ntawm daim txiag ntoo, txuas kab hluav taws xob, lub hwj chim lossis 9 V roj teeb, Cov Khoom Siv Hauv Tebchaws ADC, LabView Software, khoos phis tawj

Txhawm rau ntsuas LabView cov cuab yeej ntsuas qhov ntsuas ECG tau nkag mus rau hauv Circuit Court thiab cov txiaj ntsig ntawm Circuit tau txuas nrog LabView los ntawm National Instruments ADC. Thawj lub teeb liab ntawm 20mVpp ntawm 1Hz tau nkag mus rau hauv Circuit kom sim ua kom lub plawv dhia so. LabView lub vaj huam sib luag pem hauv ntej tau qhia hauv daim duab hauv qab no. P, T, U nthwv dej thiab QRS txoj haujlwm yog txhua qhov pom. BMP raug suav kom raug thiab tso tawm hauv tus lej cim. Muaj qhov nce ntawm kwv yees li 8 V/0.02 V = 400 los ntawm qhov Circuit Court uas zoo ib yam li peb tau pom thaum lub xov tooj txuas nrog lub oscilloscope. Daim duab ntawm qhov tshwm sim hauv LabView tau txuas nrog. Tom ntej no, txhawm rau ua kom lub plawv dhia nrawm piv txwv thaum ua haujlwm, lub teeb liab ntawm 20mVpp ntawm 2Hz tau nkag mus rau hauv Circuit Court. Muaj qhov sib piv tau nce mus rau kev sim ntawm so lub plawv dhia. Hauv qab daim duab nthwv dej tau pom kom muaj txhua qhov zoo ib yam li ua ntej tsuas yog nrawm dua. Lub plawv dhia tau suav thiab tso tawm hauv tus lej ntsuas thiab peb pom qhov xav tau 120 BPM.

Kauj Ruam 7: Xeem Circuit Court Siv Tib Neeg

Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg
Test Circuit Siv Tib Neeg

Koj yuav xav tau: Circuit Court ntawm lub khob cij, txuas kab hluav taws xob, lub hwj chim lossis 9 V roj teeb, Cov Khoom Siv Hauv Tebchaws ADC, LabView Software, khoos phis tawj, hluav taws xob (tsawg kawg peb), tib neeg kawm

Thaum kawg, lub Circuit Court tau sim nrog tib neeg cov ncauj lus ECG ua cov tswv yim nkag mus rau hauv Circuit Court thiab tso tawm ntawm Circuit mus rau LabView. Peb qhov hluav taws xob tau muab tso rau ntawm qhov kev kawm kom tau txais lub teeb liab tiag. Cov hluav taws xob tau muab tso rau ntawm ob lub dab teg thiab pob taws sab xis. Lub dab teg sab xis yog lub tswv yim zoo, lub dab teg laug tsis zoo thiab pob taws tau hauv av. Ib zaug ntxiv cov ntaub ntawv tau nkag mus rau LabView rau kev ua tiav. Qhov teeb tsa hluav taws xob tau txuas ua daim duab.

Ua ntej tshaj plaws, lub ntsiab lus so ECG teeb liab tau tshwm sim thiab tshuaj xyuas. Thaum so, qhov kev kawm muaj lub plawv dhia kwv yees li 75 bpm. Cov ncauj lus no tau koom nrog kev tawm dag zog lub cev li 5 feeb. Cov ntsiab lus tau rov txuas dua thiab cov teeb tsa tau sau tseg. Lub plawv dhia kwv yees li 137 bpm tom qab ua haujlwm. Lub teeb liab no me dua thiab muaj suab nrov dua. Cov hluav taws xob tau muab tso rau ntawm ob lub dab teg thiab pob taws sab xis. Lub dab teg sab xis yog lub tswv yim zoo, lub dab teg laug tsis zoo thiab pob taws tau hauv av. Ib zaug ntxiv cov ntaub ntawv tau nkag mus rau LabView rau kev ua.

Tus neeg nruab nrab muaj lub teeb liab ECG txog li 1mV. Peb qhov kev cia siab tau nce txog 1000, yog li peb yuav cia siab tias yuav tso tawm qhov hluav taws xob ntawm 1V. Los ntawm cov kaw cia pom hauv duab XX, qhov dav ntawm QRS txoj haujlwm yog ntxhib (-0.7)-(-1.6) = 0.9 V. Qhov no ua rau 10% yuam kev. (1-0.9)/1*100 = 10% Lub plawv dhia ntawm tus tib neeg tus qauv yog 60, ntsuas yog li 75, qhov no ua rau | 60-75 |*100/60 = 25% yuam kev. Lub plawv dhia ntawm tus tib neeg tus qauv yog 120, ntsuas yog kwv yees li 137, qhov no ua rau | 120-137 |*100/120 = 15% yuam kev.

Nrog koj zoo siab! Tam sim no koj tau tsim koj tus kheej lub tshuab ECG tsis siv neeg.

Pom zoo: