As for any purely statistical information (such as radioactivity) the question is what to do with cumulated data and in which manner present it to the user (on a display or other devices).
A straightforward way would be composing an arithmetic mean of extrapolated CPM values over a fixed time frame. For instance: 2s measurement, extrapolation, then take 5 extrapolated values and generate a mean value.
The most recent value replaces the oldest value (FIFO), what is basically a ringbuffer principle.
for (int i=0; i < ringbuffer_elements; i++) { sum += ringbuffer[i]; } mean = sum/ringbuffer_elements;
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.