craigpeacock / ESP32_Node

Example esp-idf code for the Espressif ESP32 to communicate with BME280, INA226, INA228 and ADXL345
13 stars 3 forks source link

ADXL345 problem #1

Open simeondmr opened 3 years ago

simeondmr commented 3 years ago

Hello,

I'm using your library for the ADXL345. The connection with ESP32 is as follows:

SCL -> GPIO_22 SDA -> GPIO_21

The problem is that during the adxl345_init there are these errors:

How can I solve them?

Thanks!

craigpeacock commented 3 years ago

Simeon,

My thoughts:

simeondmr commented 3 years ago

Hello,

My mistake, I had forgotten to wire CS with VIO(now I can read the DEVICE_ID) Now I have another problem...The adxl345 never launches any interrupts, and if I connect a LED(for intettupt) from INT1 to GND I have a I2C communication error.

Can you help me with this problem? Thanks

Simeon