![]() |
SparkFun BMI330 Arduino Library
v1.0.0-2-gdbddb99
Arduino Library for the SparkFun Qwiic BMI330 6-DoF IMU (Bosch BMI330)
|
Tap detector settings. More...
#include <sfDevBMI330.h>
Public Attributes | |
| sfe_bmi330_tap_axis_t | axis = BMI330_TAP_AXIS_Z |
| Axis to watch. More... | |
| bool | waitForTimeout = false |
| Wait out the full gesture window before reporting. More... | |
| uint8_t | maxPeaksForTap = 6 |
| Zero crossings allowed around one tap. Range 0 to 7. More... | |
| uint8_t | mode = 0 |
| 0 sensitive, 1 normal, 2 robust. More... | |
| uint16_t | peakThreshold = 0x2D |
| Minimum peak amplitude for a tap. Range 0 to 1023. More... | |
| uint8_t | maxGestureDuration = 16 |
| Window for a whole multi-tap gesture. Range 0 to 63. More... | |
| uint8_t | maxDurationBetweenPeaks = 4 |
| Positive-to-negative peak window. Range 0 to 15. More... | |
| uint8_t | shockSettlingDuration = 6 |
| How long a tap's impact is observed. Range 0 to 15. More... | |
| uint8_t | minQuietBetweenTaps = 8 |
| Quiet time required between taps. Range 0 to 15. More... | |
| uint8_t | quietTimeAfterGesture = 12 |
| Quiet time required after a gesture. Range 0 to 15. More... | |
Tap detector settings.
Tap detection is the fussiest feature on the part, and peakThreshold is the knob that matters: too low and footsteps register, too high and nothing does. It is worth sweeping against the actual enclosure - a tap through 3 mm of acrylic is a very different signal from a tap on a bare board. Defaults are the device's power-on values.
| sfe_bmi330_tap_axis_t sfe_bmi330_tap_config_t::axis = BMI330_TAP_AXIS_Z |
Axis to watch.
| uint8_t sfe_bmi330_tap_config_t::maxDurationBetweenPeaks = 4 |
Positive-to-negative peak window. Range 0 to 15.
| uint8_t sfe_bmi330_tap_config_t::maxGestureDuration = 16 |
Window for a whole multi-tap gesture. Range 0 to 63.
| uint8_t sfe_bmi330_tap_config_t::maxPeaksForTap = 6 |
Zero crossings allowed around one tap. Range 0 to 7.
| uint8_t sfe_bmi330_tap_config_t::minQuietBetweenTaps = 8 |
Quiet time required between taps. Range 0 to 15.
| uint8_t sfe_bmi330_tap_config_t::mode = 0 |
0 sensitive, 1 normal, 2 robust.
| uint16_t sfe_bmi330_tap_config_t::peakThreshold = 0x2D |
Minimum peak amplitude for a tap. Range 0 to 1023.
| uint8_t sfe_bmi330_tap_config_t::quietTimeAfterGesture = 12 |
Quiet time required after a gesture. Range 0 to 15.
| uint8_t sfe_bmi330_tap_config_t::shockSettlingDuration = 6 |
How long a tap's impact is observed. Range 0 to 15.
| bool sfe_bmi330_tap_config_t::waitForTimeout = false |
Wait out the full gesture window before reporting.