How to setup adxl as [probe]

Basic Information:

Printer Model: Custom
MCU / Printerboard: Manta M8P
Host / SBC CB1
klippy.log No

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

Well, as you might know, i had some problems with my horizon sensor as probe. I managed to make it work, but lowering the z homing speed and acel, and doing a lot of modifications.

I have recently seen this branch : GitHub - dmbutyugin/klipper at adxl345-probe and i’m interested to test this, but i dunno how to configure it.

I have an adxl in my ebb42 v1.1 atached to my toolhead, so i can use it for this.
My actual config for adxl is this:

# Accelerometer
# To test resonance, run TEST_RESONANCES AXIS=X or Y
[adxl345 acelerometro_EBBCan_0]
cs_pin: EBBCan_0: PB12
spi_software_sclk_pin: EBBCan_0: PB10
spi_software_mosi_pin: EBBCan_0: PB11
spi_software_miso_pin: EBBCan_0: PB2
axes_map: x,y,z

Anyone has tried this feature already?
Also, as i don’t want to install all the branch in my klipper code as i have some modifications and other things, wich files should i download from this branch in order to make it work¿?

Thanks!

Not the author, but you can see the changes made here. Keep in mind the last push to that code was four years ago, so I’m not sure if it’s still maintained or still works on the latest Klipper.

@dmbutyugin Could you advise?

Thanks! I hope that mainly i will need to change probe and adxl files.
Also, i have a big question here.
According to the docs klipper/docs/Config_Reference.md at 8635682c50fae87affc608d9b21cd0a04885eddc · dmbutyugin/klipper · GitHub

A interruption pin must be specified, which is the pin where i should wire the interruption pin of the adxl to. As I have my adxl inside my ebb42, not externaly, i dunno exactly how to do this (how do i wire this xD¿?).

According to bigtreetech, i only have this info about it:

Okey… More info and i guess bad news for me.
I have just taken a look into the sch of ebb, and have seen this:

It seems that int are not connected to any pin of ebb…
I guess I need to do some soldering or just buy a new adxl , instead of using the one of ebb

Not sure what your concern is. The relevant ADXL code was merged around 2021 and has been available in the main-line Klipper since then.

There is no need to solder anything. Just follow the description in this file.

3 Likes

I have not revised this code for a long time. I would say the initial experiments were not very promising. The issue is that it is difficult to obtain reliable triggering of the adxl probe while avoiding false triggering. Basically, either the probe is too sensitive and can trigger from simple Z axis movement (especially on a bed slinger where Z axis directly moves the X beam with the extruder with the accelerometer) or it is not sensitive enough and may miss some of the actual cases nozzle hitting the bed. And missed events may result in a catastrophic damage of a printer, as Z axis is typically very powerful and can bend something in the hotend. So for most of the printers it is not safe to use an accelerometer as a probe, and I did not pursue this any further than this.

2 Likes

Ouch, my bad. Misread the initial intention of wanting to use it for homing and “tap detection”. Thanks @dmbutyugin

I already use that configuration for my adxl (i use it in order to measure resonances). The problem is that a interruption pin is needed, and as you can see, bigtreetech hasn’t connected that pin to the ebb, so i would need to solder it to some pin by myself.

Thank you, @dmbutyugin. I had the same concern. Since I intend to use it not only as a probe for bed mesh but also as a virtual endstop, I believe it would be best to discard this option, as it may not provide the level of safety I require.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.