Table of Contents

Raspberry Pi & Infrared Proximity Sensor

Work in progress

General

Components

Wiring

RPi Pin # Role MCP3008 Pin # Role
1 3.3V 16 VDD
1 3.3V 15 VREF
6 GND 14 AGND
19 GPIO 10 (MOSI) 11 DIN
21 GPIO 9 (MISO) 12 DOUT
23 GPIO 11 (SLCK) 13 CLK
24 GPIO 8 (CE0) 10 CS/SHDN
6 GND 9 DGND

There are two different wirings, this one is for hardware SPI. Another one is used for software SPI

mcp3008pin.jpg

Steps

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Ressources