diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-07-10 12:23:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-07-10 22:49:02 -0400 |
commit | af99ab164543bc5e1ee68ef35b1b6f42f06ca887 (patch) | |
tree | eff2482eb95523d99dd57e82fc1e767baf36c267 /config | |
parent | 4a527a46cedaa4a7932ba5c1080b7133c69602cd (diff) | |
download | kutter-af99ab164543bc5e1ee68ef35b1b6f42f06ca887.tar.gz kutter-af99ab164543bc5e1ee68ef35b1b6f42f06ca887.tar.xz kutter-af99ab164543bc5e1ee68ef35b1b6f42f06ca887.zip |
extruder: Create a new class and python file to track the printer extruder
Create a new python file (extruder.py) to control the extruder heater
and stepper motors. This separates the extruder control logic from
the cartesian robot code - making it easier to customize both the
kinematic control of the robot as well as the extruder.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/avrsim.cfg | 4 | ||||
-rw-r--r-- | config/example.cfg | 17 | ||||
-rw-r--r-- | config/makergear-m2-2012.cfg | 4 |
3 files changed, 10 insertions, 15 deletions
diff --git a/config/avrsim.cfg b/config/avrsim.cfg index bd3ad106..774f4f3b 100644 --- a/config/avrsim.cfg +++ b/config/avrsim.cfg @@ -42,7 +42,7 @@ position_min: 0.1 position_endstop: 0.5 position_max: 200 -[stepper_e] +[extruder] # Pins: PC3, PC2 step_pin: ar19 dir_pin: ar18 @@ -50,8 +50,6 @@ 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 diff --git a/config/example.cfg b/config/example.cfg index 3090ba15..d0b5eca8 100644 --- a/config/example.cfg +++ b/config/example.cfg @@ -77,19 +77,19 @@ 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] +# The extruder section is used to describe both the stepper +# controlling the printer extruder and the heater parameters for the +# nozzle. The stepper configuration has the same settings as the +# stepper_x section and the heater configuration has the same settings +# as the heater_bed section +[extruder] 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] +# The remaining variables describe the extruder heater heater_pin: ar4 # PWM output pin controlling the heater thermistor_pin: analog1 @@ -118,8 +118,7 @@ max_temp: 210 # 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 +# section if not present). [heater_bed] heater_pin: ar3 thermistor_pin: analog0 diff --git a/config/makergear-m2-2012.cfg b/config/makergear-m2-2012.cfg index 7a3080d2..85a07683 100644 --- a/config/makergear-m2-2012.cfg +++ b/config/makergear-m2-2012.cfg @@ -43,15 +43,13 @@ position_min: 0.1 position_endstop: 0.7 position_max: 200 -[stepper_e] +[extruder] 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 |