Post Go back to editing

ADXL362 and Arduino Uno giving zero output for acceleration and temp with SimpleRead

Hi, so I wired up an ADXL362 accelerometer w/ breakout from Sparkfun to work with an arduino uno. To power the sensor I have 3.3V output from the arduino going to the  V input of the ADXL362 and arduino ground going to the sensor ground. Also I level shifted pins 9-11 of the arduino from 5V to 3.3V using a voltage divider and plugged those into CS, SCK, and MOSI. The MISO output from the sensor is wired directly into pin 12 of the arduino. When I try to run the SimpleRead example code from the library I get zero output for all measurements as seen below. I also tried connecting the MISO through a fourth voltage divider but I still could not read anything. I'm not sure if it's just a wiring issue or a coding issue. I am just loading up the SimpleRead sketch and pressing upload. Any advice is appreciated!

Sensor output:
X=0. Y=0. Z=0. TEMP=0
X=0. Y=0. Z=0. TEMP=0
X=0. Y=0. Z=0. TEMP=0
X=0. Y=0. Z=0. TEMP=0
X=0. Y=0. Z=0. TEMP=0

Parents Reply Children
No Data