Skip to content

ADXL345 V2.0

Product Profile

BIGTREETECH ADXL345 V2.0 is a module for printer resonance compensation. It can communicate through USB, greatly simplifying wiring.

Features Highlights

  • The board has a reserved BOOT button for easy firmware updates.
  • Reserved solder points enable users to customize wiring easily.
  • The USB port has an added ESD protection chip to prevent the MCU from being damaged by static electricity through the USB.


Dimensions 33.25 x 15.5mm
Installation Dimensions See BIGTREETECH ADXL345 V2.0-SIZE.pdf for details.
Microprocessor RP2040 Dual ARM Cortex-M0+ @ 133MHz
Input Voltage DC 5V
Logic Voltage DC 3.3V
Communication with PC USB2.0
Sensor ADXL345
Sensor Communication 4Line SPI
Resolution Up to 3.9mg/LSB.
Output Data Rate 0.1-3200Hz
Sensor Operating Temperature Range -40℃ to +85℃

Firmware Support

This product currently only supports Klipper firmware.


Peripheral Interface

Pin Description

Interface Introduction

Connecting to BTT Pi V1.2 (Type-C)

Connecting to Manta M8P (Type-C)

Connecting to Manta M8P (Soldering Wires)

Klipper Firmware

Compiling Klipper Firmware

1.Connect to CB1/Raspberry Pi via SSH and enter the following commands:

cd ~/klipper/

make menuconfig

​ Configure the firmware as shown in the provided image (update Klipper firmware to the latest version if options are not available).

[*] Enable extra low-level configuration optionsMicro-controller

Micro-controller Architecture (Raspberry Pi RP2040) --->

Bootloader offset (No bootloader) --->

Flash chip (W25Q080 with CLKDIV 2) --->

Communication interface (USB) --->

2.After configuration, press q to exit, and select Yes when prompted to save.

3.Enter make to compile the firmware. The resulting klipper.bin file will be in the home/pi/klipper/out folder. This can be directly downloaded to your computer from the SSH software's left panel.

Firmware Update via DFU

Raspberry Pi or CB1 update via DFU.

  1. Hold the Boot button and connect the board to Raspberry Pi/CB1 via Type-C cable to enter DFU mode.

  2. Enter lsusb in the SSH terminal to query the DFU device ID.

​ 3.Enter

cd klipper

​ navigate to the Klipper directory, and enter

make flash FLASH_DEVICE=2e8a:0003

​ start flashing the firmware (Note: Replace 2e8a:0003 with the actual

​ device ID found in the previous step.)

​ 4.After flashing, enter

ls /dev/serial/by-id/

​ to query the device's Serial ID (only applicable for USB communication, not for CANBus).

​ 5.For USB communication, you don't need to press the Boot button for subsequent updates. Enter the following command to flash the firmware make flash FLASH_DEVICE=/dev/serial/by-id/usb-Klipper_rp2040_4550357128922FC8-if00

(Note: replacing **/dev/serial/by-id/xxx** with the actual ID found in the previous step).

Configuring Klipper

  1. Download the sample-bigtreetech-adxl345-v2.0.cfg config file from:

​ 2.Upload to the Configuration Files.

​ 3.In printer.cfg, add:

[include sample-bigtreetech-adxl345-v2.0.cfg]

​ 4.Set the correct ID number for your board.(USB serial)

​ 5.Configure the module's functions according to the instructions in the link below:

​ The axes_map parameter needs to be set according to the direction of the module installation and the movement direction of the printer. The first parameter represents the direction of the accelerometer module corresponding to the axis when the printer's X-axis moves in the positive direction (the silk screen on the module shows the direction of each axis of the module), and the second parameter represents the direction of the accelerometer when the Y-axis moves in the positive direction.

​ 6.After configuring and installing the module and successfully connecting to the printer, you can start the resonance compensation test. Follow the instructions in the link below to start testing:

In Mainsail's Console, enter the following command to start X axis calibration:


Enter the following command to start Y axis calibration:


After calibration is complete, follow the prompts and enter SAVE_CONFIG to save the calibration parameters.

Note: After the resonance compensation test, the module can be removed. The module configuration needs to be commented out in the "printer.cfg" file, otherwise the printer will fail to start if it cannot find the module. Comment out the module configuration by adding "#" in front of the config file name:

# [include sample-bigtreetech-adxl345-v2.0.cfg]


Note: Avoid overtightening screws during installation to prevent damage.

Example using the Voron StealthBurner:

Method 1:

Install on the side bracket with the dual holes (matches official spacing).

Method 2:

Use screws through the PCB and rubber ring on the heater block as shown.

Back to top