adafruit / adafruit/Adafruit_CircuitPython_LIS3MDL
Throttled Data Rate
- Dominant language
- Python
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Hey,
I'm running this code on a Windows 11 PC in a Jupyter Notebook, and my data rate seems to be limited to about 11 Hz (for the read/write cycle). Is this expected behavior for the interface? Can I speed it up somehow?
Thanks
Code below
data_rate is 155.0 HZ
performance_mode is Ultra-high Performance
```
import time
tic = time.time()
mag_x, mag_y, mag_z = sensor.magnetic
toc = time.time()
elapsed_time = toc - tic
print(1/elapsed_time)
```
11.886292080063706
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the read/write timing in the Jupyter Notebook on Windows 11 using sensor.magnetic, then compare the roughly 11.9 Hz result with the configured 155 Hz data rate and Ultra-high Performance mode. Done means determining whether this rate is expected for the interface and documenting the explanation or identifying the needed change; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- embedded-iot, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100