bassamanator / Sovol-SV06-firmware

🔥 A comprehensive Klipper configuration for a variety of 3D printers 🔥
GNU Affero General Public License v3.0
886 stars 78 forks source link

BTT PAD 7 and the ADXL345 #133

Closed Degenfoster closed 11 months ago

Degenfoster commented 11 months ago

Hey sorry i'm quite new to klipper and i just got it to work with my sv06+ with your guide, but i can't find how to use the ADXL 345 for input shaping with the BTT pad7, enabling adxl direct caused an error and klipper doesn't launch, please forgive me I'm really beginner at coding and stuff so i don't really understand it

MacBandito commented 11 months ago

Did you follow the instructions in the Pad 7 manual? You should have the BoardEnv.txt file that's installed when you follow the BTT instructions. You may have deleted it if you followed the bassamanator instructions. You need that file though to activate the correct setting. I’ve pasted the instructions from the manual below.

Pad 7 Settings

Open the "BoardEnv.txt" configuration file, and set the following parameters (spidev1_1 being the relevant bit):

overlays=ws2812 light mcp2515 spidev1_1

spidev1_1: Enables the spidev1_1 to the system user space, allowing the Pad7's SPI port to connect to an ADXL345 accelerometer module.

Setting up ADXL345

As explained in "Pad 7 Settings" section, set the overlays to include spidev1_1. After booting, the system user space should load spidev1.1. Add the following configuration to the printer.cfg file to use the ADXL345:

[mcu CB1]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: CB1:None
spi_bus: spidev1.1
axes_map: z,y,-x # Modify according to the actual orientation of the ADXL345
installed on the printer.

Sources

Degenfoster commented 11 months ago

You are amazing! The config files of the pad 7 was already good, but the trick was the CB1 I kept following the wrong set of instructions for the CM4 board instead! So sorry rookie mistake but glad I finally could fix it!

MacBandito commented 11 months ago

You’re welcome. I’m very new to this too.

bassamanator commented 11 months ago

@MacBandito Thanks for helping out the community! I've edited your original post for styling and to add sources. Please see if it still all makes sense or if I've blundered something.