Here’s the revised Analog Plug (AP2):
Still the MCP3424, i.e. from 12- to 18-bit (!) resolution, depending on configuration, supporting 4 differential inputs with an input range of -2.048V to +2.048V. The plug is I2C based and can be daisy-chained with other I2C plugs on the same port.
Here’s a hookup to measure the voltage of a NiCd battery:
Note: I did not forget the solder jumpers. With this chip, floating inputs are ok. The I2C address is 0x68 (which is actually not such a good choice because it conflicts with the RTC plug).
The following code turns the JeeNode into a 4.5’ish-digit voltmeter:
And here is the sample output:
Is it precise? You bet.
Is it accurate? Well, my multimeter says 1.265…