Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

28 lines (18 sloc) 2.61 KB

MCP3xxx family of Analog to Digital Converters

Note: Currently untested on the Mcp33xx family.

Some devices like the Raspberry Pi cannot read analog values directly so rely on analog to digital converters, like the ones available from Microchip in the Mcp3000, Mcp3200 and Mcp3300 ranges. These chips can be accessed as an SPI device or manually via raw GPIO pins.

You can use these converters in your project to access analog devices. The sample Reading Analog Input from a Potentiometer demonstrates a concrete example using the Mcp3008 class.

The following fritzing diagram illustrates one way to wire up the Mcp3008, with a Raspberry Pi and a potentiometer.

Raspberry Pi Breadboard diagram

These bindings support the following ADC's

  • Mcp3001 10 bit resolution with a single pseudo-differential input.

  • Mcp3002 10 bit resolution with two single ended inputs or a single pseudo-differential input.

  • Mcp3004 10 bit resolution with four single ended inputs or two single pseudo-differential inputs.

  • Mcp3008 10 bit resolution with eight single ended inputs or four single pseudo-differential inputs.

  • Mcp3201 12 bit resolution with a single pseudo-differential input.

  • Mcp3202 12 bit resolution with two single ended inputs or a single pseudo-differential input.

  • Mcp3204 12 bit resolution with four single ended inputs or two single pseudo-differential inputs.

  • Mcp3208 12 bit resolution with eight single ended inputs or four single pseudo-differential inputs.

  • Mcp3301 13 bit signed resolution with a single true differential input.

  • Mcp3202 12 bit resolution with four single ended inputs or 13 bit signed resolution with two true differential inputs.

  • Mcp3304 12 bit resolution with eight single ended inputs or 13 bit signed resolution with four true differential inputs.

You can’t perform that action at this time.