-
-
Notifications
You must be signed in to change notification settings - Fork 43
Mellow Fly‐ADXL345 USB Accelerometer
If you have purchased an external Mellow Fly-ADXL345 USB-C Accelerometer this guide is for you.
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) the following lines within the SPI Accelerometer Configuration
section.
Like so;
#[adxl345]
#cs_pin: rpi:None
#spi_bus: spidev0.2
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'.
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...
- Disconnect the Mellow Fly-ADXL345.
- Hold down the small push-button on the Mellow Fly-ADXL345.
- While still pressing this button, reconnect the USB and then release the button.
- Run the following command;
opennept4une
- Then select Menu Option
4) Update MCU & Virtual MCU Firmware
. - When prompted select
3) Pico-based USB Accelerometer
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.