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
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-sapphireOP•2y ago
When I commented out for the location and resonance tester it gives me this error after i save and restart.
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 signaladverse-sapphireOP•2y ago
I'll try the ethernet cable, but I have tested the continuity with my multimeter and all test out just fine
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-sapphireOP•2y ago
Does [ADXL345]
axes_map: y, x, z need to be added under user overrides? I'm running an Octopus V1.1
just regular section
xyz to match the orientation as you have yours mounted
adverse-sapphireOP•2y 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
error mentioned above is seeing a new line character (\n) , thus throwing the error
just add it
adverse-sapphireOP•2y ago
Do add it here?
crap...just turned off my printer...can't grab my section... wait a minute....
adverse-sapphireOP•2y ago
Line 111 is in hotends and looks like Mosquito is in there twice
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)
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-sapphireOP•2y ago
Like this?
No, but you need good connections that are meant for moving. I used jst-sm because I already had them on hand
adverse-sapphireOP•2y 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?
Yes you tie all the ground wires together
adverse-sapphireOP•2y ago
So is SCL same as CLK? And you mention 5v, VCC on my octopus v1.1 gives 3.3v
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-sapphireOP•2y ago
There is no CLK on my board
adverse-sapphireOP•2y ago
Yeah hook up the last 3 from either side. Int 1 and 2 aren't used
adverse-sapphireOP•2y ago
Looking at the pinout for Octopus, I could use the 5v pin shown?
Yup
adverse-sapphireOP•2y 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
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-sapphireOP•2y ago
Got 3 to fit in dupont with no problem
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-sapphireOP•2y ago
Just wired everything up and believe to have set the cfg properly, still getting the same message with two different boards,
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.
mounted mine with nylon screws for that very issue as well (make sure I wasn't shorting out the traces near the screws)
someone show how it is connected to the motherboard. Btt Octopus pro f446
it is in the documentation https://os.ratrig.com/docs/boards/btt/octopus-pro-446#wiring
thanks but this dont work
create a new post in #fix-my-printer
Are you running it on 3.3V or 5V ?
I think I'm running standard, connected to 3.3v.
Asking because mine did not work on 3.3V pins and went for 5V pin instead, it worked for me.
It works now, I used a shorter cable.
I have another problem now.😅
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
What's the new problem?
Move exceeds maximum extrusion (2.690mm^2 vs 1.440mm^2)
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?
0.6 , no i changed that
Did you restart klipper after that change?
yes
What speed and feeds are you using? You are trying to push 8 times your nozzle diameter^2
I happened to me last night, my fault for changing extrusion % by mistake to 120....
in SS?
What's your extrusion multiplier?
0.95
Is your speed set high in mainsail interface or something?
no,
solved
restarting slicer and printer
xenial-black•2y 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
Easy…I ended going for the mad solution….ugly as hell but it does not move anymore!!!
xenial-black•2y ago
Did you encase your connectors in glue? silicon? Very interesting bit of wiring...
Remind me and I will try and get a photo tomorrow
Hot glue, yes 😂😂😂
Please ignore the mess, I am in the middle of an upgrade to full metal motor mount and 126type bearings (cause vcore3 3.0)
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•2y ago
Thanks so much for sharing this. What awg did you use for the silicone multi-strands?
22
xenial-black•2y 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.
looks ok to me
xenial-black•2y 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?
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•2y 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!
Please don't highjack this post. Please start your own post
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.