MCP3008 Setup
Connections
|
CH<number> pins get connected to the AnalogOUT of the analog circuits
Analog Circuits
Force-sensitive Resistor
Photocell
Potentiometer (Variable Resistor)
Running SPI Sample
First build the dio-spi.jar file:
Then copy ../../build/jar/dio-spi.jar to the board. | (On the Pi)
Note that these are the current values in the repo which reflect a recent update. Older dio.peprties versions will not work.
Note that "12" is the device manager ID number of the SPIDevice in the example property line shown above. "4" selects the channel on the MPC3008. You should use the channel number connected to the analog circuit you're trying to read. |