Nusbio's Analog Extension. 8 10Bits Analog To Digital Converters.
Special headers to plug light and temperature sensors.
Nusbio's Analog Extension. 8 10Bits Analog To Digital Converters.
How to wire the 8 Analog To Digital Converters MCP3008 chip on a breadboard.
How to wire the 8 Analog To Digital Converters MCP3008 chip on a breadboard.

Overview

An analog to digital converter (ADC), convert a voltage into a digital value (integer) between 0 and ((2 power x)-1).
If the ADC is a 10 bits converter, the integer range will be between 0 and 1023. If the ADC is a 16 bits converter, the integer range will be between 0 and 65535.

ADC are used to connect components that only have analog output (voltage), like an analog ligth sensor (Photo cell, CdS photoresistor) or an analog temperature sensor like the TMP36.



  • The TMP36 is a cheap analog sensor with an accuracy of +/- 3 degree Celcius. For precise temperature sensor see chip MCP9808 )

Demo

Source Code:

We tested the MCP3008 which offers 8 10 bits analog to digital converters. The MCP3008 uses the SPI protocol.


Breadboarding the MCP3008

  • VDD and VREF to Nusbio's VCC
  • AGND and DGND to Nusbio's GND
  • CLK to Nusbio's gpio 0
  • DOUT (MISO) to Nusbio's gpio 2
  • DIN (MOSI) to Nusbio's gpio 1
  • CS (SELECT) to Nusbio's gpio 3


Remarks about the DHTXX sensors familiy

The temperature/humidity sensors DHT11 and DHT22 are not analog sensors and use a special digital protocol that is not supported by Nusbio.