Page 1 of 1
expansion relays and multiple relay boxes
Posted: Tue Jul 16, 2013 5:07 pm
by rossbryant1956
I recently hooked up a second expansion relay and third relay switch box and am having some issues. I wired everything up, added some lines to my code to call a switch on the third box and all seemed well..everything came up on the portal, I could see all three boxes, outlets were lighting up according to the code, but nothing was happening on the box itself...none of the outlets were actually working.
Then I remembered that there were dip switches associated with each relay expansion and I had not set the switches in the new expansion relay. I unplugged the relay expansion, re-set the switches, plugged everything back in, powered down the relay switch box and hooked everything back up....still nothing.
At this point I figured the RA memory was messed up, confused at seeing two switch boxes at the same hardware address, so I rebooted RA, nothing, re-uploaded my new code, nothing.
What can I do next to make everything reboot, re-config, etc. Thx
Re: expansion relays and multiple relay boxes
Posted: Tue Jul 16, 2013 5:53 pm
by rimai
Yes, you need to set one as id #1 and the other as id#2
Re: expansion relays and multiple relay boxes
Posted: Tue Jul 16, 2013 6:12 pm
by rossbryant1956
yep did that. Note above I am looking to figure out how to reset RA so it now sees both hardware addresses. The portal sees all the boxes (always did), the software thinks it is changing the state of the individual outlets of the third box, but it's not. What can I do now?
Re: expansion relays and multiple relay boxes
Posted: Tue Jul 16, 2013 7:18 pm
by rimai
Re: expansion relays and multiple relay boxes
Posted: Wed Jul 17, 2013 6:33 pm
by rossbryant1956
here is my scan. Thx
I2CScanner ready!
starting scanning of I2C bus from 1 to 128...
addr: 1 addr: 2 addr: 3 addr: 4
addr: 5 addr: 6 addr: 7 addr: 8
addr: 9 addr: A addr: B addr: C
addr: D addr: E addr: F addr: 10
addr: 11 addr: 12 addr: 13 addr: 14
addr: 15 addr: 16 addr: 17 addr: 18
addr: 19 addr: 1A addr: 1B addr: 1C
addr: 1D addr: 1E addr: 1F addr: 20 found!
addr: 21 addr: 22 addr: 23 addr: 24
addr: 25 addr: 26 addr: 27 addr: 28
addr: 29 addr: 2A addr: 2B addr: 2C
addr: 2D addr: 2E addr: 2F addr: 30
addr: 31 addr: 32 addr: 33 addr: 34
addr: 35 addr: 36 addr: 37 addr: 38 found!
addr: 39 addr: 3A addr: 3B addr: 3C found!
addr: 3D addr: 3E addr: 3F addr: 40
addr: 41 addr: 42 addr: 43 addr: 44
addr: 45 addr: 46 addr: 47 addr: 48
addr: 49 addr: 4A addr: 4B addr: 4C
addr: 4D found! addr: 4E found! addr: 4F addr: 50 found!
addr: 51 addr: 52 addr: 53 addr: 54 found!
addr: 55 addr: 56 addr: 57 addr: 58
addr: 59 addr: 5A addr: 5B addr: 5C
addr: 5D addr: 5E addr: 5F addr: 60
addr: 61 addr: 62 addr: 63 addr: 64
addr: 65 addr: 66 addr: 67 addr: 68 found!
addr: 69 addr: 6A addr: 6B addr: 6C
addr: 6D addr: 6E addr: 6F addr: 70
addr: 71 addr: 72 addr: 73 addr: 74
addr: 75 addr: 76 addr: 77 addr: 78
addr: 79 addr: 7A addr: 7B addr: 7C
addr: 7D addr: 7E addr: 7F addr: 80
done
Re: expansion relays and multiple relay boxes
Posted: Wed Jul 17, 2013 8:40 pm
by rimai
You got the wrong ID.
You are using id#5
address 38 is ID#1 and so on up to 3f
Re: expansion relays and multiple relay boxes
Posted: Thu Jul 18, 2013 4:30 am
by rossbryant1956
I'll check it tonite...it has to be sequential?
Re: expansion relays and multiple relay boxes
Posted: Thu Jul 18, 2013 5:16 am
by lnevo
Try changing your code to box5 and find out

Re: expansion relays and multiple relay boxes
Posted: Thu Jul 18, 2013 7:25 am
by rossbryant1956
cool, I might do that. thx
Re: expansion relays and multiple relay boxes
Posted: Thu Jul 18, 2013 9:10 am
by rimai
Yeah, or you will have boxes in your portal that you are not using.
It should work if you change the code to use box 5 though

But I would keep them in sequence.
Re: expansion relays and multiple relay boxes
Posted: Thu Jul 18, 2013 1:57 pm
by lnevo
YOu could use the extra ones for macros of all kind

Re: expansion relays and multiple relay boxes
Posted: Thu Jul 18, 2013 5:10 pm
by rossbryant1956
re-configuring the switches fixed it. Had to follow pin1 on the motherboard, not on the switchblock. Works like a charm.