From a9afecb20b18f91fde0fba1ff7cd2e3e1d7a0186 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 15 Nov 2024 19:56:08 +0100 Subject: [PATCH] converting CPM to uSv/h --- RadiationMapper.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RadiationMapper.ino b/RadiationMapper.ino index 0284bd6..cb2dd95 100644 --- a/RadiationMapper.ino +++ b/RadiationMapper.ino @@ -21,6 +21,7 @@ along with this program. If not, see . #define INPUT_PIN 10 //VIN PIN FOR GEIGER COUNTER #define MEASUREMENT_TIME_MS 60000 //MINUTE +#define CALIBRATION_FACTOR 0.00332 //CONSTANT FOR CONVERTING J305 CPM TO uSv/h std::list counts; //COUNTS IN LAST MINUTE (OR MEASUREMENT_TIME_MS IF MODIFIED) @@ -58,6 +59,6 @@ void loop() if (last_counts != current_counts) //PRINT CPM IF CHANGED { last_counts = current_counts; - Serial.println(String(current_counts) + " CPM"); + Serial.println(String(current_counts * CALIBRATION_FACTOR) + " uSv/h"); } }