adxl345 not working after initial flash

hey, so I wanted to run "MEASURE_AXES_NOISE " for the first time, and i got this "Invalid adxl345 id (got 0 vs e5)". After hours of google searching and ChatGPT, it is telling me to recompile firmware to enable SPI3. I doubt that this is the right answer since I was going step by step on the instructions. Any help is appreciated!
9 Replies
MoustachedLion
MoustachedLionOP4w ago
here is the debug file
TheTik
TheTik4w ago
thats most likely a wiring issue. Unshielded wires can also affect it.
MoustachedLion
MoustachedLionOP4w ago
so what would you recommend? i used 22AWG wire that I had laying around and then soldered wires with a dupont connector.
TheTik
TheTik4w ago
I tried with some cat5e and didn't get it right, I knew I wanted to move to a toolboard though so just skipped it I'd recommend triple checking the wires are going to the right spots, and then bust out a multimeter
MoustachedLion
MoustachedLionOP4w ago
i just read online somewhere, that you need to use cat5 cable. I did unplug and replug in the wires multiple times. I also attemted the multimeter, just to confirm that 3.3V was going to the tool head.
blacksmithforlife
I got this advice from another user and it worked great
ADXL345 Wiring for Reliable Operation: The data and clock rate of SPI communication between the ADXL chip and the host (BTT Octopus Pro in my case) can be as high as 5Mhz. Proper wiring is needed to work at this speed. An easy way is to use the 4 twisted pairs in CAT5/6 cable so that each of the high speed lines (CLK, SDO, SDA) are in a separate twisted pair, with a ground wire in each pair. This is how I have wired it: Pair 1 - Orange/White is 3.3V, Orange CS; Pair 2 - Green/White Ground, Green SDA; Pair 3 - Blue/White Ground, Blue SDO; Pair 4 - Brown/White Ground, Brown CLK. It is important to connect the orange/white to the 3.3V pad on the ADXL break out board, not the VCC pad as that goes through the regulator and has an extra voltage drop. With this setup, I was able to work even with a 50' long CAT5 cable! It will certainly work for VCore3 500.
TheTik
TheTik4w ago
I need to bookmark that! 😍
MoustachedLion
MoustachedLionOP4w ago
i quickly attempted this with my lose wires that I have and it did not work. Is the Cat5 cable different from just normal wires? If yes, then I will order some tonight
TheTik
TheTik4w ago
Its twisted pairs, so rejects electrical noise.

Did you find this page helpful?