Cov txheej txheem:

Ceev Hartley Hloov Spectral Stethoscope: 22 Kauj Ruam
Ceev Hartley Hloov Spectral Stethoscope: 22 Kauj Ruam

Video: Ceev Hartley Hloov Spectral Stethoscope: 22 Kauj Ruam

Video: Ceev Hartley Hloov Spectral Stethoscope: 22 Kauj Ruam
Video: NAJMA NASHAAD FARXADA II BILOW OFFICIAL VIDEO 2022 2024, Kaum ib hlis
Anonim
Ceev Hartley Hloov Spectral Stethoscope
Ceev Hartley Hloov Spectral Stethoscope

Hauv cov lus qhia no koj yuav kawm paub yuav ua li cas thiaj ua lub ntsej muag stethoscope siv qhov hloov pauv sai hartley. Qhov no tuaj yeem siv los pom lub suab lub plawv thiab lub ntsws.

Kauj ruam 1: Cov ntaub ntawv

1.8 LCD Screen ($ 7.50 ntawm Amazon)

Arduino Uno lossis Sib npaug ($ 7.00 ntawm Gearbest)

Electret Amplifier ($ 6.95 ntawm Adafruit)

100 µF Capacitor ($ 0.79)

Hlau thiab Jumpers ($ 4.00)

3.5mm Lub tso suab Jack ($ 1.50)

10kOhm Potentiometer ($ 2.00)

Momentary Hloov ($ 1.50)

Kauj Ruam 2: Cov Cuab Yeej

Soldering Hlau

Kub Nplaum Phom

3D Tshuab Luam Ntawv … lossis tus phooj ywg nrog lub tshuab luam ntawv 3D (Muaj peev xwm ua nrog duab los ib yam)

Hlau Cutter

Cov qhob cij

Kauj Ruam 3: Luam Ntawv 3D

Thawj zaug yog 3D luam the.stl cov ntaub ntawv txuas rau theem no. Kuv luam tawm ob daim ntawv siv cov khoom hauv qab no/teeb tsa:

Khoom siv: PLA

Txheej siab: 0.1 hli

Phab Ntsa/Sab Saum/Hauv Qab Thickness: 0.8mm

Luam Ntawv Kub: 200⁰C

Lub txaj sov: 60⁰C

Pab txhawb nqa @ 10%

Kauj Ruam 4: Tsim Vaj Tsev

Siv cov khoom siv hauv ntu cov ntaub ntawv, tsim lub Circuit Court. Kuv ib txwm muab lub vojvoog ua ke rau ntawm lub khob cij ua ntej kom paub tseeb tias nws ua haujlwm tau zoo ua ntej kov cov hlau txuas.

Kauj Ruam 5: LCD Txuas

LCD Txuas
LCD Txuas

Siv daim duab txuas rau cov kauj ruam no, siv cov xaim txuas mus rau xya ntawm yim tus pin ntawm lub vijtsam LCD. Cov xov hlau no yuav xav tau ntev txog 3 feet, tshwj tsis yog hauv av thiab +5V tus pin (cov no tsuas yog xav tau 2-3 ntiv)

Kauj Ruam 6: Mic/Amplifier Wiring

Mic/Amplifier Wiring
Mic/Amplifier Wiring

Siv daim duab txuas rau cov kauj ruam no txuas peb lub xov tooj mus rau +5V, Hauv av, thiab Tawm pins ntawm Adafruit microphone/amplifier. Cov no tsuas yog xav tau txog 2-3 ntiv tes hauv qhov ntev.

Kauj Ruam 7: Hloov Chaw Txuas Hluav Taws Xob

Hlau ib qho 2-3 nti xaim rau txhua ntawm ob lub hlua ntawm qhov hloov pauv tam sim.

Kauj Ruam 8: Cov Hluav Taws Xob Hluav Taws Xob

Siv daim duab hauv kauj ruam 6, siv peb lub xov hlau ntev li 2-3 ntiv tes ntev mus rau peb lub lug ntawm lub hwj chim.

Kauj Ruam 9: Lub mloog pob ntseg txuas txuas

Siv peb lub xov hlau txuas rau lub nplhaib, qhov taub, thiab lub tes tsho ntawm lub mloog pob ntseg. Kuv siv lub jack tawm ntawm lub metronome uas twb tau txuas lawm. Yog tias koj tsis paub tias lub nplhaib, qhov taub, thiab lub tes tsho yog dab tsi, tsuas yog google nws muaj ntau cov duab zoo hais txog kev thaiv lub tso suab tso suab.

Kauj Ruam 10: Microphone/Amplifier Output

Tom qab siv cov xov hlau txuas ntawm lub mic/amp, lub zog, thiab lub mloog pob ntseg, muab ib lub xov hlau txuas txog peb ko taw hauv qhov ntev mus rau "tawm" xaim ntawm lub suab nrov microphone. Cov xov hlau no tom qab yuav txuas nrog A0 tus pin ntawm arduino.

Kauj Ruam 11: Microphone/Amplifier Output Txuas Ntxiv

Solder tus xov tooj thib ob rau "tawm" xaim ntawm mic/amplifier. Cov xaim no yuav tsum tau muab txuas rau 100 microFarad capacitor. Yog tias koj tab tom siv lub tshuab hluav taws xob electrolytic, nco ntsoov tias sab zoo txuas nrog cov hlau no.

Kauj Ruam 12: Cov Cheeb Tsam hauv Cov Ntaub Ntawv

Cheebtsam hauv Cov Ntaub Ntawv
Cheebtsam hauv Cov Ntaub Ntawv
Cheebtsam hauv Cov Ntaub Ntawv
Cheebtsam hauv Cov Ntaub Ntawv

Tom qab tag nrho cov xov hlau tau muab tso rau ntawm cov khoom sib txuas, tso cov khoom sib txuas rau hauv qhov chaw tshwj xeeb raws li cov duab txuas mus rau theem no. Kuv siv cov kua nplaum kub kom ruaj ntseg lub microphone thiab lub mloog pob ntseg nkaus.

Kauj Ruam 13: Hauv-Cov Ntaub Ntawv-Soldering

Tom qab tag nrho cov khoom siv tau ruaj ntseg hauv lub thawv, muab tag nrho cov xov hlau hauv av ua ke. Yuav tsum muaj ib qho los ntawm LCD, ib qho los ntawm mic/amp, thiab ib qho los ntawm lub tes tsho ntawm lub mloog pob ntseg. Kuj tseem siv +5V xov hlau ua ke thiab ib lub xaim los ntawm qhov hloov pauv tam sim. Ib zaug ntxiv yuav tsum muaj ib qho los ntawm LCD, ib qho los ntawm mic/amplifier, thiab ib qho ntawm qhov hloov pauv tam sim.

Kauj Ruam 14: +5V, GND Txuas Cov Hluav Taws Xob

Tam sim no txiav ob daim xaim ntev li 3 ko taw. Cuab yeej ib qho rau pawg ntawm cov xov hlau hauv av thiab txuas lwm tus rau cov hlau qhib ntawm qhov hloov pauv tam sim.

Kauj Ruam 15: Hlais Cov Hluav Taws Xob Ntev Los Ntawm Qhov Rauv

Hlais Cov Hluav Taws Xob Ntev Los Ntawm Qhov Hau
Hlais Cov Hluav Taws Xob Ntev Los Ntawm Qhov Hau

Tam sim no, koj yuav tsum muaj tag nrho yim kab hais txog 3 ko taw ntev. Muab cov no hla lub qhov uas tsis tau ntim rau hauv lub thawv. Saib daim duab txuas rau cov kauj ruam no

Kauj Ruam 16: Thaum Tshav Kub Kub

Tom qab tag nrho cov khoom siv ua kom tiav, xyuas kom tseeb tias cov xov hlau raug nthuav tawm. Kuv siv cov cua sov ua kom sov, tab sis kab xev hluav taws xob kuj ua haujlwm tau zoo.

Kauj Ruam 17: Seal Enclosure

Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw

Siv ib nrab ntawm lub thawv uas muaj lub vijtsam LCD thiab plam nws hla ib nrab ntawm lub thawv uas muaj lwm yam khoom siv. Thaum thawb ob daim ua ke, kub kua nplaum rau lawv kom ruaj khov rau hauv lub thawv.

Kauj Ruam 18: Txuas rau Arduino

Qhov yim, ntev, cov xov hlau tseem tshuav txuas ncaj qha rau lawv cov Arduino pins tau teev tseg hauv kab lus piav qhia. Nco ntsoov tias txhua lub sijhawm koj tso ib qho ntawm 3ft xov hlau ntev mus rau hauv lub voj voog uas koj muab ib daim kab xev tso rau lwm qhov kawg qhia tias tus pin Arduino nws mus rau qhov twg!

Kauj Ruam 19: Arduino IDE/Tsev Qiv Ntawv

Koj yuav tsum rub tawm Arduino IDE. Txog qhov kos duab no, kuv siv peb lub tsev qiv ntawv sib txawv: FHT.h, SPI.h, thiab TFT.h. Yog tias koj tsis paub yuav rub lub tsev qiv ntawv Arduino li cas, thov mus saib https://www.arduino.cc/en/Guide/Libraries. Lub tsev qiv ntawv FHT.h tau rub tawm los ntawm openmusiclabs.com. Lwm qhov ob tau rub tawm ntawm GitHub.

Kauj ruam 20: Arduino Sketch

Txoj cai siv Fast Hartley Transform (FHT) los hloov lub sijhawm sau npe mus rau qhov chaw nquag. Qhov no tseem tuaj yeem ua tiav siv Fast Fourier Transform (FFT), tab sis FHT nrawm dua. FFT thiab FHT yog cov tswv yim tseem ceeb hauv kev teeb liab thiab lom zem heev los kawm txog. Kuv hais kom ua qee qhov nyeem koj tus kheej, yog tias koj xav pom. Tus lej FHT piv txwv kuv tau theej los ntawm Qhib Music Labs lub vev xaib tau pib tso tawm qhov dav ntawm txhua qhov tso rau hauv ntau zaus ua logarithmic lossis decibel tso tawm. Kuv tau hloov qhov no los tso zis ntau zaus ntawm cov kab tawm. Qhov no vim tias qhov ntsuas kab tawm yog qhov pom tau zoo dua ntawm qhov tib neeg hnov lub suab. Qhov rau () lub voj ntawm qhov kawg yog txhawm rau kos qhov dav ntawm txhua zaus tso rau ntawm lub vijtsam LCD. Tag nrho FHT spectrum yuav suav nrog txhua lub thoob ntim ntawm i = 0 rau i <128. Koj yuav pom tias kuv rau () lub voj yog los ntawm i = 5 txog i <40, qhov no yog vim qhov zaus uas tseem ceeb rau kev kuaj mob lub ntsws feem ntau ntawm 150Hz thiab 3.5khz, Kuv txiav txim siab nce mus txog 4kHz. Qhov ntawd tuaj yeem hloov kho yog tias koj xav qhia tag nrho cov zaus.

[chaws]

// Digital Stethoscope Code

// Ceev Hartley Hloov lub tsev qiv ntawv rub tawm los ntawm openmusiclabs

#define LIN_OUT 1 // teeb tsa FHT los tsim cov kab tawm

#define LOG_OUT 0 // tua FHT logarithmic cov zis

#define FHT_N 256 // FHT tus lej piv txwv

#suav nrog // suav nrog FHT lub tsev qiv ntawv

#suav nrog // suav nrog TFT lub tsev qiv ntawv

#suav nrog // suav nrog SPI lub tsev qiv ntawv

#define cs 10 // teeb tsa lcd cs pin rau arduino tus pin 10

#define dc 9 // teeb tsa lcd dc tus pin rau arduino tus pin 9

#define rst 8 // teeb tsa lcd pib dua tus pin rau arduino tus pin 8

TFT myScreen = TFT (cs, dc, rst); // tshaj tawm lub npe ntawm TFT npo

void teeb tsa () {

//Serial.begin(9600);//set tus nqi piv txwv

myScreen.begin (); // initialize TFT screen

myScreen.background (0, 0, 0); // teeb tsa keeb kwm yav dhau rau dub

ADCSRA = 0xe5; // teeb adc rau hom dawb khiav

ADMUX = 0x40; // siv adc0

}

void voj () {

thaum (1) {// txo qis jitter cli (); // UDRE cuam tshuam qeeb qhov no ntawm arduino1.0

rau (int i = 0; kuv <FHT_N; i ++) {// txuag 256 qhov qauv

thaum (! (ADCSRA & 0x10)); // tos rau adc kom npaj tau

ADCSRA = 0xf5; // rov pib dua adc byte

m = ADCL; // nqa adc cov ntaub ntawv byte

j = ADCH; int k = (j << 8) | m; // form rau hauv int

k -= 0x0200; // form rau hauv kos npe int

k << = 6; // form rau hauv 16b kos npe int

fht_input = k; // muab cov ntaub ntawv tiag rau hauv lub thoob

}

fht_window (); // qhov rai cov ntaub ntawv kom teb tau zoo dua

fht_reorder (); // rov kho cov ntaub ntawv ua ntej ua qhov fht

fht_run (); // txheej txheem cov ntaub ntawv hauv fht

fht_mag_lin (); // coj cov zis ntawm fht

sib ();

rau (int i = 5; i <40; i ++) {

myScreen.stroke (255, 255, 255);

myScreen.fill (255, 255, 255);

int drawHeight = daim ntawv qhia (fht_lin_out , 10, 255, 10, myScreen.height ());

int ypos = myScreen.height ()-kos qhov siab -8; myScreen.rect ((4*i) +8, ypos, 3, drawHeight);

}

myScreen.background (0, 0, 0);

}

}

[/chaws]

Kauj Ruam 21: Xeem Nws

Kuaj nws!
Kuaj nws!

Kuv siv lub tshuab hluav taws xob online (https://www.szynalski.com/tone-generator/) kom paub tseeb tias cov cai tau ua haujlwm raug. Tom qab lees tias nws ua haujlwm, nias lub tswb ntawm lub mloog pob ntseg nce mus rau koj lub hauv siab, ua pa tob tob thiab pom tias muaj cov xwm txheej tam sim no !!

Kauj Ruam 22: Ua Haujlwm Yav Tom Ntej

** Nco tseg: Kuv yog kws tshuaj, tsis yog kws tshaj lij lossis kws tshawb fawb computer **. Yuav muaj qhov yuam kev thiab txhim kho rau tus tsim thiab cov cai. Uas tau hais tias, Kuv xav tias nws yog qhov pib zoo rau qee yam uas tuaj yeem ua rau muaj txiaj ntsig zoo thiab pheej yig. Cov mos txwv hauv qab no yog kev txhim kho yav tom ntej Kuv xav ua thiab kuv vam tias qee tus ntawm koj kuj tseem sim txhim kho nws!

· Ua lub cuab yeej mobile. Kuv tsis muaj kev paub dav nrog CPUs lossis lwm lub microcontrollers, tab sis nws yuav tsum muaj lub cim xeeb txaus los khaws tag nrho FHT lub tsev qiv ntawv rau, lossis tej zaum Bluetooth.

· Qhia tawm qee qhov kev txheeb xyuas kev suav xam hauv cov cai. Piv txwv li, feem ntau qhov hnoos hawb pob muaj qhov sib npaug lossis ntau dua 400 Hz thiab kav ntev li 250 ms. Rhonchi tshwm sim ntawm qhov pib zaus txog 200 Hz lossis tsawg dua thiab kav ntev li 250 ms. Ntau lwm lub suab ntsws tau piav thiab qhia txog kev mob nkeeg (https://commongiant.github.io/iSonea-Physicians/assets/publications/7_ISN-charbonneau-Euro-resp-Jour-1995-1942-full.pdf). Kuv xav tias yog qee yam uas tuaj yeem tshuaj xyuas rau hauv cov cai los ntawm kev sib piv lub teeb liab ntawm cov khoom ntim ntau zaus tom qab qee tus lej ntawm kev mus los ntawm FHT thiab tom qab ntawd ua haujlwm millis () kom pom tias nws tau nyob ntev npaum li cas rau, tom qab ntawd muab piv rau nws mus rau lub suab nrov hauv av ntawm FHT suav. Kuv ntseeg tias cov no tuaj yeem ua tiav!

Kuv vam tias koj txhua tus tau lom zem nrog txoj haujlwm no thiab yog tias koj muaj lus nug thov tawm tswv yim thiab kuv yuav teb sai li sai tau! Kuv tos ntsoov pom cov lus.

Pom zoo: