The onboard LIS3DH Accelerometer in Circuit Playground Bluefruit is on the I2C bus, unlike other Circuit Playground boards that have it on the SPI bus.
My question is, what are the Set-ups and commands for the LIS3DH on the I2C bus in Circuit Playground Bluefruit using Arduino? I want be able to write and read the LIS3DH and for it to detect threshold levels (taps) and provide an interrupt when it occurs.
As an aside, the manual specifies under "Motion Sensor" that "the optional interrupt output is on D24", and later in the "Internally Used Pins!", it states "D27 - Accelerometer Interrupt". I am assuming that D27 is correct.
I absolutely love what you are doing!
Thanks so much!
Circuit Playground Bluefruit and LIS3DH using Arduino
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Newroots
- Posts: 2
- Joined: Sun Apr 25, 2021 8:03 am
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Circuit Playground Bluefruit and LIS3DH using Arduino
On the schematic the LIS IRQ line is labelled D24, so try that first.
To use the LIS3DH, instantiate the interface object using an I2C object made using D26 for SCL and D28 for SDA.
But all that detail is abstracted away if you use the CircuitPlayground library. See the Adafruit Circuit Playground examples.
Dave
To use the LIS3DH, instantiate the interface object using an I2C object made using D26 for SCL and D28 for SDA.
But all that detail is abstracted away if you use the CircuitPlayground library. See the Adafruit Circuit Playground examples.
Dave
- Newroots
- Posts: 2
- Joined: Sun Apr 25, 2021 8:03 am
Re: Circuit Playground Bluefruit and LIS3DH using Arduino
Thanks, I may go back to CircuitPython for now.
Please be positive and constructive with your questions and comments.