Closed lukadd16 closed 2 years ago
hiya, questions about how to use adafruit products are best posted in the adafruit forums at forums.adafruit.com thats where tech support is handled - github issues are where folks can issue bug reports (e.g. something that ought to work but doesnt due to a hardware or software bug) since that isnt clearly the issue here and most people are using hte sensor fine, we don't think that's the issue.
thanks! :)
github issues are where folks can issue bug reports (e.g. something that ought to work but doesnt due to a hardware or software bug)
I wouldn't have opened an issue here if I didn't believe this was the case. I thought the description of my issue was very clear in stating that what I'm doing should work but doesn't due to a factor that is out of my control. Nonetheless, I have started a thread on the forums as requested so we'll see where this goes.
The forum thread led to me receiving a replacement unit that worked perfectly without issue, hence this GH issue is no longer relevant.
Environment
Context
I have a project that requires a temperature and humidity sensor, and after evaluating some of the alternatives I chose the DHT20 sensor (which uses the AHT20 under the hood) that Adafruit sells on their store. Due to space constraints the logical option was to go with the Nano Every microcontroller, one that I am aware uses a different processor than the Arduino UNO but I considered this to be a non-issue due to the software compatibility layer that Arduino includes which emulates the registers of an ATMEGA 328.
Summary of Issue
Loading up the example sketch (the one titled
adafruit_aht_test
) included with this library, it gets compiled and flashed to the Nano Every's memory without issue (see logs below). Upon opening the Serial Monitor (at 115200 baud to match the baud specified by the sketch), all I see is this message......no readings from either sensor, no "AHT10 or AHT20 found" message and no "Could not find AHT? Check wiring" message either. This tells me that none of the code after the call to
aht.begin()
on line 9 is being reached, which leads me to believe that the core issue is not with the sketch code itself nor with my wiring (else I would be getting the "check wiring" message after initialization failed), but rather with this library. As a result, I am unable to resolve this issue myself as it is outside the scope of my knowledge and responsibility.Arduino IDE Logs
Steps to Reproduce
1) Wire the SDA and SCL pins on the DHT20 to the matching pins in the Nano Every (D18 and D19 respectively).
2) Connect the Arduino and DHT20 to 5V power
3) Install the latest version (2.0.1) of the AHTX0 library in the Arduino IDE Library Manager
4) Install the Arduino megaAVR Boards package in the Board Manager
4) Open the
adafruit_aht_test
example sketch5) Select the Arduino Nano Every as our board
6) Enable registers emulation
6) Upload the example sketch to the Nano Every
7) Open the Serial Monitor at 115200 baud
Sketch Code
https://github.com/adafruit/Adafruit_AHTX0/blob/2d961490f21be7aa01bccd9a460e153f4fcb3207/examples/adafruit_aht_test/adafruit_aht_test.ino#L1-L23
Things I Have Tried