Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| composants:rpi_proxi_sensor [2020/06/22 15:51] – created mh | composants:rpi_proxi_sensor [2025/06/02 21:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi & Infrared Proximity Sensor ====== | ====== Raspberry Pi & Infrared Proximity Sensor ====== | ||
| + | Work in progress | ||
| + | ===== General ===== | ||
| + | |||
| + | ==== Components ==== | ||
| + | |||
| + | *[[composants: | ||
| + | *[[composants: | ||
| + | *Raspberry Pi - any model | ||
| + | *Breadboard, | ||
| + | |||
| + | ==== Wiring ==== | ||
| + | |||
| + | {{composants: | ||
| + | |||
| + | <WRAP 50%> | ||
| + | |^ RPi Pin #^ | ||
| + | | 1| |3.3V| | ||
| + | | 1| |3.3V | 15| |VREF | | ||
| + | | 6| |GND | 14| |AGND | | ||
| + | | 19| |GPIO 10 (MOSI) | ||
| + | | 21| |GPIO 9 (MISO) | ||
| + | | 23| |GPIO 11 (SLCK) | ||
| + | | 24| |GPIO 8 (CE0) | 10| |CS/ | ||
| + | | 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:// | ||