cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3DH tilt angle and shock interrupts + ADC

karloacha
Visitor

Hi,

 

First of all, I'm not proficient with embedded C, but I would appreciate any input from you that I could feed to ChatGPT. I've been trying to have the codes generated, but they simply would not produce what I wanted. So I have a LIS3DH IMU connected to the ESP32 via I2C. I want to know if it is possible to have the ESP32 in deep sleep mode while waiting for the INT pins from the IMU to wake it up. INT1 should detect a shock of, say, 1.5 G-force, and INT2 for a tilt angle beyond a threshold. Since the ESP32 is asleep and not continuously polling the IMU, will this be possible? If so, can you provide hints on how to implement this?

Secondly, I have connected an analog lux sensor to ADC of the IMU. I'm getting variations when probing it with a multimeter but it's not reflected on the raw ADC readings. I'm certain it's within the scale.

 

Thank you very much.

1 REPLY 1
karloacha
Visitor

The lux sensor is connected to ADC3