Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

In the Circuit shown below, I am trying to achieve the following (I know my circuit is not correct, it is an attempt).

Problem: WHen INPUT_N = 0V, the input to the microcontroller does not go low.

INPUT_N is at 12V when inactive and needs to be sensed using a microcontroller running on 3.3V.

Question: If I remove the Diode, there will be leakage from the 12V rail (i.e. INPUT_N when inactive) to the 3.3V rail right???

What would be a good way to isolate these two?

A Proposal of the circuit for the question

share|improve this question
1  
Please specify values for R1 and R2. Depending on these values, the voltage at the junction could be higher (so the diode always conducts when input is inactive) or lower (diode never conducts, input is disconnected from MCU) than 3.3 Volts. – Anindo Ghosh Mar 6 at 8:24
One other thing that might be worth adding to the question to be sure is what the 12V is connected to. If something like monitoring a motor or as part of an automotive system you may see much larger voltages spikes. – PeterJ Mar 6 at 9:15

1 Answer

Remove the connection to 3.3V and simply connect the 12V input to a voltage divider to feed the 3.3V input. For example, 12V input to 9K ohm resistor to 3K ohm resistor to ground. Connect the micro's input to the junction of the two resistors. When the input is 12V, the micro will see 3V (assuming that the impedance of the micro's input is large enough to not disturb the divider).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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