Skip to content
Branch: master
Find file History
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.
arduino_sketch_geiger_counter_moteino_mega_lora
images
CHANGELOG.md
README.md
mycodo_custom_input_ttn_data_storage_geiger_counter.py
payload_decoder_the_things_network_app.java

README.md

LoRaWAN-enabled Geiger Counter

Version 1.3

By Kyle Gabriel

Blog Post: Remote Radiation Monitoring

About

This Input was designed for use with the Moteino Mega with a LoRaWAN transceiver, connected to a MightyOhm Geiger Counter (v1.0), powered by three AA batteries, for long-term remote radiation monitoring.

Every hour, the Moteino Mega powers the Geiger counter for 1 minute to acquire radiation measurements. The Moteino Mega then records the counts per minute (CPM) and μSv/hr measurement data over the Geiger Counter's serial connection. The Geiger counter power is turned off and the data is transmitted via LoRaWAN to The Things Network (TTN). Mycodo uses this custom Input to download the measurements from TTN and transmit them to Safecast and GMC Map.

Requirements

Required Arduino Libraries

Optional libraries (for OLED display)

Setup

  • Add the required libraries listed at the top of the arduino sketch to the Arduino IDE.
  • Fill in the credentials created on TTN (below) at the top of the Arduino code at the heading "TTN Credentials".
  • If using a 128x64 I2C SD1306 OLED display, connect the display SDA and SCL pins to the SDA/SCL pins of the Moteino Mega and uncomment "#define USE_SSD1306_OLED 1" at the top of the Arduino code.
  • Using the Arduino IDE, upload the code to the Moteino Mega.
  • Connect the TX pin of the Geiger counter to the RX pin of the Moteino Mega.
  • Connect pin 0 of the Moteino Mega to the positive terminal of the Geiger counter battery case (do not put batteries in the Geiger counter's battery case).
  • Connect the ground pin of the Moteino Mega to the ground pin of the Geiger counter.
  • Put the Geiger counter power switch into the ON position.
  • On TTN, create a new application and add a device.
  • On TTN, enable the Data Storage Integration in the application and copy the Payload Decoder code.
  • Power the Moteino Mega and verify data is being transmitted to TTN.
  • In Mycodo, upload the custom Input file under Config -> Inputs.
  • In Mycodo, on the Data page, use the dropdown to select and add the new Input "Geiger Counter (TTN/Safecast/GMCMap)".
  • Configure and activate the new Input. Data can be sent to Safecast (api.safecast.org) and GMC Map (gmcmap.com). For each service, set up an account, add a device, enter credentials, and check the checkbox to enable each.

Notes

I use 3x AA batteries to power the Moteino Mega via the VIN pin (which has its own voltage regulator). In the images, below, the battery pack is housed underneath the Geiger counter.

Images

GC System 01

GC System 02

GC System 03


Screenshot_Safecast_map

Screenshot_Safecast_data


Screenshot_GMC_Map

Screenshot_GMC_Map_data

You can’t perform that action at this time.