Jump to content
I2Cdevlib Forums

jlboygenius

Members
  • Posts

    1
  • Joined

  • Last visited

jlboygenius's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. has anyone been able to run two adxl345s at the same time? I've setup two instances: ADXL345 accel(0x53); ADXL345 accelB(0x1D); and each runs the initialize function: accel.initialize(); accelB.initialize(); and: Serial.println(accel.testConnection() ? "ADXL345 connection successful" : "ADXL345 connection failed"); Serial.println(accelB.testConnection() ? "ADXL345B connection successful" : "ADXL345B connection failed"); When both are connected, the arduio outputs on the serial: Init and that's it. just "Init". When only one is connected, data is retrieved for the working one, but only one can work at a time. I can read data from either one, but not both at the same time. One is wired with SDO high, to allow it to run on 0x1D, the other is wired to SDO low and runs on 0x53. wiring: Both are given grd, 3.3v, Both SCL's are connected in parallel to A5, SDA to A4. Does the wiring need to be different? Can you run both at the same time?
×
×
  • Create New...