For $5.95, from a reliable supplkier to the hobbyist world, I thought I would give this a try.
As it uses the I2C interface, it can of course, be connected to many, MANY controllers. I'm using it with an Adafruit Huzzah with ESP8266 - Loose Headers PRODUCT ID: 2821 .
For the sake of this essay, we will assume that your Huzzah is set up, and that your Arduino IDE is configured for it.
https://learn.adafruit.com/adafruit-aht20/arduino is for 20, but...From there...
1st, always, when you can do one at a time. (Best to do with the board "dead".... Connect Feather or Arduino GND to board GND If you are running a Feather (3.3V), connect Feather 3V to board VIN If you are running a 5V Arduino (Uno, etc.), connect Arduino 5V to board VIN Connect Feather or Arduino SCL to board SCL (Huzzah helpfully labels it thus) Connect Feather or Arduino SDA to board SDA (Huzzah helpfully labels it thus)
Accidentally installed the wrong library at first: the Adafruit AHTx0 Library for Arduino.
This was for the AHT20! I could not find one for the 30. Also... when i asked for that, I was told I needed two others, that the AHTx0 required. I allowed this. (It proably saved me having that "probem" when I found the RIGHT library...)
(RT *right* M: https://learn.adafruit.com/adafruit-htu21d-f-temperature-humidity-sensor/wiring-and-test
To begin reading sensor data, you will need to download the Adafruit HTU21DF library from the Arduino library manager.
Ran the "HTU21DFtest" program that came with that.
Opened Serial Monitor, to see the output. Changed serial monitor's baud rate to 115200 to match what was being sent.
And it worked! Sort of (^_^) First time!
well... up to a point...
" ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 3460, room 16 tail 4 chksum 0xcc load 0x3fff20b8, len 40, room 4 tail 4 chksum 0xc9 csum 0xc9 v00043d60 ~ld " load 0x4010f000, len 3460, room 16 load 0x3fff20b8, len 40, room 4 v00043d60
The general idea of these pages is it make it easier for you to use some little gizmo that I found fun. I hope this one achieved that? Your thoughts and anecdotes, welcome. What are you using one of the devices discussed here for? Virtues? Problems? (Especially anything not mentioned above that you think the next person reading this would like to be told.)
If you found this of interest, please mention in forums, give it a Facebook "like" or "share"? I've almost given up writing these pages, because it seems they are seldom read, and of course not every reader will use them... so... is there any point? If you want more of this stuff, help!?
Click here to visit my main homepage where you
can explore other areas, such as education, programming, investing.
Page has been tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org. It passes in some important ways, but still needs work to fully meet HTML 5 expectations. (If your browser hides your history, you may have to put the page's URL into the validator by hand. Check what page the validator looked at before becoming alarmed by a "not found" or "wrong doctype".)
....... P a g e . . . E n d s .....