Pulse Water Meter, cant see anything



  • Hello,
    i am working on an adruino-Pro 5V mini with jeedom.
    My water meter already have a pulse output, its a simple NO/NC contact, directly wired to pin 3 and GND
    I tried and succeed to read this output with this simple sketch :
    https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/BinarySwitchSensor/BinarySwitchSensor.ino

    But with the same hardware, when i tried this sketch
    https://github.com/mysensors/MySensors/blob/master/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino
    i have no signal on jeedom.
    Do you know what is happening ?
    thanks

    here is my serial monitor

    16 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=16,REL=255,VER=2.3.2
    26 TSM:INIT
    28 TSF:WUR:MS=0
    34 TSM:INIT:TSP OK
    36 TSF:SID:OK,ID=9
    37 TSM:FPAR
    41 ?TSF:MSG:SEND,9-9-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    540 TSF:MSG:READ,0-0-9,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    545 TSF:MSG:FPAR OK,ID=0,D=1
    2050 TSM:FPAR:OK
    2051 TSM:ID
    2052 TSM:ID:OK
    2054 TSM:UPL
    2057 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2068 TSF:MSG:READ,0-0-9,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2073 TSF:MSG:PONG RECV,HP=1
    2075 TSM:UPL:OK
    2077 TSM:READY:ID=9,PAR=0,DIS=1
    2081 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2089 TSF:MSG:READ,0-0-9,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2097 TSF:MSG:SEND,9-9-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.2
    2105 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    4113 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Water Meter
    4122 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
    4130 TSF:MSG:SEND,9-9-0-0,s=1,c=0,t=21,pt=0,l=0,sg=0,ft=0,st=OK:
    4135 MCO:REG:REQ
    4140 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    4147 TSF:MSG:READ,0-0-9,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    4152 MCO:PIM:NODE REG=1
    4154 MCO:BGN:STP
    4157 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    4163 MCO:BGN:INIT OK,TSP=1
    34165 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    64168 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    94167 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    124168 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    154169 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    184170 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    214171 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    244172 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    248990 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
    248995 TSF:MSG:BC
    249164 TSF:MSG:SEND,9-9-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=OK:0
    274173 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    304174 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    334175 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    364176 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    394177 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    424178 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    454179 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    484180 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    514181 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    544182 TSF:MSG:SEND,9-9-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    


  • If you look at those two sketches, in the setup() function, they both claim to set it up to use the internal pullup on pin 3. However, they do it differently. That's the first place I would look. Try replacing the non-working one with the same code from the working one.



  • Thanks, i tried but it has no effect




Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 8
  • 1
  • 6

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts