Skip to content

Mellow Fly‐ADXL345 USB Accelerometer

HalfManBear edited this page Feb 29, 2024 · 8 revisions

If you have purchased an external Mellow Fly-ADXL345 USB-C Accelerometer this guide is for you.


Configuration

Make sure you connect the Mellow Fly-ADXL345 to the Front USB A port of the printer via a USB-A to USB-C Cable

At the top of your printer.cfg you will need to uncomment (remove # before) this line [include adxl.cfg] .
Toward the end of the printer.cfg comment out (add # before) each line within the entire SPI Accelerometer Configuration section.

Next, find your unique MellowFly <serial:> device string with the following command;

ls /dev/serial/by-id/ | grep 'Klipper'

In fluidd paste the new serial: value in the adxl.cfg file (same folder as your printer.cfg). Click 'Save and Restart'.


Flashing the latest klipper to the Mellow Fly-ADXL345

NOTE If you will typically get an MCU Protocol error before updating/flashing the Mellow Fly,
To update/flash the Mellow Fly to the latest Klipper Version...

  1. Disconnect the Mellow Fly-ADXL345.
  2. Hold down the small push-button on the Mellow Fly-ADXL345.
  3. While still pressing this button, reconnect the USB and then release the button.
  4. Run the following command;
opennept4une 
  1. Then select Menu Option 4) Update MCU & Virtual MCU Firmware.
  2. When prompted select 3) Pico-based USB Accelerometer

Sensor Testing & Resonance Measuring

In the fluidd console, run the following command to test the device.

ACCELEROMETER_QUERY

Now mount the sensor to your X axis and run the following in fluidd console.

SHAPER_CALIBRATE AXIS=X

Move the sensor to the Y axis (Bed) then run.

SHAPER_CALIBRATE AXIS=Y

For a detailed walkthrough, consult the Klipper Docs on Input Shaper Auto Calibration / Klipper Docs on Measuring Resonance

NOTE After performing the input shaping you should comment out (add # before) [include adxl.cfg] at the top of your printer.cfg. Then un-comment (remove # before) the whole SPI Accelerometer Configuration section.


Mellow Fly's Instructions