What's new
VORON Design

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members!

EBB36 acceleromiter setup

RevWizard

Member
Im attaching part of my printer.cfg file that defines the onboard acceleroiter in EBB36 V1.2
The klipper is not happy about this setup. Can someone advise why?
I get this message in the console :

Klipper reports: ERROR
Section 'spi_bus spibus' is not a valid config section




[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_360035000650534E4E313120-if00
#canbus_uuid: 6b4cb9c9bacc


[mcu EBBCan]
canbus_uuid: 2f37272e5927
#canbus_uuid: 977fb25adb53


[spi_bus spibus]
mcu: EBBCan
sclk_pin: PB10
miso_pin: PB2
mosi_pin: PB11



[adxl345 my_adxl]
mcu: EBBCan
spi_bus: spibus
cs_pin: EBBCan:PB12
axes_map: x,y,z
 
What is "spibus"? Spi busses normally have numbered names like "spi1" or "spi2a".
 
Not to mention, where did you get any of that [spi_bus spibus] section? That's not a thing. Klipper defines the spi busses in its internal board definitions, not you
 
I didnt know that I can not define my own SPI bus. Im attaching the picture of my EBB36 pinout with description. It seems like the SPI bus name is SPI 2
Should I use this as the SPI bus name instead ?
like this:

[spi_bus SPI2]
mcu: EBBCan
sclk_pin: PB10
miso_pin: PB2
mosi_pin: PB11



[adxl345 my_adxl]
mcu: EBBCan
spi_bus: SPI2
cs_pin: EBBCan:pB12
axes_map: x,y,z
 

Attachments

  • EBB36 CAN V1.1&V1.2-PIN.png
    EBB36 CAN V1.1&V1.2-PIN.png
    278.3 KB · Views: 1
Get rid of the entire [spi_bus whatever] section. That's not a thing.

The *only* thing you need for setting up the spi bus is the relevant entries inside the [adxl] section, spi_bus & cs_pin.

I do note that in their sample config for this board, btt uses software spi. It's possible there's a reason for that.

 
That worked fine setting up the config file
Thank you!

added this section right after and Im able to do tests

[resonance_tester]
accel_chip: adxl345
accel_per_hz: 50 # Default is 75. Lowering this value reduces sampling rate to mitigate high vibrations.
probe_points: 175,175,10
 
Last edited:
Top