Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| composants:rpi_proxi_sensor [2020/06/22 21:27] – [Wiring] mh | composants:rpi_proxi_sensor [2025/06/02 21:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== Components ==== | ==== Components ==== | ||
| - | *Sharp 2Y0A21F Infrared sensor | + | *[[composants: |
| - | *MCP3008 ADC | + | *[[composants: |
| + | *Raspberry Pi - any model | ||
| *Breadboard, | *Breadboard, | ||
| Line 15: | Line 16: | ||
| {{composants: | {{composants: | ||
| - | | RPi Pin # ^ Role ^ MCP3008 Pin # | + | <WRAP 50%> |
| - | | 1 | 3.3V | 16 | VDD | | + | |^ RPi Pin #^ ^Role ^ MCP3008 Pin # |
| - | | 1 | 3.3V | 15 | VREF | | + | | 1| |3.3V| 16| |
| - | | 6 | GND | 14 | AGND | | + | | 1| |3.3V | 15| |
| - | | | + | | 6| |GND | 14| |
| - | | 21 | MISO | 12 | DOUT | | + | | |
| - | | | + | | 21| |GPIO 9 (MISO) |
| - | | 24 | CE0 | 10 | CS/ | + | | |
| - | | 6 | GND | 9 | DGND | | + | | 24| |GPIO 8 (CE0) |
| + | | 6| |GND | 9| | ||
| + | </ | ||
| + | There are two different wirings, this one is for hardware SPI. Another one is used for software SPI | ||
| + | {{composants: | ||
| + | |||
| + | ===== Steps ===== | ||
| + | |||
| + | *Installed raspbian | ||
| + | *Activated SPI in raspi-config | ||
| + | *wired a MCP3008 and a sharp IR module to the GPIO pins | ||
| + | *followed tuto on python but did not get data from module (read 0.00) | ||
| + | *rewired to software SPI (needs documenting) | ||
| + | *installed rust in tty with lightdm stopped | ||
| + | <code bash> | ||
| + | curl --proto ' | ||
| + | </ | ||
| + | *reboot to activate rust | ||
| + | * | ||
| ===== Ressources ===== | ===== Ressources ===== | ||
| *[[https:// | *[[https:// | ||