I am attempting to hook up an ADXL345 accelerometer to my Raspberry Pi Zero 2 W but have not been able to get the sensor to show on sudo i2cdetect -y 1. I have enabled i2c through sudo raspi-config and connected the sensor as follows:
3v3 (pin 1) --> VCC
SDA (pin 3) --> SDA
SCL (pin 5) --> SCL
GND (pin 6) --> GND
I have tried this with SDO and CS on the sensor floating, but also with:
3v3 (pin 1) --> CS
GND (pin 6) / 3v3 (pin 1) --> SDO
I have run gpiotest with pigpiod with 0 errors on any pins for both pis.
I have tried this with the most recent versions of Raspberry Pi OS (64-bit) and Raspberry Pi OS Lite (64-bit), on two separate Raspberry Pi Zero 2 Ws, with 3 different ADXL345 sensors (two GY-291 ADXL345s and one LM YN ADXL345). I have tried swapping out all of the wires multiple times, and I have tried to wire the sensor both with and without a breadboard to no avail.
After all of this, sudo i2cdetect -y 1 has shown nothing but dashes (i2c2 works fine).
This is my first Raspberry Pi and I have no previous experience with electronics so any help is appreciated!
3v3 (pin 1) --> VCC
SDA (pin 3) --> SDA
SCL (pin 5) --> SCL
GND (pin 6) --> GND
I have tried this with SDO and CS on the sensor floating, but also with:
3v3 (pin 1) --> CS
GND (pin 6) / 3v3 (pin 1) --> SDO
I have run gpiotest with pigpiod with 0 errors on any pins for both pis.
I have tried this with the most recent versions of Raspberry Pi OS (64-bit) and Raspberry Pi OS Lite (64-bit), on two separate Raspberry Pi Zero 2 Ws, with 3 different ADXL345 sensors (two GY-291 ADXL345s and one LM YN ADXL345). I have tried swapping out all of the wires multiple times, and I have tried to wire the sensor both with and without a breadboard to no avail.
After all of this, sudo i2cdetect -y 1 has shown nothing but dashes (i2c2 works fine).
This is my first Raspberry Pi and I have no previous experience with electronics so any help is appreciated!
Statistics: Posted by jakethedampsnake — Thu Aug 29, 2024 12:07 am