ADXL355 PMDZ to ESP32

Hi! I’ve been having some difficulty with connecting my ADXL355 PMDZ to the ESP32. I’ve verified that my code is correct for data collection/interpretation, however, I’ve been getting all 0s on the X,Y, and Z axis outputs. This should be an easy setup, but for the life of me I cannot figure it out. I’d appreciate any help or input.

I’ve been using the following pinout configuration:
ADXL: ESP32:
1 → GPIO 5
2 → GPIO 23
3 → GPIO 19
4 → GPIO 18
5 → GND
6 → 3.3V

Hello rsprengel033,
Thank you for contacting DigiKey Technical support.
Are you using a breakout board?
If you are what part number are you using?

Greetings,

It would help to get some further detail on precisely what is meant by this.

A system that works as intended/specified is the best way to verify that one’s code is “correct,” and until that state is reached it’s imprudent to rule out software error, since that’s usually the most variable and complex part of the system.

Do the read-only registers at the start of the address space return the values specified in the datasheet when read? If so, that’d be an indication that the SPI interface is working along with whatever length of code pipe exists between the MISO pin and one’s eyeballs.

If not, I’d suggest grabbing a 'scope, logic analyzer, or similar tool and watching what’s actually happening on the bus when one attempts a read of those registers. Whether or not MISO and MOSI wiggle as prescribed will give a person a lot of information as to where one should start looking for issues.