Aha, well I have no clue about what it is. All I see is low frequency periodic waves. That’s what I meant by ripple. I just made a circuit that works and just tried different things. I noticed that the lower valued...
I'm not connected to a battery so not worried about that.
I'm using two resistors to create a voltage divider as a midpoint voltage reference for some piezos. I can use higher value resistors but they will ripple...
I don’t think so. You need to keep track of the time of arrival so the list is a pair consisting the value and the time of arrival. You fill in new values as they come in and remove old values when they expire or if...
This seems like the way to go.
It’s completely clear now. If the value to be inserted is bigger than max it will delete everything. I thought this would be a problem but since it is the newest value it doesn’t matter...
Thanks but that's not what I want to do. I need the biggest value in a sliding window of 250 samples (5ms). The window is moving one sample every time a new sample comes in. The example you showed is stationary and...
I want the biggest number that is inside the current window. The window constantly changes as new samples come in. The max() function would do exactly what I want as long as I keep the buffer at a size of 250 which...
Hello!
I need guidance on making a function for this:
I need to keep track of the biggest sample in the last ~5ms or so. It needs to update for every new sample that comes in. I'm sampling sensors at 50kHz.
...