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:33] – [Components] mh | composants:rpi_proxi_sensor [2020/06/23 20:32] (current) – [Steps] mh | ||
---|---|---|---|
Line 16: | Line 16: | ||
{{composants: | {{composants: | ||
- | < | + | < |
|^ RPi Pin #^ | |^ RPi Pin #^ | ||
| 1| |3.3V| | | 1| |3.3V| | ||
| 1| |3.3V | 15| |VREF | | | 1| |3.3V | 15| |VREF | | ||
| 6| |GND | 14| |AGND | | | 6| |GND | 14| |AGND | | ||
- | | | + | | |
- | | 21| |MISO | 12| |DOUT | | + | | 21| |GPIO 9 (MISO) |
- | | | + | | |
- | | 24| |CE0 | 10| |CS/ | + | | 24| |GPIO 8 (CE0) |
| 6| |GND | 9| |DGND | | | 6| |GND | 9| |DGND | | ||
</ | </ | ||
+ | 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:// |