RadSensBoard is an Arduino library for RadSens Geiger counter board. It provides a simple access to all the RadSens board registers.
- Tested with PlatformIO for VSCode and RadSens board 1.5 with CTC-5 tube.
- RadSensBoard library is distributed under the terms of the MIT license.
- RadSensBoard library repository is https://github.com/vurdalakov/radsensboard
- RadSensBoard library GitHuib repository
- RadSens board datasheet
- Manufacturer website
- Manufacturer GitHub repository
- ESPHome custom component sample for RadSens
#include <Arduino.h>
#include <RadSensBoard.h>
RadSensBoard radSensBoard;
void setup()
{
Serial.begin(115200);
radSensBoard.init();
}
void loop()
{
radSensBoard.readData();
Serial.print("Radiation level (mR/h): ");
Serial.println(radSensBoard.getRadiationLevelDynamic(), 3);
delay(2000);
}
Initializes library and checks connection to RadSens board. Returns true
in success case or false
if connection to board had failed.
Reads data from the RadSens board.
Gets radiation level (in mR/h) based on dynamic window. Dynamic window size depends on current radiation level, but is less than 123 sec.
Gets radiation level (in mR/h) based on static window of 500 sec.
Gets the accumulated number of pulses registered by the RadSens board.
Resets the accumulated number of pulses registered by the RadSens board.
Gets the RadSens board firmware version.
Gets the RadSens board I2C address. Default value is 0x66
.
Sets the RadSens board I2C address.
Gets a value indicating whether the the high-voltage generator is on. Default is on.
Turns the high-voltage generator on or off.
Gets the calibration value of the RadSens board (number of pulses per µR). Default value is 105.
Sets the calibration value of the RadSens board (number of pulses per µR).
Gets a value indicating whether the the LED indication is enabled. Default is on.
Turns the LED indication on or off.