Analog power meter reading TCRT 5000
-
Hi Guys,
Does somebody have working pulse meter with TCRT5000 on analog power meter (Aluminum rotating wheel). I´m fighting with it right now and I need some help. Do I need to modify the sketch? I´ve adjusted pulse count according to power meter specs. The sensor is on all the time (while white / Al part of wheel) and turns off during the black part of wheel. During on time sends the sensor loooot of impulses, so I had my consumption up to 300 kWh a day and usage up to 100kW. Had someone same issue? Thanks a lot
-
@mikee this part in the example sketch
if (interval<500000L) { // Sometimes we get interrupt on RISING, 500000 = 0.5sek debounce ( max 120 l/min) return; }
stops the sensor from triggering too often. Do you have this part in your sketch? If so, maybe increasing to 1 second or so will take care of the problem?
-
Yes I´m using example sketch. So my interval could be up to the fastest theoretical revolution ?
-
@mikee that's correct
-
Most of these cheap boards do not have any hysteresis and tend to oscillate during output switching.
Populate a resistor (100k...330k) for hysteresis and remove a capacitor. I my case this did help.
Unfortunately in German, see the picture:
https://forum.fhem.de/index.php/topic,54408.msg459962.html#msg459962
-
Thanks Guys!
I have edit the sketch and modified the sensor. Records made during night are finally closer to real situation. I need to correct pulse count.
@karlheinz2000 - are you using digital or analog output as on FHEM forum? (Danke, fuer Deine Anweisung)
-
I use digital output. The R&C modification works only with digital output.
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21 -
Interface-board-for-remote-control
My Project • 18 days ago • OldSurferDude 4 days ago -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
Status of my rv(camper) home automation system 2020-2025
My Project • 6 days ago • fsgraz 5 days ago -
BMP280 SPI Adafruit
My Project • 24 Aug 2016, 01:56 • Matt 23 Jan 2025, 16:25