Difference between revisions of "ADC (MCP3002) + Raspberry Pi 2"

From ESE205 Wiki
Jump to navigation Jump to search
(Created page with "#'''Locate SPI pins on the Raspberry Pi''' - For this 8 pin ADC you will require the MOSI, MISO, and SCLK pins for timing and general communication between the ADC and Pi boar...")
 
Line 3: Line 3:
 
#'''Wire up analog input''' - To read analog data through the ADC you have to connect CH0 to your analog source. We only used CH0 so we connected CH1 to the ground as to not confuse data. For the analog photocell input we built a voltage divider to pull up the analog signal when receiving light. We matched the resistance of the voltage divider with the theoretical minimum voltage of the photocell.
 
#'''Wire up analog input''' - To read analog data through the ADC you have to connect CH0 to your analog source. We only used CH0 so we connected CH1 to the ground as to not confuse data. For the analog photocell input we built a voltage divider to pull up the analog signal when receiving light. We matched the resistance of the voltage divider with the theoretical minimum voltage of the photocell.
 
#'''Connecting to the board''' -  Finally you connect the ADC to the Raspberry Pi from the CS pin to the CS0 serial peripheral pin on the Raspberry Pi board.
 
#'''Connecting to the board''' -  Finally you connect the ADC to the Raspberry Pi from the CS pin to the CS0 serial peripheral pin on the Raspberry Pi board.
 +
 +
 +
[[Category:HowTos]]

Revision as of 22:22, 3 May 2016

  1. Locate SPI pins on the Raspberry Pi - For this 8 pin ADC you will require the MOSI, MISO, and SCLK pins for timing and general communication between the ADC and Pi board. Follow the diagram to connect correctly to the board.
  2. Hook up to power - Then you can hook up the voltage to a 3.3V pin and the ground to a GND pin for general power.
  3. Wire up analog input - To read analog data through the ADC you have to connect CH0 to your analog source. We only used CH0 so we connected CH1 to the ground as to not confuse data. For the analog photocell input we built a voltage divider to pull up the analog signal when receiving light. We matched the resistance of the voltage divider with the theoretical minimum voltage of the photocell.
  4. Connecting to the board - Finally you connect the ADC to the Raspberry Pi from the CS pin to the CS0 serial peripheral pin on the Raspberry Pi board.