[contest] My 12 input high precision pulse counter (kWh/ W)
-
I've uploaded both sketches without errors, but can't get any readings when i check the serial monitor? Also it doesn't say anything about the communication with the gateway.
What's wrong? What should i check?
@MarkV Hi Mark, good hear you are trying to get it working. You need two arduino's which one is not showing serial information? You first need to get the "measurement" arduino working. This one is supposed to spit out JSON strings. Second you try the "master".
-
I've connected everything, but it says:
11-11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
What does this mean?? What does the fail mean?
Also the sensors don't show up in Domoticz.
And now i'm getting al sort off strange signes:
-11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
11-11-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
.W J‘õ11, parent=0, distance=1
LLKLLKj‚šõ255,c=3,t=11,pt=0,l=18,sg=0,st=fail:AWI-12ChannelPulse
LLKLLKj‚šõ255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
LLKLLKj‚šõ0,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ1,c=0,t=13,pt=0,l=0,sg=0,st=fail:
find parent
LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
11-0-0 s=2,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ3,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ4,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ5,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ0,c=2,t=18,pt=0,l=0,sg=0,st=fail:
find parent
LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ3,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ4,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ5,c=2,t=18,pt=0,l=0,sg=0,st=fail:
¢¥µ•5
LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
find parent
LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
Y‹é 11-11-0-0 s=255,c=0,Y‹é 11-11-0-0 s=25óYk½É�started, id=11,equesting time
JsonParser.parse() failed
¢¥µ•5
LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
–‹é 11-11-0-0 s=25Í–‹é 11-11-255-255`¾ò–‹é 11-1Y‹é 11-ñequesting time
JsonParser.parse() failed -
I've connected everything, but it says:
11-11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
What does this mean?? What does the fail mean?
Also the sensors don't show up in Domoticz.
And now i'm getting al sort off strange signes:
-11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
11-11-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
.W J‘õ11, parent=0, distance=1
LLKLLKj‚šõ255,c=3,t=11,pt=0,l=18,sg=0,st=fail:AWI-12ChannelPulse
LLKLLKj‚šõ255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
LLKLLKj‚šõ0,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ1,c=0,t=13,pt=0,l=0,sg=0,st=fail:
find parent
LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
11-0-0 s=2,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ3,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ4,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ5,c=0,t=13,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ0,c=2,t=18,pt=0,l=0,sg=0,st=fail:
find parent
LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ3,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ4,c=2,t=18,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ5,c=2,t=18,pt=0,l=0,sg=0,st=fail:
¢¥µ•5
LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
find parent
LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
Y‹é 11-11-0-0 s=255,c=0,Y‹é 11-11-0-0 s=25óYk½É�started, id=11,equesting time
JsonParser.parse() failed
¢¥µ•5
LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
–‹é 11-11-0-0 s=25Í–‹é 11-11-255-255`¾ò–‹é 11-1Y‹é 11-ñequesting time
JsonParser.parse() failed -
Good evening,
It took a while but i wanted to check everything and see what i can do about it by myself.
And.... still no luck, except that i have a running ethernet GW, plus a DHT11 Humidity/temperature sensor up and running.My pulse counter is also running and i'm getting output on the usb, normal output haha.
Also the gateway is able to see the counter.
Domoticz sees the gateway, the only problem is, that it doesn't add the sensor to it.
The strange part is that is does add the humidity/temperatuur arduino.
I've pressed the "add new sensors for 5 minuts" button and still no luck.
I've also installed MYScontroller and when i connect through tcp i get the following:

Arduino Sketch serial monitor:

What's wrong, what did i do wrong and what should i do to fix it??
-
Good evening,
It took a while but i wanted to check everything and see what i can do about it by myself.
And.... still no luck, except that i have a running ethernet GW, plus a DHT11 Humidity/temperature sensor up and running.My pulse counter is also running and i'm getting output on the usb, normal output haha.
Also the gateway is able to see the counter.
Domoticz sees the gateway, the only problem is, that it doesn't add the sensor to it.
The strange part is that is does add the humidity/temperatuur arduino.
I've pressed the "add new sensors for 5 minuts" button and still no luck.
I've also installed MYScontroller and when i connect through tcp i get the following:

Arduino Sketch serial monitor:

What's wrong, what did i do wrong and what should i do to fix it??
@MarkV Good morning ;-) the issue you are having is probably due to the fact that Domoticz sometimes creates sensors after actual data is received (i.s.o. when presenting). The original sketch won't start sending data until it receives something. (line 111 in code above). Also Domoticz is not able to to "send" data values, I had to tweak it myself...
The whole dependency on the controller gave me a lot of headaches. Therefore I decided to rework the whole thing in an independent version. This one is running stable for a few weeks now with a "standard (beta)" version of Domoticz.The code and hardware is similar but requires some attention. i.e. you need different and the newest libraries. Just drop me a note if you need any assistance.
-
Thanks for the commet and i defently need some help.
Sorry i didn't see your "new" post about the pulse counter.I'm uploading the sketches now.
I only got one question, what should i uncomment in the sketches when i'm not using the display and counter?And when i got this working, is it possible to add to other sensors, a CNY70 (reflector sensor) to readout a water and gas meter? (but this is the next step ;-) )
I also installed the beta version from domoticz.
-
Thanks for the commet and i defently need some help.
Sorry i didn't see your "new" post about the pulse counter.I'm uploading the sketches now.
I only got one question, what should i uncomment in the sketches when i'm not using the display and counter?And when i got this working, is it possible to add to other sensors, a CNY70 (reflector sensor) to readout a water and gas meter? (but this is the next step ;-) )
I also installed the beta version from domoticz.
-
-
Hi @AWI!
The GIT link is broken. Can I find your sketch for this counter elsewhere?
I would like to implement this counter as a "local sensor" on an ethernet gateway without radio. I guess this would require some tweaking but right now I'm confident. x)
Thanks!
-
Hi @AWI!
The GIT link is broken. Can I find your sketch for this counter elsewhere?
I would like to implement this counter as a "local sensor" on an ethernet gateway without radio. I guess this would require some tweaking but right now I'm confident. x)
Thanks!
@NickBuilder soory but the transition to 2.0 gave me a little GIT headache and I broke some links.. I restored the pulse counter sketches. Be carefull with combining the sketch with ethernet functionality... Both eat a lot of RAM/ROM and are time critical.
The sketch also stores a large amount of data in EEPROM. Be aware that the space there is more limited than the 256 bytes mentioned with saveState().
Please share your progress -
@NickBuilder soory but the transition to 2.0 gave me a little GIT headache and I broke some links.. I restored the pulse counter sketches. Be carefull with combining the sketch with ethernet functionality... Both eat a lot of RAM/ROM and are time critical.
The sketch also stores a large amount of data in EEPROM. Be aware that the space there is more limited than the 256 bytes mentioned with saveState().
Please share your progress@AWI as did got get my modifcations 100% running I was pumped to see your latest update, but for reasons i do not understand i get an error while compiling:
error: 'hour' was not declared in this scopesame is the case for setTime, minute etc...
i already tried some stuff with the time.h but it seems nothing has an impact, not even deleting the whole library (which should end in a "libraby not found" error, but only shows the errors described above)
any idea what to look for?thanks
-
@AWI as did got get my modifcations 100% running I was pumped to see your latest update, but for reasons i do not understand i get an error while compiling:
error: 'hour' was not declared in this scopesame is the case for setTime, minute etc...
i already tried some stuff with the time.h but it seems nothing has an impact, not even deleting the whole library (which should end in a "libraby not found" error, but only shows the errors described above)
any idea what to look for?thanks