gaifeng8864 / klipper-on-android

Run klipper, moonraker, fluidd, KlipperScreen one-click configuration script on androidOS.
GNU General Public License v3.0
129 stars 28 forks source link

Input shaping with adxl345 #23

Open letiguja opened 2 months ago

letiguja commented 2 months ago

Can I use adxl345 to do input shaping and if it is possible how would i do it.

gaifeng8864 commented 1 month ago

Can I use adxl345 to do input shaping and if it is possible how would i do it.

Yes, you can use ADXL345. However, you need to connect it to the hardware SPI interface on the printer motherboard through the SPI interface (software SPI usually has insufficient communication speed or occupies too much CPU of the printer control board), and then add the following configuration information to the configuration file printer.cfg.

[adxl345] cs_pin: PA4 spi_bus: spi1 axes_map: -x,-y,z

[resonance_tester] accel_chip: adxl345 probe_points: 135,135,10 # an example

Note: cs_pin: PA4 spi_bus: spi1 You need to determine it according to the interface definition of the printer motherboard. For details, please refer to the official pin definition document of the printer control board.

For other options, please refer to the instructions in the official document of klipper and modify them according to your own control board.