Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
composants:rpi_proxi_sensor [2020/06/22 15:55] – mh | composants:rpi_proxi_sensor [2020/06/23 20:24] – [Steps] mh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Raspberry Pi & Infrared Proximity Sensor ====== | ====== Raspberry Pi & Infrared Proximity Sensor ====== | ||
+ | |||
+ | Work in progress | ||
===== General ===== | ===== General ===== | ||
Line 5: | Line 7: | ||
==== Components ==== | ==== Components ==== | ||
- | *Sharp 2Y0A21F Infrared sensor | + | *[[composants: |
- | *MCP3008 ADC | + | *[[composants: |
+ | *Raspberry Pi - any model | ||
*Breadboard, | *Breadboard, | ||
Line 13: | Line 16: | ||
{{composants: | {{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) | ||
+ | *installed rust < | ||
+ | <code bash> | ||
+ | curl --proto ' | ||
+ | </ | ||
+ | * | ||
===== Ressources ===== | ===== Ressources ===== | ||
*[[https:// | *[[https:// |