5

I'm trying to read a -10 to +10V analog signal on my Arduino Mega (2560). I've been using a voltage divider to obtain a -5V to +5V signal (with two 10kOhm resistors), which used to work just fine. I'm wondering if this -5V signal can damage the Analog Input pins of the Mega ?

Thank you in advance for your time !

asked Sep 22, 2016 at 14:19
1
  • I'm sorry, but what type of reading would you like to obtain from that signal?Because you'll not be able to read anything negative... Commented Sep 22, 2016 at 17:36

2 Answers 2

3

All the IO pins contain a pair of clamping diodes to protect against over-voltage and negative-voltage situations:

enter image description here

As long as the current flowing through one of those diodes doesn't exceed its maximum forward current all will be well and the Arduino won't be damaged. If too much current flows then you will damage the pin.

Since you have 10KΩ resistors, at -5V the maximum current that could flow (assuming a 0.7V drop on the diode) would be (-5 + 0.7) / (10,000 / 2) = -860μA (negative because it's flowing backwards out of the pin from ground to your negative voltage source, not into the pin to ground).

Unfortunately the datasheet doesn't provide a current limit specification for those diodes, but I would expect such a small amount of current to be safe enough.

answered Sep 22, 2016 at 14:30
1
  • It’s 860 µA. See my comments to KIIV’s answer. Commented Sep 22, 2016 at 14:59
1

Current through the clamping diodes shouldn't be more than 1mA according to Atmel's Zero Cross Detection Application Note (AVR182).

EDIT: As Edgar Bonet pointed out you have current about (-5+0.5)/(10000/2) = 0.9mA (tested) in the worst case, there is not much space for mistakes.

answered Sep 22, 2016 at 14:30
4
  • +1 for finding that important spec buried inside an obscure application note. Commented Sep 22, 2016 at 14:47
  • Well, it wasn't me: Max current for AVR IO protection diodes on AVRFreaks. I've seen that thread before so it wasn't so hard. Commented Sep 22, 2016 at 14:54
  • It should be noted that the voltage divider is Thévenin equivalent to a ±5 V source with 5 kΩ output resistance. Thus the max current is (5 V − 0.7 V) ÷ 5 kΩ = 0.86 mA. This is assuming a 0.7 V drop in the diode. Commented Sep 22, 2016 at 14:56
  • 2
    The pin might not be damaged, but he will never read anything on the negative side of the signal.... Commented Sep 22, 2016 at 17:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.