Maker Pro
Maker Pro

new to circuitry

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
hey guys. as title says i'm new to this, working on a small project and would just like to press the button to turn off the led and release it to turn it back on. thanks in advance
 

Attachments

  • diagram.jpg
    diagram.jpg
    38.8 KB · Views: 120

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,719
Joined
Nov 17, 2011
Messages
13,719
All you need is a button with "normally closed" action (closed when released, open when pushed). Then connect everything in series.
 

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
Thanks for the reply. Is it possible i can get a diagram? I tried wiring this thing so many ways, i get the led to light but pushing the button doesn't turn it off :(
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
Something like this? But with your push to break switch..

simple-circuit.png
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
Sorry, I just read your post again.
6 pin switch? What switch is it? Can you give us a link or the numbers by the pins?

Martin
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
It looks like that switch is only "push to make" contact. You want a "push to break" switch.

But for this switch. Put your circuit to 1 and 3 Or 2 and 4.

Martin
 

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
So how exactly would i go about doing that? The 9v battery with resistor hooked up to pins 5 and 6? The led to 1 and 3 / 2 and 4? How much i gotta pay for a diagram? :D:D
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
Ok, first of all, you have a white 3v led in your diagram too. You will need a resistor of about 240 to 300 ohms for it too.
 

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
Yep i got right resistor for it, works fine hooked up directly to the 9v
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
Yes but, you need one for the switch led too.
Give me ten minutes and I'll give you some ideas to have the switch led constant and to turn on / off with the switch.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,719
Joined
Nov 17, 2011
Messages
13,719
Break the standard way of thinking: This switch is make (normally open) ony. Therefore it is impossible to use it in a series configuration to turn off the LED when pressed.
If you cannot put the switch in series to the LED, which other connection is the next logical one? The answer is very simple and I could give it to you instantly, if you insist. However, I think it is a good exercise to find the solution yourself.

Hint: What I'm thinking of is normally considered to be a faulty connection.
 

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
I think i understand what you're saying. I've been trying to find the solution myself with no luck lol.. How can i wire it to achieve the desired effect?
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
Oops, Harold has replied. Here is a simple push to make that has the switch led on constant but switches your white led.
 

Attachments

  • led switch.asc
    836 bytes · Views: 132

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,719
Joined
Nov 17, 2011
Messages
13,719
Sorry Martin, much too complex.

@Rock18 put the switch in parallel to the LED. When open, the LED will light. When pushed close, the switch will short crcuit the LED and the LED will consequently be off.

As I said: some out of the box thinking is reqired :D
 

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
Thanks Martin, I'll check out the file when i can. Harald, if it's not too much of a bother could you draw it out for me? Or if there's an existing diagram out there. Would really be helpful and appreciated
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
Harold is saying to put the led across the switch.
You will need to connect battery to resistor and then the switch 1 . Now put led across 1 and 3. Then 3 back to battery negative.
The led will be on constant. When you press the switch, it will short the led and it will go off.

Let me edit the pic I posted earlier for you.



Martin
 

Attachments

  • ledswitch.gif
    ledswitch.gif
    31.8 KB · Views: 74
Last edited:

Rock18

Oct 15, 2015
12
Joined
Oct 15, 2015
Messages
12
whoooo.. @Martaine2005 & @Harald Kapp thanks for the help.. figured it out.. my main problem in my initial trials was connecting the 9V straight to pins 5 and 6.. got it working now, can configure it so that the switch led stays on or turns off when clicked.. thanks again.. where do i send the check?! :D:D
 
Top