Geigercounter: Difference between revisions
No edit summary |
(explain software a bit) |
||
Line 15: | Line 15: | ||
See the geiger_esp sub-directory in this | See the geiger_esp sub-directory in this | ||
[https://github.com/revspace/geiger github repo] | [https://github.com/revspace/geiger 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:== | ==Pitch in for a geiger counter:== |
Revision as of 22:12, 23 November 2017
Project Geiger counter | |
---|---|
A geiger counter for the space | |
Status | In progress |
Contact | gori, thomas |
Last Update | 2017-11-23 |
- We have this one
- Documentation : https://drive.google.com/drive/folders/0B9itH-BnWE5sY2JGRkM4MWhSYkE
- Realtime measurements
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 |
Jos | 5 | revbank |
thomas | 5 | revbank (Betaald) |
Peetz0r | 5 | revbank |
merethan | 5 | Western Union |
pepman | 5 | revbank |
bertrik | Wemos D1 mini | natura |
DONE! thank you all.