Hi, trying to set up a Fysetc PIS (USB).
Getting: Invalid adxl345 id (got ff vs e5).
I’ve tried various examples in .cfg but not got any working yet.
Anyone got theirs working or someone know where I’m going wrong?
Thanks.
Hi, trying to set up a Fysetc PIS (USB).
Getting: Invalid adxl345 id (got ff vs e5).
I’ve tried various examples in .cfg but not got any working yet.
Anyone got theirs working or someone know where I’m going wrong?
Thanks.
As indicated by the error message: In most cases a wiring issue. The ADXL are very, very sensitive to the wiring. A shielded Ethernet cable with Cat 5e or 6e is recommended and the pins according to the documentation.
Anyone having Fystec Portable Input Shaper issues the following .cfg finally worked for me.:
[mcu pico]
serial: /dev/serial/by-id/usb-Klipper_rp2040_E66160F423442538-if00
[adxl345]
cs_pin: pico:gpio13
#spi_bus: spi1a
spi_software_sclk_pin: pico:gpio10
spi_software_mosi_pin: pico:gpio11
spi_software_miso_pin: pico:gpio12
axes_map: x,-z,y
[resonance_tester]
#accel_chip: adxl345 usbadxl
accel_chip: adxl345
probe_points: 100,100,20 # an example
Substitute pico for the MCU name of the input shapper.
Turned out to be a .cfg issue.
Nice find.
I did not look into much detail, but from a first glance, it seems that Fysetc choose to assign the SPI pins differently than the Klipper hardware SPI definition for the RPi Pico.
As such you cannot work with spi_bus
(hardware SPI) but need to resort to spi_software_*
References:
There is a known issue, that the folks over at fysetc made a change, but it was not a working change. it broke it. the main issue is they tried to name the accel chip, but left out that name in calling it above. There have been several posts on git issues list, but apparently they are not reading it.
the resolution is either remove the name “usbadxl”, or finish the job of naming it in the config [adxl345 usbadxl]
[adxl345 usbadxl]
cs_pin: PIS:gpio13
#spi_bus: spi1a
spi_software_sclk_pin: PIS:gpio10
spi_software_mosi_pin: PIS:gpio11
spi_software_miso_pin: PIS:gpio12
axes_map: x,-z,y
[resonance_tester]
#accel_chip: adxl345
accel_chip: adxl345 usbadxl
probe_points:
100,100,20
just checked and as it stands now, thier PIS.cfg is still in this broken state:
[mcu PIS]
# Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
serial: /dev/serial/by-id/xxxx
[adxl345]
cs_pin: PIS:gpio13
#spi_bus: spi1a
spi_software_sclk_pin: PIS:gpio10
spi_software_mosi_pin: PIS:gpio11
spi_software_miso_pin: PIS:gpio12
axes_map: x,-z,y
[resonance_tester]
accel_chip: adxl345 usbadxl
# accel_chip: adxl345
probe_points:
100,100,20 # an example
You are a LEGEND!
Took me a while seaching forums all with same error and incorrect config file settings,
this worked for me on klipper fw Version: v0.12.0-114-ga77d0790