Adafruit HTU21D-F Temperature & Humidity Sensor
Created by lady ada
Last updated on 2016-08-24 05:33:19 PM UTC
Page 1: ...Adafruit HTU21D F Temperature Humidity Sensor Created by lady ada Last updated on 2016 08 24 05 33 19 PM UTC...
Page 2: ...I2C Logic pins Assembly Prepare the header strip Add the breakout board And Solder Wiring Test Download Adafruit_HTU21DF Load Demo Library Reference Downloads Files Datasheets Schematics PCB Print Ada...
Page 3: ...rman said this morning that today s relative humidity would max out at a perfectly reasonable 52 when it feels more like 77 Enter the HTU21D F Temperature Humidity Sensor the best way to prove the wea...
Page 4: ...optimized from 5 to 95 RH Operation outside this range is still possible just the accuracy might drop a bit The temperature output has an accuracy of 1 C from 30 90 C If you re looking to measure temp...
Page 5: ...ry This lets you use it safely with any kind of microcontroller with 3 3V 5V power or logic Each order comes with one fully assembled and tested PCB breakout and a small piece of header You ll need to...
Page 6: ...most microcontrollers and can share those pins with other sensors as long as they don t have an address collision For future reference the I2C address is 0x40 and you can t change it Power Pins Adafru...
Page 7: ...r e g for a 5V micro like Arduino use 5V 3v3 this is the 3 3V output from the voltage regulator you can grab up to 100mA from this if you like GND common ground for power and logic I2C Logic pins SCL...
Page 8: ...r strip Cut the strip to length if necessary It will be easier to solder if you insert it into a breadboard long pins down Adafruit Industries https learn adafruit com adafruit htu21d f temperature hu...
Page 9: ...e breakout board over the pins so that the short pins poke through the breakout pads And Solder Be sure to solder all pins for Adafruit Industries https learn adafruit com adafruit htu21d f temperatur...
Page 10: ...sure to check out our Guide to Excellent Soldering http adafru it aTk You re done Check your solder joints visually and continue onto the next steps Adafruit Industries https learn adafruit com adafru...
Page 11: ...Adafruit Industries https learn adafruit com adafruit htu21d f temperature humidity sensor Page 11 of 18...
Page 12: ...und Connect the SCL pin to the I2C clockSCL 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...
Page 13: ...DF folder contains Adafruit_HTU21DF cpp and Adafruit_HTU21DF h Place the Adafruit_HTU21DF library folder your arduinosketchfolder libraries folder You may need to create thelibraries subfolder if its...
Page 14: ...Thats it Now open up the serial terminal window at 9600 speed to begin the test Adafruit Industries https learn adafruit com adafruit htu21d f temperature humidity sensor Page 14 of 18...
Page 15: ...Then initialize the sensor with htu begin this function returns True if the sensor was found and responded correctly andFalse if it was not found Once initialized you can query the temperature in C wi...
Page 16: ...lly simple Call htu readHumidity to read the humidity also as a floating point value between 0 and 100 this reads humidity Adafruit Industries https learn adafruit com adafruit htu21d f temperature hu...
Page 17: ...which is the white insert on top of the sensor Fritzing object in Adafruit Fritzing library http adafru it aP3 EagleCAD PCB files in GitHub http adafru it r5F Schematics PCB Print Dimensions in Inche...
Page 18: ...Adafruit Industries Last Updated 2016 08 24 05 33 18 PM UTC Page 18 of 18...