Electronic Stethoscope

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Cs,
Welcome to our forum. ;D
The output of the Electronic Stethoscope 2 project feeds an AC without any DC bias voltage to headphones.
The output pin 5 of the LM386 power amplifier IC is also AC but it has a DC bias voltage of half the positive battery voltage. It swings from about +1.2V to about +7.8V if its load resistance is high. It would need to be level shifted to be from 0V to no more than +5V to feed an ADC.

I think the heartbeat signal goes in a negative direction since the first opamp inverts the output from the microphone. If this is a problem then either the first opamp can be made non-inverting or the LN386 power amplifier can be connected as inverting.

 

cshaopin

Apr 5, 2007
2
Joined
Apr 5, 2007
Messages
2
Hi AudioGuru,

Thanks about the valuable informations. I was jz tring to calculate each op-amp's gain (necessary for my project report).

Currently learning to use ADC and ATMEL8051 for the interfacing purpose. Will post my results here for comments if there's a breakthrough.

I will use a standard electronic stethoscope which is sold on the market and compare the signals obtained from it with the electronic stethoscope 2 posted here. Try to calculate the percent root-mean difference between these 2 and analysis the quality of the circuit.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
jrnb3 said:
I'm new to this site, and am analyzing this circuit for a project.  Im not exactly clear on what the function of the first amp is for
The first opamp amplifies the very low level from the microphone. The second opamp is an equal component Sallen and Key second-order Butterworth lowpass filter that should not have more gain than 1.6.

why you use a dual op-amp?
A dual opamp is inexpensive because they are used in stereos. They are smaller than two separate opamps.

i have seen on other circuits a buffer before the gain stage-- is this necessary?
The electronic Stethoscope-2 circuit has enough gain for its job.

what is the difference between using the 741 and 386 amps?
The 741 is an opamp that has a minimum load resistance rating of about 2k ohms. It doesn't have enough output current to drive low impedance headphones.
The LM386 is a small power amplifier that drives low impedance headphones perfectly.
 

jrnb3

Apr 18, 2007
1
Joined
Apr 18, 2007
Messages
1
Thank you for the valuable information Audioguru.  I am having issues with using PSPICE to simulate this circuit.  I keep getting errors for floating nodes at the LED and the headphone jack.  Any advice? 

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
jrnb3 said:
I am having issues with using PSPICE to simulate this circuit.  I keep getting errors for floating nodes at the LED and the headphone jack.  Any advice? 
The LM386 was invented before PSPICE so there is not a model for it. If you made your own model then connect a 16 ohm load resistor to the headphones jack.
Disconnect the LED, all it does is blink.
 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
This is worth a try. I have not tested it

*--------------------------------------------
* NO-FRILLS LM386 MODEL
* Dave Dilatush 5/30/95

* PSPICE analysis statements:

.probe
.ac dec 20 1 1e7
.tran 1u 3m 0 5u

* circuit to test the lm386 model:

vsupply vcc 0 dc 9
vsignal input 0 ac 1 sin 0 .05 1k
csnub output snub .05uf
rsnub snub 0 10
ccoupling output speaker 1000uf
rspeaker speaker 0 8
xamp input nc1 nc2 nc3 nc4 output vcc 0 lm386
*cgain nc3 nc4 10uf ;gain boost capacitor
*cbypass nc2 0 50uf ;bypass cap for PSRR

* lm386 subcircuit model follows:

* IC pins:    2  3  7  1  8  5  6  4
*              |  |  |  |  |  |  |  |
.subckt lm386 inn inp byp  g1  g8 out  vs gnd

* input emitter-follower buffers:

q1 gnd inn 10011 ddpnp
r1 inn gnd 50k
q2 gnd inp 10012 ddpnp
r2 inp gnd 50k

* differential input stage, gain-setting
* resistors, and internal feedback resistor:

q3 10013 10011 10008 ddpnp
q4 10014 10012 g1 ddpnp
r3 vs byp 15k
r4 byp 10008 15k
r5 10008 g8 150
r6 g8 g1 1.35k
r7 g1 out 15k

* input stage current mirror:

q5 10013 10013 gnd ddnpn
q6 10014 10013 gnd ddnpn

* voltage gain stage & rolloff cap:

q7 10017 10014 gnd ddnpn
c1 10014 10017 15pf

* current mirror source for gain stage:

i1 10002 vs dc 5m
q8 10004 10002 vs ddpnp
q9 10002 10002 vs ddpnp

* Sziklai-connected push-pull output stage:

q10 10018 10017 out ddpnp
q11 10004 10004 10009 ddnpn 100
q12 10009 10009 10017 ddnpn 100
q13 vs 10004 out ddnpn 100
q14 out 10018 gnd ddnpn 100

* generic transistor models generated
* with MicroSim's PARTs utility, using
* default parameters except Bf:

.model ddnpn NPN(Is=10f Xti=3 Eg=1.11 Vaf=100
+ Bf=400 Ise=0 Ne=1.5 Ikf=0 Nk=.5 Xtb=1.5 Var=100
+ Br=1 Isc=0 Nc=2 Ikr=0 Rc=0 Cjc=2p Mjc=.3333
+ Vjc=.75 Fc=.5 Cje=5p Mje=.3333 Vje=.75 Tr=10n
+ Tf=1n Itf=1 Xtf=0 Vtf=10)

.model ddpnp PNP(Is=10f Xti=3 Eg=1.11 Vaf=100
+ Bf=200 Ise=0 Ne=1.5 Ikf=0 Nk=.5 Xtb=1.5 Var=100
+ Br=1 Isc=0 Nc=2 Ikr=0 Rc=0 Cjc=2p Mjc=.3333
+ Vjc=.75 Fc=.5 Cje=5p Mje=.3333 Vje=.75 Tr=10n
+ Tf=1n Itf=1 Xtf=0 Vtf=10)

.ends
*----------end of subcircuit model-----------
.end

*--------------------------------------------
* NO-FRILLS LM386 MODEL
* Dave Dilatush 5/30/95

* PSPICE analysis statements:

.probe
.ac dec 20 1 1e7
.tran 1u 3m 0 5u

* circuit to test the lm386 model:

vsupply vcc 0 dc 9
vsignal input 0 ac 1 sin 0 .05 1k
csnub output snub .05uf
rsnub snub 0 10
ccoupling output speaker 1000uf
rspeaker speaker 0 8
xamp input nc1 nc2 nc3 nc4 output vcc 0 lm386
*cgain nc3 nc4 10uf ;gain boost capacitor
*cbypass nc2 0 50uf ;bypass cap for PSRR

* lm386 subcircuit model follows:

* IC pins:    2  3  7  1  8  5  6  4
*              |  |  |  |  |  |  |  |
.subckt lm386 inn inp byp  g1  g8 out  vs gnd

* input emitter-follower buffers:

q1 gnd inn 10011 ddpnp
r1 inn gnd 50k
q2 gnd inp 10012 ddpnp
r2 inp gnd 50k

* differential input stage, gain-setting
* resistors, and internal feedback resistor:

q3 10013 10011 10008 ddpnp
q4 10014 10012 g1 ddpnp
r3 vs byp 15k
r4 byp 10008 15k
r5 10008 g8 150
r6 g8 g1 1.35k
r7 g1 out 15k

* input stage current mirror:

q5 10013 10013 gnd ddnpn
q6 10014 10013 gnd ddnpn

* voltage gain stage & rolloff cap:

q7 10017 10014 gnd ddnpn
c1 10014 10017 15pf

* current mirror source for gain stage:

i1 10002 vs dc 5m
q8 10004 10002 vs ddpnp
q9 10002 10002 vs ddpnp

* Sziklai-connected push-pull output stage:

q10 10018 10017 out ddpnp
q11 10004 10004 10009 ddnpn 100
q12 10009 10009 10017 ddnpn 100
q13 vs 10004 out ddnpn 100
q14 out 10018 gnd ddnpn 100

* generic transistor models generated
* with MicroSim's PARTs utility, using
* default parameters except Bf:

.model ddnpn NPN(Is=10f Xti=3 Eg=1.11 Vaf=100
+ Bf=400 Ise=0 Ne=1.5 Ikf=0 Nk=.5 Xtb=1.5 Var=100
+ Br=1 Isc=0 Nc=2 Ikr=0 Rc=0 Cjc=2p Mjc=.3333
+ Vjc=.75 Fc=.5 Cje=5p Mje=.3333 Vje=.75 Tr=10n
+ Tf=1n Itf=1 Xtf=0 Vtf=10)

.model ddpnp PNP(Is=10f Xti=3 Eg=1.11 Vaf=100
+ Bf=200 Ise=0 Ne=1.5 Ikf=0 Nk=.5 Xtb=1.5 Var=100
+ Br=1 Isc=0 Nc=2 Ikr=0 Rc=0 Cjc=2p Mjc=.3333
+ Vjc=.75 Fc=.5 Cje=5p Mje=.3333 Vje=.75 Tr=10n
+ Tf=1n Itf=1 Xtf=0 Vtf=10)

.ends
*----------end of subcircuit model-----------
.end

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
jrnb3 said:
for the input, the mic has an output resistance of 5k, which is in parallel with 10k, and in series with 2.2k. combined with the 4.7u leads to frequency of 6.1Hz.
Yes. the frequency response is down to about 6.1Hz.

The 470u cap keeps a steady supply voltage for the mic and preamp, due to fluctuations in the internal resistance of the battery.
No. The signal causes fluctuations in the supply voltage (when the internal resistance of the battery increases as it runs down) if the 470uF capacitor is not there to smooth the fluctuations.

It is unclear is what frequency we are trying to amplify (what is the typical frequency of a heartbeat?)
A heartbeat is a DC pressure wave. A microphone cannot produce DC so the circuit responds to very low frequencies near DC.

unclear is what the role of the 1k is
The 1k resistor and the 470uF capacitor are a filter.

what voltage levels are expected at the input of the preamp.
Maybe the input to the circuit is 10mV peak.

For the preamp, .... The input resistance is 10E12
The input resistance of the preamp is 2.2k ohms (R2) which is too low but it works.

the gain is -8.5
Yes, it inverts with a gain of 8.5.

unclear how to figure what frequency is being amplified
U1A amplifies frequencies from 6.1Hz to 100kHz.

and what the output resistance is
The output resistance of an opamp is "zero ohms". It is actually the physical 75 ohms divided by the open loop gain of about 200,000, times the gain. So it is actually 0.003 ohms at very low frequencies.

For the low pass filter,  also a TL072.  function is to filter higher frequency noise.  unclear where the noise comes from-- only lower frequencies have been amplified.
The microphone picks up sounds of road traffic outside and people talking nearby. The first opamp amplifies it.

cutoff frequency is 103Hz (what is in this frequency range?).  it is a 2nd order butterworth filter, meaning it has a flat amplitude response.  its gain at 103Hz is .707, leading to an overall gain of about 1.6.
Yes, the response of the Butterworth filter cutsoff at 103Hz.

unclear what the 33k and 56k are for
The gain of the opamp is (33k/56k) + 1= 1.59. If one filter capacitor is twice the value of the other then the gain can be 1 and it will still be a Butterworth filter.

what the output resistance is.
The output resistance of an opamp is "zero ohms". It is actually the physical 75 ohms divided by the open loop gain of about 200,000, times the gain. So it is actually 0.0006 ohms at very low frequencies. 

The volume control is a variable resistor, which when increased, increases the input bias which results in higher output voltage
No. The bias voltage is not changed by the volume control. It changes the signal amplitude due to its adjustable voltage divider action.

unclear what the limit is for this resistor value.
The value of the volume control can be from 2k (the lowest value an opamp can drive) to about 50k which is the input resistance of the LM386 amplifier.

The output amp is a LM386.  its input resistance is 50k in series with the pot.  it has a very low load resistance and is able to power low impedance headphones.  although this amp is better, i will be using a 741 amp because i have to do a simulation is PSPICE, and i dont know how to create a subcircuit.  The 741 opamp has an input resistance of 2Meg, unclear of the output resistance.
A 741 is an opamp. An LM386 is a power amp which is completely different.
A 741 can be loaded with no less than about 2k ohms. An LM386 is made to have a load down to 8 ohms.
A 741 needs to be biased correctly and needs to have two resistors to set its gain.
An LM386 is internally biased and has its gain internally set at 10.
A 741 doesn't work if its inputs are at ground (0V).
An LM386 is designed for its inputs to be at ground.

unclear what the role of 3.9 and .1u are
They are the load on the LM386 at very high frequencies where the speaker's impedance becomes very high due to its inductance. The LM386 will oscillate at a very high frequency without them.

about to put circuit in PSPICE wish me luck.
Good luck. ;D
 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Jrnb,
I don't know which pspice software you are using.
Your 741 has the correct power supply but it has no negative feedback so its gain at DC and at very low frequencies is about 200,000.
The 741 cannot drive resistances as low as R14, R15 and R17.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
The 741 cannot drive 16 ohm headphones, nor 1k, nor 3.9 ohms. It can drive 2.2k ohms in parallel with 19k resulting in a load of 2k ohms.
This is how to connect negative feedback:

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Yes, you understand the circuit.
I guessed at the output level from the microphone. It might be 5mV peak or it might be 20mV peak. Each heart would probably have a different level.

 

mani420

Mar 30, 2005
1
Joined
Mar 30, 2005
Messages
1
Hi Audioguru,
I checked the Electronic stethoscope2 can u tell me that what is the purpose of U1&U2.In U1 you did not apply the supply Volt and input is also applied at pin2,3 why?.In U2 input is applied at 5,6 why?.Waiting for your reply.
tnanks

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
I answered your Personal Message. I didn't know you posted the same questions here.
U1a and U1b are a TL072 which is a dual opamp. It has two low noise opamps inside. Look at its datasheet.

U1a is a preamplifier. U1b is a Sallen and Key 2nd-order Butterworth lowpass filter that cuts frequencies above 103Hz.

 

Philipf

Apr 30, 2007
4
Joined
Apr 30, 2007
Messages
4
Hi, Im not so new to electronics, but new to building from scratch.  I repair mobile phone circuits for a living, and Im not sure if its a confidense issue, but have never really built a decent project, and this is 1 that I want to build.

My girlfriend is pregnant and thought it would be good if I could pick up the babys heartbeat.  But Im not sure if this would work so well for that, dont they use US to detect heartbeats if you go to the hospital.

I would love to make this as a present for her.  Any ideas if it would work, if it needs further amplification Im sure I can figure it out.

Thanks, Philip

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
One of our members, Dazza, used the Electronic Stethoscope-2 project to hear his unborn baby's heartbeat. The circuit has plenty of gain.

 

Philipf

Apr 30, 2007
4
Joined
Apr 30, 2007
Messages
4
Thank you very much :)

It will be a good project, just having trouble sourcing the 2.2K to 10K audio-taper.  Im in the UK and cant seem to find it anywhere, might have to start taking things apart :D

Philip

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
The pot is an ordinary volume control.
Its resistance can be 2.2k, 5k or 10k ohms.
It should have an audio-taper for it to be a volume control intead of having a linear taper.

 

Philipf

Apr 30, 2007
4
Joined
Apr 30, 2007
Messages
4
I see.  Think I've got 1 on an old cable finder.

Another question, whilst searching for the Op-Amps, I have found TL072, but there is a variety, each with different letters after them, IE;

TL072CP
TL072CDR
TL072ACD
etc etc..

Will any of these do the job?

Ta, Philip

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Philip,
Get the TL072CP. It is for mounting on a circuit board with its leads through holes. The "D" is a tiny surface-mount package which is difficult to solder. The "A" has very high spec's for the military.
The datasheet describes these things.

 

gregtorres

Feb 1, 2006
7
Joined
Feb 1, 2006
Messages
7
I'm finished working the ELECTRONIC STEThoSCOPE 2 project and its working just fine. now all i need to do now is to put or connect a 7 Segment LED  heart beat Counter circuit display to count in heart beats. but can i put or connect a 7 Segment LED Counter circuit to the ELECTRONIC STEThoSCOPE 2 even without changing the original circuit config. of the ELECTRONIC STEThoSCOPE 2? and is there a 7 Segment LED heart beat Counter circuit display project posted in the forums?

Please help!

any replies regarding to this topic will be highly appriciated! Thank you!

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Greg,
I just finished replying to your duplicated post. Please do not make duplicates of your posts.

 
Top