How to get standard positive and negative peak

then subtract that number from the input stream, instead of the theoretical 4096/2.
do you mean something like this ?
data = (ADC_Value - 2048) / 2048 ;

The OP is dealing with the amplitude only of the sound. His insistence on have a + and - signal makes no sense in reality as signal information is identical. If he was doing frequency analysis, then that requirement might make sense.
Thanks for the discussion. this is one way I learn.
Paul

1 Like

Yes, except it would be
data = (ADC_Value - x) / 2048 ;
Where the value of the constant 'x' is determined by running a simple sketch to report the idle (DC) value of the ADC.

1 Like

So what happened about this comment you deleted.

It is very poor manors.

If it didn’t work like you thought then say what was wrong.

It is very clear you are way out of your depth with this project as you keep ignoring advice. And asking the same question over and over.

Are you serious about wanting to solve this or are you just jerking us about.

Unless you Buck your ideas up and start cooperating you will find yourself running out of friends.

1 Like

Hi
I have been working on the project for 3 months and I am very confused :slightly_frowning_face:
i'm soooooooo sorry for If I upset someone

So be more open and answer questions. Or at least say you don’t want to answer a specific question. Nothing is more frustrating than just ignoring them. We are at post #107 and we are no closer to finding out.

Are you aware that the answers you are now getting are exactly what you tried and you said at first it worked. Then you retracted that post, so what did not work when you thought it did?

1 Like

My problem was solved with your help

:heart: :heart:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.