Adafruit MCP9808 Precision I2C Temperature Sensor Guide Created by lady ada Last updated on 2014-04-22 03:01:18 PM EDT
Guide Contents Guide Contents 2 Overview 3 Pinouts 6 Power Pins 6 I2C Data Pins 6 Optional Pins 6 Wiring & Test 8 Prepare the header strip: 8 Add the breakout board: 8 And Solder! 9 Arduino Wiring 10 Download Adafruit_MCP9808 11 Load Demo 11 Downloads 14 Datasheets 14 Schematic and Diagrams 14 © Adafruit Industries https://learn.adafruit.
Overview This I2C digital temperature sensor is one of the more accurate/precise we've ever seen, with a typical accuracy of ±0.25°C over the sensor's -40°C to +125°C range and precision of +0.0625°C. They work great with any microcontroller using standard i2c. There are 3 address pins so you can connect up to 8 to a single I2C bus without address collisions. Best of all, a wide voltage range makes is usable with 2.7V to 5.5V logic! © Adafruit Industries https://learn.adafruit.
Unlike the DS18B20, this sensor does not come in through-hole package so we placed this small sensor on a breakout board PCB for easy use. The PCB includes mounting holes, and pull down resistors for the 3 address pins. We even wrote a lovely little library for Arduino that will work with any Arduino compatible. You'll be up and running in 15 minutes or less. © Adafruit Industries https://learn.adafruit.
Simple I2C control Up to 8 on a single I2C bus with adjustable address pins 0.25°C typical precision over -40°C to 125°C range (0.5°C guaranteed max from -20°C to 100°C) 0.0625°C resolution 2.7V to 5.5V power and logic voltage range Operating Current: 200 A (typical) © Adafruit Industries https://learn.adafruit.
Pinouts The MCP9808 is a very straight-forward sensor, lets go thru all the pins so you can understand what you need to connect to get started Power Pins VDD - This is the positive power and logic level pin. It can be 2.7-5.5VDC, so fine for use with 3 or 5V logic. Power VDD with whatever logic level you plan to use on the i2c lines. GND - this is the ground power and logic reference pin. I2C Data Pins SCL - this is the I2C clock pin.
want to put more than one MCP9808 on a shared i2c bus. The A0/A1/A2 pins set the bottom three pins of the i2c address. There are pull-down resistors on the board so connect them to VDD to set the bits to '1'.
Wiring & Test Prepare the header strip: Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - lo ng pins do wn Add the breakout board: Place the breakout board over the pins so that the short pins poke through the breakout pads © Adafruit Industries https://learn.adafruit.
And Solder! Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out our Guide to Excellent Soldering (http://adafru.it/aTk)). © Adafruit Industries https://learn.adafruit.
You're done! Check your solder joints visually and continue onto the next steps Arduino Wiring You can easily wire this sensor to any microcontroller, we'll be using an Arduino Connect Vdd to the power supply, 3V or 5V is fine. Use the same voltage that the © Adafruit Industries https://learn.adafruit.
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.
Thats it! Now open up the serial terminal window at 9600 speed to see the temperature in real time. You can try touching your finger to the sensor to see the temperature rise. © Adafruit Industries https://learn.adafruit.
© Adafruit Industries https://learn.adafruit.
Downloads Datasheets MCP9808 datasheet (http://adafru.it/dfL) Schematic and Diagrams © Adafruit Industries https://learn.adafruit.
© Adafruit Industries Last Updated: 2014-04-22 03:01:20 PM EDT Page 15 of 15