Power on/off bi-color led circuit?

In summary, a bright red/green bi-color LED can be used as an idiot light to indicate when the safety circuit is open or closed. This is a simple and direct circuit, and does not require any additional switches or contacts. Bear in mind that a bi-color LED may give different apparent brightnesses for the same current, so adjust the resistors if necessary.
  • #1
SenorMoment
2
0
In a robotics project and need an indicator to show the operator when the safety circuit is open or closed. Got it done in software but need a physical idiot light. Thinking a bright red/green bi-color led. Have 24 vdc constant supply and a pin that sinks to ground (100mA max) just while the door is closed. Can only use the channel on the I/O connector (the pin) as the signal for the open/closed condition. No additional switches or contacts and KISS would be greatly appreciated.
 
Engineering news on Phys.org
  • #2
Welcome to PhysicsForums!

I don't know if I'm completely understanding the problem, but couldn't you just apply 24V to the LED cathode (choose one colour, unless you want both), put that in series with a suitable ballast resistor, and put the resistor in series with the I/O pin? The LED would turn on whenever the pin goes low.

If you want one colour on during one condition, and the other colour on during the other condition, this would only be possible if your bicolour LED has separate anode and cathode for both LEDs (they often have one tied together so the package has three pins instead of four)
 
  • #3
Yes, that's a simple and direct led circuit. I was trying to get fancy and have a single circuit be green while pulled down by the I/O and red while "open". Remembered just enough to get lost in a reversed bias transistor circuit.
 
  • #4
SenorMoment said:
In a robotics project and need an indicator to show the operator when the safety circuit is open or closed. Got it done in software but need a physical idiot light. Thinking a bright red/green bi-color led. Have 24 vdc constant supply and a pin that sinks to ground (100mA max) just while the door is closed. Can only use the channel on the I/O connector (the pin) as the signal for the open/closed condition. No additional switches or contacts and KISS would be greatly appreciated.

Hmm. What if the operator looking at this safety circuit is red-green colorblind?

http://en.wikipedia.org/wiki/Red-green_colorblind#Red.E2.80.93green_color_blindness

For jellybean applications, bi-color LEDs are fine. But for a safety application, you should consider separating the 2 LEDs spatially, to accommodate such potential operators.

There's a reason that traffic lights still use 3 separate lights for red-yellow-green... :smile:
 
  • #5
Here is a circuit to use two LEDs either as individual devices or in a package where each of the LED cathodes are joined together.

A high input (in this case, +5 Volts) turns ON the left LED and turns off the one on the right. A LOW input does the opposite.

http://dl.dropbox.com/u/4222062/LEDs.PNG

Bicolor LEDs sometimes give different apparent brightnesses for the same current and they also give different voltage drops for the same current, so the 220 ohm resistors may need to be adjusted.
In this circuit, both LEDs get about 10 mA.

EDIT: diagram modified for reduced current drain on input signal.
 
Last edited by a moderator:
  • #6
berkeman said:
Hmm. What if the operator looking at this safety circuit is red-green colorblind?
Good thinking! :smile:

If he really desired a single indicator, and safety was not involved, say, just some indication of STANDBY/ACTIVE status, then perhaps a blinking red and a steady green would serve the purpose.
 
  • #7
SenorMoment said:
In a robotics project and need an indicator to show the operator when the safety circuit is open or closed. Got it done in software but need a physical idiot light. Thinking a bright red/green bi-color led. Have 24 vdc constant supply and a pin that sinks to ground (100mA max) just while the door is closed. Can only use the channel on the I/O connector (the pin) as the signal for the open/closed condition. No additional switches or contacts and KISS would be greatly appreciated.
In principle it can be done using 3 resistors, but is wasteful of current. Instead, the arrangement below is almost as simple and is more economical with current. A 2 pin bi-colour red-green LED connected between the X-X points will have 18mA in one direction or the other. The 4.7 volt zener diode can be a low power zener, 400 mW will do, otherwise 1 W.

The assumption I used is that your I/O pin can sink current (approx 45mA in this case), but does not source current (i.e., on HIGH it's an open circuit).

Bear in mind the caution given by Berkeman regarding a composite R-G indicator being inherently unsafe. (pun intended). :wink:
 

Attachments

  • bicolour.png
    bicolour.png
    1.5 KB · Views: 783
Last edited:
  • #8
If this is about safety (outside of a purely experimental setting) you better check the codes and regulations applicable. Probably there are a lot of them.
You will find that there are standard circuits designed to comply with the codes. Just find out and use them.
Don´t try to cut costs or to reinvent the wheel. You even might be liable for damages and injuries.
 

1. How does a power on/off bi-color LED circuit work?

A power on/off bi-color LED circuit works by using two different colors of LEDs (typically red and green) connected in parallel, with a switch or transistor controlling which LED is illuminated. When the switch is in one position, the red LED is connected to the power source and lights up. When the switch is flipped, the connection is broken and the green LED is connected, causing it to light up instead.

2. What is the purpose of a power on/off bi-color LED circuit?

The purpose of a power on/off bi-color LED circuit is to easily and visibly indicate the on/off status of a device or circuit. By using two different colored LEDs, it is clear to the user whether the device is on or off at a glance, without needing to check any other indicators.

3. Can a power on/off bi-color LED circuit be used with any type of LED?

Yes, a power on/off bi-color LED circuit can be used with any type of LED, as long as the voltage and current requirements of the LEDs are compatible with the circuit. However, it is important to note that using LEDs of different colors may require different resistors to achieve the desired brightness.

4. How do you calculate the appropriate resistors for a power on/off bi-color LED circuit?

The appropriate resistors for a power on/off bi-color LED circuit can be calculated using Ohm's Law, which states that V=IR, where V is voltage, I is current, and R is resistance. By knowing the voltage and current of the LEDs and the power source, the appropriate resistors can be selected to limit the current and prevent damage to the LEDs.

5. Are there any safety considerations when using a power on/off bi-color LED circuit?

Yes, there are a few safety considerations to keep in mind when using a power on/off bi-color LED circuit. First, make sure to use appropriate resistors to limit the current and prevent damage to the LEDs. Additionally, be aware of any potential electrical hazards when working with power sources and make sure to follow proper safety precautions. Finally, always double check your circuit and connections before turning on the power to avoid any potential short circuits or other issues.

Similar threads

  • Electrical Engineering
Replies
5
Views
2K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
26
Views
2K
Replies
11
Views
2K
  • Electrical Engineering
Replies
8
Views
2K
Replies
12
Views
2K
Replies
4
Views
1K
  • Electrical Engineering
Replies
14
Views
2K
Replies
21
Views
2K
Replies
2
Views
2K
Back
Top