Simple LED Wiring: Step-by-Step Guide with Red and Green LEDs and a Lever Switch

  • Thread starter Thread starter rougeqc21
  • Start date Start date
  • Tags Tags
    Led Wiring
Click For Summary

Discussion Overview

The discussion revolves around wiring a circuit with a red and green LED using a lever switch, focusing on the specifications of the components and the desired functionality of the circuit. Participants explore the technical aspects of connecting the LEDs and switch to achieve the intended behavior.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • The original poster describes their components and the desired behavior of the circuit, where the green LED is constantly on and the red LED turns on when the switch is pressed.
  • One participant provides a circuit diagram and suggests using 330 ohm resistors to achieve approximately 20 mA through each LED.
  • Another participant inquires about the method of making connections, asking whether the original poster will use soldering or other means.
  • The original poster confirms they will be soldering but expresses concern about the switch potentially shorting the battery when connected directly.
  • A participant explains that connecting the switch directly to the battery would indeed cause a short circuit and discusses the functionality of the switch based on its SPDT configuration.
  • One participant corrects the current rating calculation for the resistor, stating that a 330 ohm resistor would result in 27 mA, suggesting a 360 ohm resistor for the desired current ratings of the LEDs.
  • Another participant clarifies that the voltage across the resistor is not the full 9V, but rather the difference between the battery voltage and the LED forward voltage, leading to a current calculation of approximately 19 mA or 21 mA depending on the LED used.

Areas of Agreement / Disagreement

Participants express differing views on the appropriate resistor value and the implications of the switch's configuration. There is no consensus on the exact wiring or resistor specifications, and the discussion remains unresolved regarding the optimal setup.

Contextual Notes

Participants have not reached a definitive conclusion on the correct resistor value or the exact wiring configuration for the switch and LEDs. There are assumptions about the behavior of the switch and the circuit that remain unverified.

rougeqc21
Messages
2
Reaction score
0
Alright I need help. I am not electrically inclined so figure this is the best place I could have come. I'll make this as simple as possible.

I have:
1 Red 5 mm LED with specs 2.6V - 28mA * 10mcd
1 Green 5mm LED with specs 2.1VDC - 25mA - 6.3mcd
9V battery as source

What I need.

Need to wire this so that the green led is constant on and when a switch is depressed the green turns off and red turns on then if the switch is released back to green.

radioshack.com/product/index.jsp?productId=2049718&cp=&kw=lever+switch&parentPage=search

that is the switch I have.

Thanks so much for your help!
 
Engineering news on Phys.org
I have attached a circuit that should do what you want.
The 330 ohm resistors will give about 20 mA through each LED.
 

Attachments

  • 2-LED-circuit_2008-Apr-18.gif
    2-LED-circuit_2008-Apr-18.gif
    7.3 KB · Views: 642
rougeqc21, I should probably ask by what means you would be making connections in your circuit? I.e., soldering, or using wires with alligator clips (available at Radio Shack), or a solderless breadboard, or other?

Feel free to post if you have more questions.
 
Thanks for the help redbelly.

I will be soldering it all myself, that at least i am proficient at haha from hobby related endeavors. Would that switch I had the link to work? I hooked pos and neg from the 9V and it seemed like it was just shorting the battery out (it was getting very hot)
 
If you hooked the switch up directly to the battery, then yes you were shorting it out.

I can't find a wiring diagram for the switch at Radio Shack (not surprisingly), so I can't answer for certain that it will work. But it is listed as a spdt 3-lead switch. So one lead (probably the center one) is always connected to one or the other of the other 2 leads. That lead is what gets connected to the battery. As for rest of the connections, see the circuit diagram I posted earlier.

I'll suggest getting some wires with alligator clips just so you can verify and debug your circuit before you start soldering things. You can waste a lot of time desoldering and resoldering if things are not connected correctly. I saw the clip wires at my local Radio Shack earlier today, they come in a package of 10 and might cost $5 or at most $10.

As a start, connect 1 LED and resistor to the battery leads to satisfy yourself that things will work. This will also tell you the polarity of the LED (which wire is +).
 
Reminder:
By using 330ohm resistor, it rates to 27mA (not 20mA) for 9VDC. It should be 360ohm for both (25mA and 28mA)
 
But the resistor does not have 9V across it, it has
(9V - Vled)
or 6.4V to 6.9V, depending on which LED is connected (2.6V for the red one, 2.1 V for the green).
This gives 19 mA or 21 mA, or (as I said) close to 20 mA in either case.

The resistor and LED are in series, in case that is what caused your confusion.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 25 ·
Replies
25
Views
14K
Replies
11
Views
4K
Replies
1
Views
2K
Replies
1
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
15K
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K