Muon Hunter simple python CSV RPI datalogger
Python 2.7 script is for datalogging with the one board Muon Hunter
using a Raspberry Pi.
Set up your Muon Hunter as explained here: http://www.muonhunter.com/blog/simple-muon-logging-with-the-raspberry-pi
Basic, short term logging
Enter the following commands
sudo pigpiod python datalogging.py
CTRL+C cancels the datalogging.
Running the script in the background
If you would like to set up a longer experiment, just start the script in the background and you can log off from your Raspberry Pi after issuing the following commands.
sudo pigpiod nohup python datalogging.py& logout
The data rate can be estimated with the following formula:
Where R is the data rate in bytes/minute, CPM is the counts per minute per GM tube.
The expected data rate using normal background radiation (CPM = 30) is about 160 kB/hour. This estimate includes the optional temperature and pressure data, too. If the detection rate is higher or lower this has a direct effect on the data rates being higher or lower, too.
For example, I get about onlt 85 kB/hour from my room, since the background hits are less. If in doubt, measure for an hour or so and then use the formula to estimate the data rate at your location. This is only really relevant if you plan to leave the detector for months and you're worried about space on your SD with natural background. However, if you have artificial sources then you can run out of space much quicker, of course.
The detections are stored in
muonhunter.csv by default in
the same directory as the script. The data is added to the file every
5s by default you can change this in the script. New data is added to
the old, so if you wish to clear the data, just remove the file.
Copyright Mihaly Vadai 2018
Licensed under the Academic Free License version 3.0