system
February 10, 2014, 4:06pm
1
I have a question about the MCP342X library found here:https://github.com/stevemarple/MCP342x/blob/master/MCP342x.cpp
It is a library to interface the Arduino with a separate ADC the MCP342X by microchip.
The library spits out a "value" which is the ADC representation of the voltage.
What I would like to know is what value this is referenced to and how to convert this value to a voltage.
I hope someone here has experience with this library and could help me out.
system
February 10, 2014, 5:16pm
2
The MCP3424 is a four channel low-noise, high accuracy delta-sigma A/D converter with differential inputs and up to 18 bits of resolution. The on-board precision 2.048V reference voltage enables an input range of ±2.048V differentially.
So, there are a range of values (from 0 to 2 to the 18th) that the chip returns, that correspond to 0 to 2.048V
system
February 10, 2014, 7:37pm
3
Thanks Paul, just wanted to confirm.
Follow up question:
The chip also has a gain amplifier. When converting my value to a voltage, do I also need to divide by the gain amount?
The on-board precision 2.048V reference voltage enables an input range of ±2.048V differentially.
it maps -2.048V ... +2.048V on 0 .. ±217 ...
details see - http://ww1.microchip.com/downloads/en/DeviceDoc/22088c.pdf - >> page 15 >> table 4.2
system
February 10, 2014, 9:03pm
5
So i do not need to account for the gain when calculating the voltage?
camdenl:
Thanks Paul, just wanted to confirm.
Follow up question:
The chip also has a gain amplifier. When converting my value to a voltage, do I also need to divide by the gain amount?
yes, you can easily verify that with a test sketch.