I looking to use the Adafruit Feather nRF52840 Sense to detect a tap. It will be mounted in a small plastic enclosure, and when someone taps on the box it will play a musical note via Bluetooth MIDI.
I thought there'd be an example of how to use the sensors to do this, but haven't found anything yet. I think I'm needing to use the LSM6DS33 Accel/Gyro to detect a tap, and I can get the readings of it from the sample code on the learning page for the Adafruit Feather nRF52840 Sense here: https://learn.adafruit.com/adafruit-feather-sense
I did find this learning page, (https://github.com/adafruit/Adafruit_LI ... apdemo.ino) which talks about a tap detector, but it seems it's for a different chip. But I think it's just what I'm looking for. Is there any implementation of this on the Adafruit Feather nRF52840 Sense?
thanks
Tap detection with the Adafruit Feather nRF52840 Sense
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- southernatheart
- Posts: 79
- Joined: Tue Mar 22, 2011 10:54 pm
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Tap detection with the Adafruit Feather nRF52840 Sense
@southernatheart,
This is the library for the LSM6DS33. We do not have an example specific tap example for the Feather Sense.
https://github.com/adafruit/Adafruit_LSM6DS
I do see there is a TAP_CFG var which you could go back to the datasheet to determine usage or you can review the full featured library that ST put out with a tap example.
https://github.com/stm32duino/LSM6DS3/b ... A1_Tap.ino
This is the library for the LSM6DS33. We do not have an example specific tap example for the Feather Sense.
https://github.com/adafruit/Adafruit_LSM6DS
I do see there is a TAP_CFG var which you could go back to the datasheet to determine usage or you can review the full featured library that ST put out with a tap example.
Code: Select all
#define LSM6DS_TAP_CFG 0x58 ///< Tap/pedometer configuration
- southernatheart
- Posts: 79
- Joined: Tue Mar 22, 2011 10:54 pm
Re: Tap detection with the Adafruit Feather nRF52840 Sense
Thanks, I got something working nicely!
Please be positive and constructive with your questions and comments.