Can someone please help me I am trying to get my adxl345 accelerometer to work with my raspberry pi 3b+ and no matter what I try I still get Invalid adxl345 id (got 0 vs e5). I have tried 3 different sensors and 3 different types of wire. I have tried cat5 twisted pair and regular single strand wire and nothing works. I am long and cant figure this out I have searched and searched please help
Printer Model: CR-10S Style āHeavily Modifiedā
MCU / Printerboard: Raspberry pi 3b+/SKR 3 Mainboard
I dont have the klippy log right now i am currently at work i will post it later today
This kind of error typically is due to bad wiring of the sensor. The ADXLs are very sensitive (you might be tempted to say āoverly bitchyā) when it comes to this.
Use a shielded ethernet cable (Cat 5E or above) and make sure you do a highly meticulous job when crimping or soldering the contacts.
A proven way of assigning the wires is:
I have tried cat6 cable and my pairs were a little different from what you said tho.Also when you say GND on Shield on mainboard (MCU) side what do you mean
Ideal thing would be to put the cableās shield on protective earth. Iām running a 75cm Cat5E without this and it works reliably (self crimped Dupont pins).
I tried a lot of cables before and all failed but now it is really working good. There are a lot of similar reports and all boil down to cable quality.
I appreciate the help. one last question do you think there is any chance Iām using the wrong pins on the rpi header. I followed this guide to install the adxl345
I have one on my V2.4 that came from Magicphoenix. It has a 4B2K 3.3 V regulator on board, so it will not run from 3.3 V. I use 5 V (pin 2 or 4 from Raspberry Pi header) and it works fine. Iām using a shielded cable, but not twisted pair about 1 m long.
I tried 3.3v and 5v and still nothing, I also tried single wires and cat6 cable and still had no luck I ordered a raspberry pi Pico today figured Iād give that a shot maybe itās because I am using a raspberry pi 3b+ I really donāt know
Interesting. I have around 6 or 7 different boards. With and without voltage regulator. Have not seen any that would not run with 3.3V.
Yes they do have voltage regulator but this only allows them to run of 5V as well. You can see a short discussion on them in the link I posted above.
Be especially careful with models that have voltage regulators and level shifters. If supplied with 5V they may fry your board.
The ADXL board I have only has one connection for power. There is no way to provide 3.3 V directly. I donāt know of any 3.3 V regulators that will work with 0 V headroom. The one in the image you liked looks like it has connection points at both the regulator input (5 V) and output (3.3 V).
So i decided to try out the MPU-9250 sensor and now im getting this error and klipper restarts
MCU ārpiā shutdown: Unable write i2c device
Once the underlying issue is corrected, use the
āFIRMWARE_RESTARTā command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown
Yup I have done both of those things tried 2 different wires one long wire and one really short wire, also i enabled i2c in raspberry config and made sure to set the baud rate 400000ā¦ Ah why is this being so difficult i feel like this should be a super simple setup.
Sorry no idea anymore.
For me it was a very straight forward process for both the ADXL (once you get the cable right) and the MPU.
Maybe some Linux OS / distribution thing or other issue with your RPi