Garage Door Logic - Help needed!

Discussion in 'Homework Help' started by Bubbaboufstavson, Jan 13, 2016.

  1. Bubbaboufstavson

    Thread Starter New Member

    Jan 13, 2016
    Hello all!

    This circuit may seem relatively simple to you guys, but I seem to be struggling. My assignment is to create a ladder diagram of a garage door using only control relays and a push-button. The button will move the door as follows

    Press 1: Down
    Press 2: Stop
    Press 3: Up
    Press 4: Stop

    I understand the concept of a flip flop circuit but adding in the stop function is hurting my brain. Any help would be greatly appreciated.
  2. GopherT

    AAC Fanatic!

    Nov 23, 2012
    Use the switch to trigger a flip flop1, flipflop1 triggers flipflop2

    Flipflop1 turns on or off a master power (simple on/off relay).

    A second dpdt relay is triggered by the second relay (arranged as a motor-reversing h-bridge)
  3. WBahn


    Mar 31, 2012
    Is it hurting your brain because it is a "stop" function? If so, forget about the specifics of the function and think of it more generically:

    Push once - Function A
    Push once - Function B
    Push once - Function C
    Push once - Function D
    Push once - Function A
    and so on...

    You have four states that you have to keep track of. You can do this with two relays (which this problem lends itself to) or it might be easier to implement it using three or even four relays. Your fundamental goal is to first figure out how you can cycle through four distinct states via successive pushes of the button. After that it is a matter of using each state to implement the task associated with that state. It often helps if you first decide the practical meaning of each state. As GopherT described it above, if you use two relays then you can think of one relay controlling whether the drive has power and the other controlling what direction the motor will drive the door in when powered.
  4. MaxHeadRoom


    Jul 18, 2013
  5. MikeML

    AAC Fanatic!

    Oct 2, 2009
    Four states, one input, one output; pretty simple state machine.

    Let's see, log(base 2) of 4 = 2, therefore you can do it with two flip-flops or two relays...
  6. Bubbaboufstavson

    Thread Starter New Member

    Jan 13, 2016
    Thank you guys for all of your help. I was able to get it functioning by utilizing two flip-flops as GopherT suggested. Now I just need to add in some limit switches and its done. Thank you again!