Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • The current will want to flow through D1 to the 5V rail? What? The voltage to be sampled needs to be between 0 and VCC (5V). If it's lower than 5V, won't D1 be reverse-biased and the potential will be applied to the ADC (which is a capacitor, if I remember correctly) Commented Jun 23, 2020 at 17:38
  • I thought that as long as you stayed within your voltage limits, the ADC was a capacitive input? Commented Jun 23, 2020 at 17:39
  • Oh, I see. I read the OPs question more carefully. He's looking to avoid destroying the input if the ground side of his voltage divider is left open and he pumps 12V into the pin. Yeah, wouldn't a 5V zener diode we the way to go? Commented Jun 23, 2020 at 17:42
  • @DuncanC Belt and braces. Keep the current < 1mA and add the zener. If one fails the other protects. Commented Jun 23, 2020 at 20:01