#Error with my ADXL 345

71 messages · Page 1 of 1 (latest)

hasty sundial
#

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.

barren hedgeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

harsh bloom
#

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.

hasty sundial
#

let me go ahead and try this right now

#

Hey @harsh bloom 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?

#

@harsh bloom

harsh bloom
#

not my diagram, but if you send me a link i'll take a look.

hasty sundial
#

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?

harsh bloom
#

yes, tie all the grounds together

hasty sundial
#

thank you

#

what about the CLK? is that the same as SCL?

harsh bloom
#

and SCL and CLK are the same yeah

hasty sundial
#

got it i will build my wire right now and try

harsh bloom
#

good luck!

hasty sundial
#

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?

harsh bloom
#

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

hasty sundial
#

and where can i open the configurator

#

sorry im a total noob on this

harsh bloom
#

My dad wired it up and I didn't feel like pointing out where he fucked up lol

hasty sundial
#

i dont have that tab huhu

harsh bloom
#

oh, are you on ratos 2.0?

hasty sundial
#

yes

#

2.0

#

for a core v3

harsh bloom
#

go to ratos.local/config

hasty sundial
#

yes im here

#

which cfg file should i open

harsh bloom
#

oh sorry that should be ratos.local/configure

hasty sundial
#

it opened a wizard

#

is this the right page?

harsh bloom
#

Yeah

hasty sundial
harsh bloom
#

Hm. Maybe in 2.0 the adxl is configured purely in the printer.cfg then

hasty sundial
#

i see

harsh bloom
#

yeah, seems around line 125 you should have a line to uncomment

hasty sundial
harsh bloom
#

cool, seems good then. Hope your re-wiring fixes things

hasty sundial
#

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?

harsh bloom
#

yep

#

might e easier to tie them together a few inches away and have only one wire crimped into the connectors

hasty sundial
#

exactly what im doing

#

let me give this a try

#

ur the greatest man

#

appreciate ur input

harsh bloom
#

lets hope we get it actually working 😛

hasty sundial
#

@harsh bloom

#

same error code

#

twisted all the ground wires and slot them on ground header of the ratrig

hasty sundial
#

i have 3 wires soldered to gnd lead on adxl

harsh bloom
#

afaik there isn't any jumpers or config for the thing, double check the soldering that there isn't any bridges?

hasty sundial
harsh bloom
#

looks clean to me

hasty sundial
#

hmm

harsh bloom
#

but its blurry, id grab a loupe

hasty sundial
#

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

hasty sundial
#

upp