I wish to make a voltage sensing circuit (range -15V to +15V) using an Arduino's ADC. The problem is that since this circuit will be part of a much larger circuit in which the Arduino is performing many other functions as well, the circuit needs to work both when the Ground of the Arduino and the Ground of the circuit whose voltage is to be sensed are shorted, and when they are not. I do have a waveshaping circuit which works when the grounds are shorted together. Please suggest some circuit or any other way I could approach this problem. The two circuits I have designed can be found at: !(http://imgur.com/lv0UKya) !(http://imgur.com/ISq9ou8)
the circuit needs to work both when the Ground of the Arduino and the Ground of the circuit whose voltage is to be sensed are shorted, and when they are not.
I read the above and the only sensible way to achieve this is to design an isolating circuit maybe like this: -
However, given you want a digital number representing your analogue value inside the Arduino I would go for your Arduino controlling an ADC that is isolated via an isolating SPI interface such as: -
The ADuM5401 is key because it also supplies power to the ADC chip. The ADC chip above is typically an AD77xx type device that comes in several flavours from ADI.