Cov txheej txheem:

ADC MCP3008 (Raspberry Pi): 4 Kauj Ruam
ADC MCP3008 (Raspberry Pi): 4 Kauj Ruam

Video: ADC MCP3008 (Raspberry Pi): 4 Kauj Ruam

Video: ADC MCP3008 (Raspberry Pi): 4 Kauj Ruam
Video: #RaspberryPi 4 Music Player w/ Analog Controls 2024, Kaum ib hlis
Anonim
ADC MCP3008 (Raspberry Pi)
ADC MCP3008 (Raspberry Pi)

Kev qhia yooj yim ntawm yuav teeb tsa Analog rau Digital Converter nrog Raspberry Pi.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov

RPI 3 -

4 Amp Power Adapter -

16GB micro SD -

120 pcs jumper cable:

Breadboard -

breadboard jumper cables:

mcp3008 chips:

(yeem) kov lub sensor:

Kauj ruam 2: Teeb

Teeb
Teeb

1. Pab kom SPI

"sudo raspi-teeb tsa"

xaiv cov kev xaiv cuam tshuam

siv SPI

2. Txheeb xyuas seb SPI puas tau qhib

"lsmod" -> yuav tsum pom qee yam zoo li spi_2835

3. Rub tawm Adafruit cov tsev qiv ntawv

git clone

cd Adafruit_Python_MCP3008

sudo python setup.py nruab

4. Kab lus 13-17 hauv simpletest.py

5. Kab tsis pom zoo 20-22 hauv simpletest.py

6. Khiav simpletest.py thiab tshuaj xyuas qhov tso tawm

Yog xav paub cov lus qhia ntxaws ntxiv:

Kauj ruam 3: Code

Code
Code

Adafruit Github:

Kauj Ruam 4: Cov Lus Qhia Ntxiv

Image
Image

Phau Ntawv Qhia Hauv Online:

Pom zoo: