Repetier Server - Klipper input shaping with USB adxl345
Hello, I have had Repetier server for so may years and it always seems to do exactly what I want/need. Well I decided to put klipper on my Ender 5+ and that works great. I also added that to my Repetier server and that also works great. Everything prints fine. Now I want more lol.
I got a USB adxl345 today and went through all the setup. I flashed it with the appropriate klipper firmware and it shows up as a klipper USB device in the serial devices.
What I did to the adxl345:
According to the directions (using fluidd at least) you add the following scripts to the printer config:
But when I start input shaping it just says:
I got a USB adxl345 today and went through all the setup. I flashed it with the appropriate klipper firmware and it shows up as a klipper USB device in the serial devices.
What I did to the adxl345:
Flashing out/klipper.uf2 to 2e8a:0003
sudo lib/rp2040_flash/rp2040_flash out/klipper.uf2
[sudo] password for pi:
Loaded UF2 image with 107 pages
Found rp2040 device on USB bus 1 address 19
Flashing...
Resetting interface
Locking
Exiting XIP mode
Erasing
Flashing
Rebooting device
pi@fluiddpi:~/klipper $ ls /dev/serial/by-id/*
/dev/serial/by-id/usb-Klipper_rp2040_45503571290F4C68-if00
According to the directions (using fluidd at least) you add the following scripts to the printer config:
[mcu btt_adxl345]
serial: /dev/serial/by-id/usb-Klipper_rp2040_btt_acc-if00
[adxl345]
cs_pin: btt_adxl345:gpio9
#spi_bus: spi1a
spi_software_sclk_pin: btt_adxl345:gpio10
spi_software_mosi_pin: btt_adxl345:gpio11
spi_software_miso_pin: btt_adxl345:gpio8
axes_map: -x,-y,-z
[resonance_tester]
probe_points: 100, 100, 20
accel_chip: adxl345
The problem is if I have the pins defined klipper reports a printer problem. If I comment out all the pin lines it is fine again.
Is there somewhere else I need to put this address for Repetier server to use this device?
I did try just plugging it in and leaving the follow as is:
The problem is if I have the pins defined klipper reports a printer problem. If I comment out all the pin lines it is fine again.
Is there somewhere else I need to put this address for Repetier server to use this device?
I did try just plugging it in and leaving the follow as is:
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
[resonance_tester]
accel_chip: adxl345
probe_points:
100, 100, 10 # an example
But when I start input shaping it just says:
No data for x axis found - skipping axis.
No data for y axis found - skipping axis.
Any help at all would be nice. I would love to be able to use this with Repetier server without having to run wires and connect to my Pi that is enclosed in a case.
Any help at all would be nice. I would love to be able to use this with Repetier server without having to run wires and connect to my Pi that is enclosed in a case.
Comments
[input_shaper]
to make server see you support input shaper and then you should see the entry to run and analyse input shaping in klipper menu.
Maybe it has something to do with this:
Using pip 24.0 from /opt/klipper/Ender_5_Klipper/klippy-env/lib/python3.7/site-packages/pip (python 3.7)
That being said, I have a Pi running Fluidd and was able to do everything on that Pi and copied it over. So I know the script works in the printer.config and I know the accelerometer works.
I then put those settings in the Repetier server printer config and it seems to work. I just can't run input shaper on Repetier server.
I did update Python and when I run python --version it says 3.11.8. I also updated the python3 version.
Was this supposed to be done somewhere other than /usr/bin?
Took me a good hour to get the wifi working. Finally had to edit the network config file and tell it no authentication. Now to get through the rest of this lol.
Any advice for this?
In the mean time, I am installing klipper and restoring my printer from back. I will try to get image scaler working.
--2024-02-27 20:46:22-- http://download1.repetier.com/files/server/extras/inputShaping.sh
This is the one I have:
https://a.co/d/gDIN6lc
We will now start touch screen calibration. Make sure that no
But to sum up, the adxl345 is still not working on the new version still and I have no touch screen. I also could not putty into it. There was a certificate error that I've never gotten before with your images. I do hope to get it running because my old image has the incognito browser window every time I power up the Pi. I have to go to console and do a sudo reboot to get to the Repetier screen. Just rebooting from the gui menu does not fix it.
In repetier-setup there is also a show cursor option to use mouse so you see it.
Can't say why checksum mismatches. Must be a higher sector that is not used in fluidd image.
Regarding error messages after running input shaper, they appear if the files
/tmp/calibration_data_x_data.csv
/tmp/calibration_data_y_data.csv
do not exist. The should get created by running klipper command
SHAPER_CALIBRATE AXIS=X NAME=data + some options for freq range, hz
You can send it manually in console and see what goes wrong on klipper side that the file does not exist afterwards. It stores result in /tmp according to klipper docs.
I will work on Klipper now
Is there another way of identifying it since it is a USB device?
Hopefully this will help someone else .