Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
materiel:mcp3008:accueil [2017/09/10 18:05] resonance [Connection] |
materiel:mcp3008:accueil [2018/01/25 23:12] (Version actuelle) resonance ancienne révision (2017/10/10 11:47) restaurée |
||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
{{: | {{: | ||
===== Connection ===== | ===== Connection ===== | ||
- | Connections SPI (logiciel) :{{: | + | Connections SPI (logiciel) : |
- | * MCP3008 VDD to Raspberry Pi 3.3V ou 5V | ||
- | * MCP3008 VREF to Raspberry Pi 3.3V ou 5V | ||
- | * MCP3008 AGND to Raspberry Pi GND | ||
- | * MCP3008 DGND to Raspberry Pi GND | ||
- | * MCP3008 CLK to Raspberry Pi pin 18 | ||
- | * MCP3008 DOUT to Raspberry Pi pin 23 | ||
- | * MCP3008 DIN to Raspberry Pi pin 24 | ||
- | * MCP3008 CS/SHDN to Raspberry Pi pin 25 | ||
- | Autres connections possibles | + | {{ : |
+ | |||
+ | |||
+ | ^ MCP3008 pins ^ Raspberry-pi pins ^ | ||
+ | | VDD | 5V ou 3.3v | | ||
+ | | VREF | 5V ou 3.3v | | ||
+ | | AGND | GND | | ||
+ | | DGND | GND | | ||
+ | | CLK | gpio12 | ||
+ | | DOUT | gpio16 | ||
+ | | DIN | gpio20 | ||
+ | | CS/ | ||
+ | |||
+ | |||
+ | On peut se brancher sur n' | ||
+ | On peut brancher le dispositif a chaud sur le raspberry pi. | ||
===== Installation ===== | ===== Installation ===== | ||
Ligne 60: | Ligne 68: | ||
# Software SPI configuration: | # Software SPI configuration: | ||
- | CLK = 18 | + | CLK = 12 |
- | MISO = 23 | + | MISO = 16 |
- | MOSI = 24 | + | MOSI = 20 |
- | CS | + | CS |
SECONDS = 0.02 | SECONDS = 0.02 | ||