12V to PIC Input

Status
Not open for further replies.

Suraj143

Active Member
Hi I need to give 12V signal input & check if it is high or low.

This is the circuit I'm going to use.Is my values OK?
 

Attachments

  • 12V Input.PNG
    4 KB · Views: 219
Assuming you're intending it to be an attenuator?, the values are completely wrong.

However, as PIC inputs are almost all diode protected, a simple series resistor is all that's actually required - try a 15K or something like that, or two 15K's in the circuit you already have.
 

Similar value resisters will give half of the voltage that is 6V tooo much for the PIC.What about these values?Bottom resister 4.7K top one 10K??
 
Similar value resisters will give half of the voltage that is 6V tooo much for the PIC.What about these values?Bottom resister 4.7K top one 10K??

hi,
The internal parasitic diodes will take care of any moderate excess voltage.
If you wish, 15K in the top and 10K in bottom,,,, [10k/25k] *12 = 4.8V
 
Last edited:
I would use in addition an operational amplifier in not inverting configuration (voltage follower) to decouple the input.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…