FYSETC / Stridemax_Dual_FD

Daul TMC5160 stepper motor driver with RP2040,support RRF and klipper firmware.
Apache License 2.0
3 stars 0 forks source link

Incorrect pins in the example .cfg #2

Open Donpilkerton opened 4 months ago

Donpilkerton commented 4 months ago

In the example Stridemax_dual.cfg it appears that pins spi_software_mosi_pin: stridemax_dual:gpio4 spi_software_miso_pin: stridemax_dual:gpio3

are incorrect per your pin out diagram of the rp2040. They should be

spi_software_mosi_pin: stridemax_dual:gpio3 spi_software_miso_pin: stridemax_dual:gpio4

These pin outs being incorrect lead me to spending hours troubleshooting "Unable to write tmc spi 'stepper_x' register GLOBALSCALER". I am one of those individuals that is not super versed in what causes these kinds of errors so it was time consuming.

pinout

I know the product is new but proper documentation on how to properly flash and implement this device should have been organized pre release date. There is virtually NO information on this.

Below is your example config with the pins backwards, If this could be fixed or if I am in error could you please explain. I can confirm after swapping these pins I am able to use the control board properly.

#####################################################################

X/Y Stepper Settings

#####################################################################

[stepper_x]

Connected to MOT1 (B Motor)

step_pin: stridemax_dual:gpio13 dir_pin: !stridemax_dual:gpio23 enable_pin: !stridemax_dual:gpio22 rotation_distance: 40 microsteps: 16 full_steps_per_rotation: 400 #set to 400 for 0.9 degree stepper endstop_pin: sht36:PA0 position_endstop: 287 position_max: 287 homing_speed: 60 homing_retract_dist: 5 homing_positive_dir: true use_sensorless_homing: False

Make sure to update below for your relevant driver (5160)

[tmc5160 stepper_x]

Soft SPI

spi_software_sclk_pin: stridemax_dual:gpio2 spi_software_mosi_pin: stridemax_dual:gpio4 spi_software_miso_pin: stridemax_dual:gpio3 cs_pin: stridemax_dual:gpio21 interpolate: True

diag1_pin: stridemax_dual:gpio7

run_current: 1.6 hold_current: 0.500

stealthchop_threshold: 0

sense_resistor: 0.05

[stepper_y]

Connected to MOT2 (A Motor)

step_pin: stridemax_dual:gpio6 dir_pin: !stridemax_dual:gpio5 enable_pin: !stridemax_dual:gpio20 rotation_distance: 40 microsteps: 16 full_steps_per_rotation:400 #set to 400 for 0.9 degree stepper endstop_pin: PG9 position_endstop: 306 position_max: 306 homing_speed: 60 homing_retract_dist: 5 homing_positive_dir: true use_sensorless_homing: False

Make sure to update below for your relevant driver (5160)

[tmc5160 stepper_y]

Soft SPI

spi_software_sclk_pin: stridemax_dual:gpio2 spi_software_mosi_pin: stridemax_dual:gpio4 spi_software_miso_pin: stridemax_dual:gpio3 cs_pin: stridemax_dual:gpio1

diag1_pin: stridemax_dual:^gpio14

interpolate: True run_current: 1.6 hold_current: 0.5

stealthchop_threshold: 0

sense_resistor: 0.05

You will need to configure a neopixel (or other addressable led, such as dotstar). See

https://www.klipper3d.org/Config_Reference.html#neopixel for configuration details.

And you can get sb led MACRO here: https://github.com/PrinterConfigs/DoomConfig/blob/master/stealthburner.cfg

Or here https://github.com/sttts/voron-klipper-config/blob/master/stealthburner_leds.cfg

[neopixel leds] pin: stridemax_daul:gpio19 chain_count: 3 color_order: GRBW initial_RED: 0.5 initial_GREEN: 0.5 initial_BLUE: 0.5 initial_WHITE: 0.5

eliwong commented 1 month ago

It's strange why your configuration is different from ours. What is known so far is that the early engineering samples have this configuration, and later batch products have exchanged MOSI and MISO to meet the needs of RRF using hardware SPI.

Donpilkerton commented 1 month ago

My config is not different. Your initial configuration was wrong. My issue that I submitted is what was the cause for having your initial configuration fixed. I spent hours trying to figure out what the problem was because you all did not have documentation or the proper configuration listed on your GitHub.

On May 27, 2024, at 12:43 AM, Eli Wong @.***> wrote:



It's strange why your configuration is different from ours. What is known so far is that the early engineering samples have this configuration, and later batch products have exchanged MOSI and MISO to meet the needs of RRF using hardware SPI.

— Reply to this email directly, view it on GitHubhttps://github.com/FYSETC/Stridemax_Dual_FD/issues/2#issuecomment-2132631885, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMHYN5R27PPBI7VRAX4HSTDZEK2XTAVCNFSM6AAAAABDZH4Y2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGYZTCOBYGU. You are receiving this because you authored the thread.Message ID: @.***>

eliwong commented 1 month ago

Thank you very much for your feedback. I will check this problem further and see what is wrong. Do you have instant chat methods such as discord or FB? I want a picture of your board to have a look.