| Ligne 3 : |
Ligne 3 : |
| | == Introduction == | | == Introduction == |
| | xxxx | | xxxx |
| | + | |
| | + | === Adresses I2C === |
| | + | L'adresse par défaut est 72 (0x48 en Hexadécimal) lorsque ADDR est branché sur la masse. |
| | + | |
| | + | Il est possible de la modifier comme suit: |
| | + | * Placer ADDR au niveau haut modifie l'adresse à 73 (0x49). |
| | + | * Placer ADDR sur SDA modifie l'adresse à 74 (0x4a). |
| | + | * Placer ADDR sur SCL modifie l'adresse à 75 (0x4B). |
| | + | |
| | + | === Gain Programmable et tension max === |
| | + | L'ADS1x15 est un convertisseur Analogique/Digital à gain programmable. |
| | + | |
| | + | La valeur de gain correspond à un index dans la table ''Programmable Gain Amplifier'' (PGA). |
| | + | |
| | + | Le PGA définit une gamme de tension utilisable pour la conversion. Le rapport de conversion est déduit de cette gamme de tension. |
| | + | |
| | + | {{ambox-stop|text=La gamme de tension du PGA n'indique pas la tension maximale adminisble par le convertisseur! La tension maximale sur une entrée analogique est fixée à VDD + 0.3v}} |
| | + | |
| | + | Les valeurs acceptables pour gain sont: |
| | + | {| class="wikitable" border="1" |
| | + | |- |
| | + | | align="center" | Index du gain |
| | + | | align="center" | Gamme de tension |
| | + | | align="center" | Remarque |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | 0 |
| | + | | align="left" | 6.144V |
| | + | | align="left" | 2/3x |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | 1 |
| | + | | align="left" | 4.096V |
| | + | | align="left" | 1x |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | 2 |
| | + | | align="left" | 2.048V |
| | + | | align="left" | 2x |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | 3 |
| | + | | align="left" | 1.024V |
| | + | | align="left" | 4x |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | 4 |
| | + | | align="left" | 0.512V |
| | + | | align="left" | 8x |
| | + | |- style="font-size: 90%" |
| | + | | align="left" | 5 |
| | + | | align="left" | 0.256V |
| | + | | align="left" | 16x |
| | + | |} |
| | | | |
| | == Installer la bibliothèque == | | == Installer la bibliothèque == |