ADXL345 Not Working

hi! i got this error and the connection with the adxl its good Invalid adxl345 id (got ca vs e5). Invalid adxl345 id (got ca vs e5). This is generally indicative of connection problems (e.g. faulty wiring) or a faulty adxl345 chip.
No description
56 Replies
beejayf
beejayf2y ago
The wiring of the sensor is critical - mine was weird using untwisted cables and it fails to connect 80% of the time The longer the cable the more shielded cables or a tp network cable are recommended @chrizzar recommended the following: Twisted pair order for three twisted pairs: GND+MISO 3.3V+MOSI SCLK+CS Note that unlike a cable shield, GND must be connected at both ends. I she yet to try this but I am confident
Chrizzar
Chrizzar2y ago
Cool cool, I hope it works out for you! 🙂
blacksmithforlife
I used a Cat6 cable and for each twisted pair I used one for ground and the other for one of the connections. That made it a rock solid connection and I have never had a ADXL issue
Chrizzar
Chrizzar2y ago
Same
national-gold
national-gold2y ago
okey. i will try with cat 6 i used cat 6 cable. didnt work i will buy an new adxl to test
blacksmithforlife
How did you wire it up to the cat6 cable?
national-gold
national-gold2y ago
with dupont connectors
beejayf
beejayf2y ago
I also finished my cat6 based cable - as described above - can't get a connection either. I also think that I fried my ADXL...
blacksmithforlife
did you take each twisted pair and use one of the wires for ground? Pair 1 - Orange/White is 5V, Orange CS; Pair 2 - Green/White Ground, Green SDA; Pair 3 - Blue/White Ground, Blue SDO; Pair 4 - Brown/White Ground, Brown CLK.
fair-rose
fair-rose2y ago
Hello, can you please explain a bit wider what need to be dote to cables ? As i understand i need to take usual LAN cat6 cable. Have pairs twisted together and then i will need to solder all 5 White wires to GDN contact on both ends ?
national-gold
national-gold2y ago
will test taht
blacksmithforlife
cat cable is able to transmit log distances because the ground is wrapped around the data lines. If you don't follow that then you will get cross talk, which the ADXL is extremely sensitive to
absent-sapphire
absent-sapphire2y ago
I had this same issue when I first installed it. I found those same instructions that blacksmith posted before. Worked like a charm. It's not all four white wires though. Read it again. The orange/white and orange pair do not have a GND connection.
fair-rose
fair-rose2y ago
but the rest ( red, blue, yellow, green) should have GND ( white) soldered to gnd port on adxl and gnd connector to the board?
absent-sapphire
absent-sapphire2y ago
network cables only have four pairs. Three of those pairs will have the white/(color) connected to ground. The forth pair is used for +5 and CS. Blacksmith lays it out completely in his post. I'm not sure what kind of cable you are using, as network cables always use brown,green,blue and orange with a corresponding white with a a colored stripe.
blacksmithforlife
I would also recommend soldering good silicone or PTFE wire and using a connector rated for moving parts (like jst-sm or molex). Then attach your CAT6 wire to the connector. the CAT6 wire will break eventually and you want to make it easy to replace it (unless you are good at desoldering. I am not, and it was a real pain to get it disconnected)
national-gold
national-gold2y ago
the adxl was bad but now i have another problem
national-gold
national-gold2y ago
No description
national-gold
national-gold2y ago
No description
national-gold
national-gold2y ago
No description
national-gold
national-gold2y ago
No description
national-gold
national-gold2y ago
so i need to put together all grounds?
blacksmithforlife
correct
national-gold
national-gold2y ago
okey im on it the ground cables can be not cat? like connect that 3 grounds cables to an single cable and that connect to ground
blacksmithforlife
I don't understand, I listed all the cables within the CAT cable and what to use them for
national-gold
national-gold2y ago
i mean, i got 3 grounds cable in cat 5e cable can i merge that cable with an single cable to fit duppont conector?
blacksmithforlife
yeah as long as they are all connected eventually
national-gold
national-gold2y ago
okay
blacksmithforlife
I ran a very short length (like 7cm) of multistrain silicone lined wire to JST-SM connectors. That way I can easily replace the CAT cable in the future since its wiring doesn't seem to last as long as I would have hoped
national-gold
national-gold2y ago
can i see that?
blacksmithforlife
sorry I am at work right now and can't get a picture
national-gold
national-gold2y ago
Okay!
national-gold
national-gold2y ago
Like that @blacksmithforlife 🇺🇸
No description
national-gold
national-gold2y ago
With 3 grounds as 1
blacksmithforlife
sorry it is a bit hard to see
national-gold
national-gold2y ago
Wow I will do like this But At this moment look at this
national-gold
national-gold2y ago
No description
national-gold
national-gold2y ago
That it’s the correct scheme @blacksmithforlife 🇺🇸 ?
blacksmithforlife
can't tell from the photo, just follow my post above for what wire goes where
national-gold
national-gold2y ago
Yep it’s connected like the post I’m going to test now
blacksmithforlife
that brown wire looks suspect, is it fully seated?
national-gold
national-gold2y ago
now its but didnt work
national-gold
national-gold2y ago
No description
national-gold
national-gold2y ago
and that acelerometter was working i connected to 3.3v need to connect to 5v?
blacksmithforlife
I prefer to connect to 5v. Those ADXL can handle the extra voltage and just gives you a bit more room for error
national-gold
national-gold2y ago
okey im going to try connected to 5v rebooting getting 4.95v with multimeter but still not working the adxl was working previusly with basic cable at 3.3v all cables get continuity scl 3.3v sda 0.02v sdo 0.33v
national-gold
national-gold2y ago
No description
No description
national-gold
national-gold2y ago
@blacksmithforlife 🇺🇸
blacksmithforlife
not sure, I personally have not had good results when attaching via dupont connects like you have
national-gold
national-gold2y ago
Okey will try DIRECT Connect I Connected DIRECT to adxl but duppont on The mainboard Still didnt work U direct connect The mainboard too @blacksmithforlife 🇺🇸
blacksmithforlife
you saw my pictures earlier, for connecting to the mainboard I use a single big dupont connector. But I have had it be fiddly o n the dupont (which again is why I don't like them)
national-gold
national-gold2y ago
Can i See The duppont at The mainboard
fair-rose
fair-rose2y ago
Hello again. i've tried different cables. With a new one (special signal cable with heavy shielding) im getting ff vs e5 instead o vs e5. I've connected wires to the RPi , added in config file this lines : [include RatOS/sensors/rpi-adxl345.cfg] [include RatOS/boards/rpi/config.cfg] and getting the error. Can't make ity working for 2 weeks already ( Any ideas?
fair-rose
fair-rose2y ago
No description
slidex
slidex2mo ago
Thank you very much for the great solution, seems a lot of people have problems with this, and your wiring worked for me where nothing else would. Simple Cat5 multi-stranded cable and a run of around 1.5m from my printhead to my cb1 mb with manta m8p, and once wired in as per your instructions, rock solid. 👍
Want results from more Discord servers?
Add your server