3
\$\begingroup\$

I'm trying to turn on an LED using an NPN transistor as a switch. The catch is, the LED is at the end of a BNC cable, and in my current design, both the outer and inner BNC conductors are normally at 5V when the LED is off. This is inconvenient, because the outer BNC conductor is exposed at the connector and can get shorted to other stuff lying around, so I've had to cover it with electrical tape.

Here's a simplified diagram of my setup:

enter image description here

I thought about moving the LED part of the circuit to the emitter of the transistor instead of the collector, so the BNC conductors would both be grounded normally, but I believe the logic level required to activate the transistor would increase, and I'd need to step up the digital out voltage (please correct me if I'm wrong!)

I can think of three options:

  1. Figure out a better circuit that keeps the LED- pin grounded at all times
  2. Continue wrapping the BNC connector in electrical tape
  3. Get a different connector that isn't BNC where there are no exposed conductors.

I'd prefer option #1, but I'm not sure how to do it - any ideas?

I know this isn't the usual use case for BNC connectors, but it was the best thing I had lying around for the prototype. It seems like there should be a simple way to do this so the negative LED pin is always grounded.

Edit: My digital out is 0-3.3V, and Vcc is around 5.2V

\$\endgroup\$
2
  • \$\begingroup\$ Can you edit to tell us what voltage "Digital Out" is when high? 5 V or 3.3 V? Also confirm that Vcc is 5 V. If both are 5 V then the solution is simple. \$\endgroup\$
    – Transistor
    Commented Aug 2, 2021 at 18:51
  • \$\begingroup\$ I've edited to include that info, thanks! \$\endgroup\$
    – Brionius
    Commented Aug 2, 2021 at 18:57

1 Answer 1

5
\$\begingroup\$

Use a high side switch, that way the cable will only be energized when the LED is lit, use the outer connector as ground to the LED and the inner conductor for the postive voltage to the LED. P channel mosfets would be best as they are low loss, but you could use either a FET or BJT (PNP) transistor.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
2
  • \$\begingroup\$ Thanks, this is perfect. I use the 2N3904 for everything, because it's what I ordered a bunch of a while back. Sometimes I forget that other kinds of transistors exist :) \$\endgroup\$
    – Brionius
    Commented Aug 2, 2021 at 18:58
  • \$\begingroup\$ I ran into this problem (with not wanting to have a cable 'lit up' to a positive voltage) just the other day so it was fresh on my mind. \$\endgroup\$
    – Voltage Spike
    Commented Aug 2, 2021 at 18:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.