adafruit / adafruit/Adafruit_CircuitPython_LSM6DS
Wake on Significant Motion
- Dominant language
- Python
- Stars
- 34
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Wondering how I can configure this device to fire an interrupt on significant motion, per page 45 of the datasheet ([here](https://www.mouser.ca/datasheet/2/389/dm00157718-1798631.pdf))?
The goal is to be able to set an alarm in CPy to wake when pin D3 is set high - according to the schematics for the Feather Sense (which I'm developing on), this is the GPIO connected with INT1 on the LSM6DS33.
Something like
```
pin_alarm = alarm.pin.PinAlarm(pin=board.D3, value=True, pull=True)
alarm.light_sleep_until_alarms(pin_alarm)
```
The datasheet seems to indicate that setting register `0x0D` on the device to 64 (bin 01000000) will accomplish this.
Thoughts?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the LSM6DS33 datasheet page 45 and the Feather Sense schematic, focusing on INT1 connected to D3 and register 0x0D. Compare the requested motion interrupt with the existing library and the CircuitPython PinAlarm example. Done means establishing whether significant motion can trigger the requested wake alarm and documenting or implementing the supported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100