Hi,
yes, I know, there are many topics on common ground. Couldn't find a proper answer though to my particular problem which is kind of a more general one. Say I have a circuit like this:
now, if U0 is bigger than 5V - say 8V for example - I would think that I need to plug a resistor into the signal line. However, that's where my problem lies. Which one? For that it would be useful to know what kind of resistance is on the Arduino input side. I know from documentation that a digital I/O pin can provide 40mA max which would correspond to 125 Ohms. Also that there are pull-up resistors. But here it is an input signal which I guess "delivers" the current from the power source U0. For instance, I have a flow meter which I measure (without Arduino) 30 Ohms at 0.005V if there is a signal and a high resistance (not measurable) at 8V (=U0) if there is none. I suppose in that particular case (because of the high resistance) no additional resistor on the signal line is necessary. However, if the resistance would be (for whatever reason) something like 40 Ohms at 8V that would be about 200mA on the I/O pin of the Arduino. So I would need to plug a 160 Ohms resistor into the signal line to limit the current to 40mA, right? Or will the I/O pin of the Arduino adapt to the high current and increase its resistance automatically? And if so, to what value (say for the UNO for example)? Plus, can I ignore the voltage between the negative terminal of the device and the signal cable as long as the resistance of the device limits the current to 40mA or rather the power to 0.2W (e.g. 5V x 40mA = 8V x 25mA)?