Since you have it working to some degree, much of this is satisfied.
Is the “Back and Forth” a shudder, or does it move a distance and reverse? If it shudders, you may have a phase reversed, try reversing wires 1 and 2 and see if that helps.
Also verify all 4 of the conductors and make sure they are solid from the Smoothieboard connector to the motor. An open wire on one winding will also make it vibrate or Shudder,
If it actually moves (> 1/4") and reverses it’s probably running, but is being reversed by the Smoothie. This can be caused by open endstop switched to reversed endstop logic. Again, compare to the settings below (ENDSTOPS SECTION).
One more possibly is if you have the current setting too low or high, or the motor is bad or jammed, The Allegro Stepper Drivers on the Smoothieboard may be shutting down and re-starting.
Compare the “MOTOR DRIVE SECTION” below to yours and look for any substantial difference.
Make sure you shut down and reboot after each Config change.
.
I’ve created a “easy” Config file (see below) that has built in instructions and has most of the unnecessary sections (like for 3d printers and battlebots) removed.
You cannot use Wordpad or the like to edit it, they will corrupt it and it will not work properly. (Microsoft adds it’s own file tags which are not visable but interfere with it’s operation)
Use Gedit to edit the Config, it’s free and easy to use.
Send me an Email, and I’ll send you my ACR module instuctions and the Config file that should copy right in.
As Yuusuf suggested, make sure you have 24v going to the VBB line of the Smoothieboard (last Red light on) or the motors won’t run.
Here’s a text version of the ALL-Tek ‘user friendly(er)’ Config file
ALL-TEK SYSTEMS ProductID-ACR_SMOOTHIECONFIG_GEDIT V4.5 080816 1153a Scott Marshall
8/8/2016 Custom Built
DO NOT EDIT THIS FILE WITH NOTEPAD! - It will not work properly. Use Gedit, Free and Opensource.
ALL-TEK SYSTEMS CONFIGURATION FILE FOR USE WITH:
THE ALL-TEK SYSTEMS ACR AND SWITCHABLE Series
of K40 Aftermarket Controller Retrofit interface cards and kits
and the “K40” Chinese Built “Bluebox” 40W Laser Cutter.
Also may be compatible with most Laser Cutters using the “M2nano” controller by Lihuiyu Studio Labs
and associates.
This configuration file also supports various add on kits offered by ALL-TEK SYSTEMS
Among these are the Water Works cooling kit, The Safe K40 kit, and others soon to be released.
Use ! as a suffix to invert a pin. Use NC to disable an unused function (ex:endstops), # comments line out.
132 characters per line maximum, see ruler line below for guidance. C=100
#23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789C (+32 character linit)
Thanks to the Google K40 Community for their support and assistance in this project.
They were the inspiration for the ACR line and the resurrection of ALL-TEK Systems.
Thanks also to Yuusuf Sallahuddin and power to the ‘Nongineers’!
This file is freely available to anyone who wants to use it in their Laser. I hope it helps your project succeed. Scott
Please report bugs, errors, or ways to improve the operation of this file to ALL-TEKSYSTEMS.com
#------------------------------MOTOR DRIVE SECTION---------------------------------------
ALL-TEK SYSTEMS default settings work well with most stock K40 Laser Cutter motors.
The logic output pins correspond to the input pins for the Allegro A4982
integrated circuit Stepper Motor Drivers. Microstepping is 16 steps per native step. (200)
If motors are loud and raspy reduce current in 0.1 amp steps.
If motors are weak or lose steps raise current in 0.1 amp steps. Do not exceed 1.2 amps.
Use the minimum required amperage or motors will overheat.
‘Musical’ tones are normal sounds, this is due to microstepping driver.
#X Axis
alpha_step_pin 2.0 # Pin for alpha stepper step signal
alpha_dir_pin 0.5! # Pin for alpha stepper direction
alpha_en_pin 0.4 # Pin for alpha enable pin
alpha_current 0.6 # X stepper motor current
alpha_max_rate 30000.0 # mm/min
#Y Axis
beta_step_pin 2.1 # Pin for beta stepper step signal
beta_dir_pin 0.11 # Pin for beta stepper direction
beta_en_pin 0.10 # Pin for beta enable
beta_current 0.5 # Y stepper motor current
beta_max_rate 30000.0 # mm/min
-Speed
microseconds_per_step_pulse 1 # Duration of step pulses
# to stepper drivers, in microseconds. This is the width (duration) of the Step pulse sent to
# the Allegro A4982 Stepper Motor Controller Chip.
#
base_stepping_frequency 100000 # Base frequency for stepping - this is 100000 steps per second.
# X and Y axis speed limits
x_axis_max_speed 30000 # mm/min
y_axis_max_speed 30000 # mm/min
#
#-------------------------------DRIVE RATIO SECTION---------------------------------------
This sections sets the motion control method and proper steps per mm for a stock K40
with stock belts and pulleys. Do not change unless you have modified this drivetrain.
alpha_steps_per_mm 157.575 # Steps per mm for alpha stepper
beta_steps_per_mm 157.575 # Steps per mm for beta stepper
#------------------------------LASER MODULE SECTION--------------------------------------
laser_module_enable true # Always true for K40
laser_module_pin 2.4! # Pin 2.4 (inverted output)
Pin 2.4 connects through the ACR ‘Fire’ level translator to the fire input on the k40 power supply.
The Fire pin is pin 1 of the 4 pin power connector and is inverted (gnd to fire).
System is PWM capable and allows use of the Stock K40 level control.
laser_module_maximum_power 1.0 # Max power limiter
NOT a true power limiter, it controls the maximum duty cycle (0= 0%, .5 = 50% 1= 100%)
The maximum current IS NOT limited by this function. If using a larger than stock
power supply, Maximum current MUST be limited by hardware settings.
laser_module_minimum_power 0.0 # As with Maximum Power,
this setting controls the floor setting of the PWM output. (0= 0%, .5 = 50% 1= 100%)
laser_module_default_power 1.0 # Sets the PWM output level
if you have not specified it in the software. Uses the same scale as above (0-1 = 0%100%)
laser_module_pwm_period 20 # This sets the length of time
each PWM cycle lasts (in microseconds (0.000001 seconds)) Known as ‘Period’ this setting
determines the Frequency at which the laser is pulsed. F=1/Period, so 20us = 50 khz,
or 50,000 times per second.
If set too low (longer period, lower Frequency), the resolution will suffer.
If set too high (shorter period, higher frequency) the power supply may not be able
to switch properly, will act inconsistent, possibly make noise and overheat.
#----------------------------------ENDSTOPS SECTION---------------------------------------
endstops_enable true # Endstops Operational
Configured to work with stock K40 Opto-interuppter endstops using the ACR interface.
The ALL-TEK ACR/Switchable board contains 4K7 pull up resistors and 5V to 3.3V
Logic Level Translators for use with either 3.3V or 5V aftermarket controllers
Stock K40 Endstops are configured for homing to upper left.
Alpha = X (Left/Right) Homes to Left (Minimum)
Beta = Y (Up/Down) Homes to Top (Maximum)
alpha_min_endstop 1.24^ # X Axis Enabled Positive
Smoothieboard Input Pin 1.24 (Connector next to USB, pin 1) Logic High when made.
alpha_max_endstop NC # X Axis Max, NOT USED
alpha_homing_direction home_to_min # Direction to search for
the Alpha (X) Endstop
alpha_min 0 # Automatically loaded after
homing when home_to_min is active ACTIVE
alpha_max 200 # Automatically Loaded after
homing when home_to_max is active NOT USED
beta_min_endstop NC # Y Axis Min, NOT USED
beta_max_endstop 1.27^ # Y Axis Enabled Positive
Smoothieboard Input Pin 1.27 (4th connector from USB, pin 1) Logic High when made
beta_homing_direction home_to_max # Direction to search for
the Beta (Y) Endstop
#---------------------------ENDSTOP AUTO-CALIBRATE SECTION-----------------------------------
beta_min 0 # Automatically loaded after
homing when home_to_min is active NOT USED
beta_max 200 # Automatically loaded after
homing when home_to_max is active ACTIVE
alpha_max_travel 325 # Maximum Endstop Seek Distance
for Alpha (X) Axis
beta_max_travel 225 # Maximum Endstop Seek Distance
for Beta (Y) Axis
alpha_fast_homing_rate_mm_s 60 # Rapid feed rate for homing (X)
beta_fast_homing_rate_mm_s 60 # Rapid feed rate for homing (Y)
alpha_slow_homing_rate_mm_s 10 # Calibration approach rate (X)
beta_slow_homing_rate_mm_s 10 # Calibration approach rate (Y)
alpha_homing_retract_mm 10 # Distance head backs off for slow re-approach & calibrate (X)
beta_homing_retract_mm 10 # Distance head backs off for slow re-approach & calibrate (Y)
#endstop_debounce_count 100 # unneeded for optos,default is 100
#-----------------------------------MACHINE STOP SECTION--------------------------------------
Can ceused with ALL-TEK Systems K40 “Stop and Go” kit - or can be user wired. See http://ALL-TEKSYSTEMS.COM
kill_button_enable true # Button enabled
kill_button_pin 2.12 # Smoothieboard pin 2.12 (can use pin 2.11)Logic H to Halt processor.
#-------------------------AUX COOLING FAN/UTILITY OUTPUT SECTION------------------------------
This can be used to control an aux fan on the ACR board, Smoothieboard or K40 High voltage power supply (or any combination)
Insert M106 & M107 to turn fan on and off, speed is set with ‘S’ command following M106 (ex: M106 S255) (0-255)
this can also be used with proper electronics to control exhaust or water pumps.
output in on pin 2.6 (PWM)
switch.fan.enable false # Change to ‘True’ to enable port
switch.fan.input_on_command M106 # Call ‘M106 Sxxx’ for ON @ xxx speed
switch.fan.input_off_command M107 # Call ‘M107’ for OFF
switch.fan.output_pin 2.6 # Can use any available PWM capable outputs
switch.fan.output_type pwm # pwm output settable with S parameter in the input_on_comand
#switch.fan.max_pwm 255 # set max pwm for the pin default is 255
#-------------------------NETWORK (ETHERNET COMMUNICATIONS) SECTION---------------------------
network.enable false # 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.3.222 # the IP address
network.ip_mask 255.255.255.0 # the ip mask
network.ip_gateway 192.168.3.1 # the gateway address
network.mac_override xx.xx.xx.xx.xx.xx # override the mac address, only use if conflict
#----------------------------USB (SERIAL COMMUNICATIONS) SECTION------------------------------
uart0.baud_rate 115200 # Baud rate for the default hardware,
serial port baud rate defaults to 9600 if undefined
second_usb_serial_enable false # This enables a second usb serial port - allows use of both
pronterface and a terminal - Not needed if the Laser Cutter Software supports Ethernet Connectivity.
Enable this function to disallow SD Card mounting.
This can solve some Endstop COM issues. Leave functional (disabled) if at all possible. It has many conveniences.
#msd_disable false # disable the MSD (USB SDCARD) when set to true (needs special binary)
#dfu_enable false # for linux developers, set to true to enable DFU
#watchdog_timeout 10 # watchdog timeout in seconds, default is 10, set to 0 to disable the watchdog
Only needed on a smoothieboard
currentcontrol_module_enable true #
#---------------------------CUSTOM MENU SECTION-------------------------------
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 #
http://custom_menu.power_on.name Power_on #
custom_menu.power_on.command M80 #
custom_menu.power_off.enable true #
http://custom_menu.power_off.name Power_off #
custom_menu.power_off.command M81 #
#---------------------------FUNCTION SETUP SECTION-------------------------------
#This is setup and Accel/Decel curve controls. Leave it alone unless you know your way around in here.
Robot module configurations : general handling of movement G-codes and slicing into moves
default_feed_rate 4000 # Default rate ( mm/minute ) for G1/G2/G3 moves
default_seek_rate 4000 # Default rate ( mm/minute ) for G0 moves
mm_per_arc_segment 0.0 # Fixed length for line segments that divide arcs 0 to disable
mm_max_arc_error 0.01 # The maximum error for line segments that divide arcs 0 to disable
Planner module configuration : Look-ahead and acceleration configuration
planner_queue_size 32 # DO NOT CHANGE THIS UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING
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 # Similar to the old “max_jerk”, in millimeters,
# see https://github.com/grbl/grbl/blob/master/planner.c
# and Configuring Grbl v0.8 · grbl/grbl Wiki · GitHub
# Lower values mean being more careful, higher values means being
# faster and have more jerk
#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
#minimum_planner_speed 0.0 # sets the minimum planner speed in mm/sec
Scott