I slightly incorrectly gave a detailed description in response to my own post ;) Everything is described there, how I connect it.
Hello,
Thank you for Your reply.
After connecting according to the sent diagram, the sensor does not react even to interference or noise. The sensor is functional because it works when connected to Arduino. However, I need to connect the sensor to the FireBeelte microcontroller.
1. Connecting the DFRobot Gravity Storm Sensor to the FireBeetle 2 ESP32-S3-U
Pin Connections Based on the provided images and source code, below is the pin connection diagram for the storm sensor to the microcontroller:
- Connect the sensor's VCC (PWR) to 3.3V on the FireBeetle board.- Connect the sensor's GND to GND on the FireBeetle board.- Connect the sensor's SCL to the SCL pin (marked as T1 / ADC1_0 on the board diagram).- Connect the sensor's SDA to the SDA pin (marked as T2 / ADC1_1 on the board diagram).- Connect the sensor's IRQ to pin 0 on the FireBeetle board (marked as 0/D9 on the board diagram). Pin Definitions: The IRQ_PIN defined in the code as 0 corresponds to the pin marked as 0/D9 on the microcontroller board.The I2C pins (SCL and SDA) are already identified as T1 and T2 respectively on the board diagram.