Input Shaping Made easy with a USB accelerometer!
PrintsLeo3D PrintsLeo3D
10.5K subscribers
67,879 views
0

 Published On Mar 31, 2023

Learn input shaping and how to get better prints while printing faster. Get rid of ghosting and ringing to achieve high quality models! Klipper offers the use of USB accelerometers, the process is simple and easy! Learn how to read an input shaping graph, and which input shaper is best! Currently Marlin firmware only offers manual input shaping, but the input shaping concepts covered in this video will still apply! In this video I am using Triangle Labs accelerometer and it comes with everything you need to perform this calibration. The Input Shaping article on my website details the process with a KUSBA accelerometer!

Triangle Labs ADXL accelerometer:
https://trianglelab.net/products/usb-...

KUSBA ADXL accelerometer:
https://dfh.fm/products/kusba-adxl345...

Accelerometer ledge by PrintsLeo3D
https://www.printsleo3d.com/models

~~Like what you see and want to help the channel grow! Join my Patreon~~
  / printsleo3d  

For more information, example configurations, copy and pasteable code, and much more visit my website:
https://www.printsleo3d.com/

—Commands—
Configure host device for auto input shaping:
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
-
~/klippy-env/bin/pip install -v numpy

Build firmware for TriangleLabs ADXL:
cd ~/klipper/
make menuconfig
*the setup for my ADXL STM32 variant*
[*] Enable extra low-level configuration options Micro-controller Architecture (STMicroelectronics STM32) Processor model (STM32F103)
[*] Only 10KiB of RAM (for rare stm32f103x6 variant)
[] Disable SWD at startup (for GigaDevice stm32f103 clones) Bootloader offset (No bootloader)
Clock Reference (8 MHz crystal) ---x
Communication interface (USB (on PA11/PA12))
USB ids
(!PC13) GPIO pins to set at micro-controller startup
****
Create the firmware:
make

Identify the address of the ADXL:
ls /dev/tty*

Flash firmware:
stm32flash -w out/klipper.bin -v -g 0 /dev/ttyUSB0 [amend the USB #]

Check Accelerometer:
ACCELEROMETER_QUERY
MEASURE_AXES_NOISE

Run Tests(Manual computation):
TEST_RESONANCES AXIS=X
TEST_RESONANCES AXIS=Y

Run Test ALT (auto computation and addition):
SHAPER_CALIBRATE AXIS=X
SHAPER_CALIBRATE AXIS=Y

Compile Test info:
~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png

Input Shaper template for .cfg file:
[input_shaper]
shaper_freq_x:
shaper_type_x:
shaper_freq_y:
shaper_type_y:

Note: As an Amazon Associate, whenever you purchase through one of my links I earn a small commission at no additional costs to you! I only link brands/providers I have purchased myself unless otherwise noted.

°°°Join the Discord °°°°
  / discord  

Interested in some upcoming Projects? Follow on Instagram to see what I’m working on!
@PrintsLeo3D

*3D Printer*
Voxelab Aquila : https://amzn.to/3JO0fJr
Voxelab Aquila S2: https://amzn.to/3gz1PoG
Ender 3 Pro : https://amzn.to/3JGTyZr

*Filament*
Gold PLA+ from Inland : https://amzn.to/40Shbq0

*Models*
triangle Labs accel mount by HL:
https://www.printables.com/model/4147...

KUSBA accelerometer mount for Creality Sprite by karagoal:
https://www.printables.com/model/3007...

Accelerometer ledge for printhead plate by PrintsLeo3D:
https://www.printsleo3d.com/models

Rail Inserts by PrintsLeo3D
https://www.printsleo3d.com/models

Accelerometer ledge by PrintsLeo3D
https://www.printsleo3d.com/models

Ender 3 satsana with 5015 shroud byMstar365
https://www.printables.com/model/2117...

4040 extrusion cover by Robert:
https://www.printables.com/model/2974...

Side Spool Holder by boothyboothy
https://www.printables.com/model/1691...

*Music*
Intro/Outro : Bomber (sting) - Riot

***Buy Me a Coffee (not necessary but appreciated!)***
https://www.buymeacoffee.com/PrintsLeo3D

*More Content*
Website: Printsleo3d.com
Instagram: @PrintsLeo3D
Etsy: https://www.etsy.com/shop/PrintsLeo3D
Printables: https://www.printables.com/social/268...

Chapters:
00:00 - Intro
01:00 - Where do vibrations come from?
02:14 - What is Input Shaping?
08:06 - Configure host device
08:56 - Create and Flash Klipper to accelerometer
12:50 - Create accel configuration file
15:47 - Mounting
18:47 - Begin input shaper test
26:39 - Analyze input shaper graphs
35:45 - Using input shaper data
38:04 - conclusions and whats next - thank you!


** All video editing done through DaVinci Resolve. This video editing software is
available for free, as well as a paid premium version
https://www.blackmagicdesign.com/prod... **

show more

Share/Embed