Skip to content

grblHAL couldn't communicate with stepper driver on BTT SKR mini e3 v2.0 (and other problems) #58

@kokospalme

Description

@kokospalme

I have a fresh cloned repository (with all submodules of course), but I ran into some issues.
The goal:

  • a 4-axis CNC with the btt skr mini e3 v2.0 board
  • swap Y and Z axis, as the boards default "double" axis is Z, but my machine (the famous "dremel cnc" project) has two y axes

the problems:

  • the board doesn't seem to communicate with the stepper driver (see log)
  • the motors kind of "click" when I want to move them, but they don't turn in any direction

What I did in the code so far:

  • my_machine.h: uncomment line 27: #define BOARD_BTT_SKR_MINI_E3_V20
  • config.h: line 42: #define N_AXIS 4 // Number of axes

This is my console log (incl. settings):

>>> $$
$0 = 10.0    (Step pulse time, microseconds)
$1 = 25    (Step idle delay, milliseconds)
$2 = 0    (Step pulse invert, mask)
$3 = 0    (Step direction invert, mask)
$4 = 15    (Invert step enable pin, boolean)
$5 = 0    (Invert limit pins, boolean)
$6 = 0    (Invert probe pin, boolean)
$9 = 1   
$10 = 511    (Status report options, mask)
$11 = 0.010    (Junction deviation, millimeters)
$12 = 0.002    (Arc tolerance, millimeters)
$13 = 0    (Report in inches, boolean)
$14 = 0   
$15 = 0   
$16 = 0   
$17 = 0   
$18 = 0   
$19 = 0   
$20 = 0    (Soft limits enable, boolean)
$21 = 0    (Hard limits enable, boolean)
$22 = 0    (Homing cycle enable, boolean)
$23 = 0    (Homing direction invert, mask)
$24 = 25.0    (Homing locate feed rate, mm/min)
$25 = 500.0    (Homing search seek rate, mm/min)
$26 = 250    (Homing switch debounce delay, milliseconds)
$27 = 1.000    (Homing switch pull-off distance, millimeters)
$28 = 0.100   
$29 = 0.0   
$30 = 1000.000    (Maximum spindle speed, RPM)
$31 = 0.000    (Minimum spindle speed, RPM)
$32 = 0    (Laser-mode enable, boolean)
$33 = 5000.0   
$34 = 0.0   
$35 = 0.0   
$36 = 100.0   
$37 = 0   
$39 = 1   
$40 = 0   
$43 = 1   
$44 = 4   
$45 = 3   
$46 = 0   
$47 = 0   
$62 = 0   
$63 = 3   
$64 = 0   
$65 = 0   
$100 = 250.00000    (X-axis travel resolution, step/mm)
$101 = 250.00000    (Y-axis travel resolution, step/mm)
$102 = 250.00000    (Z-axis travel resolution, step/mm)
$103 = 250.00000   
$110 = 500.000    (X-axis maximum rate, mm/min)
$111 = 500.000    (Y-axis maximum rate, mm/min)
$112 = 500.000    (Z-axis maximum rate, mm/min)
$113 = 500.000   
$120 = 10.000    (X-axis acceleration, mm/sec^2)
$121 = 10.000    (Y-axis acceleration, mm/sec^2)
$122 = 10.000    (Z-axis acceleration, mm/sec^2)
$123 = 10.000   
$130 = 200.000    (X-axis maximum travel, millimeters)
$131 = 200.000    (Y-axis maximum travel, millimeters)
$132 = 200.000    (Z-axis maximum travel, millimeters)
$133 = 200.000   
$140 = 500   
$141 = 500   
$142 = 500   
$143 = 500   
$150 = 16   
$151 = 16   
$152 = 16   
$153 = 16   
$180 = 25.0   
$181 = 25.0   
$182 = 25.0   
$183 = 25.0   
$190 = 500.0   
$191 = 500.0   
$192 = 500.0   
$193 = 500.0   
$200 = 22.0   
$201 = 22.0   
$202 = 22.0   
$203 = 22.0   
$210 = 50   
$211 = 50   
$212 = 50   
$213 = 50   
$220 = 22.0   
$221 = 22.0   
$222 = 22.0   
$223 = 22.0   
$339 = 0   
$341 = 0   
$342 = 30.0   
$343 = 25.0   
$344 = 200.0   
$345 = 200.0   
$346 = 1   
$370 = 0   
$376 = 0   
$384 = 0   
$394 = 4.0   
$398 = 100   
$481 = 0   
$484 = 1   
$486 = 0   
$538 = 0   
$673 = 1.0   
ok
>>> $J=G21G91X100F100
ok
GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:Warning: Could not communicate with stepper driver!]
>>> $J=G21G91Y100F100
ok
GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:Warning: Could not communicate with stepper driver!]
>>> $J=G21G91Z-2.007F100
ok
GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:Warning: Could not communicate with stepper driver!]
>>> $J=G21G91A1F100
ok
GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:Warning: Could not communicate with stepper driver!]

in btt_skr_mini_e3_2.0_map.h SERIAL1_PORT is defined with 31. Why is this 31?
When I change it to 3 (2 also seems to work), the motors start spinning, but not every command is being executed. log:

>>> $J=G21G91X5Y-5F300
ok
GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:Warning: Could not communicate with stepper driver!]
>>> $J=G21G91X5F300
ok
>>> $J=G21G91X5F300
ok
>>> $J=G21G91A1F300
ok
>>> $J=G21G91A1F300
>>> $J=G21G91A-1F300
>>> $J=G21G91A1F300
>>> $J=G21G91Z-2.007F300
>>> $J=G21G91X5F300
*** Canceling current stream
GrblHAL 1.1f ['$' or '$HELP' for help]
[MSG:Warning: Could not communicate with stepper driver!]

After a couple of seconds the board keeps on working... What could be the problem here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions