Error with my ADXL 345

I am getting this Invalid adxl345 id (got 0 vs e5). I went on ahead and checked all my wiring and they all seem good, I even built a cable a shielded cat 5 because i saw online that this is prone to interferance.
45 Replies
TheTik
TheTik•4d ago
That error strongly suggests something wrong with the wiring, a short or a disconnect. The best advice I've found is this:
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.
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.
Mike C
Mike COP•4d ago
let me go ahead and try this right now Hey @TheTik Question on the grounds your diagram shows all white wires are to be connected to ground how should I wire that up to the ADXL board also my board does not have CLK, only SCL? are those the same? @TheTik
TheTik
TheTik•4d ago
not my diagram, but if you send me a link i'll take a look.
Mike C
Mike COP•4d ago
well im just trying to follow your wiring suggestion but i noticed my board does not have a CLK pin also how i am i going to wire all the grounds? do i solder them all to the ground pin of my adxl345 board?
TheTik
TheTik•4d ago
yes, tie all the grounds together
Mike C
Mike COP•4d ago
thank you what about the CLK? is that the same as SCL?
TheTik
TheTik•4d ago
and SCL and CLK are the same yeah
Mike C
Mike COP•4d ago
got it i will build my wire right now and try
TheTik
TheTik•4d ago
good luck!
Mike C
Mike COP•4d ago
also do I have to configure anything on software for this to work? or is it plug and play once the adxl is connected right?
TheTik
TheTik•4d ago
You'll need to choose it in the cofigurator i think? Full disclosure, I didn't get my ADXL working, had the same error. But I was planning on using a toolboard with built-in accelerometer early so I didn't bother troubleshooting
Mike C
Mike COP•4d ago
and where can i open the configurator sorry im a total noob on this
TheTik
TheTik•4d ago
My dad wired it up and I didn't feel like pointing out where he fucked up lol
TheTik
TheTik•4d ago
No description
Mike C
Mike COP•4d ago
No description
Mike C
Mike COP•4d ago
i dont have that tab huhu
TheTik
TheTik•4d ago
oh, are you on ratos 2.0?
Mike C
Mike COP•4d ago
yes 2.0 for a core v3
TheTik
TheTik•4d ago
go to ratos.local/config
Mike C
Mike COP•4d ago
yes im here which cfg file should i open
TheTik
TheTik•4d ago
oh sorry that should be ratos.local/configure
Mike C
Mike COP•4d ago
it opened a wizard is this the right page?
TheTik
TheTik•4d ago
Yeah
Mike C
Mike COP•4d ago
No description
TheTik
TheTik•4d ago
Hm. Maybe in 2.0 the adxl is configured purely in the printer.cfg then
Mike C
Mike COP•4d ago
i see
TheTik
TheTik•4d ago
yeah, seems around line 125 you should have a line to uncomment
Mike C
Mike COP•4d ago
No description
TheTik
TheTik•4d ago
cool, seems good then. Hope your re-wiring fixes things
Mike C
Mike COP•4d ago
tyyy man one last thing im just a little confused on the grounds so tie all my grounds in one bunch then plug into the only ground pin on the mainboard of ratrig right?
TheTik
TheTik•4d ago
yep might e easier to tie them together a few inches away and have only one wire crimped into the connectors
Mike C
Mike COP•4d ago
exactly what im doing let me give this a try ur the greatest man appreciate ur input
TheTik
TheTik•4d ago
lets hope we get it actually working 😛
Mike C
Mike COP•4d ago
@TheTik same error code twisted all the ground wires and slot them on ground header of the ratrig
Mike C
Mike COP•4d ago
No description
Mike C
Mike COP•4d ago
i have 3 wires soldered to gnd lead on adxl
TheTik
TheTik•4d ago
afaik there isn't any jumpers or config for the thing, double check the soldering that there isn't any bridges?
Mike C
Mike COP•4d ago
No description
TheTik
TheTik•4d ago
looks clean to me
Mike C
Mike COP•4d ago
hmm
TheTik
TheTik•4d ago
but its blurry, id grab a loupe
Mike C
Mike COP•4d ago
so just making sure all the white wires are soldered to tne GND lead then i crimped all the ground wires in one dupont connector
Mike C
Mike COP•4d ago
No description
Mike C
Mike COP•3d ago
upp
blacksmithforlife
blacksmithforlife•3d ago
could be dead on arrival, they aren't known to be the most robust chips. Try a different one

Did you find this page helpful?