Analyzing Geiger Counter Data
This python script is designed for the AWARE RM-60 Micro Roentgen Radiation Monitor though it should work with data from other counters.
The RM-60 is connected to and powered by an Arduino Uno.
The Arduino code is an interrupt driven counter that for each count outputs the time since the previous count. The data are in seconds. My script that reads the RM-60 saves there time differences to the data file. It also outputs the counts per minute once a minute, along with the cumulative average CPM. This data starts with a # character so it can be filtered out as a comment.
This script reads the data files from disk and puts the arrival time differences into a numpy array. Right now the script prints out the files with the suffix .csv. Right now there is a maximum of 200000 data points.
Now print out some information about the data.
There often seems to be a very rogue data point. Try to edit those out.
Finally plot the histogram on a linear and a logarithmic scale.