findus4fun / i3megas

jan i3megas klipper config
1 stars 0 forks source link

UART / SPI connection #1

Open goldjunge91 opened 2 years ago

goldjunge91 commented 2 years ago

Hi how looks your wiring for UART for the tmc stepper ? are you using the Trigorillia board V1.0 or V1,1 ?

findus4fun commented 2 years ago

Hi. Just to make sure, I am running klipper firmware.

I think the triogorilla is a v0.0.2 but it should work with any version you just have to change the uart_pin numbers if you have trigorilla v.1.1, all other boards use the same servo pins.

https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/wiki/Beginner's-Guide-(English)#3-identification-of-the-mainboard

I used just two pins because the tmc2209 can be addressed if they are on the same I/O pin:

There can be up to 4 tmc 2209 on the same pin:

[tmc2209 stepper_x] uart_pin: PG5 uart_address: 0

[tmc2209 stepper_y] uart_pin: PG5 uart_address: 1

[tmc2209 stepper_z] uart_pin: PG5 uart_address: 2

[tmc2209 stepper_z1] uart_pin: PG5 uart_address: 3

Extruder is on extra pin:

[tmc2209 extruder] uart_pin: PE3 uart_address: 0

In uart mode the tmc2209 step resolution pins became address pins.

Screenshot 2022-09-01 075905

Screenshot 2022-09-01 080213

I did not have to add any resistors.

I think the i3megas trigorilla pulls these pins up to VCC. Therefore I just bend these pins on my stepperdriver so that they are not inserted into the board but stick to the side.

whatsapp image 2022-09-01 at 07 49 34_comment

goldjunge91 commented 2 years ago

i thinks for you explanation. Some Question about the bend pins :D for XY i have to bend from my picture green and blue and i use for all driver 4th pin for PG5 PE5 stepper or i need to bend for all stepper driver second and third pin ? do i have to cut the bottom piece of 4th pin my stepper driver

findus4fun commented 2 years ago

Hi, looks like this is exactly the same stepper driver I am using. You have to bend Pins 2 and/or 3:

  1. stepper from left: bend 2 and 3 -> Addr=0, Bus 1 (PG5)
  2. stepper from left: bend only 3 -> Addr=1, Bus 1 (PG5)
  3. stepper from left: bend only 2 -> Addr=2, Bus 1 (PG5)
  4. stepper from left: bend 2 and 3 -> Addr=0 ,Bus 2 (PE5)
  5. stepper from left: don not bend -> Addr=3, Bus 1 (PG5)

I bend the 4th pin on the top side of the steppers to attach the cables from PG5/PE5 to them. You can also solder them if you like.

Also check the solderbridge PDN on the right top of the bottom side. It should the soldered as in the picture if you want to use the 4th pin for uart. If it is soldered in the bottom position uart pin will be 5th pin. image image

goldjunge91 commented 2 years ago

Hi man, i try it for long time i solder the missing pins try other pins but with help from klipper discord its not working, have you solder PDN ? my have left PDN but i try all configuration nothing work :D

findus4fun commented 2 years ago

Hi, if you can send me pictures (high resolution). I will try to help you.

1) Please send pictures from all stepper drivers top and bottom.

2) Also send a picture of the main baord where you connect.

3) Please also send your Klipper configs.

Where do you live?