Tension on shutted down gpio

Hi all, I have 4 Arduino linked together, sometime one of this can be power off but on its gpio can be a voltage that come from other Arduino. This can damage the chip. So I must to isolate all the digital input with optocoupler, but i don't know what is the best solution for the analog input, can you help me?

Why do yo have four Arduinos linked together?
How are they linked together?

but i don't know what is the best solution for the analog input, can you help me?

Well try and find a way round having to do this but if you must then you need an opto isolator with two receivers. You used the second one as feedback to an op amp to compensate for the non linearity of the opto.

Alternatively there are linear opto isolators:-
http://uk.farnell.com/avago-technologies/hcpl-7510-000e/op-amp-isolation-ic/dp/1085055
It can be complex depending on how linear you want it to be.
http://www.ti.com.cn/general/cn/docs/lit/getliterature.tsp?literatureNumber=sbos129&fileType=pdf

This can damage the chip.

It can, but that doesn't mean that it will.

So I must to isolate all the digital input with optocoupler, but i don't know what is the best solution for the analog input,

You don't have to isolate. But if you do isolate, the best solution will depend on your application, your parts availability, your tolerance for complexity, your bank account, etc.

can you help me?

Sure but not enough to go on.

Like they said above, you my be able to get away with something simple like a 1k resistor protecing the pin insted of optocoupling

Yes, I would give simple series resistors a shot. However I'm not sure 1K is the right value, you want to prevent current in excess of what the clamping protection diodes are rated for. I suspect 10K or more is more suitable, maybe more? The datasheet should give clamping diode ratings somewhere I would think?

Lefty

Those diodes are rated 20ma. It would take over 200v to kill those diodes + 10k resistor.

Not to mention the low-pass filtered you got there.

The protection diodes are rated at 0.5V max forward bias - that's rather less that 20mA I think - or have I missed the right part of the specs?

Actually specifying the voltage is a rather poor way of doing this as forward voltage varies significantly across the operating temperature range.

Yeah they make good thermometers, easy to calibrate but do require a 2 point cal for <5% accuracy.

Bob

as forward voltage varies significantly across the operating temperature range.

-2mv/c, pretty much.

How many degrees of temperature do you consider "significant"?

MarkT:
The protection diodes are rated at 0.5V max forward bias - that's rather less that 20mA I think - or have I missed the right part of the specs?

Vf and Imax are two different specification for the internal clamping diodes. The first tells when it starts to conduct, the second how much current can conduct before damage.

Actually specifying the voltage is a rather poor way of doing this as forward voltage varies significantly across the operating temperature range.

Yea, the Vf spec is of just passing interest, we know that a 5 volt signal will fully turn on the positive clamping protection diode on a input digital pin on a 3.3 volt powered board, what we want to know is how much continous current the diode can withstand, that is the datasheet spec of interest.
Lefty

So can I protect the analog input only with something such as 10K series resistor? If true is a very good info. In alternative i think to use analog switch but i need something that when is power off go in hight impedance. Do you know some ic like this?

Many things can be protected with a large resistor - so long as no appreciable current flow is needed. A digital input in normal operation takes < 1uA so even a 1M resistor would allow it to function (but much slower than normal - 10k is more reasonable a compromise).

And is also ok for and analog input?

For an analog input don't go any higher than a 10k resistor but it should work to protect it the same, if you go higher it will negatively affect how fast you can do an analog read, in the datasheet it says best with source impedance <10k ohms

retrolefty:
Yea, the Vf spec is of just passing interest, we know that a 5 volt signal will fully turn on the positive clamping protection diode on a input digital pin on a 3.3 volt powered board, what we want to know is how much continous current the diode can withstand, that is the datasheet spec of interest.

It seems as if Atmel is a bit candid about this limitation. There is an AVR application note on zero crossing however, where they use a digital pin directly connected to mains. In this note, maximum continues forward current is quoted as 1mA. The relevant text reads as follows:

The series input resistor is a 1 M? resistor. It is not recommended that the clamping
diodes are conducting more than maximum 1 mA and 1 M? will then allow a maximum
voltage of approximately 1,000V.

Any voltage higher than 1,000V would probably be spikes or surges. The clamping
diodes are able to handle spikes for a short period of time but not surges. The application
note will not go into how to protect against surges, but simply recommend
implementing protection against surges in the design.

BenF:

retrolefty:
Yea, the Vf spec is of just passing interest, we know that a 5 volt signal will fully turn on the positive clamping protection diode on a input digital pin on a 3.3 volt powered board, what we want to know is how much continous current the diode can withstand, that is the datasheet spec of interest.

It seems as if Atmel is a bit candid about this limitation. There is an AVR application note on zero crossing however, where they use a digital pin directly connected to mains. In this note, maximum continues forward current is quoted as 1mA. The relevant text reads as follows:

The series input resistor is a 1 M? resistor. It is not recommended that the clamping
diodes are conducting more than maximum 1 mA and 1 M? will then allow a maximum
voltage of approximately 1,000V.

Yes, that 1ma maximum recommended continuous current rings a bell. So for a 5 volt signal wired to a 3.3 volt input pin, 1700 ohms or more series current limiting resistor should be OK.
Lefty

Any voltage higher than 1,000V would probably be spikes or surges. The clamping
diodes are able to handle spikes for a short period of time but not surges. The application
note will not go into how to protect against surges, but simply recommend
implementing protection against surges in the design.