Issues with ADXL Invalid adxl345 id (got ff vs e5).

Wired in my ADXL, uncommented in printer.cfg, entered MEASURE_AXES_NOISE in console and getting "invalid adxl345 id" message, I've checked wiring connections and replaced with new ADXl, still getting same message. Any ideas what I may have missed, or what the problkem may be?
74 Replies
ptegler
ptegler2y ago
input-shaper.cfg included in printer.cfg? [ADXL345] axes_map: y, x, z included in printer.cfg location to test included in printer.cfg? ADXL345 resonance testing configuration - remember to comment this out when not connected [resonance_tester] probe_points: 250,250,50 # 500mm printer
adverse-sapphire
adverse-sapphireOP2y ago
When I commented out for the location and resonance tester it gives me this error after i save and restart.
No description
blacksmithforlife
invalid adxl345 id is either a bad ADXL or bad wiring which causes a bad signal. My general advice, don't use dupont connectors on the ADXL board. Use a ethernet cable and wire it up like this: 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. This way you get the advantage of using the twisted pairs in ethernet for better signal
adverse-sapphire
adverse-sapphireOP2y ago
I'll try the ethernet cable, but I have tested the continuity with my multimeter and all test out just fine
blacksmithforlife
continuity can be good, but running long thin wires a long distance can have problems on the signal that is what ethernet is good at because it twists the ground wire with the signal wire which helps
adverse-sapphire
adverse-sapphireOP2y ago
Does [ADXL345] axes_map: y, x, z need to be added under user overrides? I'm running an Octopus V1.1
ptegler
ptegler2y ago
just regular section xyz to match the orientation as you have yours mounted
adverse-sapphire
adverse-sapphireOP2y ago
I'm assuming I need to solder the ethernet straight to the ADXL then? I do not see an area in the regular section to uncomment for [ADXL345] axes_map: y, x, z
ptegler
ptegler2y ago
error mentioned above is seeing a new line character (\n) , thus throwing the error just add it
adverse-sapphire
adverse-sapphireOP2y ago
Do add it here?
No description
ptegler
ptegler2y ago
crap...just turned off my printer...can't grab my section... wait a minute....
adverse-sapphire
adverse-sapphireOP2y ago
Line 111 is in hotends and looks like Mosquito is in there twice
No description
Balu
Balu2y ago
Yeah, Dupont can be quite loose. For me it helps to bend the connector a bit once the error is shown - still connected (that it’s pushed to the side where you are able to see the terminals)
ptegler
ptegler2y ago
the adxl (above) can be anywhere in the normal section in printer.cfg mine is between FANS and LEDs [ADXL345] axes_map: y, x, z #re-orient ADL as I have the board sitting sideways on to the carriage - pat 20221214 ADXL345 resonance testing configuration - remember to comment this out when not connected [resonance_tester] probe_points: 250,250,50 # 500mm printer
adverse-sapphire
adverse-sapphireOP2y ago
Like this?
No description
blacksmithforlife
No, but you need good connections that are meant for moving. I used jst-sm because I already had them on hand
adverse-sapphire
adverse-sapphireOP2y ago
You are connecting 10 wires, but vcore wiring diagram is showing only 6 wires being connected, am I to connect three wires to the ground, and is SCL the same as CLK?
blacksmithforlife
Yes you tie all the ground wires together
adverse-sapphire
adverse-sapphireOP2y ago
So is SCL same as CLK? And you mention 5v, VCC on my octopus v1.1 gives 3.3v
blacksmithforlife
The chip can handle various voltage. I prefer to use the 5v in case there is more voltage drop. I am not sure about SCL, but I would imagine not Post a picture of your adxl
adverse-sapphire
adverse-sapphireOP2y ago
There is no CLK on my board
adverse-sapphire
adverse-sapphireOP2y ago
No description
blacksmithforlife
Yeah hook up the last 3 from either side. Int 1 and 2 aren't used
adverse-sapphire
adverse-sapphireOP2y ago
Looking at the pinout for Octopus, I could use the 5v pin shown?
No description
blacksmithforlife
Yup
adverse-sapphire
adverse-sapphireOP2y ago
good, just checked it and getting 4.8v what about using all three ground wires on the three separate pins on the board, rather than trying to stick all three in one jst or dupont.... guess i need to figure that out though, because the adxl only has 1 ground
blacksmithforlife
You need to tie them to the ground on the adxl. I ran a single wire to the adxl, and then splice the 3 from the Ethernet cable on one end of the single wire and solder the other to the adxl board.
adverse-sapphire
adverse-sapphireOP2y ago
Got 3 to fit in dupont with no problem
ptegler
ptegler2y ago
SCL- signal clk SDA- signal data ddress SDO- signal data out like BSFL stated.... two center INT pins are not used. You only need six wires ratrigs own drawing shows the ADXL https://os.ratrig.com/assets/images/octopus-pro-wiring-85e95969570f598f4bc464231e16d191.png. I've been running mine on 3.3V exactly as shown, but have a full seperate wire (not bundled) I plug in when ever I'm prepping to do a vibe run
adverse-sapphire
adverse-sapphireOP2y ago
Just wired everything up and believe to have set the cfg properly, still getting the same message with two different boards,
AlexB-Cat
AlexB-Cat2y ago
Had the same problem, just took my metal screws off, put some electrical tape in between the adxl and the screws and now it works fantastic plugged on a 5V pin...it did not work under 3.3V initially....don't ask me why...I'm a complete nerd to this.
ptegler
ptegler2y ago
mounted mine with nylon screws for that very issue as well (make sure I wasn't shorting out the traces near the screws)
Darth_Maul_Vadim
someone show how it is connected to the motherboard. Btt Octopus pro f446
Darth_Maul_Vadim
thanks but this dont work
blacksmithforlife
create a new post in #fix-my-printer
AlexB-Cat
AlexB-Cat2y ago
Are you running it on 3.3V or 5V ?
Darth_Maul_Vadim
I think I'm running standard, connected to 3.3v.
AlexB-Cat
AlexB-Cat2y ago
Asking because mine did not work on 3.3V pins and went for 5V pin instead, it worked for me.
Darth_Maul_Vadim
It works now, I used a shorter cable. I have another problem now.😅
AlexB-Cat
AlexB-Cat2y ago
Mine is very long and guess 3.3V wasn't enough...I'm no expert though in electronics. Happy to hear though that's it's solved. lol
blacksmithforlife
What's the new problem?
Darth_Maul_Vadim
Move exceeds maximum extrusion (2.690mm^2 vs 1.440mm^2)
blacksmithforlife
You're using a bigger nozzle than 0.4 aren't you? And you didn't update your printer.cfg with the current nozzle size, right?
Darth_Maul_Vadim
0.6 , no i changed that
No description
blacksmithforlife
Did you restart klipper after that change?
Darth_Maul_Vadim
yes
blacksmithforlife
What speed and feeds are you using? You are trying to push 8 times your nozzle diameter^2
AlexB-Cat
AlexB-Cat2y ago
I happened to me last night, my fault for changing extrusion % by mistake to 120....
Darth_Maul_Vadim
in SS?
blacksmithforlife
What's your extrusion multiplier?
Darth_Maul_Vadim
0.95
blacksmithforlife
Is your speed set high in mainsail interface or something?
Darth_Maul_Vadim
no,
No description
Darth_Maul_Vadim
solved restarting slicer and printer
xenial-black
xenial-black2y ago
Would it be possible to show a photo of your setup? I like the idea of using the CAT6 cable - I'm just not sure how to physically connect it to the ADXL345 using JST-SM's. Thanks
AlexB-Cat
AlexB-Cat2y ago
Easy…I ended going for the mad solution….ugly as hell but it does not move anymore!!!
AlexB-Cat
AlexB-Cat2y ago
No description
xenial-black
xenial-black2y ago
Did you encase your connectors in glue? silicon? Very interesting bit of wiring...
blacksmithforlife
Remind me and I will try and get a photo tomorrow
AlexB-Cat
AlexB-Cat2y ago
Hot glue, yes 😂😂😂
blacksmithforlife
Please ignore the mess, I am in the middle of an upgrade to full metal motor mount and 126type bearings (cause vcore3 3.0)
No description
blacksmithforlife
But you can see, I use a very short bit of silicone multi-stranded wire to the jst-sm connectors and then those connect to the Ethernet cable
xenial-black
xenial-black2y ago
Thanks so much for sharing this. What awg did you use for the silicone multi-strands?
xenial-black
xenial-black2y ago
Thanks! I have an ADXL345 arriving tomorrow - more reasons for tinkering! I've installed the ADXL onto the printer (same orientation as yours) and have done the wiring, as you described. Please can you review my ADXL section within the Printer.cfg: ------------------------------------------------------------------ ADXL345 resonance testing configuration [resonance_tester] probe_points: 100,100,20 # 200mm printer 150,150,20 # 300mm printer 200,200,20 # 400mm printer 250,250,20 # 500mm printer ------------------------------------------------------------------ I have also uncommented this: ############################################################################################################# INPUT SHAPER Enable/disable input shaper calibration ############################################################################################################# Uncomment this next line if you have an ADXL345 connected to your control board [include config/printers/v-core-3/input-shaper.cfg] ############################################################################################################# Is this all correct - or do I need to make any more amendments? After sending: ACCELEROMETER_QUERY I get: Invalid adxl345 id (got 0 vs e5). Before I check wiring again - I want to make sure all config files are correct.
blacksmithforlife
looks ok to me
xenial-black
xenial-black2y ago
Just carried out a continuity check and it's all good. Should I try connecting to 5V instead of 3.3V? I presume this wont fry the chip (ADXL345 GY-291)? Are there any other commands I can try to see if it is recognising it as installed?
blacksmithforlife
You will have to check the chip and what it is able to handle. That is the correct command, so if it isn't working then either the chip is dead or something to do with the wiring
xenial-black
xenial-black2y ago
Description of product: “The ADXL345 accelerometer is a small and efficient sensor with a high resolution (13-bit) that can measure an acceleration of up to ± 16g. The module can be accessed via the I2C or SPI protocol and can be supplied with a voltage between 3V and 5V. “ I guess it’s worth a try… That seemed to make it work! Thanks for all your help with this - I really appreciate it!
blacksmithforlife
Please don't highjack this post. Please start your own post
AlexB-Cat
AlexB-Cat13mo ago
Most of the time it seems to be eithewr for a too long wiring or not using paired Ethernet paired wires....there's been a lot commented here on this issue. Myself had this problem and used @blacksmithforlife 🇺🇸 solution and it worked at first attempt.
Want results from more Discord servers?
Add your server