Here is a graph of 37 data points taken once every 5 minutes. I'm trying to find the point where the slope goes negative after the peak. This is easy when you have all the data in front of you like this, but I need to stop a process the sample after the peak is detected.
I'm doing this all on a tiny 24, so I don't have room for log functions. I am keeping an average value and I'm comparing the slope of the current data to the slope of the average, and that seems to be good, but when I change sensors, the Y-scale changes, and that messes up my assumptions, so I have to be unit-less in my calculations.
I guess I have some ram that I could keep some data other than the average to work with.
Anybody have some good ideas?