Geigercounter

From RevSpace
Revision as of 09:13, 29 November 2017 by Bertrik Sikken (talk | contribs) (Alweer een geslaagd project!)
Jump to navigation Jump to search
Project Geiger counter
GeigerCounter.jpg
A geiger counter for the space
Status Completed
Contact gori, thomas
Last Update 2017-11-29

Software

See the geiger_esp sub-directory in this github repo

The way the ESP8266 version of the software works, is by means of a single pulse counter. This counter is incremented for every tick coming from the Geiger tube.

Every second we keep track how much the counter has incremented compared to the previous second. This value is stored in a circular buffer of 60 entries, one for each second inside of a minute.

The 'cpm' value (counts per minute) is then simply the sum of all entries in the circular buffer! So we can calculate the cpm at any time, without rounding error, it's always the number of measured ticks in the previous 60 seconds.

The software uses the following libraries:

  • WiFiClient for general WiFi
  • WifiManager to make it easy to setup the WiFi (presents a captive portal to select a network and enter the passphrase)
  • PubSubClient to publish measurements to MQTT

Measurements are published to topic 'revspace/sensors/geiger' on mosquitto.space.revspace.nl (also available on revspace.nl)

Pitch in for a geiger counter:

Naam/Nick Aantal euro's Betalingsmethode
gori 5
Walter 5 revbank (Betaald)
Jos 5 revbank (Betaald)
thomas 5 revbank (Betaald)
Peetz0r 5 revbank (Betaald)
merethan 5 revbank (Betaald)
pepman 5 revbank (Betaald)
bertrik Wemos D1 mini natura

DONE! thank you all.