Relay logic help

Thread Starter

Dhogan12345

Joined Oct 7, 2024
8
I’m working on a school project and need some help figuring this out. The question is as follows.
When a momentary button is pressed it will cause two lights to toggle between each other. Ie press the button and release it once and light one is on, press and release the button again and light one turns off and light two turns on. Press and release the button again and light one turns back on and light two is off.
I can only use a momentary NO switch and as many relays as I need. And obviously two lights. I’m working with all 24vac components. Any help would be much appreciated.
 

MisterBill2

Joined Jan 23, 2018
27,164
There are quite a few schemes for alternate relay operation, and in addition there are relays made of exactly that function. This is a classic challenge exercise. often it is implemented with AND gates in solid state logic. That scheme can also be implemented with relays.
 

Ya’akov

Joined Jan 27, 2019
10,226
Welcome to AAC.

It’s hard to believe that you would get this assignment and yet have no material from either class or a textbook to point you in the right direction. That said, what would your first try at this look like? What do you imagine the relays could do to make this happen. Think about it, propose some solution—we can help guide you as you refine your understanding.

Although the answer is “trivial“ for those who have learned it, this is truly foundational knowledge. But puzzling it out mostly on your own you will gain a big advantage when facing more advanced topics which are often just complicated combinations of thing like this.

Good luck! Feel free to ask any questions related to your investigations of the answer, that are plenty of people ready to help.
 

Thread Starter

Dhogan12345

Joined Oct 7, 2024
8
Welcome to AAC.

It’s hard to believe that you would get this assignment and yet have no material from either class or a textbook to point you in the right direction. That said, what would your first try at this look like? What do you imagine the relays could do to make this happen. Think about it, propose some solution—we can help guide you as you refine your understanding.

Although the answer is “trivial“ for those who have learned it, this is truly foundational knowledge. But puzzling it out mostly on your own you will gain a big advantage when facing more advanced topics which are often just complicated combinations of thing like this.

Good luck! Feel free to ask any questions related to your investigations of the answer, that are plenty of people ready to help.
Resized_20240926_160300_1727390226676.jpeg

this is my like 30th attempt. I feel like it’s close but when I wire it up the relays chatter and won’t unlatch to reset R1 and R4.
 
Last edited by a moderator:

ericgibbs

Joined Jan 29, 2010
21,390
hi D12345,
Do you have the contact closure and release times for the relay types you are using?
Usually stated on the relay datasheet.
E

Example.
EG57_ 2165.png
 
Last edited:

ericgibbs

Joined Jan 29, 2010
21,390
Hi D12345,
Your relay chatter problem could be due to the operate/release delays of the relay contacts overlapping.??
Or a bouncing contact on your push button.

Do you have an oscilloscope on the bench, if Yes, you could measure these delays using one of the relays.

E
 

panic mode

Joined Oct 10, 2011
4,864
... or 3PDT... or 4PDT.... etc.

didn't wire it to test it out but something like this should work. it uses just three relays.... or 2 relays if button has sufficient number of contacts (K1 could be eliminated)
the first lamp can be connected in parallel with K3 but ... for large loads, this would require other relays to be larger too... by connecting loads only to K3 contacts, relays K1 and K2 can be smaller.
toggle.png
 

sghioto

Joined Dec 31, 2017
8,633
didn't wire it to test it out but something like this should work. it uses just three relays.... or 2 relays if button has sufficient number of contacts (K1 could be eliminated)
I don't know for sure if that follows the pattern described from post #1.
The TS says: "press the button and release it once and light one is on, press and release the button again and light one turns off and light two turns on. Press and release the button again and light one turns back on and light two is off".
It doesn't mention a light being ON when power is applied.
 

boostbuck

Joined Oct 5, 2017
1,034
Wow - ladder logic. I struggle with that.

Here's a sequencer that steps a light string in a loop. If it is shortened to just two lights I think it performs as requested. It's drawn from memory so no promises, but basically it uses the first relay to turn the PB into a SPDT which has two states - pressed or unpressed, and these two states are used to step along sets of two relays, one to catch and one to carry.

I think I derived it from part of an IBM calculating accounting machine (maybe a 419?? long time ago).

Any criticism appreciated.

Turning it into ladder logic is left as an exercise for the reader.

1728433070689.png
 
Top