Analog to Digital Converter

Piunora has an on-board analog to digital converter (ADC) so you can read analog voltages in f.e. Python (see the Getting to Blinky guide) and other programming languages. It is connected via a dedicated SPI bus.

The ADC is a MCP3008 and is connected to the CM4 in the following way:

  • SPI bus #5
  • MOSI/DIN: GPIO14
  • MISO/DOUT: GPIO13
  • SCLK/CLK: GPIO15
  • CS/SHDN: GPIO24

You can use the Blinka/Python example we provide (see Getting to Blinky guide) or use a different programming language. There are drivers for:

and many more!

Last modified December 2, 2021