RelayWithButtonActuator Example(solved)



  • Hi,

    I'm trying to do the simple RelayWithbuttonActuator from this homepage that Works with an MQTT gateway, I've got it working 1/10 times, by using the default code from here(the RelayWithButtonActuator Example): http://www.mysensors.org/build/relay

    When i push the button, i see the TX light on the arduino light up for a split second, and then nothing happens, the relay does not switch, then i fiddle with the button 5-10 times, then it finaly switches.

    So i checked the log from the com port, and this is what the Arduino outputs:

    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
    This is an ack from gateway
    Incoming change for sensor:1, New status: 0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
    This is an ack from gateway
    Incoming change for sensor:1, New status: 0
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
    read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1

    So now my questions:
    Am i doing something wrong to get this result?
    What does the error mean when it fails?
    Why does the OK status not do anything?
    Why is it not the primary funktion to turn on or off the relay insted of sending and reciving the info from the MQTT?



  • Update:
    I've made another board with new components, and now it Works every time, i took the old board and added a Decoupling-Capacitor, now it Works about 6/10 times.

    Edit:
    I've resawdered the Wireless chip (FK 16.ONU) and now i got it to 8/10 times.

    Edit2:
    I added a Decoupling-Capacitor of 47UF insted of the 4,7 10/10 times.


Log in to reply
 

Suggested Topics

27
Online

11.2k
Users

11.1k
Topics

112.5k
Posts