Raspberry Pi LK-Base-RB Mini PC LK-Base-RB User Manual

Product codes
LK-Base-RB
Page of 3
 
Schematics  
 
  
Tutorial  
 
  
  
The ADC chip used on this base shield is MCP3004 (10 bit resolution, 4 channels, SPI 
interface). In the following, we are going to cover how to use Python to read the ADC output:  
As we use SPI communication, we need to enable SPI module in kernel. To do that, we can 
edit the blacklist of kernel, and enable spi:  
sudo vi /etc/modprobe.d/raspi-blacklist.conf 
 
Locate the line begins with "blacklist spi-bcm2708" and change it to "#blacklist spi-
bcm2708".  
After this, we can check the module by "lsmod", and observe the following content:  
Module Size Used by spi_bcm2708 4421 0 
 
 
Now we will install python-pip (pip is a package used to install and manage python software 
package, and it is used replace esay_install):