# ADXL345 inputshaper not working

**URL:** <https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642>\
**Category:** General Discussion\
**Created:** [September 23, 2023, 1:09pm UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642 "2023-09-23T13:09:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal2708](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Pascal2708](https://klipper.discourse.group/u/Pascal2708)\
**Post date:** [September 23, 2023, 1:09pm UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642/1 "2023-09-23T13:09:44Z")

</div>

### Basic Information:

Printer Model: Sapphire Pro  
 MCU / Printerboard: Raspberry Pi 4B, stock Sapphire Pro Mainboard  
 `klippy.log`

### Describe your issue:

Hello 🙂  
I am really getting desperate with the setup of inputshaper.  
I tried to set it up last week without any luck. Did I miss anything? Thank you for your help!

Hardware: Raspberry Pi 4B with klipperscreen, [ADXL345](https://de.aliexpress.com/item/4000196862769.html?spm=a2g0o.order_list.order_list_main.46.15455c5fVmo45P&gatewayAdapt=glo2deu), Sapphire Pro with 2 month old klipper install,

Problem:  
As soon as I add the code from the manual klipper does not start anymore.

Error in the dashboard:

```auto
MCU 'rpi' error during config: Unable to open spi device 
Once the underlying issue is corrected, use the 
"FIRMWARE_RESTART" command to reset the firmware, reload the 
config, and restart the host software. 
Error configuring printer

```

What did I do:  
I followed the video from Nero 3D  
Guide from klipper Measuring\_Resonances + RPi\_microcontroller

My ADXL345 looks like the picture on the right and connected it like that, I swapped 100cm cables with 20cm jumper cables as a test.  
SPI is active.  
systemctl status klipper-mcu is active.  
Folder exists `lrwxrwxrwx 1 root root 10 Sep 17 12:13 klipper_host_mcu -> /dev/pts/0`  
Second ADXL345 sensor tested without luck.

I tried pretty much everything I could find. SD card backed up and copied to new SD card and tested other Pi 4B.

Some thougts:  
Could klipper screen/drivers cause problems for the GPIO Pins and adxl345?  
Is there a problem with my printer.cfg?  
Is klipper damaged? I did not install much. Only klipperscreen with driver, obico and mobileraker.  
[klippy.log](https://klipper.discourse.group/uploads/short-url/dBufeMfDqcdcDWhrJzcrt3TSBfr.log) (1.7 MB)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 23, 2023, 2:17pm UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642/2 "2023-09-23T14:17:02Z")

</div>

Run

```auto
grep spi /boot/config.txt

```

and

```auto
ls /dev/spi*

```

Copy and paste output here

---

<div class="post-metadata">

**Author:** ![Pascal2708](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Pascal2708](https://klipper.discourse.group/u/Pascal2708)\
**Post date:** [September 24, 2023, 1:13pm UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642/3 "2023-09-24T13:13:01Z")

</div>

Thank you 🙂

> pi@klipper:~ $ grep spi /boot/config.txt  
> dtparam=spi=on  
> dtparam=spi=on

> pi@klipper:~ $ ls /dev/spi\*  
> ls: cannot access ‘/dev/spi\*’: No such file or directory

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 24, 2023, 2:09pm UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642/4 "2023-09-24T14:09:50Z")

</div>

Try adding  
`dtoverlay=spi0-cs`  
to the `/boot/config.txt` file, then reboot

---

<div class="post-metadata">

**Author:** ![Pascal2708](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Pascal2708](https://klipper.discourse.group/u/Pascal2708)\
**Post date:** [September 24, 2023, 2:45pm UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642/5 "2023-09-24T14:45:46Z")

</div>

Thank you, now I am a step further 🙂  
Had to uncomment`dtoverlay=mhs395:rotate=90`  
I dont know from what that exactly is. Maybe Screen?

With `dtoverlay=spi0-cs` it now starts and works after 2 reboots. I dont know why I needed 2 but after the first I did not get any values of the sensor.

 ![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/5/5257e1eb310a4bccbd3407fcdd58987550c0f644.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [October 25, 2023, 12:46am UTC](https://klipper.discourse.group/t/adxl345-inputshaper-not-working/10642/6 "2023-10-25T00:46:40Z")

</div>

Closed on October 25, 2023, 12:46am UTC

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