Vera to relays not working


  • Hero Member

    Hello,

    I'm building an array of 16 relays controlled by Vera. Something like this:

    IMG_8828.JPG

    The sketch works just fine when connected to usb serial interface, as you can see here:

    write register: 0000000000010001

    read: 0-0-1 s=4,c=1,t=2,pt=0,l=1:0
    send: 1-1-0-0 s=4,c=1,t=2,pt=0,l=1,st=ok:0
    Incoming change for relay:4, New status: 0

    write register: 0000000000000001

    read: 0-0-1 s=4,c=1,t=2,pt=0,l=1:1
    send: 1-1-0-0 s=4,c=1,t=2,pt=0,l=1,st=ok:1
    Incoming change for relay:4, New status: 1

    write register: 0000000000010001

    All 16 channels write correctly and are responsive to Vera's devices.

    The problem comes when I connect the relay board.
    The arduino comes online and switches the relevant relays on or off according to what's stored on eprom but it stops responding to commands from Vera.

    I start to get some of this on the console:


    read: 76-76-76 s=76,c=4,t=76,pt=2,l=9:11852
    version mismatch
    read: 76-76-12 s=76,c=4,t=76,pt=2,l=9:11852
    version mismatch
    read: 76-76-12 s=76,c=4,t=76,pt=2,l=9:11852
    version mismatch
    read: 76-76-12 s=76,c=4,t=77,pt=2,l=9:11852
    version mismatch
    read: 76-76-12 s=76,c=4,t=76,pt=2,l=9:11853
    version mismatch
    read: 76-76-76 s=77,c=5,t=77,pt=2,l=9:11852
    version mismatch
    read: 77-77-76 s=76,c=4,t=76,pt=2,l=9:11852
    version mismatch
    read: 76-76-77 s=77,c=4,t=76,pt=2,l=9:11853


    and this when I try to turn off the first relay on vera:


    read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    version mismatch
    read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    version mismatch
    read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    version mismatch
    read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    version mismatch
    read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
    version mismatch


    The device does not change state nor does the relay.

    Any idea what might be going on?
    Sketches are all compiled with same version of the libraries.
    The fact the sketch works on it's own but not with the relays attached is what I don't understand.
    Any help would be appreciated.


  • Hero Member

    After a while going crazy I just changes the AC adapter for another one I had laying around and everithing started working.
    I did check the old one and it was ok.
    I don't know what could have been but now it is working properly.


  • Admin

    @ferpando

    If you had a oscilloscope around you would probably see some funny output from the old powersupply. Many cheap power supplies gives uneven and spiky output which makes the arduino/radio go bananas.


  • Hero Member

    Yes I know... some of these days I'll get one πŸ™‚


  • Admin

    @ferpando

    Just ordered a Rigol DS1054Z. Soft-hackable to 100Mhz. Unfortunately 4 weeks shipping time right now. It's like waiting for christmas as a kid.

    EEVblog #703 - Rigol DS1054Z Oscilloscope Review Summary – 12:48
    β€” EEVblog


  • Contest Winner

    @hek

    I own the baby Siglent which is 100Mhz... It has been helpful. I recently was able to re-time an I2C LCD library for Spark Core:, which I would have been SOL without the scope!


  • Admin

    Followed @hek's lead and ordered one too - purported to ship on the 18th!


  • Admin

    I want a rigol too. But better not buy one, I have my trusty 60mhz Tektronix scope which is enough at the moment


Log in to reply
 

Suggested Topics

59
Online

11.4k
Users

11.1k
Topics

112.7k
Posts