Jump to content


Photo

Trying To Make A Circut


  • Please log in to reply
3 replies to this topic

#1 sk8ermike6789

sk8ermike6789

    X-S Expert

  • XS-BANNED
  • PipPipPip
  • 656 posts
  • Location:Im your neighbor
  • Interests:Guitar, *boarding...
  • Xbox Version:v1.1

Posted 07 November 2003 - 10:33 PM

i want a circut, so that when i press a MOMENTARY switch once, a few leds will turn on, and when i press it again, they will turn off, n e one know how to do this?? blink.gif

#2 dank42

dank42

    X-S Expert

  • Members
  • PipPipPip
  • 518 posts
  • Xbox Version:v1.1

Posted 07 November 2003 - 10:37 PM

just add the switch on the positive wire
thats what i did for one of my clear cases so i can have it light up
green or red
then i can change the hd activity from
blue to red

dam edit::::::
didnt read your post correctly
my switch isnt a moentary switch just a simple on/off my bad bro

Edited by dank42, 07 November 2003 - 10:38 PM.


#3 nyarrgh

nyarrgh

    X-S Member

  • Members
  • Pip
  • 116 posts
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 07 November 2003 - 11:03 PM

I remember doing a circuit like that in Basic Digital Elec. It's called a JK Flip-Flop with J and K tied to positive. You'd need 4 nand gates if I remember,

2x3 input nand gates and 2 2 input nand gates.

search for J-K Flip-Flop. Both J and K inputs should be tied to positive, and the CLK to your switch.

I believe this could also be done using simple transistors, but I don't remember that far back. sad.gif


Why would you want this though? an push button On-Off switch is much-much easier (and cheaper).


Edit:
This variation of the JK Flip-Flop is called a T Flip-Flop (for Toggle).
I found a sample structure:
http://hyperphysics....lipflop.html#c1

The structure is :
http://hyperphysics....lipflop.html#c2

disregard the term "Clock edge" since that will just be the signal from the momentary switch going from GND to Positive then back to GND

Edited by nyarrgh, 07 November 2003 - 11:08 PM.


#4 sk8ermike6789

sk8ermike6789

    X-S Expert

  • XS-BANNED
  • PipPipPip
  • 656 posts
  • Location:Im your neighbor
  • Interests:Guitar, *boarding...
  • Xbox Version:v1.1

Posted 08 November 2003 - 10:15 PM

wow ohmy.gif thats more complicated than i thought huh.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users