This is an old revision of the document!
Raspberry Pi & Infrared Proximity Sensor
Work in progress
General
Components
- Sharp 2Y0A21F Infrared sensor
- MCP3008 ADC
- Breadboard, jumpers, etc.
Wiring
| RPi Pin # | Role | MCP3008 Pin # | Role | |||
|---|---|---|---|---|---|---|
| 1 | 3.3V | 16 | VDD | |||
| 1 | 3.3V | 15 | VREF | |||
| 6 | GND | 14 | AGND | |||
| 23 | SLCK | 13 | CLK | |||
| 21 | MISO | 12 | DOUT | |||
| 19 | MOSI | 11 | DIN | |||
| 24 | CE0 | 10 | CS/SHDN | |||
| 6 | GND | 9 | DGND |
