Ladder logic, lamp & timer - simple question!

Discussion in 'Homework Help' started by carle, May 28, 2012.

  1. carle

    Thread Starter New Member

    May 28, 2012
    2
    0
    Hello!

    I would appreciate if someone could help me draw this one:

    "You turn on a lamp by pressing the button once, and turn it off by pressing the button twice within one second (double click). How would this ladder diagram look like?"

    Thank you in advance.
     
  2. WBahn

    Moderator

    Mar 31, 2012
    17,748
    4,796
    What have you done thus far?

    Q1) Could you draw the logic if you were only asked to design a circuit that would turn on the lamp in response to pressing one button and turn it off in response to pressing another?

    Q2) Could you draw the logic if you were only asked to design a circuit that would turn on the lamp in response to pressing a button and turn it off in response to pressing that same button (i.e., the button acts as a toggle switch)?

    Q3) Could you draw the logic if you were asked to modify the circuit in Q1 so that it requires two pushes on each button, within a second, to make the desired action happen?
     
  3. carle

    Thread Starter New Member

    May 28, 2012
    2
    0

    Well... no. I can turn on the lamp, but I'm not sure how to turn it off. I gave Q1 a shot, and I think you use OR if you would want to use the same switch.

    http://oi49.tinypic.com/717953.jpg

    Isn't it Q2) that needs to be modified? The same button will be used for turning the lamp on and off.
     
  4. WBahn

    Moderator

    Mar 31, 2012
    17,748
    4,796
    Keep in mind that the problem implies the use of momentary buttons and that they are being used only momentarily. Thus, to turn the lamp on, someone presses the button and immediately releases it. To turn off the lamp, the goal is for them to have to press and release the button twice within a one second interval.

    If you can go from Q2 to a modified version of Q3 that asks you to modify the result of Q2, then go for it. The purpose of Q3 isn't to be the final result, but just to be the next step before you tackle the whole thing.

    So, assume that you have a lamp, a box of momentary push-button switches (of whatever type you need: NO, NC, SPST, SPDT, MPDT, whatever), and a box of relays (ladder logic historically almost always implied relay-based implementation) and, again, any type of contact arrangement you desire.

    Try Q1 again.

    What kind of resources have you been shown for producing time delays? There are special time-delay relays that, once deenergised, will hold the contacts in the energized state for a short amount of time. You might assume that you have some of these that have a 1s delay.

    I found this page which might help.

    http://www.opamp-electronics.com/tutorials/digital_theory_ch_006.htm
     
    Last edited: May 29, 2012
  5. mannycc

    New Member

    Dec 11, 2010
    17
    1
    Just wondering what's the purpose of the circuit that needs to press the switch 2x in order to turn off the light? Otherwise you may use the idea of flip flops to draw equivalent circuit using the relays instead of logic gates?
     
  6. WBahn

    Moderator

    Mar 31, 2012
    17,748
    4,796
    More than likely, the purpose of the problem is to give the student practice with regards to a particular concept and the whole thing about turning lamps on and off is made-up filler to provide a context. I imagine a big point of this particular problem is to have the student deal with timing events. Unfortunately, we don't know what techniques they have available to them at this point, so it is a bit hard to offer truly relevant suggestions.
     
  7. strantor

    AAC Fanatic!

    Oct 3, 2010
    4,302
    1,988
  8. JoeJester

    AAC Fanatic!

    Apr 26, 2005
    3,373
    1,159
    strantor likes this.
Loading...