LED indicator for DC socket. Some problem.

Started by nguitar12, May 16, 2017, 11:55:09 AM

Previous topic - Next topic

nguitar12



Here is what I came up with so far. This circuit will turn off the LED when DC socket is plugged. How can I make the LED response reversely (like turn on when DC socket is plugged)? Thanks

antonis

#1
http://www.diystompboxes.com/smfforum/index.php?topic=113132.msg1046268#msg1046268

Use switch 2 & 3 to effectivelly short-circuit the LED when unplugged..
(Anode to 3 & Cathode to 2)
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

Digital Larry

Quote from: antonis on May 16, 2017, 12:03:46 PM
Use switch 2 & 3 to effectivelly short-circuit the LED when unplugged..
(Anode to 3 & Cathode to 2)
It'll work but also will drain current from the battery for no particularly good reason.
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

antonis

Quote from: Digital Larry on May 16, 2017, 02:15:45 PM
Quote from: antonis on May 16, 2017, 12:03:46 PM
Use switch 2 & 3 to effectivelly short-circuit the LED when unplugged..
(Anode to 3 & Cathode to 2)
It'll work but also will drain current from the battery for no particularly good reason.
That's up to OP...

If it works with battery supply, he may use a P-N-P arrangement like the one in above attachement..
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

nguitar12

Quote from: antonis on May 16, 2017, 02:21:27 PM
That's up to OP...

If it works with battery supply, he may use a P-N-P arrangement like the one in above attachement..

I just tried the second approach, no pnp version. It does work but the resistor get extremely hot. It is normal?

thermionix

I don't know how you actually wired it, but your diagram shows the external power charging the battery.  Not good.

nguitar12

Quote from: thermionix on May 17, 2017, 04:17:35 AM
I don't know how you actually wired it, but your diagram shows the external power charging the battery.  Not good.

Sorry, no battery there. Just to show the pin voltage. It is a PSU circuit.

antonis

Quote from: nguitar12 on May 16, 2017, 10:35:16 PM
I just tried the second approach, no pnp version. It does work but the resistor get extremely hot. It is normal?
It depends on the current..

For an about 2 volt difference across the resistor between led switched off and on (9 - 7) you shouldn't notice any remarkable temperature elevation..

If the resistor gets also hot when the LED is On then, probably, it's "wattage" is undersized..
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..