Scanning I2C address of an ADXL345 sensor

Hello, I have an ADXL345 device. Perform a scan to identify your address. During the scan, I got 0x53 and after a minute, the number went from 0x53 to 0x1D.
In the exercise, we use the following

  1. Arduino IDE,
  2. NODE-MCU-ESP8266 board.
  3. ADXL345 sensor.
  4. VDC=3.3V
  5. Connect cable from D1 to SCL and D2 to SDA
  6. Code for scan taken from CODE
    How is it possible for the sensor to change direction alone?

Pin 12 on the device will change the I2C address to an alternate. Did you connect it to anything?

When is the assignment due?

SDO/ALT ADDR - This pin can be used as MISO in SPI mode, but is more
commonly used as an optional bit in the I2C bus address. By default this pin is
pulled down, meaning it has a value of 0 at startup, which will results in an I2C
address of 0x53. If you set this pin high (to 3.3V), and reset, the I2C address will
be updated to 0x1D.

Ref: Datasheet pag10
" https://cdn-learn.adafruit.com/downloads/pdf/adxl345-digital-accelerometer.pdf

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.