aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/avrsim.cfg83
-rw-r--r--config/example.cfg173
-rw-r--r--config/makergear-m2-2012.cfg103
3 files changed, 359 insertions, 0 deletions
diff --git a/config/avrsim.cfg b/config/avrsim.cfg
new file mode 100644
index 00000000..5b1d0f74
--- /dev/null
+++ b/config/avrsim.cfg
@@ -0,0 +1,83 @@
+# Support for internal testing with the "simulavr" program. To use
+# this config, compile the firmware for an AVR atmega644p, disable the
+# AVR watchdog timer, set the MCU frequency to 20000000, and set the
+# serial baud rate to 115200.
+
+[stepper_x]
+# Pins: PA5, PA4, PA1
+step_pin: ar29
+dir_pin: ar28
+enable_pin: ar25
+step_distance: .0225
+max_velocity: 500
+max_accel: 3000
+endstop_pin: ^!ar0
+position_min: -0.25
+position_endstop: 0
+position_max: 200
+
+[stepper_y]
+# Pins: PA3, PA2
+step_pin: ar27
+dir_pin: ar26
+enable_pin: ar25
+step_distance: .0225
+max_velocity: 500
+max_accel: 3000
+endstop_pin: ^!ar1
+position_min: -0.25
+position_endstop: 0
+position_max: 200
+
+[stepper_z]
+# Pins: PC7, PC6
+step_pin: ar23
+dir_pin: ar22
+enable_pin: ar25
+step_distance: .005
+max_velocity: 250
+max_accel: 30
+endstop_pin: ^!ar2
+position_min: 0.1
+position_endstop: 0.5
+position_max: 200
+
+[stepper_e]
+# Pins: PC3, PC2
+step_pin: ar19
+dir_pin: ar18
+enable_pin: ar25
+step_distance: .004242
+max_velocity: 200000
+max_accel: 3000
+
+[heater_nozzle]
+heater_pin: ar4
+thermistor_pin: analog1
+thermistor_type: EPCOS 100K B57560G104F
+control: pid
+pid_Kp: 22.2
+pid_Ki: 1.08
+pid_Kd: 114
+min_temp: 0
+max_temp: 210
+
+[heater_bed]
+heater_pin: ar3
+thermistor_pin: analog0
+thermistor_type: EPCOS 100K B57560G104F
+control: watermark
+min_temp: 0
+max_temp: 110
+
+[fan]
+pin: ar14
+hard_pwm: 1
+
+[mcu]
+serial: /tmp/pseudoserial
+baud: 115200
+pin_map: arduino
+
+[printer]
+kinematics: cartesian
diff --git a/config/example.cfg b/config/example.cfg
new file mode 100644
index 00000000..3090ba15
--- /dev/null
+++ b/config/example.cfg
@@ -0,0 +1,173 @@
+# This file serves as documentation for config parameters. One may
+# copy and edit this file to configure a new printer.
+
+# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
+# FIRST. Incorrectly configured parameters may cause damage.
+
+# A note on pin names: pins may be configured with a hardware name
+# (such as PA4) or with a board name (such as ar29). In order to use a
+# board name, the pin_map variable in the mcu section must specify
+# which board definition to use. (See the klippy/pins.py file for the
+# available pin and board names.)
+# Pin names may be preceded by an '!' to indicate that a reverse
+# polarity should be used (eg, trigger on low instead of high). Input
+# pins may be prceded by an '^' to indicate that a hardware pull-up
+# resistor should be enabled for the pin.
+
+
+# The stepper_x section is used to describe the stepper controlling
+# the X axis in a cartesian robot
+[stepper_x]
+step_pin: ar29
+# Step GPIO pin (triggered high)
+dir_pin: ar28
+# Direction GPIO pin (low indicates positive direction)
+enable_pin: !ar25
+# Enable pin (default is enable high; use ! to indicate enable low)
+step_distance: .0225
+# Distance in mm that each step causes the axis to travel
+max_velocity: 500
+# Maximum velocity (in mm/s) of the stepper
+max_accel: 3000
+# Maximum acceleration (in mm/s^2) of the stepper
+endstop_pin: ^ar0
+# Endstop switch detection pin
+homing_speed: 50.0
+# Maximum velocity (in mm/s) of the stepper when homing
+homing_retract_dist: 5.0
+# Distance to backoff (in mm) before homing a second time during homing
+homing_positive_dir: False
+# If true, homes in a positive direction (away from zero)
+position_min: -0.25
+# Minimum valid distance (in mm) the user may command the stepper to
+# move to (not currently enforced)
+position_endstop: 0
+# Location of the endstop (in mm)
+position_max: 200
+# Maximum valid distance (in mm) the user may command the stepper to
+# move to (not currently enforced)
+
+# 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
+# stepper_x section
+[stepper_y]
+step_pin: ar27
+dir_pin: ar26
+enable_pin: !ar25
+step_distance: .0225
+max_velocity: 500
+max_accel: 3000
+endstop_pin: ^ar1
+position_min: -0.25
+position_endstop: 0
+position_max: 200
+
+# The stepper_z section is used to describe the stepper controlling
+# the Z axis in a cartesian robot. It has the same settings as the
+# stepper_x section
+[stepper_z]
+step_pin: ar23
+dir_pin: ar22
+enable_pin: !ar25
+step_distance: .005
+max_velocity: 250
+max_accel: 30
+endstop_pin: ^ar2
+position_min: 0.1
+position_endstop: 0.5
+position_max: 200
+
+# The stepper_e section is used to describe the stepper controlling
+# the printer extruder. It has the same settings as the stepper_x
+# section
+[stepper_e]
+step_pin: ar19
+dir_pin: ar18
+enable_pin: !ar25
+step_distance: .004242
+max_velocity: 200000
+max_accel: 3000
+
+# The heater_nozzle section describes the extruder and extruder heater
+[heater_nozzle]
+heater_pin: ar4
+# PWM output pin controlling the heater
+thermistor_pin: analog1
+# Analog input pin connected to thermistor
+thermistor_type: EPCOS 100K B57560G104F
+# Type of thermistor (see klippy/heater.py for available types)
+pullup_resistor: 4700
+# The resistance (in ohms) of the pullup attached to the thermistor
+control: pid
+# Control algorithm (either pid or watermark)
+pid_Kp: 22.2
+# Kp is the "proportional" constant for the pid
+pid_Ki: 1.08
+# Ki is the "integral" constant for the pid
+pid_Kd: 114
+# Kd is the "derivative" constant for the pid
+pid_deriv_time: 2.0
+# A time value (in seconds) over which the derivative in the pid
+# will be smoothed to reduce the impact of measurement noise
+pid_integral_max: 255
+# The maximum "windup" the integral term may accumulate
+min_temp: 0
+# Minimum temperature in Celsius (mcu will shutdown if not met)
+max_temp: 210
+# Maximum temperature (mcu will shutdown if temperature is above
+# this value)
+
+# The heater_bed section describes a heated bed (if present - omit
+# section if not present). It has the same settings as the
+# heater_nozzle section
+[heater_bed]
+heater_pin: ar3
+thermistor_pin: analog0
+thermistor_type: EPCOS 100K B57560G104F
+control: watermark
+max_delta: 2.0
+# The number of degrees in Celsius above the target temperature
+# before disabling the heater as well as the number of degrees below
+# the target before re-enabling the heater.
+min_temp: 0
+max_temp: 110
+
+# Extruder print fan (omit section if fan not present)
+[fan]
+pin: ar14
+# PWM output pin controlling the heater
+hard_pwm: 1
+# 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
+# number (eg, 1024) to force hardware PWM with the given cycle time
+# in clock ticks.
+kick_start_time: 0.100
+# Time (in seconds) to run the fan at full speed when first enabling
+# it (helps get the fan spinning)
+
+# Micro-controller information
+[mcu]
+serial: /dev/ttyACM0
+# The serial port to connect to the MCU
+baud: 115200
+# The baud rate to use
+pin_map: arduino
+# This option may be used to add board specific pin name aliases
+custom:
+# This option may be used to specify a set of custom
+# micro-controller commands to be sent at the start of the
+# connection. It may be used to configure the initial settings of
+# LEDs, to configure micro-stepping pins, to configure a digipot,
+# etc.
+
+# The printer section controls high level printer settings
+[printer]
+kinematics: cartesian
+# This option must currently always be "cartesian"
+motor_off_time: 60
+# Time (in seconds) of idle time before the printer will try to
+# disable active motors.
+junction_deviation: 0.02
+# Distance (in mm) used to control the internal approximated
+# centripetal velocity cornering algorithm. A larger number will
+# permit higher "cornering speeds" at the junction of two moves.
diff --git a/config/makergear-m2-2012.cfg b/config/makergear-m2-2012.cfg
new file mode 100644
index 00000000..7a3080d2
--- /dev/null
+++ b/config/makergear-m2-2012.cfg
@@ -0,0 +1,103 @@
+# Support for Makergear M2 printers circa 2012 that have the RAMBo
+# v1.0d electronics. The electronics use Allegro A4984 stepper
+# drivers with 1/8th micro-stepping. To use this config, the firmware
+# should be compiled for the AVR atmega2560.
+
+[stepper_x]
+step_pin: PC0
+dir_pin: PL1
+enable_pin: !PA7
+step_distance: .0225
+max_velocity: 500
+max_accel: 3000
+endstop_pin: ^PB6
+homing_speed: 50.0
+position_min: -0.25
+position_endstop: 0.0
+position_max: 200
+
+[stepper_y]
+step_pin: PC1
+dir_pin: !PL0
+enable_pin: !PA6
+step_distance: .0225
+max_velocity: 500
+max_accel: 3000
+endstop_pin: ^PB5
+homing_speed: 50.0
+position_min: -0.25
+position_endstop: 0.0
+position_max: 250
+
+[stepper_z]
+step_pin: PC2
+dir_pin: PL2
+enable_pin: !PA5
+step_distance: .005
+max_velocity: 250
+max_accel: 30
+endstop_pin: ^PB4
+homing_speed: 4.0
+homing_retract_dist: 2.0
+position_min: 0.1
+position_endstop: 0.7
+position_max: 200
+
+[stepper_e]
+step_pin: PC3
+dir_pin: !PL6
+enable_pin: !PA4
+step_distance: .004242
+max_velocity: 200000
+max_accel: 3000
+
+[heater_nozzle]
+heater_pin: PH6
+thermistor_pin: PF0
+thermistor_type: EPCOS 100K B57560G104F
+control: pid
+pid_Kp: 7.0
+pid_Ki: 0.1
+pid_Kd: 12
+min_temp: 0
+max_temp: 210
+
+[heater_bed]
+heater_pin: PE5
+thermistor_pin: PF2
+thermistor_type: EPCOS 100K B57560G104F
+control: watermark
+min_temp: 0
+max_temp: 100
+
+[fan]
+pin: PH5
+hard_pwm: 1
+
+[mcu]
+serial: /dev/ttyACM0
+baud: 250000
+custom:
+ # Nozzle fan
+ set_pwm_out pin=PH3 cycle_ticks=1 value=155
+ # Turn off yellow led
+ set_digital_out pin=PB7 value=0
+ # Stepper micro-step pins
+ set_digital_out pin=PG1 value=1
+ set_digital_out pin=PG0 value=1
+ set_digital_out pin=PK7 value=1
+ set_digital_out pin=PG2 value=1
+ set_digital_out pin=PK6 value=1
+ set_digital_out pin=PK5 value=1
+ set_digital_out pin=PK3 value=1
+ set_digital_out pin=PK4 value=1
+ # Initialize digipot
+ send_spi_message pin=PD7 msg=0487 # X = ~0.75A
+ send_spi_message pin=PD7 msg=0587 # Y = ~0.75A
+ send_spi_message pin=PD7 msg=0387 # Z = ~0.75A
+ send_spi_message pin=PD7 msg=00A5 # E0
+ send_spi_message pin=PD7 msg=017D # E1
+
+[printer]
+kinematics: cartesian
+motor_off_time: 600