Week 9
Pi Experiment ADC (Analog to Digital Chip) MCP3008 Datasheet for ZK8868 CH0 -7 The 8 channels you wish to measure relative voltage of. Max??? VDD (Voltage at the drain) Powers the chip 5V Max 7V VREF Voltage of the thing you are measuring 5V Max ???? AGND Analog ground. The Ground of the circuit you are measuring the voltage of CLK Clock Syncs the output of the chip with the input of the Pi DOUT Where the digital signal comes out DIN Used to load channel information to the chip. !CS/SHDN Used to turn on and off the chip (Normal convention is to show CS active low with a bar above but I could not get that using my blogging tool and css was going to far so I used the lesser known convention) DGND Used to connect to the digital inputs ground. What comes out of DOUT. A series of 1's and 0's which represent a number relative to the VRef max. MCP is a 10 bit output (depends on chip) if the CH0 voltage out is 5V and the VREF is 5V then the DOUT will be 1111111111...