| New Reply |
Power on/off bi-color led circuit? |
Share Thread | Thread Tools |
| Dec5-12, 05:29 PM | #1 |
|
|
Power on/off bi-color led circuit?
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.
|
| Dec6-12, 07:57 PM | #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) |
| Dec7-12, 02:59 PM | #3 |
|
|
Yes, thats 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.
|
| Dec7-12, 03:41 PM | #4 |
|
Mentor
|
Power on/off bi-color led circuit?http://en.wikipedia.org/wiki/Red-gre...olor_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...
|
| Dec8-12, 09:38 AM | #5 |
|
Recognitions:
|
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. 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. |
| Dec8-12, 11:31 PM | #6 |
|
Recognitions:
|
![]() 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. |
| Dec8-12, 11:42 PM | #7 |
|
Recognitions:
|
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).
|
| Dec10-12, 03:59 AM | #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. |
| New Reply |
| Thread Tools | |
Similar Threads for: Power on/off bi-color led circuit?
|
||||
| Thread | Forum | Replies | ||
| Questions about the gluons, their color and anti-color charges and charge of quarks | High Energy, Nuclear, Particle Physics | 15 | ||
| Power supply and power dissipated in a circuit | General Physics | 6 | ||
| Mathematica PlotStyle->{color,color,color} not working | Math & Science Software | 3 | ||
| Extraterrestrial sky color based on atmospheric composition and sun color | General Astronomy | 4 | ||
| RLC Circuit- Find average power in circuit | Introductory Physics Homework | 2 | ||