config: Update example config files to be more clear on default values

Be more clear on which parameters have defaults and which parameters
must be specified in the config.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-01-02 13:17:50 -05:00
parent 91056809dd
commit 38ca051381
4 changed files with 95 additions and 67 deletions

View File

@ -1,7 +1,7 @@
# Support for internal testing with the "simulavr" program. To use # Support for internal testing with the "simulavr" program. To use
# this config, compile the firmware for an AVR atmega644p, disable the # this config, compile the firmware for an AVR atmega644p, disable the
# AVR watchdog timer, set the MCU frequency to 20000000, and set the # AVR watchdog timer, set the MCU frequency to 20000000, and set the
# serial baud rate to 115200. # serial baud rate to 250000.
[stepper_x] [stepper_x]
# Pins: PA5, PA4, PA1 # Pins: PA5, PA4, PA1
@ -69,7 +69,6 @@ hard_pwm: 1
[mcu] [mcu]
serial: /tmp/pseudoserial serial: /tmp/pseudoserial
baud: 250000
pin_map: arduino pin_map: arduino
[printer] [printer]

View File

@ -73,23 +73,24 @@ max_temp: 130
[mcu] [mcu]
serial: /dev/ttyACM0 serial: /dev/ttyACM0
baud: 250000
pin_map: arduino pin_map: arduino
[printer] [printer]
kinematics: delta kinematics: delta
# This option must be "delta" for linear delta printers # This option must be "delta" for linear delta printers.
max_velocity: 300 max_velocity: 300
max_accel: 3000 max_accel: 3000
max_z_velocity: 200 max_z_velocity: 200
# For delta printers this limits the maximum velocity (in mm/s) of # For delta printers this limits the maximum velocity (in mm/s) of
# moves with z axis movement. This setting can be used to reduce the # moves with z axis movement. This setting can be used to reduce the
# maximum speed of up/down moves (which require a higher step rate # maximum speed of up/down moves (which require a higher step rate
# than other moves on a delta printer). # than other moves on a delta printer). The default is to use
# max_velocity for max_z_velocity.
delta_arm_length: 333.0 delta_arm_length: 333.0
# Length (in mm) of the diagonal rods that connect the linear axes # Length (in mm) of the diagonal rods that connect the linear axes
# to the print head # to the print head. This parameter must be provided.
delta_radius: 174.75 delta_radius: 174.75
# Radius (in mm) of the horizontal circle formed by the three linear # Radius (in mm) of the horizontal circle formed by the three linear
# axis towers. This parameter may also be calculated as: # axis towers. This parameter may also be calculated as:
# delta_radius = smooth_rod_offset - effector_offset - carriage_offset # delta_radius = smooth_rod_offset - effector_offset - carriage_offset
# This parameter must be provided.

View File

@ -19,27 +19,35 @@
# the X axis in a cartesian robot # the X axis in a cartesian robot
[stepper_x] [stepper_x]
step_pin: ar29 step_pin: ar29
# Step GPIO pin (triggered high) # Step GPIO pin (triggered high). This parameter must be provided.
dir_pin: !ar28 dir_pin: !ar28
# Direction GPIO pin (high indicates positive direction) # Direction GPIO pin (high indicates positive direction). This
# parameter must be provided.
enable_pin: !ar25 enable_pin: !ar25
# Enable pin (default is enable high; use ! to indicate enable low) # Enable pin (default is enable high; use ! to indicate enable
# low). If this parameter is not provided then the stepper motor
# driver must always be enabled.
step_distance: .0225 step_distance: .0225
# Distance in mm that each step causes the axis to travel # Distance in mm that each step causes the axis to travel. This
# parameter must be provided.
endstop_pin: ^ar0 endstop_pin: ^ar0
# Endstop switch detection pin # Endstop switch detection pin. This parameter must be provided for
homing_speed: 50.0 # the X, Y, and Z steppers on cartesian style printers.
# Maximum velocity (in mm/s) of the stepper when homing #homing_speed: 5.0
homing_retract_dist: 5.0 # Maximum velocity (in mm/s) of the stepper when homing. The default
# Distance to backoff (in mm) before homing a second time during homing # is 5mm/s.
homing_positive_dir: False #homing_retract_dist: 5.0
# If true, homes in a positive direction (away from zero) # Distance to backoff (in mm) before homing a second time during
homing_stepper_phases: 0 # homing. The default is 5mm.
#homing_positive_dir: False
# If true, homes in a positive direction (away from zero). The
# default is False.
#homing_stepper_phases: 0
# One may optionally set this to the number of phases of the stepper # One may optionally set this to the number of phases of the stepper
# motor driver (which is the number of micro-steps multiplied by # motor driver (which is the number of micro-steps multiplied by
# four). When set, the phase of the stepper driver will be used # four). When set, the phase of the stepper driver will be used
# during homing to improve the accuracy of the endstop switch. # during homing to improve the accuracy of the endstop switch.
homing_endstop_accuracy: 0.200 #homing_endstop_accuracy: 0.200
# Sets the expected accuracy (in mm) of the endstop. This represents # Sets the expected accuracy (in mm) of the endstop. This represents
# the maximum error distance the endstop may trigger (eg, if an # the maximum error distance the endstop may trigger (eg, if an
# endstop may occasionally trigger 100um early or up to 100um late # endstop may occasionally trigger 100um early or up to 100um late
@ -56,12 +64,14 @@ homing_endstop_accuracy: 0.200
# phase will be used on all subsequent homes. # phase will be used on all subsequent homes.
position_min: -0.25 position_min: -0.25
# Minimum valid distance (in mm) the user may command the stepper to # Minimum valid distance (in mm) the user may command the stepper to
# move to # move to. The default is 0mm.
position_endstop: 0 position_endstop: 0
# Location of the endstop (in mm) # Location of the endstop (in mm). This parameter must be provided
# for the X, Y, and Z steppers on cartesian style printers.
position_max: 200 position_max: 200
# Maximum valid distance (in mm) the user may command the stepper to # Maximum valid distance (in mm) the user may command the stepper to
# move to # move to. This parameter must be provided for the X, Y, and Z
# steppers on cartesian style printers.
# The stepper_y section is used to describe the stepper controlling # The stepper_y section is used to describe the stepper controlling
# the Y axis in a cartesian robot. It has the same settings as the # the Y axis in a cartesian robot. It has the same settings as the
@ -101,46 +111,59 @@ enable_pin: !ar25
step_distance: .004242 step_distance: .004242
max_velocity: 200000 max_velocity: 200000
# Maximum velocity (in mm/s) of the extruder motor for extrude only # Maximum velocity (in mm/s) of the extruder motor for extrude only
# moves. # moves. This parameter must be provided.
max_accel: 3000 max_accel: 3000
# Maximum acceleration (in mm/s^2) of the extruder motor for extrude # Maximum acceleration (in mm/s^2) of the extruder motor for extrude
# only moves. # only moves. This parameter must be provided.
# #pressure_advance: 0.0
# The remaining variables describe the extruder heater
pressure_advance: 0.0
# The amount of raw filament to push into the extruder during # The amount of raw filament to push into the extruder during
# extruder acceleration. An equal amount of filament is retracted # extruder acceleration. An equal amount of filament is retracted
# during deceleration. It is measured in millimeters per # during deceleration. It is measured in millimeters per
# millimeter/second # millimeter/second. The default is 0, which disables pressure
# advance.
#
# The remaining variables describe the extruder heater
heater_pin: ar4 heater_pin: ar4
# PWM output pin controlling the heater # PWM output pin controlling the heater. This parameter must be
# provided.
thermistor_pin: analog1 thermistor_pin: analog1
# Analog input pin connected to thermistor # Analog input pin connected to thermistor. This parameter must be
# provided.
thermistor_type: EPCOS 100K B57560G104F thermistor_type: EPCOS 100K B57560G104F
# Type of thermistor (see klippy/heater.py for available types) # Type of thermistor (see the Thermistors variable at the top of
pullup_resistor: 4700 # klippy/heater.py for available types). This parameter must be
# The resistance (in ohms) of the pullup attached to the thermistor # provided.
#pullup_resistor: 4700
# The resistance (in ohms) of the pullup attached to the
# thermistor. The default is 4700 ohms.
control: pid control: pid
# Control algorithm (either pid or watermark) # Control algorithm (either pid or watermark). This parameter must
# be provided.
pid_Kp: 22.2 pid_Kp: 22.2
# Kp is the "proportional" constant for the pid # Kp is the "proportional" constant for the pid. This parameter must
# be provided for PID heaters.
pid_Ki: 1.08 pid_Ki: 1.08
# Ki is the "integral" constant for the pid # Ki is the "integral" constant for the pid. This parameter must be
# provided for PID heaters.
pid_Kd: 114 pid_Kd: 114
# Kd is the "derivative" constant for the pid # Kd is the "derivative" constant for the pid. This parameter must
pid_deriv_time: 2.0 # be provided for PID heaters.
#pid_deriv_time: 2.0
# A time value (in seconds) over which the derivative in the pid # A time value (in seconds) over which the derivative in the pid
# will be smoothed to reduce the impact of measurement noise # will be smoothed to reduce the impact of measurement noise. The
pid_integral_max: 255 # default is 2 seconds.
# The maximum "windup" the integral term may accumulate #pid_integral_max: 255
min_extrude_temp: 170 # The maximum "windup" the integral term may accumulate. The default
# is 255.
#min_extrude_temp: 170
# The minimum temperature (in Celsius) at which extruder move # The minimum temperature (in Celsius) at which extruder move
# commands may be issued # commands may be issued. The default is 170 Celsius.
min_temp: 0 min_temp: 0
# Minimum temperature in Celsius (mcu will shutdown if not met) # Minimum temperature in Celsius (mcu will shutdown if not
# met). This parameter must be provided.
max_temp: 210 max_temp: 210
# Maximum temperature (mcu will shutdown if temperature is above # Maximum temperature (mcu will shutdown if temperature is above
# this value) # this value). This parameter must be provided.
# The heater_bed section describes a heated bed (if present - omit # The heater_bed section describes a heated bed (if present - omit
# section if not present). # section if not present).
@ -149,34 +172,37 @@ heater_pin: ar3
thermistor_pin: analog0 thermistor_pin: analog0
thermistor_type: EPCOS 100K B57560G104F thermistor_type: EPCOS 100K B57560G104F
control: watermark control: watermark
max_delta: 2.0 #max_delta: 2.0
# The number of degrees in Celsius above the target temperature # On 'watermark' controlled heaters this is the number of degrees in
# before disabling the heater as well as the number of degrees below # Celsius above the target temperature before disabling the heater
# the target before re-enabling the heater. # as well as the number of degrees below the target before
# re-enabling the heater. The default is 2 degrees Celsius.
min_temp: 0 min_temp: 0
max_temp: 110 max_temp: 110
# Extruder print fan (omit section if fan not present) # Extruder print fan (omit section if fan not present)
[fan] [fan]
pin: ar14 pin: ar14
# PWM output pin controlling the heater # PWM output pin controlling the heater. This parameter must be
# provided.
hard_pwm: 1 hard_pwm: 1
# Set this value to force hardware PWM instead of software PWM. Set # Set this value to force hardware PWM instead of software PWM. Set
# to 1 to force a hardware PWM at the fastest rate; set to a higher # to 1 to force a hardware PWM at the fastest rate; set to a higher
# number (eg, 1024) to force hardware PWM with the given cycle time # number (eg, 1024) to force hardware PWM with the given cycle time
# in clock ticks. # in clock ticks. The default is 128 clock ticks.
kick_start_time: 0.100 #kick_start_time: 0.100
# Time (in seconds) to run the fan at full speed when first enabling # Time (in seconds) to run the fan at full speed when first enabling
# it (helps get the fan spinning) # it (helps get the fan spinning). The default is 0.100 seconds.
# Micro-controller information # Micro-controller information
[mcu] [mcu]
serial: /dev/ttyACM0 serial: /dev/ttyACM0
# The serial port to connect to the MCU # The serial port to connect to the MCU. The default is /dev/ttyS0
baud: 250000 #baud: 250000
# The baud rate to use # The baud rate to use. The default is 250000.
pin_map: arduino pin_map: arduino
# This option may be used to enable Arduino pin name aliases # This option may be used to enable Arduino pin name aliases. The
# default is to not enable the aliases.
custom: custom:
# This option may be used to specify a set of custom # This option may be used to specify a set of custom
# micro-controller commands to be sent at the start of the # micro-controller commands to be sent at the start of the
@ -187,25 +213,28 @@ custom:
# The printer section controls high level printer settings # The printer section controls high level printer settings
[printer] [printer]
kinematics: cartesian kinematics: cartesian
# This option must be "cartesian" for cartesian printers # This option must be "cartesian" for cartesian printers.
max_velocity: 500 max_velocity: 500
# Maximum velocity (in mm/s) of the toolhead (relative to the # Maximum velocity (in mm/s) of the toolhead (relative to the
# print) # print). This parameter must be specified.
max_accel: 3000 max_accel: 3000
# Maximum acceleration (in mm/s^2) of the toolhead (relative to the # Maximum acceleration (in mm/s^2) of the toolhead (relative to the
# print) # print). This parameter must be specified.
max_z_velocity: 250 max_z_velocity: 250
# For cartesian printers this sets the maximum velocity (in mm/s) of # For cartesian printers this sets the maximum velocity (in mm/s) of
# movement along the z axis. This setting can be used to restrict # movement along the z axis. This setting can be used to restrict
# the maximum speed of the z stepper motor on cartesian printers. # the maximum speed of the z stepper motor on cartesian
# printers. The default is to use max_velocity for max_z_velocity.
max_z_accel: 30 max_z_accel: 30
# For cartesian printers this sets the maximum acceleration (in # For cartesian printers this sets the maximum acceleration (in
# mm/s^2) of movement along the z axis. It limits the acceleration # mm/s^2) of movement along the z axis. It limits the acceleration
# of the z stepper motor on cartesian printers. # of the z stepper motor on cartesian printers. The default is to
motor_off_time: 60 # use max_accel for max_z_accel.
#motor_off_time: 60
# Time (in seconds) of idle time before the printer will try to # Time (in seconds) of idle time before the printer will try to
# disable active motors. # disable active motors. The default is 60 seconds.
junction_deviation: 0.02 #junction_deviation: 0.02
# Distance (in mm) used to control the internal approximated # Distance (in mm) used to control the internal approximated
# centripetal velocity cornering algorithm. A larger number will # centripetal velocity cornering algorithm. A larger number will
# permit higher "cornering speeds" at the junction of two moves. # permit higher "cornering speeds" at the junction of two moves. The
# default is 0.02mm.

View File

@ -75,7 +75,6 @@ hard_pwm: 1
[mcu] [mcu]
serial: /dev/ttyACM0 serial: /dev/ttyACM0
baud: 250000
custom: custom:
# Nozzle fan # Nozzle fan
set_pwm_out pin=PH3 cycle_ticks=1 value=155 set_pwm_out pin=PH3 cycle_ticks=1 value=155