YOU WILL NEED THIS BOARD

ADC Differential Pi
8 Channel 18-bit Differential Analogue to Digital converter development board for the Raspberry Pi
£13.59 ex VAT
C Library to use with ADC Differential Pi Raspberry Pi development board.
The example C programs can be found in /ABElectronics_C_Libraries/ADCDifferetialPi/demos
Downloading and Installing the library
To download to your Raspberry Pi type in the terminal:
git clone https://github.com/abelectronicsuk/ABElectronics_C_Libraries.git
Functions
read_raw(uint8_t address, uint8_t channel, uint8_t bitrate, uint8_t pga, uint8_t conversionmode)
Reads the raw value from the selected ADC channel
Parameter: (uint8_t) address - I2C address for the target device e.g. 0x68
Parameter: (uint8_t) channel - 1 to 4
Parameter: (uint8_t) bitrate - 12, 14, 16 or 18
Parameter: (uint8_t) pga - 1, 2, 4 or 8
Parameter: (uint8_t) conversionmode - 0 = one shot conversion, 1 = continuous conversion
Returns: (uint32_t) value from ADC buffer
read_voltage(uint8_t address, uint8_t channel, uint8_t bitrate, uint8_t pga, uint8_t conversionmode);
Reads the voltage from the selected ADC channel
Parameter: (uint8_t) address - I2C address for the target device e.g. 0x68
Parameter: (uint8_t) channel - 1 to 4
Parameter: (uint8_t) bitrate - 12, 14, 16 or 18
Parameter: (uint8_t) pga - 1, 2, 4 or 8
Parameter: (uint8_t) conversionmode - 0 = one shot conversion, 1 = continuous conversion
Returns: (double) voltage value from ADC
Also useful for your Raspberry Pi project
Temperature & Sensing
1 Wire Pi Plus
Connect dozens of 1-Wire sensors - temperature, iButtons, EEPROMs - via a single GPIO pin. Stacks directly on the 40-pin header.
Analogue I/O
ADC Pi
Read up to 8 analogue inputs - perfect for pairing with your temperature sensors or other analogue-output devices.
All-in-one
Expander Pi
Combines ADC, DAC, 32 GPIO ports and a real-time clock on one board. The most versatile board for complex Raspberry Pi projects.