How can I create a circuit to control LED lighting with a switch in reverse?

  • Thread starter Thread starter Curl
  • Start date Start date
  • Tags Tags
    Reverse Switch
Click For Summary

Discussion Overview

The discussion revolves around designing a circuit to control an LED such that it is OFF when a switch is closed and ON when the switch is open. Participants explore various circuit configurations, components, and methods for achieving this behavior, considering both AC and DC power sources.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes connecting the switch in parallel with the LED to achieve the desired behavior.
  • Another suggests using a 2N7002 transistor along with resistors, asking for clarification on how to implement this circuit.
  • A participant explains the function of the 2N7002 N-channel MOSFET, describing its behavior in relation to gate current.
  • One participant mentions using a simple resistor and LED on the switched side of the switch if a ground or neutral is available, and discusses using a transformer if AC is employed.
  • Another participant provides a circuit diagram and component information for MOSFETs, emphasizing the importance of adjusting the resistor for brightness and cautioning against connecting directly to AC mains.
  • One suggestion involves using a double pole switch to control the circuit, detailing how to connect the LED and resistor appropriately.
  • Concerns are raised about the simplicity of certain proposed solutions, questioning whether they would truly turn the circuit off and whether the current would be appropriate for the LED.
  • A participant expresses appreciation for the transistor method and the provided diagram.

Areas of Agreement / Disagreement

Participants present multiple competing views on the best approach to create the circuit, with no consensus reached on a single solution. Various methods and components are suggested, each with its own advantages and considerations.

Contextual Notes

Participants discuss different circuit configurations without resolving the specifics of component values or the exact behavior of the proposed solutions. There are also mentions of dependencies on voltage and current requirements for the LED, which remain unresolved.

Who May Find This Useful

This discussion may be useful for individuals interested in basic electronics, circuit design, or those looking to understand how to control LED lighting with switches in unconventional ways.

Curl
Messages
756
Reaction score
0
My problem:
There is an LED and a switch. When the switch is closed, I want the LED OFF. When the switch is open, I want the LED ON. What is the simplest circuit I can build to make this happen?
The power source can be either AC or DC, whatever is easiest. Thanks!
 
Engineering news on Phys.org
Curl said:
There is an LED and a switch. When the switch is closed, I want the LED OFF. When the switch is open, I want the LED ON. What is the simplest circuit I can build to make this happen?
Connect the switch in parallel with LED?
 
2N7002 and a couple of resistors. Can you go from there?
 
Sure, I think you have the right idea. I don't know what the 2N7002 transistor is, I'm an M.E. not an E.E. that's why I need help. Can you explain how to make a circuit using the 2N7002? Maybe I need to learn how it works first.
Thanks a lot.
 
2N7002 N-channel EMOSfet.
In an N-channel, when the gate of the transistor receives a high current, then the Drain and source terminals are open circuited. When the gate of the transistor receives a low current, then the Drain and source terminals are short circuited.

P-Channel is the opposite of N-Channel
 
If you have a ground or neutral available then a simple resistor and LED on the switched side of the switch will do the trick. The value of the resistor will depend on the voltage.

Without a ground available and with AC, you could use a small transformer with the low voltage side in series with the switch and the LED connected across the high voltage side of the transformer. You may have to experiment a little but I suspect a wall-wart transformer would work. If the wall-wart supplies DC as most do, remove the diodes and capacitor in the output first.
 
This is a great project for an ME to get the feet wet in electronics!

I have attached a circuit & MOSFET component info. These MOSFET devices are popular and cost less than a dollar to the hobbiest (we get them for about $0.02 each).
Look up the datasheet on the corresponding website to see the pin arrangement.

You can adjust the DC voltage within reason by just adjusting the "brightness" resistor.
For example you can use 12V and increase resistor to 500 ohms. Also depends on the current required for the LED which does vary.

Don't attempt to connect this directly to AC mains.

I have included some alternative components that are in a more hobby friendly leaded package.
 

Attachments

  • inverter.jpg
    inverter.jpg
    17.2 KB · Views: 498
The best and easiest solution is to use a double pole switch. One pole applies power to the circuit. With the other pole, one side should be connected to power source lead (hot wire) and the other side of the switch should connected through a resistor to ground. The LED should be connected across the switch with polarity such that it lights up when the switch is open. The value of the resistor is determined by the voltage.
 
What is wrong with what gnurf proposed?
Nothing is simpler than that.
 
  • #10
1. When your switch is off, the circuit will not be truly off because of the current through the LED.
2. How much current does your circuit draw? Is it the right amount to properly light the LED. If it is too much, it may burn out the LED or if too little the LED may be very dim.
 
  • #11
Thanks for the suggestions guys they are very useful.

the_emi_guy thanks for the diagram, I really like the transistor method.
 

Similar threads

  • · Replies 49 ·
2
Replies
49
Views
4K
Replies
17
Views
3K
Replies
21
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 26 ·
Replies
26
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
688
  • · Replies 19 ·
Replies
19
Views
2K