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:
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:
- Figure out a better circuit that keeps the LED- pin grounded at all times
- Continue wrapping the BNC connector in electrical tape
- 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.
Thanks!
Edit: My digital out is 0-3.3V, and Vcc is around 5.2V