Breakout box question

thesoulpatch

Well-Known Member
View Badges
Joined
Oct 7, 2017
Messages
621
Reaction score
333
Rating - 0%
0   0   0
I'm adding lights in the cabinet, and wanted to get some help here. I was going to add these switches to my two doors so that when they are opened the light turns on. But my question is how would I code it so if both doors are open the light is on, or if either door is open the light is on, and the only way the light is off is if both doors are closed?

I figure:

set off
if Sw_1 open then on
if Sw_2 open then on

does that work or no?
 
I have the same set up and used similar reed switches to accomplish the same. I have 4 doors, each of the switches are labeled accordingly. Here is the code:
Fallback OFF
Set OFF
If Door_1 OPEN Then ON
If Door_2 OPEN Then ON
If Door_3 OPEN Then ON
If Door_4 OPEN Then ON
If Power Apex Off 000 Then OFF

I power monitor my apex, so the last line is in the rare case the apex looses power and I go to battery back up.
Hope this helps!
 
Okay awesome, so it really is that easy awesome thanks! Now to find a light and set it up.
 
I found a 24v strip LED light that I was able to wire directly into the 24v port on the EB832. Less wires and easy to control. Just program the 24v power outlet as the on/off for your doors. Easy!
 
oh i like that idea, less wires would be awesome. would this work, or does it need to be waterproof? @jassermd
 
Last edited:

TOP 10 Trending Threads

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 35 53.8%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 30 46.2%
Back
Top
Home
Post thread…
Market
What's new