@core_c
Thanks for sharing! It was my experience to that the sample values were to low.
Is it possible to share your complete version?
@core_c
Thanks for sharing! It was my experience to that the sample values were to low.
Is it possible to share your complete version?
Great post thanks for sharing!
I have also two of these which are not functioning anymore. Did you find a solution to the low values after all?
The S0 bus has a + and - pole But it is not really critical I think, it won't harm the port the pulses are to short but maybe it doesn't count correctly when connected wrong.
I am using a dedicated water pulsecounter.
Nice challenge:) I am using it also with Domoticz.
Take care of the poles, plus on the digital in and ground to ground.
I am using the S0 busses of the kwh meters directly, and connect one wire to the ground and the other one to a digital input as mentioned in the sketch(D3 and D5) that's all
The internal pull up's of the Arduino nano are enabled in the sketch. I understand your misunderstanding the comments in the sketch are from the original and mention the light sensor, I removed those comments now.
I have combined and changed the default Mysensors pulsecounter sketches for two S0 pulsecounters (water/solar)sketch
Connect the S0 wires to ground and the digital inputs mentioned in the sketch. The internal pull up resistors are enabled.
I didn't get it to work unfortunately.
Gizmocuz has a working sketch example
I have successfully used it.
Thanks for sharing!!
Yes it would be better to have a stable software solution but your solution is good also and even safer when there is a power failure!
Interesting workaround!
Could you please share your sketch?
Thanks for your answer, I am going to try that this weekend.
I'am trying to get this working on my Raspberry Pi 2 B with Raspbian but when using the setup.sh command I get this error:
bcm2835.c: In function ‘bcm2835_init’:
bcm2835.c:1207:28: error: invalid suffix "x" on integer constant
bcm2835.c:1208:28: error: invalid suffix "x" on integer constant
bcm2835.c:1209:28: error: invalid suffix "x" on integer constant
bcm2835.c:1210:28: error: invalid suffix "x" on integer constant
bcm2835.c:1211:28: error: invalid suffix "x" on integer constant
bcm2835.c:1212:28: error: invalid suffix "x" on integer constant
bcm2835.c:1213:28: error: invalid suffix "x" on integer constant
bcm2835.c:1214:28: error: invalid suffix "x" on integer constant
bcm2835.c:1228:83: error: invalid suffix "x" on integer constant
bcm2835.c:1232:81: error: invalid suffix "x" on integer constant
bcm2835.c:1236:81: error: invalid suffix "x" on integer constant
bcm2835.c:1239:83: error: invalid suffix "x" on integer constant
bcm2835.c:1242:83: error: invalid suffix "x" on integer constant
bcm2835.c:1246:83: error: invalid suffix "x" on integer constant
bcm2835.c:1249:83: error: invalid suffix "x" on integer constant
bcm2835.c:1253:79: error: invalid suffix "x" on integer constant
Makefile:52: recipe for target 'bcm2835.o' failed
make: *** [bcm2835.o] Error 1
Any idea what is going wrong? Thanks in advance!