August 30, 2016
I’m very pleased to show off our latest Raspberry Pi Zero add-on boards.
The board in the top of the picture is PIOO UserP0rt which features a 16-ch port expander and 8-ch ADC using the MCP23S17 and MCP3008 ic’s.
While the board in the bottom of the picture is PIIO ADC16 which is a 16-ch ADC board and features 2x MCP3008 ADC’s (each 8-ch, 10-bit).
You’ll find them on our Tindie store real soon.
March 28, 2014
The latest version of raspi-config allows you to enable the SPI drivers without having to edit raspi-blacklist.conf file yourself.
In LXTerminal start raspi-config by type:
Select the advance menu option and chose enable SPI devices. Exit the menu and reboot your Pi.
We’ll program our example in Python, so we’ll start by downloading the SPIdev driver library.
We can use Python Installer to get install it:
sudo pip install spidev
A quick python example is shown below:
# ADC Channel
ADCCHAN = 1
# Open SPI, use Chip Select 0
spi = spidev.SpiDev()
adc = spi.xfer2([1,(8+ADCCHAN)<<4,0])
data = ((adc&3) << 8) + adc
print ('ADC CH1 =', data)
The MiniPIIO Uses a Microchip MCP3004 (or MCP3204) which are from the same ADC familily as the MCP3008
You can find the MiniPIIO AIN4 at our Tindie store: