Circuit Playground Bluefruit and LIS3DH using Arduino

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Newroots
 
Posts: 2
Joined: Sun Apr 25, 2021 8:03 am

Circuit Playground Bluefruit and LIS3DH using Arduino

Post by Newroots »

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!

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: Circuit Playground Bluefruit and LIS3DH using Arduino

Post by dastels »

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

User avatar
Newroots
 
Posts: 2
Joined: Sun Apr 25, 2021 8:03 am

Re: Circuit Playground Bluefruit and LIS3DH using Arduino

Post by Newroots »

Thanks, I may go back to CircuitPython for now.

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”