-
Notifications
You must be signed in to change notification settings - Fork 15
Initialization Time #42
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
Comments
Maybe 2ms was the intention, based on the POR timing from the datasheet? Pretty common to be conservative and take the max value and round it up, which would support the idea of this intending to be a 2ms wait. Also, Arduino's ms based But if that was the intention, the delay should be after sending the reset command. It's not even related to the sending of the EXIT command, since the delay has been there before that was even added (v1 release): Adafruit_CircuitPython_MLX90393/adafruit_mlx90393.py Lines 225 to 233 in f9a1e2e
Have you tried removing it? |
Yes, I have commented out the 2 second delay and it works fine on my end. However, I'm currently testing using Blinka on a RPi 5, so not exactly a standard CircuitPython setup. I've also put a |
Thanks. That also generally verifies that 2 second delay isn't really needed. Based on the datasheet, seems like a basic reset would be:
So why is the 2s delay there? Don't know. You've tested without and it works. The Arduino library has no 2 second delay. A PR to remove it seems fine. |
As part of the sensor initialization a reset is performed. This function has a call to time.sleep(2) between the EXIT and RESET commands. Why is there such a long wait there? This probably is not much of an issue when only using one sensor but when trying to use multiple sensors this delay really adds up quickly.
According to the datasheet
Maybe that was meant as 2 ms? However, there is no delay after the reset itself.
The text was updated successfully, but these errors were encountered: