# There was an error when orangezero3 configured the ADXL345: Unknown command: "ACCELEROMETER\_QUERY"

**URL:** <https://klipper.discourse.group/t/there-was-an-error-when-orangezero3-configured-the-adxl345-unknown-command-accelerometer-query/23486>\
**Category:** General Discussion\
**Created:** [May 17, 2025, 12:03pm UTC](https://klipper.discourse.group/t/there-was-an-error-when-orangezero3-configured-the-adxl345-unknown-command-accelerometer-query/23486 "2025-05-17T12:03:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tianyi7725](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tianyi7725](https://klipper.discourse.group/u/tianyi7725)\
**Post date:** [May 17, 2025, 12:03pm UTC](https://klipper.discourse.group/t/there-was-an-error-when-orangezero3-configured-the-adxl345-unknown-command-accelerometer-query/23486/1 "2025-05-17T12:03:09Z")

</div>

voron trident  
orangepi zero3  
spider 3.0

I encountered a problem when installing the ADXL345.  
This is the configuration file adxl.cfg.

```auto
#####################################################################
# ADSL345
#####################################################################
[mcu OrangeZero]
serial: /tmp/klipper_host_mcu

[adxl345]
cs_pin: OrangeZero:None
spi_bus: spidev1.1
axes_map: z,y,x
spi_speed:5000000

[resonance_tester]
accel_chip: adxl345
probe_points: 150, 150, 20

```

When I included [include adxl.cfg] in print.cfg, an error occurred.

 ![6AEFDF6D1841D96FCEA277348E5C4FDB](https://global.discourse-cdn.com/free1/uploads/klipper/original/3X/8/8/880e8ffc809b39891576a17543a47969580303f7.png)

I have no idea why.  
Could you please give me some guidance?  
[klippy.log](https://klipper.discourse.group/uploads/short-url/mZ99tV4cqmlOLgGlKlNPNNBC1lx.log) (6.2 MB)

---

<div class="post-metadata">

**Author:** ![tianyi7725](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tianyi7725](https://klipper.discourse.group/u/tianyi7725)\
**Post date:** [May 17, 2025, 2:15pm UTC](https://klipper.discourse.group/t/there-was-an-error-when-orangezero3-configured-the-adxl345-unknown-command-accelerometer-query/23486/2 "2025-05-17T14:15:59Z")

</div>

I modified the configuration：

```auto
[mcu orangepi]
serial: /tmp/klipper_host_mcu

[adxl345]
cs_pin: orangepi:gpio24
spi_bus: spidev1.1
axes_map: z,y,x
# spi_speed:5000000

[resonance_tester]
accel_chip: adxl345
probe_points: 150, 150, 20

```

Then this error occurred again:

 ![222](https://global.discourse-cdn.com/free1/uploads/klipper/original/3X/a/3/a306c2d30a9a61f86d8417f22609389da10212c8.png)

---

<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:** [May 17, 2025, 6:23pm UTC](https://klipper.discourse.group/t/there-was-an-error-when-orangezero3-configured-the-adxl345-unknown-command-accelerometer-query/23486/3 "2025-05-17T18:23:23Z")

</div>

The error likely comes from issues on the Linux level. Depending on the Linux distribution used on the OPi and its quality, getting SPI to work can be a major pain.

This is one of the beauties of the Raspberry Pi. Here, it just works out of the box without having to fight goofy quirks.
