-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sensor not responding on repeated use #3
Conversation
… make sure sensor is awake first
I've tested this, and sending the wake command before anything else does seem to be the key to reconnecting to the SHTC3. With the version from I then checked out @Cybot101 's |
thanks for testing :) |
Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX31856 to 0.9.3 from 0.9.2: > Update max31856_simpletest.py Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx to 2.4.2 from 2.4.1: > Merge pull request adafruit/Adafruit_CircuitPython_MCP230xx#35 from shadowclaw/master Updating https://github.com/adafruit/Adafruit_CircuitPython_PCF8591 to 1.0.2 from 1.0.1: > Merge pull request adafruit/Adafruit_CircuitPython_PCF8591#2 from Techwolfy/master Updating https://github.com/adafruit/Adafruit_CircuitPython_SHTC3 to 1.0.3 from 1.0.2: > Merge pull request adafruit/Adafruit_CircuitPython_SHTC3#3 from Cybot101/sleepy-reset-fix Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.9.2 from 2.9.1: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#93 from eteq/add-init
Hi, is this fix included in the version of the SHTC3 driver in adafruit-circuitpython-bundle-6.x-mpy-20201210? I'm using it on an Unexpected Maker FeatherS2 and it isn't happy after a soft reset. I can post example code if needed? |
yeah it was included...you could also try grabbing the .py file from this release to be absolutely sure. posting an example would help! |
Thanks, good to know it's supposed to work! I've just tried the .py from this release, but it behaves the same. My code:
Running on this Feather:
Outputs this (my house isn't this hot, it's on my leg!):
I press ctrl+s and it then outputs:
I'm trying to replicate it on this Feather M0 Express:
But I get:
Which doesn't make much sense to me because the bootloader and the library are both 6.x.x. But I'm only on my first day of using CircuitPython, so I have a lot to learn! If it's relevant, I'm using Mu 1.1.0.alpha2 on Win 10. |
Okay, I've updated adafruit_bus_device on the M0 Express and I'm in business. The SHTC3 soft reset works on it! So the problem is specific to the FeatherS2. |
hmm! yeah the esp32s2 is very new, can you post an issue over on the https://github.com/adafruit/circuitpython repo? |
Will do, thanks for your help @ladyada :) |
Fir for #2 and hopefully #1 as well.
Moved the call to wake to occur before the soft reset command in init. Also added a wake call into the reset function in case reset() is used in user code. This will cause 2 wake commands when initialising, but ensures consistent state. Happy to discuss?
Sensor will still be in active state (not low power) until first measurement request. Good idea?