my water meter.
Moderator: leecollings
-
- Posts: 8
- Joined: Monday 29 September 2014 21:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Weert (Netherlands)
- Contact:
Re: my water meter.
Can someone tell me how accurate this solution is?
-
- Posts: 69
- Joined: Friday 14 November 2014 9:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: my water meter.
Is it possible to connect the watermeter sensor, described on http://www.domoticz.com/wiki/PiFace to the raspberry pi without using the piFace board?
Greetings,
Piacco
Greetings,
Piacco
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
Yes, it would be nice to know how to get the watermeter working using TCRT-5000 sendor directly connected to Raspberry GPIO.Piacco wrote:Is it possible to connect the watermeter sensor, described on http://www.domoticz.com/wiki/PiFace to the raspberry pi without using the piFace board?
Greetings,
Piacco
I've read posts about using http://wiringpi.com/. However i did not yet find a complete solution including the script to use.
I think this would be the cheapest watermeter to be found on the internet.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 402
- Joined: Wednesday 26 February 2014 15:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: the Netherlands
- Contact:
Re: my water meter.
Is it correct that the green light is always on but goes off when the arrow (ord black area in case of a ferrarris meter) passes by?bizziebis wrote:Bought this sensor from Ebay: http://bit.ly/RawnMy
It's working but it is hard to position it to work right.
How/where did you guys mount the sensor?
I'll post a picture of my mounted sensor later tomorrow.
Edit: pictures
I've edited the database to match the real watermeter usage. So in a couple of days I can see how reliable the sensor is. To be continued...
- proohu01
- Posts: 95
- Joined: Friday 17 October 2014 12:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: my water meter.
I find it much easier to use a watermeter like this one: (I've been using it for almost 5 years now). It's an Alaxa that I bought somewhere in the Netherlands (http://www.alaxa.nl/). It give a pulse every 0,5l. It is connected to my RFXmeter but it can easyly be connected to a GPIO of your Raspberri Pi or PiFace (If you've got one )
- Attachments
-
- Alaxa
- alaxa.JPG (109.38 KiB) Viewed 11867 times
Pi 2 B | Pi Camera | PiFace 2 | RFXtrx433E (KaKu + Oregon Scientific) | Plugwise (9 Circles) | Aeon Z-Wave stick (Fibaro - dimmers, sockets, RGB, screens/blinds) | RFXMeter (Kwh/water/gaz) | WOL | Onkyo Receiver | RTC | Hikvision | Netatmo | Satel Integra
- bizziebis
- Posts: 182
- Joined: Saturday 19 October 2013 14:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8805
- Location: The Netherlands
- Contact:
Re: my water meter.
That's right. And the red light is always on.roblom wrote:Is it correct that the green light is always on but goes off when the arrow (ord black area in case of a ferrarris meter) passes by?bizziebis wrote:Bought this sensor from Ebay: http://bit.ly/RawnMy
It's working but it is hard to position it to work right.
How/where did you guys mount the sensor?
I'll post a picture of my mounted sensor later tomorrow.
Edit: pictures
I've edited the database to match the real watermeter usage. So in a couple of days I can see how reliable the sensor is. To be continued...
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
Are you using your own script to communicate with the sensor? Or compiled the interrupt.c that can be found in this forum somewhere else?. My sensor connected to d0 generates 2 interrupts before green light comes on. An 2 again just before it goes off. bit frustrating.bizziebis wrote:Bought this sensor from Ebay: http://bit.ly/RawnMy
It's working but it is hard to position it to work right.
How/where did you guys mount the sensor?
I'll post a picture of my mounted sensor later tomorrow.
Edit: pictures
I've edited the database to match the real watermeter usage. So in a couple of days I can see how reliable the sensor is. To be continued...
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 402
- Joined: Wednesday 26 February 2014 15:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: the Netherlands
- Contact:
Re: my water meter.
I'm also having some problems with detecting more than one pulse sometimes.sincze wrote: Are you using your own script to communicate with the sensor? Or compiled the interrupt.c that can be found in this forum somewhere else?. My sensor connected to d0 generates 2 interrupts before green light comes on. An 2 again just before it goes off. bit frustrating.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
Are you using tcrt5000 as well? My board says.roblom wrote:I'm also having some problems with detecting more than one pulse sometimes.sincze wrote: Are you using your own script to communicate with the sensor? Or compiled the interrupt.c that can be found in this forum somewhere else?. My sensor connected to d0 generates 2 interrupts before green light comes on. An 2 again just before it goes off. bit frustrating.
Pin 1 Vcc
Pin 2 GND
Pin 3 d0
Pin 4 a0
Green light will come on when it detects the reflecting disk.
I masked the rest of the water meter with Scotch tape leaving a part of the rotating disk exposed.
Repositioned the sensor and now have only 2 pulses.
1 disk arrived
1 disk left.
This is stable enough. I modified my. C file. Now let's see how accurate this is.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
It seems you have tcrt5000 also.Derik wrote:I did my:
https://imageshack.com/i/fvmdz4j
With the solarmeter, and then i import the data..
Does yours also have 1 red light on continously.
1 green light on when it sees something?
I connected mine to raspberry directly. D0 pin will always report '1' except when it sees something '0'.
Also on interrupt level to raspberry it creates 2 interrupts despite using wiringpi 'FALLING'.
Code: Select all
pinMode (IN_PIN, INPUT) ;
if (wiringPiISR (IN_PIN, INT_EDGE_FALLING, &myInterrupt) < 0)
{
fprintf (stderr, "Unable to setup ISR: %s\n", strerror (errno)) ;
return 1 ;
}
One interrupt while disk leaves detection area
Does your sensor do the same?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 402
- Joined: Wednesday 26 February 2014 15:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: the Netherlands
- Contact:
Re: my water meter.
Yes it's a TCRT5000 as well but only then not on a water meter but on a electricity meter. This meter has a metal rotating disk with one black area of a few millimeters. So as the disk reflects the green led is always on and goes off when the black area passes. This works fine but the virtual meter reading is becoming higher than the true meter reading, so there are to many pulses counted. I have to find out how many, but if it is a double then I know enough. When I look at the green LED it looks ok and I have set the GPIO value to "falling" but i'm not sure this solves the problem of the 2 pulses that can be caused by the arrive and left of the black area.sincze wrote:Are you using tcrt5000 as well? My board says.
Pin 1 Vcc
Pin 2 GND
Pin 3 d0
Pin 4 a0
Green light will come on when it detects the reflecting disk.
I masked the rest of the water meter with Scotch tape leaving a part of the rotating disk exposed.
Repositioned the sensor and now have only 2 pulses.
1 disk arrived
1 disk left.
This is stable enough. I modified my. C file. Now let's see how accurate this is.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
Okay, I tested with the visual interrupts on my screen and an IP cam over the meterroblom wrote:Yes it's a TCRT5000 as well but only then not on a water meter but on a electricity meter. This meter has a metal rotating disk with one black area of a few millimeters. So as the disk reflects the green led is always on and goes off when the black area passes. This works fine but the virtual meter reading is becoming higher than the true meter reading, so there are to many pulses counted. I have to find out how many, but if it is a double then I know enough. When I look at the green LED it looks ok and I have set the GPIO value to "falling" but i'm not sure this solves the problem of the 2 pulses that can be caused by the arrive and left of the black area.sincze wrote:Are you using tcrt5000 as well? My board says.
Pin 1 Vcc
Pin 2 GND
Pin 3 d0
Pin 4 a0
Green light will come on when it detects the reflecting disk.
I masked the rest of the water meter with Scotch tape leaving a part of the rotating disk exposed.
Repositioned the sensor and now have only 2 pulses.
1 disk arrived
1 disk left.
This is stable enough. I modified my. C file. Now let's see how accurate this is.
Please have al ook at the following links I did find today
http://forum.arduino.cc/index.php?topic=108371.0
http://letsmakerobots.com/content/inter ... oding-beef
These guys use the same sensor. However just the opposite interrupt ( instead of falling).:
Code: Select all
if (wiringPiISR (IN_PIN, INT_EDGE_RISING, &myInterrupt) < 0)
// Pin 1 = 1 (HIGH), it does not see a thing.
// Detection Pin 1 = 0
// Leaving Detection Pin 1=1 (HIGH) again.
So maybe just change that in your script and you are set to go.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 402
- Joined: Wednesday 26 February 2014 15:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: the Netherlands
- Contact:
Re: my water meter.
In 5 days the meters has an offset of about 10kWh so it is not double counting.
I connected the TCRT5000 directly to the GPIO ports of a RPi and used the GPIO support of Domoticz to create a sensor. Then I wrote a lua script to count the pulses the virtual sensor out of Domoticz gives.
Problem is also when I try to open the log of this sensor, Domoticz crashes. Posted a question about it on this forum, but nobody has an solution.
I connected the TCRT5000 directly to the GPIO ports of a RPi and used the GPIO support of Domoticz to create a sensor. Then I wrote a lua script to count the pulses the virtual sensor out of Domoticz gives.
Problem is also when I try to open the log of this sensor, Domoticz crashes. Posted a question about it on this forum, but nobody has an solution.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
Thought of that to do it directly in Domoticz. So that works.roblom wrote:In 5 days the meters has an offset of about 10kWh so it is not double counting.
I connected the TCRT5000 directly to the GPIO ports of a RPi and used the GPIO support of Domoticz to create a sensor. Then I wrote a lua script to count the pulses the virtual sensor out of Domoticz gives.
Problem is also when I try to open the log of this sensor, Domoticz crashes. Posted a question about it on this forum, but nobody has an solution.
However I found more internet help with a solution that described counting of interrupts.
As this is outside of Domoticz I could actually see what happened.
A LUA script will import the external data for you.
Maybe you can use it as well for debugging?
http://www.domoticz.com/forum/viewtopic ... =20#p28371
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 402
- Joined: Wednesday 26 February 2014 15:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: the Netherlands
- Contact:
Re: my water meter.
With the TCRT5000 I have a lot of "noise" so it's not one clear high or low pulse. Therefore the counter is quite inaccurate. I have about 4kWh a day difference between real and virtual counter. Somebody with the same experience? And does someone have a more accurate optical sensor?
-
- Posts: 15
- Joined: Tuesday 23 February 2016 10:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4768
- Contact:
Re: my water meter.
Dear all,
I want to use a TCRT5000 directly on the GPIO port. I will get a water enter type sensus 620 from my water company (opportunity replacement).
Anyone got a working script for this combination?
Also, to which GPIO pin should the D0 signal be connected to?
I want to use a TCRT5000 directly on the GPIO port. I will get a water enter type sensus 620 from my water company (opportunity replacement).
Anyone got a working script for this combination?
Also, to which GPIO pin should the D0 signal be connected to?
-
- Posts: 4
- Joined: Friday 02 September 2016 9:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: my water meter.
(More or less) same question here: can I connect my Sensus HRI pulse counter directly to the GPIO instead of using the S0PCM-5?
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
A yes, TCRT5000 works well with this meter. I have it as well. Connected directly to GPIO.JelleB wrote:Dear all,
I want to use a TCRT5000 directly on the GPIO port. I will get a water enter type sensus 620 from my water company (opportunity replacement).
Anyone got a working script for this combination?
Also, to which GPIO pin should the D0 signal be connected to?
I use an external program to avoid false positives. Look at my earlier posts for details and installation instructions.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: my water meter.
Sorry, no experience with that. It was a bit to expensive for me..tricodoro wrote:(More or less) same question here: can I connect my Sensus HRI pulse counter directly to the GPIO instead of using the S0PCM-5?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Who is online
Users browsing this forum: No registered users and 1 guest