Wiki

Reso-nance numérique | Arts et cultures libres

Outils du site


materiel:mcp3008:accueil

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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:
 {{:materiel:mcp3008:mcp3008-01.jpg?400|}} {{:materiel:mcp3008:mcp3008-01.jpg?400|}}
 ===== Connection ===== ===== Connection =====
-Connections SPI (logiciel) :{{:materiel:mcp3008:sensors_raspberry_pi_mcp3008pin.gif?200|}}+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 en mode "hardware".+{{ :materiel:mcp3008:screen_shot_10-10-17_at_11.43_am.png?nolink |}} 
 + 
 + 
 +^ 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/SHDN  | gpio21     | 
 + 
 + 
 +On peut se brancher sur n'importe quel GPIO du moment que le script python ensuite les prenne en compte. \\ 
 +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   25+CS   21
 SECONDS = 0.02 SECONDS = 0.02
  
/home/resonancg/www/wiki/data/attic/materiel/mcp3008/accueil.1505059547.txt.gz · Dernière modification: 2017/09/10 18:05 de resonance