Changing an LED light from off to on based on a signal

Discussion in 'Homework Help' started by Trevis Johnson, Oct 14, 2014.

  1. Trevis Johnson

    Thread Starter New Member

    Oct 13, 2014
    7
    0
    How would I change the LED light from on to off, I want to use an AND gate, connecting a signal to the AND gate and then something else for power, but how do I keep the signal on or off? As soon as it hits the signal it's going to either blink on or blink off wont it?

    What would I use for the signal to send a 1 and either flip something off and then flip it back on with another 1 for the other side of the and gate?
    So
    Case 1: (Led On)
    Always 1 - Vss
    Signal sends 1 - turns on

    Case 2: (Led off)
    signal sends 1 - turns off
    Always 1 - Vss

    How can I keep something that remembers this for the second input of the AND gate? What component?
     
  2. ScottWang

    Moderator

    Aug 23, 2012
    4,850
    767
    try D type flip-flop.
     
  3. Trevis Johnson

    Thread Starter New Member

    Oct 13, 2014
    7
    0
    That turns it on but doesn't turn it off if i set the Clock and D to Voltage (On always)
    What do i need to set to D, assuming I'm doing that wrong
     
  4. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,791
    829
    Look up T type flip flops. T is for toggle.
     
    Trevis Johnson likes this.
  5. ScottWang

    Moderator

    Aug 23, 2012
    4,850
    767
    There are many ways to using D-type filp-flop.
    If you study some more about CD4013 or 74HC74 for the function of each pin, maybe you will know what to do.
    as to google "cd4013 application idea".
     
  6. Trevis Johnson

    Thread Starter New Member

    Oct 13, 2014
    7
    0
    T Flip Flops Worked, Thank you
     
  7. WBahn

    Moderator

    Mar 31, 2012
    17,715
    4,788
    Please be more specific about what you want to achieve. Saying something like "as soon as it hits the signal it's going to..." is basically meaningless. As soon as what hits? What is meant by "hitting". What is going to do something? You use the pronoun "it" twice in the same sentence but clearly mean different things for each one. Makes if very confusing.

    Is this along the lines of what you want: A simple momentary push button switch is to be used to turn toggle the state of an LED from ON to OFF or from OFF to ON each time it is pressed.
     
  8. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,791
    829
    Now look up t flip flop using d flip flop.
     
Loading...