Skip to main content

Configuring A/D Converter MPC3008

Requirement: Special hardware is connected via SPI.

The MCP3008_Temperature.project project contains an application which reads an analog temperature sensor (LM35) connected to an A/D converter chip (MCP3008) via SPI. The MCP3008 can evaluate 8 analog channels, but in this example only one is used.

Test configuration:

_rbp_projected_mpc3008.png

The SPI_MCP3008 library, which enables the connection, is available to them as source code. It can be used as an example for other connections.

The Raspberry Pi Peripherals library is the basis for communication via SPI. Their interfaces are documented both in the help and in the Library Manager.