Smoothie crash on move command

Hello!

I’ve just finished upgrading my Fabool CO2 laser cutter to the Smoothieboard 5x v1.1. Wiring and config have been pretty straightforward, and testing some basics seems to work fine: I can turn the steppers on and off with M17 and M18 just fine, as well as test firing the laser with @Fire from within Pronterface.

However, as soon as I try the test G0 command suggested in the laser cutter guide, or try to home with the Gcode command, the board freezes entirely (unresponsive, LEDs cease blinking).

I’ve reduced the feed rate and acceleration from the default to 1000, which should be pretty conservative and not the cause of my issue. I’ve attached my config file below - motor setup might look odd, I have X axis on Alpha, and Y axis on Gamma with Epsilon as a slave.

Oh, also worth noting I’m running firmware-cnc-latest.bin

Thanks in advance for any helpful ideas!

config.txt
# Smoothieboard configuration file
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
## Robot module configurations : general handling of movement G-codes and slicing into moves

# Basic motion configuration
default_feed_rate                            1000             # Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate                            1000             # Default speed (mm/minute) for G0 moves
mm_per_arc_segment                           0.0              # Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment                         5                # Cut lines into segments this size
mm_max_arc_error                             0.01             # The maximum error for line segments that divide arcs 0 to disable
                                                              # note it is invalid for both the above be 0
                                                              # if both are used, will use largest segment length based on radius

# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions
alpha_steps_per_mm                           80               # Steps per mm for alpha ( X ) stepper
beta_steps_per_mm                            80               # Steps per mm for beta ( Y ) stepper

# Planner module configuration : Look-ahead and acceleration configuration
acceleration                                 1000             # Acceleration in mm/second/second.
#z_acceleration                              500              # Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
junction_deviation                           0.05
#z_junction_deviation                        0.0              # For Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA

# Cartesian axis speed limits
x_axis_max_speed                             30000            # Maximum speed in mm/min
y_axis_max_speed                             30000            # Maximum speed in mm/min

# Stepper module configuration
# Pins are defined as  ports, and pin numbers, appending "!" to the number will invert a pin
alpha_step_pin                               2.0              # Pin for alpha stepper step signal
alpha_dir_pin                                0.5              # Pin for alpha stepper direction, add '!' to reverse direction
alpha_en_pin                                 0.4              # Pin for alpha enable pin
alpha_current                                0.7              # X stepper motor current
alpha_max_rate                               30000.0          # Maximum rate in mm/min

beta_step_pin                                2.2              # Pin for beta stepper step signal
beta_dir_pin                                 0.20             # Pin for beta stepper direction, add '!' to reverse direction
beta_en_pin                                  0.19             # Pin for beta enable
beta_current                                 0.8
gamma_current                                0.8              # Y stepper motor current
beta_max_rate                                30000.0          # Maxmimum rate in mm/min
delta_current                                0.8
epsilon_current                              0.8              # Z stepper motor current

## Laser module configuration
laser_module_enable                           true            # Whether to activate the laser module at all
laser_module_pwm_pin                          2.5o             # This pin will be PWMed to control the laser.
                                                              # Only pins 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 1.18, 1.20, 1.21, 1.23, 1.24, 1.26, 3.25 and 3.26
                                                              # can be used since laser requires hardware PWM
#laser_module_ttl_pin 	                      1.30            # This pin turns on when the laser turns on, and off when the laser turns off.
laser_module_maximum_power                    0.9             # This is the maximum duty cycle that will be applied to the laser
#laser_module_minimum_power                   0.0             # This is a value just below the minimum duty cycle that keeps the laser
                                                              # active without actually burning.
laser_module_default_power                    0.7             # This is the default laser power that will be used for cuts if a power has not been specified.  The value is a scale between
                                                              # the maximum and minimum power levels specified above
laser_module_pwm_period                       12              # This sets the pwm frequency as the period in microseconds

## Switch modules
## Could use this for bed lighting
#switch.light.enable                          true             # Enable this module
#switch.light.input_on_command                M42              # Command that will turn this switch on
#switch.light.input_off_command               M43              # Command that will turn this switch off
#switch.light.output_pin                      2.4              # Pin this module controls
#switch.light.output_type                     digital          # Digital means this is just an on or off pin

switch.fans.enable
switch.fans.output_pin                       1.23
switch.fans.output_type                      digital
switch.fans.startup_state                    true
switch.fans.failsafe_set_to                  1


## Endstops
endstops_enable                              true             # The endstop module is enabled by default and can be disabled here
#corexy_homing                               false            # Set to true if homing on a hbot or corexy
alpha_min_endstop                            1.24^            # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
alpha_max_endstop                            1.25^            # Pin to read max endstop, uncomment this and comment the above if using max endstops
alpha_homing_direction                       home_to_min      # Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
alpha_min                                    0                # This gets loaded as the current position after homing when home_to_min is set
alpha_max                                    200              # This gets loaded as the current position after homing when home_to_max is set
beta_min_endstop                             1.26^            # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
beta_max_endstop                             1.27^            # Pin to read max endstop, uncomment this and comment the above if using max endstops
beta_homing_direction                        home_to_min      # Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
beta_min                                     0                # This gets loaded as the current position after homing when home_to_min is set
beta_max                                     200              # This gets loaded as the current position after homing when home_to_max is set

alpha_max_travel                             500              # Max travel in mm for alpha/X axis when homing
beta_max_travel                              500              # Max travel in mm for beta/Y axis when homing

# Optional enable limit switches, actions will stop if any enabled limit switch is triggered
alpha_limit_enable                          true            # Set to true to enable X min and max limit switches
beta_limit_enable                           true            # Set to true to enable Y min and max limit switches

# Endstops home at their fast feedrate first, then once the endstop is found they home again at their slow feedrate for accuracy
alpha_fast_homing_rate_mm_s                  50               # Alpha/X fast homing feedrate in mm/second
alpha_slow_homing_rate_mm_s                  25               # Alpha/X slow homing feedrate in mm/second
beta_fast_homing_rate_mm_s                   50               # Beta/Y  fast homing feedrate in mm/second
beta_slow_homing_rate_mm_s                   25               # Beta/Y  slow homing feedrate in mm/second

alpha_homing_retract_mm                      5                # Distance to retract from the endstop after it is hit for alpha/X
beta_homing_retract_mm                       5                # Distance to retract from the endstop after it is hit for beta/Y

# Optional order in which axis will home, default is they all home at the same time,
# If this is set it will force each axis to home one at a time in the specified order
#homing_order                                 XYZ              # X axis followed by Y then Z last
#move_to_origin_after_home                    false            # Move XY to 0,0 after homing
#endstop_debounce_count                       100              # Uncomment if you get noise on your endstops, default is 100
#endstop_debounce_ms                          1                # Uncomment if you get noise on your endstops, default is 1 millisecond debounce
#home_z_first                                 true             # Uncomment and set to true to home the Z first, otherwise Z homes after XY

## Panel
# Please find your panel on the wiki and copy/paste the right configuration here
panel.enable                                 true             # Set to true to enable the panel code

# Example for reprap discount GLCD
# on glcd EXP1 is to left and EXP2 is to right, pin 1 is bottom left, pin 2 is top left etc.
# +5v is EXP1 pin 10, Gnd is EXP1 pin 9
panel.lcd                                   reprap_discount_glcd     #
panel.spi_channel                           0                 # SPI channel to use  ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin                            0.16              # SPI chip select     ; GLCD EXP1 Pin 4
panel.encoder_a_pin                         3.26!^            # Encoder pin         ; GLCD EXP2 Pin 3
panel.encoder_b_pin                         3.25!^            # Encoder pin         ; GLCD EXP2 Pin 5
panel.click_button_pin                      1.30!^            # Click button        ; GLCD EXP1 Pin 2
panel.buzz_pin                              1.31              # Pin for buzzer      ; GLCD EXP1 Pin 1
panel.back_button_pin                       2.11!^            # Back button         ; GLCD EXP2 Pin 8

panel.encoder_resolution                     4
panel.menu_offset                            0                 # Some panels will need 1 here

panel.alpha_jog_feedrate                     6000              # X jogging feedrate in mm/min
panel.beta_jog_feedrate                      6000              # Y jogging feedrate in mm/min
panel.gamma_jog_feedrate                     200               # Z jogging feedrate in mm/min

## Custom menus : Example of a custom menu entry, which will show up in the Custom entry.
# NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands
custom_menu.power_on.enable                true              #
custom_menu.power_on.name                  Power_on          #
custom_menu.power_on.command               M80               #

custom_menu.power_off.enable               true              #
custom_menu.power_off.name                 Power_off         #
custom_menu.power_off.command              M81               #


## Network settings
network.enable                               true             # Enable the ethernet network services
network.webserver.enable                     true             # Enable the webserver
network.telnet.enable                        true             # Enable the telnet server
#network.ip_address                           auto             # Use dhcp to get ip address
# Uncomment the 3 below to manually setup ip address
network.ip_address                           192.168.1.248   # The IP address
network.ip_mask                              255.255.255.0   # The ip mask
network.ip_gateway                           192.168.1.1     # The gateway address
network.hostname                             Fabool
#network.mac_override                         xx.xx.xx.xx.xx.xx  # Override the mac address, only do this if you have a conflict

## System configuration
# Serial communications configuration ( baud rate defaults to 9600 if undefined )
# For communication over the UART port, *not* the USB/Serial port
uart0.baud_rate                              115200           # Baud rate for the default hardware ( UART ) serial port

second_usb_serial_enable                     false            # This enables a second USB serial port
#leds_disable                                true             # Disable using leds after config loaded
#play_led_disable                            true             # Disable the play led

# Kill button maybe assigned to a different pin, set to the onboard pin by default
kill_button_enable                           true             # Set to true to enable a kill button
kill_button_pin                              2.12             # Kill button pin. default is same as pause button 2.12 (2.11 is another good choice)

#msd_disable                                 false            # Disable the MSD (USB SDCARD)
#dfu_enable                                  false            # For linux developers, set to true to enable DFU

# Only needed on a smoothieboard
currentcontrol_module_enable                 true             # Control stepper motor current via the configuration file

As a test, try disabling both network and the panel, and see if the problem still occurs.

1 Like

Oh my god, thank you! This seems to have enabled smoothie to actually send a message to Pronterface when before it was just becoming unresponsive. With network and panel disabled it let me know that it thought limit switches were being hit - just needed to invert them and all is good!

Hopefully somebody else can learn from my newbie error :slight_smile:

2 Likes

Ah welp, seems I was too trigger-happy on posting success. Inverting the endstops did fix my movement woes, but the same crash still happens when trying to issue a Home command.

I disabled them as limit switches, and verified that all four endstops register properly with M119. Using Pronterface I can now move the axes freely as far as I like, but sending G28 or $H cause unresponsiveness and require a restart.

Including config.txt again since I’ve been changing stuff today.

config.txt
# Smoothieboard configuration file
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
## Robot module configurations : general handling of movement G-codes and slicing into moves

# Basic motion configuration
default_feed_rate                            3000             # Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate                            3000             # Default speed (mm/minute) for G0 moves
mm_per_arc_segment                           0.0              # Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment                         5                # Cut lines into segments this size
mm_max_arc_error                             0.01             # The maximum error for line segments that divide arcs 0 to disable
                                                              # note it is invalid for both the above be 0
                                                              # if both are used, will use largest segment length based on radius

# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions
alpha_steps_per_mm                           106               # Steps per mm for alpha ( X ) stepper
beta_steps_per_mm                            106               # Steps per mm for beta ( Y ) stepper

# Planner module configuration : Look-ahead and acceleration configuration
acceleration                                 3000             # Acceleration in mm/second/second.
#z_acceleration                              500              # Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
junction_deviation                           0.05
#z_junction_deviation                        0.0              # For Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA

# Cartesian axis speed limits
x_axis_max_speed                             30000            # Maximum speed in mm/min
y_axis_max_speed                             30000            # Maximum speed in mm/min

# Stepper module configuration
# Pins are defined as  ports, and pin numbers, appending "!" to the number will invert a pin
alpha_step_pin                               2.0              # Pin for alpha stepper step signal
alpha_dir_pin                                0.5              # Pin for alpha stepper direction, add '!' to reverse direction
alpha_en_pin                                 0.4              # Pin for alpha enable pin
alpha_current                                0.7              # X stepper motor current
alpha_max_rate                               30000.0          # Maximum rate in mm/min

beta_step_pin                                2.2              # Pin for beta stepper step signal
beta_dir_pin                                 0.20!             # Pin for beta stepper direction, add '!' to reverse direction
beta_en_pin                                  0.19             # Pin for beta enable
gamma_current                                0.8              # Y stepper motor current
beta_max_rate                                30000.0          # Maxmimum rate in mm/min
epsilon_current                              0.8              # Z stepper motor current

## Laser module configuration
laser_module_enable                           true            # Whether to activate the laser module at all
laser_module_pwm_pin                          2.5o             # This pin will be PWMed to control the laser.
                                                              # Only pins 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 1.18, 1.20, 1.21, 1.23, 1.24, 1.26, 3.25 and 3.26
                                                              # can be used since laser requires hardware PWM
#laser_module_ttl_pin 	                      1.30            # This pin turns on when the laser turns on, and off when the laser turns off.
laser_module_maximum_power                    0.9             # This is the maximum duty cycle that will be applied to the laser
#laser_module_minimum_power                   0.0             # This is a value just below the minimum duty cycle that keeps the laser
                                                              # active without actually burning.
laser_module_default_power                    0.7             # This is the default laser power that will be used for cuts if a power has not been specified.  The value is a scale between
                                                              # the maximum and minimum power levels specified above
laser_module_pwm_period                       15              # This sets the pwm frequency as the period in microseconds


## Switch modules
## Could use this for bed lighting
#switch.light.enable                          true             # Enable this module
#switch.light.input_on_command                M42              # Command that will turn this switch on
#switch.light.input_off_command               M43              # Command that will turn this switch off
#switch.light.output_pin                      2.4              # Pin this module controls
#switch.light.output_type                     digital          # Digital means this is just an on or off pin

switch.fans.enable                           true
switch.fans.output_pin                       1.23
switch.fans.output_type                      digital
switch.fans.startup_state                    true
switch.fans.failsafe_set_to                  1


## Endstops
endstops_enable                              true             # The endstop module is enabled by default and can be disabled here
alpha_min_endstop                            1.24^!            # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#alpha_max_endstop                            1.25^!            # Pin to read max endstop, uncomment this and comment the above if using max endstops
beta_min_endstop                             1.26^!            # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#beta_max_endstop                             1.27^!            # Pin to read max endstop, uncomment this and comment the above if using max endstops

alpha_homing_direction                       home_to_min      # Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
beta_homing_direction                        home_to_min      # Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop

alpha_min                                    0                # This gets loaded as the current position after homing when home_to_min is set
beta_min                                     0                # This gets loaded as the current position after homing when home_to_min is set

# Optional enable limit switches, actions will stop if any enabled limit switch is triggered
alpha_limit_enable                          false            # Set to true to enable X min and max limit switches
beta_limit_enable                           false            # Set to true to enable Y min and max limit switches

# Endstops home at their fast feedrate first, then once the endstop is found they home again at their slow feedrate for accuracy
alpha_fast_homing_rate_mm_s                  50               # Alpha/X fast homing feedrate in mm/second
alpha_slow_homing_rate_mm_s                  25               # Alpha/X slow homing feedrate in mm/second
beta_fast_homing_rate_mm_s                   50               # Beta/Y  fast homing feedrate in mm/second
beta_slow_homing_rate_mm_s                   25               # Beta/Y  slow homing feedrate in mm/second

alpha_homing_retract_mm                      5                # Distance to retract from the endstop after it is hit for alpha/X
beta_homing_retract_mm                       5                # Distance to retract from the endstop after it is hit for beta/Y

alpha_max_travel                             600
beta_max_travel                              600

# Optional order in which axis will home, default is they all home at the same time,
# If this is set it will force each axis to home one at a time in the specified order
homing_order                                 XY              # X axis followed by Y then Z last
#move_to_origin_after_home                    false            # Move XY to 0,0 after homing
#endstop_debounce_count                       100              # Uncomment if you get noise on your endstops, default is 100
#endstop_debounce_ms                          1                # Uncomment if you get noise on your endstops, default is 1 millisecond debounce
#home_z_first                                 true             # Uncomment and set to true to home the Z first, otherwise Z homes after XY

## Panel
# Please find your panel on the wiki and copy/paste the right configuration here
panel.enable                                 false             # Set to true to enable the panel code

# Example for reprap discount GLCD
# on glcd EXP1 is to left and EXP2 is to right, pin 1 is bottom left, pin 2 is top left etc.
# +5v is EXP1 pin 10, Gnd is EXP1 pin 9
panel.lcd                                   reprap_discount_glcd     #
panel.spi_channel                           0                 # SPI channel to use  ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin                            0.16              # SPI chip select     ; GLCD EXP1 Pin 4
panel.encoder_a_pin                         3.26!^            # Encoder pin         ; GLCD EXP2 Pin 3
panel.encoder_b_pin                         3.25!^            # Encoder pin         ; GLCD EXP2 Pin 5
panel.click_button_pin                      1.30!^            # Click button        ; GLCD EXP1 Pin 2
panel.buzz_pin                              1.31              # Pin for buzzer      ; GLCD EXP1 Pin 1
panel.back_button_pin                       2.11!^            # Back button         ; GLCD EXP2 Pin 8

panel.encoder_resolution                     4
panel.menu_offset                            0                 # Some panels will need 1 here

panel.alpha_jog_feedrate                     6000              # X jogging feedrate in mm/min
panel.beta_jog_feedrate                      6000              # Y jogging feedrate in mm/min
panel.gamma_jog_feedrate                     200               # Z jogging feedrate in mm/min

## Custom menus : Example of a custom menu entry, which will show up in the Custom entry.
# NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands
custom_menu.power_on.enable                true              #
custom_menu.power_on.name                  Power_on          #
custom_menu.power_on.command               M80               #

custom_menu.power_off.enable               true              #
custom_menu.power_off.name                 Power_off         #
custom_menu.power_off.command              M81               #


## Network settings
network.enable                               false             # Enable the ethernet network services
network.webserver.enable                     false             # Enable the webserver
network.telnet.enable                        true             # Enable the telnet server
#network.ip_address                           auto             # Use dhcp to get ip address
# Uncomment the 3 below to manually setup ip address
network.ip_address                           192.168.1.248   # The IP address
network.ip_mask                              255.255.255.0   # The ip mask
network.ip_gateway                           192.168.1.1     # The gateway address
network.hostname                             Fabool
#network.mac_override                         xx.xx.xx.xx.xx.xx  # Override the mac address, only do this if you have a conflict

## System configuration
# Serial communications configuration ( baud rate defaults to 9600 if undefined )
# For communication over the UART port, *not* the USB/Serial port
uart0.baud_rate                              115200           # Baud rate for the default hardware ( UART ) serial port

second_usb_serial_enable                     false            # This enables a second USB serial port
#leds_disable                                true             # Disable using leds after config loaded
#play_led_disable                            true             # Disable the play led

# Kill button maybe assigned to a different pin, set to the onboard pin by default
kill_button_enable                           true             # Set to true to enable a kill button
kill_button_pin                              2.12             # Kill button pin. default is same as pause button 2.12 (2.11 is another good choice)

#msd_disable                                 false            # Disable the MSD (USB SDCARD)
#dfu_enable                                  false            # For linux developers, set to true to enable DFU

# Only needed on a smoothieboard
currentcontrol_module_enable                 true             # Control stepper motor current via the configuration file

Found the forum post where @skibo notes his solution.

Using the default firmware and setting extruder.hotend.enable true allows the controller to home properly.

This seems like a bug?

Enabling/disabling modules causing issues to occur/not occur sounds like possibly running out of RAM. Do you have network and panel enabled or not?

I’ve been running it now with both network and panel enabled. All it took was adding extruder.hotend.enable true and I’ve been able to home and do all cutting as expected in LightBurn.

I can replicate the halt by simply removing that line from my config again.

It’s not clear what you are saying.
I was asking you to try to see if the problem occurs with the network and panel modules DISabled.
Can you please disable them and see if the problem still occurs?

Sorry if my responses were unclear! It still happens with panel and network disabled, unless I add that line.

extruder.hotend.enable true -> homing works, regardless of panel/network being enabled or not.

extruder.hotend.enable false -> homing does not work, regardless of panel/network being enabled.