diff options
author | bigtreetech <tech@biqu3d.com> | 2023-08-07 15:58:48 +0800 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2023-08-21 14:26:46 -0400 |
commit | 073665cebb335f6efbcdc22debf0cc090e732a3d (patch) | |
tree | 6167dfd3c9d210b6ae2ce91f5f19db646edada1a /docs/Measuring_Resonances.md | |
parent | ec1dcf3bd207a4102d6617878f32d0a99825c84c (diff) | |
download | kutter-073665cebb335f6efbcdc22debf0cc090e732a3d.tar.gz kutter-073665cebb335f6efbcdc22debf0cc090e732a3d.tar.xz kutter-073665cebb335f6efbcdc22debf0cc090e732a3d.zip |
docs: Add how to configure LIS2DW instructions
Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com
Diffstat (limited to 'docs/Measuring_Resonances.md')
-rw-r--r-- | docs/Measuring_Resonances.md | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/docs/Measuring_Resonances.md b/docs/Measuring_Resonances.md index cf43e31d..28cda9d0 100644 --- a/docs/Measuring_Resonances.md +++ b/docs/Measuring_Resonances.md @@ -1,11 +1,11 @@ # Measuring Resonances -Klipper has built-in support for the ADXL345 and MPU-9250 compatible +Klipper has built-in support for the ADXL345, MPU-9250 and LIS2DW compatible accelerometers which can be used to measure resonance frequencies of the printer for different axes, and auto-tune [input shapers](Resonance_Compensation.md) to compensate for resonances. Note that using accelerometers requires some -soldering and crimping. The ADXL345 can be connected to the SPI interface of a -Raspberry Pi or MCU board (it needs to be reasonably fast). The MPU family can +soldering and crimping. The ADXL345/LIS2DW can be connected to the SPI interface +of a Raspberry Pi or MCU board (it needs to be reasonably fast). The MPU family can be connected to the I2C interface of a Raspberry Pi directly, or to an I2C interface of an MCU board that supports 400kbit/s *fast mode* in Klipper. @@ -13,7 +13,7 @@ When sourcing accelerometers, be aware that there are a variety of different PCB board designs and different clones of them. If it is going to be connected to a 5V printer MCU ensure it has a voltage regulator and level shifters. -For ADXL345s, make sure that the board supports SPI mode (a small number of +For ADXL345s/LIS2DWs, make sure that the board supports SPI mode (a small number of boards appear to be hard-configured for I2C by pulling SDO to GND). For MPU-9250/MPU-9255/MPU-6515/MPU-6050/MPU-6500s there are also a variety of @@ -305,6 +305,26 @@ you'll also want to modify your `printer.cfg` file to include this: Restart Klipper via the `RESTART` command. +#### Configure LIS2DW series + +``` +[mcu lis] +# Change <mySerial> to whatever you found above. For example, +# usb-Klipper_rp2040_E661640843545B2E-if00 +serial: /dev/serial/by-id/usb-Klipper_rp2040_<mySerial> + +[lis2dw] +cs_pin: lis:gpio1 +spi_bus: spi0a +axes_map: x,z,y + +[resonance_tester] +accel_chip: lis2dw +probe_points: + # Somewhere slightly above the middle of your print bed + 147,154, 20 +``` + #### Configure MPU-6000/9000 series With RPi Make sure the Linux I2C driver is enabled and the baud rate is |