Skip to main content
Visitor II
Oct 21, 2026 6:31 AM UTC
Question

Technical Support Required for LIS2DW12 Accelerometer Interrupt Configuration and Verification with ESP32-C6

We have integrated the LIS2DW12 accelerometer with our ESP32-C6 module and successfully obtained coordinate readings, observing changes in the readings when the sensor's position is changed.

However, we are facing difficulties verifying the interrupt functionality. Although we configured and probed the interrupt pin, we could not observe any voltage-level changes. We also connected the pin to an oscilloscope but were unable to detect any state transitions or variations in the output waveform.

Kindly guide us on the correct procedure for configuring and verifying interrupt detection. Additionally, please clarify the functional differences between the INT1 and INT2 pins, their respective interrupt capabilities, and the recommended method, any example code or alternative part for confirming that the interrupt outputs are functioning correctly.

2 replies

Andrew Neil
Super User
Oct 21, 2026 9:19 AM UTC

Kindly guide us on the correct procedure for configuring and verifying interrupt detection

That would be described in the datasheet.

See also Application Note AN5038, LIS2DW12: always-on 3-axis accelerometer

and check out other documentation on the Product Page:

https://www.st.com/en/mems-and-sensors/lis2dw12.html#documentation

 

There are also software resources & examples:

https://www.st.com/en/mems-and-sensors/lis2dw12.html#tools-software

 

PS:

Remember that the LIS2DW12 neither knows nor cares what controller you use - its behaviour does not change for different controllers.

All the LIS2DW12 sees is the I2C or SPI bus - so it’s just a matter of getting the right interactions on the bus.

This is modelled in the C-Driver-MEMS software:

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Federica Bossi
ST Technical Moderator
Nov 10, 2026 10:31 AM UTC

Hi ​@Jhakan ,

In addition to the documentation mentioned above, you can refer to the lis2dw12_wake_up.c example in the ST standard C drivers. It shows how to configure wake-up detection and route the event to INT1.

Please note that the example checks the event flags by polling the sensor registers; the ESP32-C6 GPIO interrupt handling must be implemented separately. The platform-specific communication and delay functions also need to be adapted.

The lis2dw12_reg.c/.h driver provides functions to configure interrupt polarity, push-pull/open-drain operation, latched/pulsed notification and event routing.

 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.