I have a microcontroller, TTL logic that expects its input to be connected to the ground via a brake lever to tell the microcontroller that the brake has been applied. I believe it uses an internal pull-up resistor as measuring the voltage on the input shows 5 V.
Currently my brake lever is connected to a ~12-13.8 V system that runs to brake lights.
How can I intergrate the two circuits together so that the brake lever lights the brake lights, as well as informs the microcontroller that the brake lever has been pressed? I feel like this circuit would do the job:
- Would this be an ideal circuit and if not what would be better?
- What would be good resistor values and transistor to minimise power usage from the 12 V circuit?