Generic - Pulse counter Issue
Moderators: grovkillen, Stuntteam, TD-er
Generic - Pulse counter Issue
Dear All,
I have a ESP8266 with espeasy, and I heve connected to this a simple Rain Gauge counter.
This is made by a simple reed switch.
See here the connection exemple of the connection:
I have setup a Generic Pulse counter like this: The problem is the counter never stop to count it increase continuously, never stop.
Why can I have this issue?
I have a ESP8266 with espeasy, and I heve connected to this a simple Rain Gauge counter.
This is made by a simple reed switch.
See here the connection exemple of the connection:
I have setup a Generic Pulse counter like this: The problem is the counter never stop to count it increase continuously, never stop.
Why can I have this issue?
Re: Generic - Pulse counter Issue
No one happed this issue?
- budman1758
- Normal user
- Posts: 301
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: Generic - Pulse counter Issue
Well.... At the risk of sounding like a smart-ass it's doing what its intended to do. It will keep counting up until hell freezes over.
You need a formula to process the count. You need to figure out how much rain is in a bucket tip and process it with a time frame reference.
Perhaps a study of the wiki will help...
https://www.letscontrolit.com/wiki/index.php/Main_Page
You need a formula to process the count. You need to figure out how much rain is in a bucket tip and process it with a time frame reference.
Perhaps a study of the wiki will help...
https://www.letscontrolit.com/wiki/index.php/Main_Page
"The glass is twice as big as it needs to be".
Re: Generic - Pulse counter Issue
If I'm not mistaken, your input from switch goes to GPIO2, not GPIO15 as declared on pulse device. Change to GPIO2 and check results.
Don't forget to turn off Serial as GPIO2 is a TX pin!
Best regards
Robert
Don't forget to turn off Serial as GPIO2 is a TX pin!
Best regards
Robert
Re: Generic - Pulse counter Issue
The pitture is just an exemple, in real i use a GPIO15.
Re: Generic - Pulse counter Issue
But i mean the counter goes up, always also if i don't touch the rain gauge counter. It rise always...budman1758 wrote: ↑04 May 2018, 07:19 Well.... At the risk of sounding like a smart-ass it's doing what its intended to do. It will keep counting up until hell freezes over.
You need a formula to process the count. You need to figure out how much rain is in a bucket tip and process it with a time frame reference.
Perhaps a study of the wiki will help...
https://www.letscontrolit.com/wiki/index.php/Main_Page
Re: Generic - Pulse counter Issue
Re: Generic - Pulse counter Issue
If I disconect the wire, the counter doesn't rise.
The wire is long about 1 meter.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Generic - Pulse counter Issue
How much voltage do you feed the unit and what do you get on the other end?
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Generic - Pulse counter Issue
I feed the unit with 8,5V in Vin input. And at the end of the reed I have 3.22V.
Re: Generic - Pulse counter Issue
Do you have any sensor connected to this (relative high) voltage?
And what signal level is sent to the ESP device input pins?
Re: Generic - Pulse counter Issue
Yes this output is also a power supply for LDR and his output go in analog input in ESP.
All the 3.3V and Groung in my board is used.
All the 3.3V and Groung in my board is used.
Re: Generic - Pulse counter Issue
Could be a problem of the 3.3V supply? I have many devices connected to the internal regulator. SHT10 sensor, bmp180 sensor, ldr for light measurement.
This is all. You suggest to use external 3.3V power supply?
This is all. You suggest to use external 3.3V power supply?
Re: Generic - Pulse counter Issue
You have to make sure the signals from the sensors to the ESP do not exceed 3v3.
The analog input often is from 0...1V, but on some boards there are already resistors present to allow for a higher range.
I don't know if the voltage regulator on your board can handle such a high voltage.
If you take those issues into account, I see no reason why you shouldn't use 8.5 V as power supply.
The analog input often is from 0...1V, but on some boards there are already resistors present to allow for a higher range.
I don't know if the voltage regulator on your board can handle such a high voltage.
If you take those issues into account, I see no reason why you shouldn't use 8.5 V as power supply.
Re: Generic - Pulse counter Issue
The board is a ESP8266 NODEMCU. This one:
And I have 12V power supply in place so for power the board I use a step down dc dc:
(in this the output is set to 8,5V) to power the NodeMcu in the GND and Vin pins.
For the reed switch of the counter i pick a 3.3V and Gnd from two pins of NodeMcu board.
Is all this correct?
And I have 12V power supply in place so for power the board I use a step down dc dc:
(in this the output is set to 8,5V) to power the NodeMcu in the GND and Vin pins.
For the reed switch of the counter i pick a 3.3V and Gnd from two pins of NodeMcu board.
Is all this correct?
Re: Generic - Pulse counter Issue
The AMS1117 on the NodeMCU board is a so called "linear regulator", which means they're not switching.
Let's say you're running at 5V and the output of that regulator is 3V3.
Then you're having 1.7V over the regulator. (5 - 3.3)
At 100 mA, that's 170 mWatt of energy lost.
When feeding from 8.3V, then there is 5V over the regulator.
At 100 mA, that's 500 mWatt lost. (and quite some heat)
When you place a switching regulator in front of it, you're making it a bit more efficient, since that switching regulator has an efficiency of about 80 - 85%.
I don't understand what you mean with your last question.
And then connect the point where the reed switch and the resistor meet, to a GPIO pin of the ESP.
Let's say you're running at 5V and the output of that regulator is 3V3.
Then you're having 1.7V over the regulator. (5 - 3.3)
At 100 mA, that's 170 mWatt of energy lost.
When feeding from 8.3V, then there is 5V over the regulator.
At 100 mA, that's 500 mWatt lost. (and quite some heat)
When you place a switching regulator in front of it, you're making it a bit more efficient, since that switching regulator has an efficiency of about 80 - 85%.
I don't understand what you mean with your last question.
A reed switch short circuits the contacts. So you also need some resistor in series with the reed switch.For the reed switch of the counter i pick a 3.3V and Gnd from two pins of NodeMcu board.
And then connect the point where the reed switch and the resistor meet, to a GPIO pin of the ESP.
Re: Generic - Pulse counter Issue
Ok thanks I understand now, so I have to regulate the step down near to 3.3V to optimize the consumption and heat.
The reed switch is connect like the picture in the first post, but I don't know why he always count... It seems to be a interference...
The reed switch is connect like the picture in the first post, but I don't know why he always count... It seems to be a interference...
Re: Generic - Pulse counter Issue
If the AMS1117 is still in the loop, you have to make sure you feed it with a high enough voltage.
Most regulators need some minimum voltage drop.
So just feed it with 5V, just to be sure.
And a lot of sensors need 5V too, so that's useful too.
Who is online
Users browsing this forum: No registered users and 134 guests