extruder: Add nozzle and filament diameter config settings

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-01-02 18:21:39 -05:00
parent 38ca051381
commit 5a5bd2596a
5 changed files with 15 additions and 1 deletions

View File

@ -42,6 +42,8 @@ step_pin: ar19
dir_pin: ar18
enable_pin: ar25
step_distance: .004242
nozzle_diameter: 0.500
filament_diameter: 3.500
max_velocity: 200000
max_accel: 3000
heater_pin: ar4

View File

@ -46,6 +46,8 @@ step_pin: ar26
dir_pin: ar28
enable_pin: !ar24
step_distance: .0022
nozzle_diameter: 0.400
filament_diameter: 1.750
max_velocity: 200
max_accel: 3000
heater_pin: ar10

View File

@ -109,6 +109,12 @@ step_pin: ar19
dir_pin: ar18
enable_pin: !ar25
step_distance: .004242
nozzle_diameter: 0.500
# Diameter of the nozzle orifice (in mm). This parameter must be
# provided.
filament_diameter: 3.500
# Diameter of the raw filament (in mm) as it enters the
# extruder. This parameter must be provided.
max_velocity: 200000
# Maximum velocity (in mm/s) of the extruder motor for extrude only
# moves. This parameter must be provided.

View File

@ -48,6 +48,8 @@ step_pin: PC3
dir_pin: PL6
enable_pin: !PA4
step_distance: .004242
nozzle_diameter: 0.350
filament_diameter: 1.750
max_velocity: 200000
max_accel: 3000
pressure_advance: 0.07

View File

@ -10,9 +10,11 @@ class PrinterExtruder:
def __init__(self, printer, config):
self.heater = heater.PrinterHeater(printer, config)
self.stepper = stepper.PrinterStepper(printer, config, 'extruder')
self.pressure_advance = config.getfloat('pressure_advance', 0.)
nozzle_diameter = config.getfloat('nozzle_diameter')
filament_diameter = config.getfloat('filament_diameter')
self.max_e_velocity = config.getfloat('max_velocity')
self.max_e_accel = config.getfloat('max_accel')
self.pressure_advance = config.getfloat('pressure_advance', 0.)
self.need_motor_enable = True
self.extrude_pos = 0.
def build_config(self):