Справочник Пользователя для Raspberry Pi ® rb-LK-SET Mini PC ARM1176JZFS (1x 700 MHz) 512 MB rb-LK-SET
![Raspberry Pi](https://files.manualsbrain.com/attachments/88b306af55a5211e955fd8ec786b0e74e0178c0f/common/fit/150/50/96aeacf1429c7f1df31063f916723a912fe18f9df94021b2f6093695e8ce/brand_logo.gif)
Модели
rb-LK-SET
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:
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:
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".
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):