Geiger counter settings

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
lavAzza
New user
Posts: 2
Joined: 23 May 2018, 22:18

Geiger counter settings

#1 Post by lavAzza » 23 May 2018, 22:41

Please help to connect Geiger counter to NodeMCU v3 with ESPEasy Mega.
I use noname Geiger counter with 5v logic, logic convertor and NodeMCU v3.
Schema
Geiger counter ----- Converter ----- NodeMCU
GND ------------------ GND | GND --- GND
5V -------------------- 5V | 3,3V ------ 3,3V
VIN ------------------- A4 | B4 --------- D3
There is no any counts in Device page.
I tryed different Debounce Time and Mode Type settings.
Geiger counter is work fine with Arduino Uno.
Attachments
Снимок5.PNG
Снимок5.PNG (9.98 KiB) Viewed 28121 times
Снимок4.PNG
Снимок4.PNG (25.72 KiB) Viewed 28121 times
Снимок3.PNG
Снимок3.PNG (116.15 KiB) Viewed 28121 times
Снимок2.PNG
Снимок2.PNG (222.18 KiB) Viewed 28121 times
Снимок.PNG
Снимок.PNG (511.71 KiB) Viewed 28121 times

lavAzza
New user
Posts: 2
Joined: 23 May 2018, 22:18

Re: Geiger counter settings

#2 Post by lavAzza » 27 May 2018, 15:11

Can anybody help?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Geiger counter settings

#3 Post by grovkillen » 27 May 2018, 15:44

Have you tried any other mode except "LOW"?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Geiger counter settings

#4 Post by TD-er » 28 May 2018, 22:26

100 msec debounce time does sound a bit long.
I can imagine the pulses of this Geiger counter are short, maybe a bit too short for the ESP to detect properly.

You could add a flipflop in between the ESP and the Geiger counter. Then every blip will trigger a status switch on the flipflop output, which will result in a up- or low-level period which is a lot longer.
Every detected level change reflects a count.

belgo
Normal user
Posts: 17
Joined: 14 Jan 2017, 22:15
Location: Belgium

Re: Geiger counter settings

#5 Post by belgo » 06 Jan 2020, 14:27

hi,

i have the same project : connect a cheap Geiger counter to Domoticz with a wemos and Espeasy on it .

Did you finally found a solution to connect them together ? and want to share it ?

thanks a lot

Belgo

belgo
Normal user
Posts: 17
Joined: 14 Jan 2017, 22:15
Location: Belgium

Re: Geiger counter settings

#6 Post by belgo » 13 Feb 2020, 20:32

hi to all,

Finally i dont find anything already done and then i'll make it myself

i use a Wemos ( ESP 8266) , a cheap geiger counter with J305 tube and a LCD 4 X 20 chars.

the ESP send data to Domoticz with JSON http instruction.

here the result .
geiger.JPG
geiger.JPG (86.59 KiB) Viewed 27047 times

on domoticz:
Capture d’écran 2020-02-13 à 20.30.52.png
Capture d’écran 2020-02-13 à 20.30.52.png (176.29 KiB) Viewed 27047 times
see you

Belgo

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Geiger counter settings

#7 Post by grovkillen » 13 Feb 2020, 21:19

That is really cool! Thanks for sharing.

Please enlighten us with more info on the setup.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

belgo
Normal user
Posts: 17
Joined: 14 Jan 2017, 22:15
Location: Belgium

Re: Geiger counter settings

#8 Post by belgo » 13 Feb 2020, 21:29

i'll try to take a little time to make a schematics and share my code ..

there is some little bugs to correct , i am not a good coder :-(

but someone else could probably help me to fine tune it ;-)

see you soon

Belgo

belgo
Normal user
Posts: 17
Joined: 14 Jan 2017, 22:15
Location: Belgium

Re: Geiger counter settings

#9 Post by belgo » 16 Feb 2020, 09:47

Hi all ,

here the schematics of my geiger counter to Domoticz .

the code will follow

Belgo
schematicsgeiger2.jpg
schematicsgeiger2.jpg (221.86 KiB) Viewed 26983 times

belgo
Normal user
Posts: 17
Joined: 14 Jan 2017, 22:15
Location: Belgium

Re: Geiger counter settings

#10 Post by belgo » 16 Feb 2020, 10:13

here is my code .

they a re probably some bugs on it but it's working ..

if someone wants to improve it, plz share your modification with the community .

i am waiting your feedback

Belgo




/*************ARDUINO SKETCH FOR GEIGER COUNTER******************
Author: Belgo
*****************************************************************
This sketch was writen for geiger counter cajoe to send data to domoticz ( json http )
*****************************************************************
LCD I2C Connection:
LCD SDA -> D5
LCD SCL -> D6
VCC to +5V and ground
USB powered
V-in geiger counter to D2 pin from nodemcu
****************************************************************/

// include the library code:
#include <LiquidCrystal_I2C.h>
#include <SPI.h>
#include <Wire.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

#define LOG_PERIOD 15000 //Logging period in milliseconds, recommended value 15000-60000.
#define MAX_PERIOD 60000 //Maximum logging period without modifying this sketch
#define PERIOD 60000.0 // (60 sec) one minute measure period
// Conversion factor - CPM to uSV/h
#define CONV_FACTOR 0.00812

const char* ssid = "your_ssid_wifi";
const char* password = "your_wifi_password";
const char* host = "192.168.1.100"; // ip of your domoticz server
const int port = 8080; // ip port of your domoticz server
const int watchdog = 60000; // Fréquence d'envoi des données à Domoticz - Frequency of sending data to Domoticz
//unsigned long previousMillis = millis();

volatile unsigned long CNT; // variable for counting interrupts from dosimeter
unsigned long counts; //variable for GM Tube events
unsigned long cpm; //variable for CPM
unsigned int multiplier; //variable for calculation CPM in this sketch
unsigned long previousMillis; //variable for time measurement
unsigned long dispPeriod; // variable for measuring time
unsigned long CPM; // variable for measuring CPM
float radiationValue = 0.0;
const int inputPin = 4; // pin D2 is VIN on geiger counter

// initialize the library with the numbers of the interface pins
LiquidCrystal_I2C lcd(0x27,16,2);

HTTPClient http;

void setup() { // setup
Wire.begin(D5,D6); // pins SDA and SCL of your i2c LCD screen
Serial.begin(115200);
lcd.begin(20, 4);

lcd.backlight();
lcd.home();
lcd.setCursor(3, 0); // Move the cursor at origin
lcd.print("Geiger Counter");
lcd.setCursor(0, 2);
lcd.print("CPM = ");
lcd.setCursor(0, 1);
lcd.print("Pulse = ");
lcd.setCursor(0, 3);
lcd.print("uSv/h = ");

Serial.println("Connecting Wifi...");

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.print(WiFi.localIP());

CNT = 0;
CPM = 0;
dispPeriod = 0;

attachInterrupt(digitalPinToInterrupt(inputPin), GetEvent, FALLING); // Define interrupt D2 on falling edge
Serial.println("Start counter");

}

int value = 0;

void loop() { // main loop


if (millis() >=dispPeriod + PERIOD) { // If one minute is over
cleanDisplay(); // Clear LCD


lcd.setCursor(9, 1);
lcd.print(" ");

CPM = CNT;
if(WiFi.status() != WL_CONNECTED) {
Serial.println("WiFi not connected !");
} else {
Serial.println("Send data to Domoticz");


String url = "/json.htm?type=command&param=udevice&idx=73&nvalue=0&svalue=";
url += String(CPM); url += ";";


sendDomoticz(url);
}
lcd.setCursor(9, 2);
lcd.print(CPM); //Display CPM
Serial.println("Start counter");
Serial.println(CPM);
radiationValue = CPM * CONV_FACTOR;
lcd.setCursor(9, 3);
lcd.print(radiationValue); //Display usvr/h

CNT = 0;
dispPeriod = millis();
}
}

ICACHE_RAM_ATTR void GetEvent(){ // Get Event from Device
CNT++;
lcd.setCursor(9, 1);
lcd.print(CNT); //Display CNT
}

void cleanDisplay (){ // Clear LCD routine

}

void sendDomoticz(String url){
Serial.print("connecting to ");
Serial.println(host);
Serial.print("Requesting URL: ");
Serial.println(url);
http.begin(host,port,url);
int httpCode = http.GET();
if (httpCode) {
if (httpCode == 200) {
String payload = http.getString();
Serial.println("Domoticz response ");
Serial.println(payload);
}
}
Serial.println("closing connection");
http.end();
}

fluppie
Normal user
Posts: 89
Joined: 09 Oct 2015, 13:23

Re: Geiger counter settings

#11 Post by fluppie » 17 Feb 2020, 09:47

Cool, consider uploading your data to Radmon https://radmon.org
This is mine: https://radmon.org/radmon.php?function= ... fluppie007

Code: Select all

http://www.radmon.org/radmon.php?function=submit&user=RADMONUSERNAME&password=RADMONPOSTPASSWD&value=CPMVALUE&unit=CPM

You have to change:
RADMONUSERNAME
RADMONPOSTPASSWD
CPMVALUE

chemmex
Normal user
Posts: 97
Joined: 15 Feb 2019, 16:18

Re: Geiger counter settings

#12 Post by chemmex » 17 Feb 2020, 22:03

I get similar functionality using ESPEasy with counter plugin and single gpio. Data is uploaded to mqtt broker every minute, then processed in Node-Red and visualised in Grafana.

dudule
New user
Posts: 1
Joined: 11 Mar 2020, 16:27

Re: Geiger counter settings

#13 Post by dudule » 11 Mar 2020, 16:36

Bonjour Belgo,

J'ai acheté le même matériel que vous pour remonter les infos du compteur geiger vers Domoticz et évidement utilisé votre code et votre schéma de raccordement (merci d'avoir partagé).
Pouvez-vous m'expliquer maintenant ce qu'il faut faire du coté Domoticz ?
Merci pour votre patience !
Cordialement,
Dudule.

B7en9
New user
Posts: 1
Joined: 15 Mar 2020, 08:52

Re: Geiger counter settings

#14 Post by B7en9 » 15 Mar 2020, 08:55

I get similar functionality using ESPEasy with counter plugin and single gpio. Data is uploaded to mqtt broker every minute, then processed in Node-Red and visualised in Grafana.
Can you share the settings U used? get it working with the small scripts I can find on the internet but not with ESPeasy or Tasmota.

chemmex
Normal user
Posts: 97
Joined: 15 Feb 2019, 16:18

Re: Geiger counter settings

#15 Post by chemmex » 19 Mar 2020, 12:35

Hi, below is my pulse counter plugin screen. My geiger cirquit produce short positive pulses, no debounce, and they just get registered by the plugin.

ggercount.JPG
ggercount.JPG (76.13 KiB) Viewed 25140 times
devs.JPG
devs.JPG (26.36 KiB) Viewed 25140 times

jbarea
Normal user
Posts: 17
Joined: 24 Jun 2021, 00:21

Re: Geiger counter settings

#16 Post by jbarea » 24 Jun 2021, 00:49

Hi,

I managed to get working the geiger kit RadiationD-v1.1(Cajoe) under EspEasy. I used the plugin "Generic - Pulse counter" with the following configuration:
espeasy-geiger-1.png
espeasy-geiger-1.png (72.07 KiB) Viewed 18121 times
Note that the "Mode Type" should be Rising (or Falling) to avoid counting twice each event. Also I fixed the inteval to 10 seconds. This value can be decreased to obtain values more frequently or increased if you prefer to measure values less frequently.
Then I define a dummy device using the "Generic - Dummy Device" plugin to allocate the variables which will contain the measurements in cpm (counts per minute):
espeasy-geiger-2.png
espeasy-geiger-2.png (72.93 KiB) Viewed 18121 times
Finally I assign the values to the variables in the dummy device using rules:
espeasy-geiger-3.png
espeasy-geiger-3.png (88.91 KiB) Viewed 18121 times
The factor 6 comes from the fact that we are using cpm, but measuring at 10 seconds, then we have to multiply by 6 to get the counts per minute. Actually this factor is calculated as 60/interval. If for example we choose 5 seconds for the interval, then the factor would be 12. Also there are two quantities which should give the same value: Total/Time, which the total number of counts divided by the time that the board is on (%unixtime%), and also the average value of the instant measurements. The use of the variable %unixtime" is not a good choice when the time is larger, since this variable cannot accommodate big numbers. I just included it for checking purposes.

Cheers!

Jose.

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Geiger counter settings

#17 Post by TD-er » 24 Jun 2021, 01:32

Great :)
Just curious, what is your occupation, or where do you live that a Geiger counter is usable?

jbarea
Normal user
Posts: 17
Joined: 24 Jun 2021, 00:21

Re: Geiger counter settings

#18 Post by jbarea » 24 Jun 2021, 02:42

I live in Chile. I am planning to make an indoor environment station which includes a dust sensor, a CO2 sensor, temperature and humidity sensors and radioactivity detector, just for fun. The geiger counter can be purchase here:
https://es.aliexpress.com/item/32822477320.html and the data can be sent to https://radmon.org/index.php. I am physicist, by the way.

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Geiger counter settings

#19 Post by TD-er » 24 Jun 2021, 08:52

Ah didn't know that site.
Nice idea to have a global map for radioactivity.
If we ever get another Chernobyl or Fukushima, or some government tries to do experiments, we can 'track' them.

I'll think I will order one just for the fun of it.

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#20 Post by Ath » 24 Jun 2021, 09:07

Could you post the rules in a [ code ] [ /code ] block (without the spaces), so it is a bit easier to copy them without typos ;)
/Ton (PayPal.me)

jbarea
Normal user
Posts: 17
Joined: 24 Jun 2021, 00:21

Re: Geiger counter settings

#21 Post by jbarea » 24 Jun 2021, 13:54

Ath wrote: 24 Jun 2021, 09:07 Could you post the rules in a [ code ] [ /code ] block (without the spaces), so it is a bit easier to copy them without typos ;)

Code: Select all

on System#Boot do
 let,1,0 // total number of cpm's
  let,2,1 // number of measurements
endon

On Geiger#Total do
  TaskValueSet 5,1,[Geiger#Total]*60/%unixtime%
endon

On Geiger#Count do
  TaskValueSet 5,2,[Geiger#Count]*6
  Let,1,[var#1]+[Geiger#Count]*6
  TaskValueSet 5,3,[var#1]/[var#2]
  Let,2,[var#2]+1
endon
TD-er wrote: 24 Jun 2021, 08:52 Ah didn't know that site.
Nice idea to have a global map for radioactivity.
If we ever get another Chernobyl or Fukushima, or some government tries to do experiments, we can 'track' them.

I'll think I will order one just for the fun of it.
Yes!! That's the idea. There aren't commercial nuclear plants in Chile, but there are in Argentina or Brazil, and any leak could travel by air anywhere.

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Geiger counter settings

#22 Post by TD-er » 24 Jun 2021, 16:47

Yep can imagine one may not believe everything the Brazilian government tells via the official news media, with the current president.
Measuring is knowing.... as long as you know what you're measuring. (In Dutch: Meten is weten als je weet wat je meet)

I still remember in '86 that Tsjernobyl caused even more concerns by the fact the information was held back at first.

chemmex
Normal user
Posts: 97
Joined: 15 Feb 2019, 16:18

Re: Geiger counter settings

#23 Post by chemmex » 24 Jun 2021, 22:32

We are installing Espeasy-based geiger counters in Belarus where we have twice the trouble: 25% of the territory contaminated by remains of Chernobyl, and a freshly built nuclear power plant which nobody beleives is safe. It is always good to know the truth even if someone goes panic.

bubastic
Normal user
Posts: 10
Joined: 12 Jan 2022, 18:47

Re: Geiger counter settings

#24 Post by bubastic » 12 Aug 2024, 10:28

A great solution.
But can someone tell me how to make the RadSens counter work with ESPEasy?
DOC025473719[1].jpg
DOC025473719[1].jpg (16.93 KiB) Viewed 6475 times

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#25 Post by Ath » 12 Aug 2024, 10:46

bubastic wrote: 12 Aug 2024, 10:28 But can someone tell me how to make the RadSens counter work with ESPEasy?
That is already requested here and on the list of plugins to be implemented, but not started yet :?
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#26 Post by Ath » 12 Aug 2024, 17:24

@bubastic I've created PR #5104 for P163 - Counter - RadSens I2C radiation counter. A GH Actions run is working on the binaries. Currently only available for ESP32 MAX builds (requires 8 MB or 16 MB ESP32, ESP32-s3 or ESP32-c6 unit), but I'm working on a solution to make it available for ESP8266 4MB builds and ESP32 4MB builds too.
For downloading from that Actions run you'll need a (free) Github account.

Edit: Updated GH Actions run link to current latest
Last edited by Ath on 14 Aug 2024, 10:40, edited 2 times in total.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#27 Post by Ath » 12 Aug 2024, 19:50

We decided to not add this plugin in any default build for ESP8266, as that platform is practically feature-frozen for ESPEasy.
For those that need an ESP8266 build, a `Custom` build can be created, as documented here (start at the top for setting things up properly, and continue until you reach the chapter where a custom build using Custom.h is described).

For ESP32 this plugin is, besides the MAX builds, also available in the Collection G builds.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#28 Post by Ath » 14 Aug 2024, 10:39

bubastic wrote: 12 Aug 2024, 10:28 A great solution.
But can someone tell me how to make the RadSens counter work with ESPEasy?
@bubastic
Not sure if you managed to create a Custom ESPEasy build (assuming ESP8266), but if not, I can do that for you, if you specify what other plugins you also need to be included. (I'll start with the regular 'Custom' build included in the default set of builds).
/Ton (PayPal.me)

jmdlcar
New user
Posts: 4
Joined: 18 Aug 2024, 02:55

Re: Geiger counter settings

#29 Post by jmdlcar » 18 Aug 2024, 03:11

belgo wrote: 13 Feb 2020, 21:29 i'll try to take a little time to make a schematics and share my code ..

there is some little bugs to correct , i am not a good coder :-(

but someone else could probably help me to fine tune it ;-)

see you soon

Belgo
I just found this post and order the parts to make one. @76 years old I will need all the help I can get. I know this a old post but I hope I can get all the help to build it.

jmdlcar
New user
Posts: 4
Joined: 18 Aug 2024, 02:55

Re: Geiger counter settings

#30 Post by jmdlcar » 18 Aug 2024, 16:16

What software do I need to install this code and what else will I might need.

Code: Select all

/*************ARDUINO SKETCH FOR GEIGER COUNTER******************
Author: Belgo
*****************************************************************
This sketch was writen for geiger counter cajoe to send data to domoticz ( json http )
*****************************************************************
LCD I2C Connection:
LCD SDA -> D5
LCD SCL -> D6
VCC to +5V and ground
USB powered
V-in geiger counter to D2 pin from nodemcu
****************************************************************/

// include the library code:
#include <LiquidCrystal_I2C.h>
#include <SPI.h>
#include <Wire.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

#define LOG_PERIOD 15000 //Logging period in milliseconds, recommended value 15000-60000.
#define MAX_PERIOD 60000 //Maximum logging period without modifying this sketch
#define PERIOD 60000.0 // (60 sec) one minute measure period
// Conversion factor - CPM to uSV/h
#define CONV_FACTOR 0.00812

const char* ssid = "your_ssid_wifi";
const char* password = "your_wifi_password";
const char* host = "192.168.1.100"; // ip of your domoticz server
const int port = 8080; // ip port of your domoticz server
const int watchdog = 60000; // Fréquence d'envoi des données à Domoticz - Frequency of sending data to Domoticz
//unsigned long previousMillis = millis();

volatile unsigned long CNT; // variable for counting interrupts from dosimeter
unsigned long counts; //variable for GM Tube events
unsigned long cpm; //variable for CPM
unsigned int multiplier; //variable for calculation CPM in this sketch
unsigned long previousMillis; //variable for time measurement
unsigned long dispPeriod; // variable for measuring time
unsigned long CPM; // variable for measuring CPM
float radiationValue = 0.0;
const int inputPin = 4; // pin D2 is VIN on geiger counter

// initialize the library with the numbers of the interface pins
LiquidCrystal_I2C lcd(0x27,16,2);

HTTPClient http;

void setup() { // setup
Wire.begin(D5,D6); // pins SDA and SCL of your i2c LCD screen
Serial.begin(115200);
lcd.begin(20, 4);

lcd.backlight();
lcd.home();
lcd.setCursor(3, 0); // Move the cursor at origin
lcd.print("Geiger Counter");
lcd.setCursor(0, 2);
lcd.print("CPM = ");
lcd.setCursor(0, 1);
lcd.print("Pulse = ");
lcd.setCursor(0, 3);
lcd.print("uSv/h = ");

Serial.println("Connecting Wifi...");

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.print(WiFi.localIP());

CNT = 0;
CPM = 0;
dispPeriod = 0;

attachInterrupt(digitalPinToInterrupt(inputPin), GetEvent, FALLING); // Define interrupt D2 on falling edge
Serial.println("Start counter");

}

int value = 0;

void loop() { // main loop


if (millis() >=dispPeriod + PERIOD) { // If one minute is over
cleanDisplay(); // Clear LCD


lcd.setCursor(9, 1);
lcd.print(" ");

CPM = CNT;
if(WiFi.status() != WL_CONNECTED) {
Serial.println("WiFi not connected !");
} else {
Serial.println("Send data to Domoticz");


String url = "/json.htm?type=command&param=udevice&idx=73&nvalue=0&svalue=";
url += String(CPM); url += ";";


sendDomoticz(url);
}
lcd.setCursor(9, 2);
lcd.print(CPM); //Display CPM
Serial.println("Start counter");
Serial.println(CPM);
radiationValue = CPM * CONV_FACTOR;
lcd.setCursor(9, 3);
lcd.print(radiationValue); //Display usvr/h

CNT = 0;
dispPeriod = millis();
}
}

ICACHE_RAM_ATTR void GetEvent(){ // Get Event from Device
CNT++;
lcd.setCursor(9, 1);
lcd.print(CNT); //Display CNT
}

void cleanDisplay (){ // Clear LCD routine

}

void sendDomoticz(String url){
Serial.print("connecting to ");
Serial.println(host);
Serial.print("Requesting URL: ");
Serial.println(url);
http.begin(host,port,url);
int httpCode = http.GET();
if (httpCode) {
if (httpCode == 200) {
String payload = http.getString();
Serial.println("Domoticz response ");
Serial.println(payload);
}
}
Serial.println("closing connection");
http.end();
}

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Geiger counter settings

#31 Post by TD-er » 18 Aug 2024, 16:38

This is about the ESPEasy firmware, so you could try a test build with the plugin for the geiger counter included.

For example the test builds here: https://github.com/letscontrolit/ESPEas ... 0376956716

jmdlcar
New user
Posts: 4
Joined: 18 Aug 2024, 02:55

Re: Geiger counter settings

#32 Post by jmdlcar » 19 Aug 2024, 01:35

Can I just use Arduino IDE to install geiger_counter.ino? I'm not sure.

I been using Geiger counter cajoe for years then other day I seen this so I wanted to add this display so this is all new to me I have all the parts now so now I going to build it then add the code.

TD-er
Core team member
Posts: 9153
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Geiger counter settings

#33 Post by TD-er » 19 Aug 2024, 07:55

You do know what ESPEasy is?
It is a complete firmware aimed at people who don't know (yet) how to program and/or know about electronics but still would like to connect sensors to microcontrollers and start doing something with the data.

There are over 160 different 'plugins' to support various hardware and in the link I gave you is a build which does include support for this Geiger counter.

This support forum is about this ESPEasy firmware.

jmdlcar
New user
Posts: 4
Joined: 18 Aug 2024, 02:55

Re: Geiger counter settings

#34 Post by jmdlcar » 19 Aug 2024, 09:40

TD-er wrote: 19 Aug 2024, 07:55 You do know what ESPEasy is?
No I don't know where to start. I might only use it 1 time and it just to get Geiger Counter to have a display screen.

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#35 Post by Ath » 19 Aug 2024, 10:13

jmdlcar wrote: 19 Aug 2024, 09:40
TD-er wrote: 19 Aug 2024, 07:55 You do know what ESPEasy is?
No I don't know where to start. I might only use it 1 time and it just to get Geiger Counter to have a display screen.
This thread is in 2 parts:
- First 23 messages are about a Geiger counter board that provides a pulse output that can be read/counted by ESPEasy using the Pulsecounter plugin. Another user 'belgo' has provided some independent Arduino code, 4.5 years ago, that has nothing to do with ESPEasy.
- From message #24 on this is (also) about another Geiger counter board, RadSens, that uses an I2C interface to provide the counter data. I've added a new plugin for ESPEasy that can use the I2C interface to retrieve the counter values.

Depending on the Geiger counter board you are using you can use ESPEasy to get the counts, and also present those counts on a display, as these are also supported by ESPEasy. But the solution for that is not documented exhaustively, you'll have to dive in the ESPEasy documentation to complete that. We can provide some guidance with the use of ESPEasy, if needed, after you've studied the documentation over here: https://espeasy.readthedocs.io/ (there's a lot to read there...)
ESPEasy runs on ESP8266 and several models of ESP32 boards, not on Arduino boards.

If you want to use the hardware setup and Arduino code by 'belgo', then you'll have to dive into using the Arduino IDE, uploading the code provided to your Arduino board, and connecting the display and Geiger counter as shown in the schematics. We won't be able to help you there, but there's other help available from the Arduino community, you'll have to google for that.
/Ton (PayPal.me)

bubastic
Normal user
Posts: 10
Joined: 12 Jan 2022, 18:47

Re: Geiger counter settings

#36 Post by bubastic » 04 Sep 2024, 10:54

I have been successfully using RadSens for over a week now as part of ESPEasy and confirm that no problems have been noticed so far.
Снимок экрана 2024-09-04 115059.jpg
Снимок экрана 2024-09-04 115059.jpg (22.35 KiB) Viewed 1650 times

User avatar
Ath
Normal user
Posts: 3860
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Geiger counter settings

#37 Post by Ath » 28 Sep 2024, 22:21

This plugin has been merged into ESPEasy, and will be included in the next release.

You can test by downloading from this GH actions run: https://github.com/letscontrolit/ESPEas ... 1086536342
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest