Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADXL345 problem #1

Open
simeondmr opened this issue Oct 28, 2021 · 2 comments
Open

ADXL345 problem #1

simeondmr opened this issue Oct 28, 2021 · 2 comments

Comments

@simeondmr
Copy link

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:

  • i2c_read_byte timeout
  • i2c_write_byte failed

How can I solve them?

Thanks!

@craigpeacock
Copy link
Owner

Simeon,

My thoughts:

  • Do you have pull up resistors on the I2C?
  • Can you see a clock signal on a protocol analyser, DSO?

@simeondmr
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants