Software for the Muon Hunter project
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
datalogging.py

README.md

Muon Hunter simple python CSV RPI datalogger

This 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

Usage

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

Data rates

The data rate can be estimated with the following formula:

equation

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.

Data storage

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

https://opensource.org/licenses/AFL-3.0