Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] PCG signal display issue

Status
Not open for further replies.

MD_SHAHRUKH

Member level 5
Joined
Jun 5, 2017
Messages
81
Helped
4
Reputation
8
Reaction score
4
Trophy points
8
Location
Bhubaneswar, India
Activity points
891
Hello everyone,
I have been working on an electronic stethoscope in which I have implemented one piezoelectric senor to hear the heartbeat, I get the heartbeat sound very clear to my earphone, but when acquiring that signal to ADC and try to plot the same, I am facing the issue of not so good signal, that means the plot rarely visualize the lub dub signals.

I have made many changes to the circuit, it enhances my sound signal but it is not at all improving my plot.

Should I get some digital IC into it? or analog circuit with ADC works fine?

1619444894041.png
 

danadakk

Advanced Member level 3
Joined
Mar 26, 2018
Messages
937
Helped
182
Reputation
367
Reaction score
194
Trophy points
43
Activity points
4,411
In my post about filtering there is a thought that environment is high common mode (CM)
so might be best to place notch filter first so that you do not G up the CM and possibly
saturate the filter signal path. Also take G in it for noise cascade reasons.


Regards, Dana.
 

    MD_SHAHRUKH

    Points: 2
    Helpful Answer Positive Rating

Audioguru

Advanced Member level 5
Joined
Jan 19, 2008
Messages
9,217
Helped
2,129
Reputation
4,252
Reaction score
1,957
Trophy points
1,393
Location
Toronto area of Canada
Activity points
57,913
The article says there are no breathing sounds above 2500Hz so maybe your cutoff frequency should be 2.5kHz. It is only 100Hz in your schematic.
I cropped your schematic to it is not as big as my neighborhood and made some corrections and notes.
 

Attachments

  • stethoscope circuit.png
    stethoscope circuit.png
    50.3 KB · Views: 8

    MD_SHAHRUKH

    Points: 2
    Helpful Answer Positive Rating

MD_SHAHRUKH

Member level 5
Joined
Jun 5, 2017
Messages
81
Helped
4
Reputation
8
Reaction score
4
Trophy points
8
Location
Bhubaneswar, India
Activity points
891
In my post about filtering there is a thought that environment is high common mode (CM)
so might be best to place notch filter first so that you do not G up the CM and possibly
saturate the filter signal path. Also take G in it for noise cascade reasons.
Okay, I'll try to add one notch filter of 50Hz.
--- Updated ---

In my post about filtering there is a thought that environment is high common mode (CM)
so might be best to place notch filter first so that you do not G up the CM and possibly
saturate the filter signal path. Also take G in it for noise cascade reasons.
Okay, I'll try to add one notch filter of 50Hz.
--- Updated ---

The article says there are no breathing sounds above 2500Hz so maybe your cutoff frequency should be 2.5kHz. It is only 100Hz in your schematic.
I cropped your schematic to it is not as big as my neighborhood and made some corrections and notes.
Thank you for the correction, I have changed the capacitor value to 0.5nF to both C2 and C6. I have also put a Capacitor near the battery supply in the real circuit. And also I have not put 100nF near the microphone input, that was only for the simulation. And 2 batteries here are just in the simulation only not in the real circuit.

Thank you.
 
Last edited:

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
19,463
Helped
4,304
Reputation
8,613
Reaction score
4,260
Trophy points
1,393
Activity points
129,079
Hi,

I can see the heartbeat, but I can´t see any useful in the breathing. Can you give a short explanation what I have to look for?

Both are 200mV/div and 500ms/div ?

Klaus
 

    MD_SHAHRUKH

    Points: 2
    Helpful Answer Positive Rating

MD_SHAHRUKH

Member level 5
Joined
Jun 5, 2017
Messages
81
Helped
4
Reputation
8
Reaction score
4
Trophy points
8
Location
Bhubaneswar, India
Activity points
891
Take a closer look at the graph of breathing, If you are able to observe the pattern properly please compare to the image below, the tracheal sound at lungs expansion. (expanded time column)

WhatsApp Image 2021-04-30 at 4.45.26 PM.jpeg


I know it is not perfectly fine on my plot, but It is acceptable for now. But If you can suggest me few more corrections, I'll do the necessary updates, as tomorrow and the day after tomorrow is lockdown here. I can work more into it. And I am not doing the software part that is on RPi, so I can not answer what is done on RPi.

Thank you.
 

MD_SHAHRUKH

Member level 5
Joined
Jun 5, 2017
Messages
81
Helped
4
Reputation
8
Reaction score
4
Trophy points
8
Location
Bhubaneswar, India
Activity points
891
Hello everyone.
I have shown the circuit to the doctor today for approval of the circuit. The sound was perfect. Getting good sound in all the possible regions in the neck, chest, and back. The thing I got the recommendation from the doctor was the correct display of the signal to compare the neck sound with other chest sounds.

A small knowledge I want to share what the doctor explained to me was our lungs is like a cushion connected through a pipe, when we breathe in we will able to hear it from our neck but as we move our sensor to bottom of our chest the sound will disappear because there is no conduction of sound till the end. For a normal human, the sound heard from the neck and bottom chest must be mismatched. If the chest sound appears this means there is some conductive medium present in the lungs which can be liquid or solid, for the case of liquid it an infection like pneumonia or COPD, and solid like smoking lungs or pollution lungs.

I have one more issue left to resolve now, to give the signal to ADC, which I think I need to shift the signal a bit higher in order to capture in ADC. And plotting issue is still there because the breathing pattern is hardly received from other chest portions, so the comparison is a little time taking as we don't have patients to test.

Thank you so much EDA community, especially Klaus and Audioguru for making it possible before time.
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
19,463
Helped
4,304
Reputation
8,613
Reaction score
4,260
Trophy points
1,393
Activity points
129,079
Hi,
I have one more issue left to resolve now, to give the signal to ADC, which I think I need to shift the signal a bit higher in order to capture in ADC. And plotting issue is still there because the breathing pattern is hardly received from other chest portions, so the comparison is a little time taking as we don't have patients to test.
Some terminology issues.
When I read "shift the signal higher" --> I understand "add DC offset"
--> But I guees you mean to "amplify" the signal.

"Capture in ADC" is unusual, too. --> An ADC converts an analog signal into a digital value.

****
Regarding ADC input: Better to have a "small" input signal than a too big (and thus distorted) signal.
Indeed it depends about the analog signal dynamic ... and what resolution you need at the digital side.

Klaus
 

    MD_SHAHRUKH

    Points: 2
    Helpful Answer Positive Rating

danadakk

Advanced Member level 3
Joined
Mar 26, 2018
Messages
937
Helped
182
Reputation
367
Reaction score
194
Trophy points
43
Activity points
4,411
The calculator in post #29 will allow you to determine, for the range and offset you need, the R values
for the OpAmp. Keep in mind their precision will determine accuracy.

Here is another version -



Regards, Dana.
 

Audioguru

Advanced Member level 5
Joined
Jan 19, 2008
Messages
9,217
Helped
2,129
Reputation
4,252
Reaction score
1,957
Trophy points
1,393
Location
Toronto area of Canada
Activity points
57,913
The opamp output is now 2.0V to 3.0V with no input signal producing 2.5V.
I think the A to D input needs to be 0V to 5V with no input signal to the opamp at 0V.
Then the opamp should be a peak detector (rectifying) with DC offset.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top