Modifications

Sauter à la navigation Sauter à la recherche
Ligne 26 : Ligne 26 :  
{{ADFImage|SENSEUR-TEMPERATURE-MCP9808-BRANCHER-10.jpg}}
 
{{ADFImage|SENSEUR-TEMPERATURE-MCP9808-BRANCHER-10.jpg}}
    +
* Connect '''Vdd''' to the power supply, 3V or 5V is fine. Use the same voltage that the microcontroller logic is based off of. For most Arduinos, that is 5V
 +
* Connect '''GND''' to common power/data ground
 +
* Connect the '''SCL''' pin to the I2C clock '''SCL''' pin on your Arduino. On an UNO & '328 based Arduino, this is also known as '''A5''', on a Mega it is also known as '''digital 21''' and on a Leonardo/Micro, '''digital 3'''
 +
* Connect the '''SDA''' pin to the I2C data '''SDA''' pin on your Arduino. On an UNO & '328 based Arduino, this is also known as '''A4''', on a Mega it is also known as '''digital 20''' and on a Leonardo/Micro, '''digital 2'''
    +
The MCP9808 has a default I2C address of '''0x18''' but you can set the address to any of 8 values between 0x18 and 0x1F so you can have up to 8 of these sensors all sharing the same SCL/SDA pins.
 +
 +
== Télécharger Adafruit_MCP9808 ==
 +
To begin reading sensor data, you will need to [https://github.com/adafruit/Adafruit_MCP9808_Library download Adafruit_MCP9808 from our github repository]. You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip.
 +
 +
{{download-box|Téléchargez la bibliothèque Adafruit MCP9808|https://github.com/adafruit/Adafruit_MCP9808_Library/archive/master.zip}}
    
{{SENSEUR-TEMPERATURE-MCP9808-TRAILER}}
 
{{SENSEUR-TEMPERATURE-MCP9808-TRAILER}}
29 918

modifications

Menu de navigation