strange readings #153
Replies: 4 comments 2 replies
-
I put a 1000 microfarad capacitor on the power supply and the glitches went away. |
Beta Was this translation helpful? Give feedback.
-
I am having issues with strange readings on my pulse sensor for my electricity meter. The light sensing board always flashes to say it has detected a pulse, but under test conditions (with a flashing light rather than the electricity meter) it will continue to flash even with the light is off. It also does not matter where the sensitivity pot is set either. When it is detecting pulses under test conditions (1 pulse every 2 seconds) I am getting wild kwh readings on the logs
My pulse rate on the meter is 3200 imp/kwh and the YAML file is set to this. Current;y the ESP32 board is powered directly from my USB 3.0 port on my PC so should be getting enough power. Any help will be appreciated as I am new to ESP32 boards and know nothing about them. |
Beta Was this translation helpful? Give feedback.
-
home.txt It has stopped erratic readings, but I am somehow getting reading of about 2000W of usage even when there is no signal for the light sensing LED to detect and if I turn the sensitivty pot down it does not detect any flashing at all and if I turn it all the way up it flashes like it is getting a signal without a signal being present. I have attached the yaml file I am using and I have double checked the GPIO pins on my ESP32 and light sensing LED board |
Beta Was this translation helpful? Give feedback.
-
Thanks for everyones help I had not read the instructions properly and I had not checked that my photodiode was the correct way round. I have fixed that and everything is working correctly |
Beta Was this translation helpful? Give feedback.
-
i'm use this - and voila! all working!
esphome/issues#2823
Yo!
Got walkaround!!! It's a bit ugly, but...
So idea is that pulse_meter component tracks both rising and falling edges of the pulse (meanwhile doc says that only rising one). Thus, while not fixed, we need some pulse divider to divide sensor pulse count by two and put result as pulse_meter input. We can make divider hardware with couple of triggers or software (if you have enough free pins)
Here is my config:
binary_sensor:
id: water_count_raw
pin: D0 #connect you water, electricity, etc. counter here
on_release: # pulse edge doesn't matter, but only one of two !!!
then:
- switch.toggle: ipin
switch:
id: ipin
pin: D1
sensor:
pin: D2
name: 'Water Speed'
Connect sensor output to DO and shorten D1 to D2.
That's it! No internal_filter needed, nothing) Just working)
Beta Was this translation helpful? Give feedback.
All reactions