#Where to start with the Klipper config for my M8P (TMC2240) and CAN?

10 messages · Page 1 of 1 (latest)

fickle bluff
#

OK everybody,

Most of my Voron 2.4 is built. Everything is wired and cable management is neat.
This is what I got:

A Formbot Kit 350x350x350
MANTA M9P v1.1
CAN EBB 2209/RP2040
6 TMC2240 and the one TMC2209 on the CAN tool board for the extruder.

Now I am at the point I need to configure Klipper and I though to go about it the same way as I did with the Voron 0.2. But then I was Lucky Balistic Tech had a good guide that was quite usable for me and I managed to get it working with some tweaks.

This time I am having a hard time getting up and running so I want to start form the beginning.

The problem is that I cant find a good guide that I can use as a reference for my board, CAN and drivers setup.

Can anybody point me in the good direction or share a good printer.cfg with lost of comments in it so I can follow what is going on and try to figure out how that maps to my setup?

One of the issues I am running into is for example the pin mapping of what is used in klipper, how does that correlate to the PIN's on the Board?

Let take the heater as an example, on the board that is THB but when I look into the example on the BTT github for the manta in klipper pin PB7 is configured.
where do they get that from? Is there a mapping table that I missed?

Anyway, I hope someone can point me in the right direction.

fickle bluff
#

Nobody? 😢

I guess this is a begin:
https://github.com/VoronDesign/Voron-2/blob/Voron2.4/firmware/klipper_configurations/M8P/Voron2_M8P-v1.1_config.cfg

But this is an example without CAN and TMC2240 is (to recent?) no where to be found. Not sure how much needs changing from the exmaples that are based on TMC2209.

GitHub

Voron 2 CoreXY 3D Printer design. Contribute to VoronDesign/Voron-2 development by creating an account on GitHub.

fickle bluff
#

Hmm, first thing I have to figure out is SPI vs UART. TMC2209 examples are mostly based on UART and the TMC 2240 SPI pins will have to be configured etc.

fickle bluff
#

Found it (and got it to work, kind of, still allot of work to be done):

hollow valve
#

They support both, so it's mostly just which way you set the jumpers

fickle bluff
#

Yeah on paper that is true, but nobody until now got it working in URAT mode that I know of. Somebody investigated it and reported that even with the TMC2240 supporting UART the hardware implementation of the drivers (from BTT?) do not seem to make it possible. Anyway. I went for the Options for which I found people on the forum having success with.

#

OK so now that I made some progress I want to leave here as a reference for other people strugling with this part what I found out.
This guide here has been my saviour for all Formbot related questions (I believe from Butter Pockets):

https://docs.google.com/document/d/1fa9JyTK2QsruekynD-6ZzY9RSuv1GPofp-XUpNJL9Mo/edit?tab=t.0

https://youtu.be/7x-eafpESLc?si=7Mp8O44bv98BuxBW

On the TMC2240 here is what is important.

Count the place of the motors ( like X is 1 etc.), see example bellow:
https://drive.google.com/file/d/1Cq7LWvDv7ZkAo8UH1fZQUC-eRevE1t4u/view

Then lookup the corresponding pin names in this table (at 2.2 Pin-Out):

https://github.com/bigtreetech/Manta-M8P/blob/master/V1.0_V1.1/BIGTREETECH MANTA M8P V1.0%26V1.1 User Manual.pdf

After that its is just filling things out, here the X drivers for refference:

`

X Stepper on Motor1(B Motor)

[stepper_x]
step_pin: PE2
dir_pin: PB4
enable_pin: !PC11
microsteps: 16
rotation_distance: 40
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: ^PF3
position_min: 0

`

`
[tmc2240 stepper_x]
cs_pin: PC10
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
spi_software_sclk_pin: PA5
interpolate: false
run_current: 0.800
stealthchop_threshold: 999999

`

Turn your dream 3D Printing project into a reality at PCBWay:
https://pcbway.com/g/s49dwT

Hope you guys stick it out for this long video. Thanks again to Formbot for hooking me up with a discount. I really like this kit and if you want to build a Voron I think a Formbot kit is an easy affordable choice. This guide should get you through it but...

▶ Play video
GitHub

Contribute to bigtreetech/Manta-M8P development by creating an account on GitHub.