ADXL sensor
Hey all
so my issue is with getting an ADXL345 sensor working for input shaper
i bought a Linneo harness and the sensor from onetwo3d and have checked the wiring is correct im trying to get it to work with SPI and im using the latest version of Rat OS but when i try and query the sensor i get
Invalid adxl345 id (got ff vs e5)
"Invalid adxl345 id (got ff vs e5).
This is generally indicative of connection problems
(e.g. faulty wiring) or a faulty adxl345 chip."
i know the wiring is correct and ive uncommented the section in printer.cfg just no0t sure what could be stopping it from working, SPI mode is enabled any idea
6 Replies
jolly-crimson•2y ago
have you wired it to your board or the pi? and to which pins?
And ofc did you set the includes correctly 😛
The wiring may be correct, but the boards are really sensitive to data error. I'm not familiar with the harness you speak of but the wiring needs to be done so that the data lines aren't influenced by other wiring or electrical noise
fair-roseOP•2y ago
so ive done it to the PI not the board and i did do the includes,
jolly-crimson•2y ago
out of my own experience, if your wires are the same colour from end-to-end, make a picture of the pins of both sides, and re-check it three times with the schematic. Even let someone else look at it.
The data-integrity so often mentioned here is overrated here in my opinion -as long as you don't run 2m+ plus long cables and route them along all possible electrical noise sources you can - but in the defense of that theory - you only need one nasty spot to be a problem.
But signal integrity over this distance should really be no issue
that said - i have no experience (besides my own one) with the ADXL's, but i do know a bit about signal integrity ^^
There's theory and then there's experience. I have seen at least a dozen people complain of issues and as soon as they wired it like I have mentioned their issue is gone.
jolly-crimson•2y ago
i absolutely believe you - that's why i am explicitly stating this. But i checked the signals on my ADXL with really thin wire at quite the length - and for signal levels the losses were negligible. I do however believe that these problems often come from bad connections
and - as i said - running it across some sensitive areas ofc