From c3467f5b3541c72bc771b1408e9ebf9e8f8bdfff Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 29 May 2019 11:39:59 -0400 Subject: [PATCH] config: Add generic-printrboard-g2.cfg config file Signed-off-by: Kevin O'Connor --- config/generic-printrboard-g2.cfg | 117 ++++++++++++++++++++++++++++++ test/configs/sam3x8c.config | 3 + test/klippy/printers.test | 4 + 3 files changed, 124 insertions(+) create mode 100644 config/generic-printrboard-g2.cfg create mode 100644 test/configs/sam3x8c.config diff --git a/config/generic-printrboard-g2.cfg b/config/generic-printrboard-g2.cfg new file mode 100644 index 00000000..d2029330 --- /dev/null +++ b/config/generic-printrboard-g2.cfg @@ -0,0 +1,117 @@ +# This file contains common pin mappings for Printrboard G2 boards. +# To use this config, the firmware should be compiled for the SAM3x8c. + +# See the example.cfg file for a description of available parameters. + +[stepper_x] +step_pin: PB15 +dir_pin: !PA16 +enable_pin: !PB16 +step_distance: .0125 +endstop_pin: ^PA11 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[stepper_y] +step_pin: PA29 +dir_pin: !PB1 +enable_pin: !PB0 +step_distance: .0125 +endstop_pin: ^PB26 +position_endstop: 150 +position_max: 150 +homing_speed: 50 + +[stepper_z] +step_pin: PA21 +dir_pin: PA26 +enable_pin: !PA25 +step_distance: .0025 +endstop_pin: ^!PA10 +position_endstop: 0 +position_min: -2 +position_max: 200 + +[output_pin motor_x_pwm] +pin: PB17 +pwm: True +hardware_pwm: True +scale: 2.25 +cycle_time: .000004 +value: 0.8 + +[output_pin motor_y_pwm] +pin: PB19 +pwm: True +hardware_pwm: True +scale: 2.25 +cycle_time: .000004 +value: 0.8 + +[output_pin motor_z_pwm] +pin: PB18 +pwm: True +hardware_pwm: True +scale: 2.25 +cycle_time: .000004 +value: 0.8 + +[output_pin motor_e_pwm] +pin: PA2 +pwm: True +hardware_pwm: True +scale: 2.25 +cycle_time: .000004 +value: 0.5 + +[output_pin heater_enable] +pin: PA7 +pwm: True +cycle_time: 0.050 +value: 0.1 + +[thermistor G2] +temperature1: 20 +resistance1: 140000 +temperature2: 195 +resistance2: 593 +temperature3: 255 +resistance3: 189 + +[extruder] +step_pin: PB14 +dir_pin: PB23 +enable_pin: !PB22 +step_distance: .008 +nozzle_diameter: 0.300 +filament_diameter: 1.750 +heater_pin: PA5 +sensor_pin: PA23 +sensor_type: G2 +inline_resistor: 4700 +control: pid +pid_kp: 29.852 +pid_ki: 2.843 +pid_kd: 78 +min_temp: 0 +max_temp: 290 + +[fan] +pin: PB27 + +[heater_fan nozzle_cooling_fan] +pin: PA6 + +[mcu] +serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00 + +[printer] +kinematics: cartesian +max_velocity: 400 +max_accel: 2500 +max_z_velocity: 15 +max_z_accel: 300 + +[static_digital_output step_config] +pins: PA19, PB20, PA27, PB10 diff --git a/test/configs/sam3x8c.config b/test/configs/sam3x8c.config new file mode 100644 index 00000000..ec635ee0 --- /dev/null +++ b/test/configs/sam3x8c.config @@ -0,0 +1,3 @@ +# Base config file for Atmel SAM3x8e ARM processor +CONFIG_MACH_ATSAM=y +CONFIG_MACH_SAM3X8C=y diff --git a/test/klippy/printers.test b/test/klippy/printers.test index ec37fd49..c8850483 100644 --- a/test/klippy/printers.test +++ b/test/klippy/printers.test @@ -57,6 +57,10 @@ CONFIG ../../config/printer-wanhao-duplicator-i3-v2.1-2017.cfg DICTIONARY at90usb1286.dict CONFIG ../../config/generic-printrboard.cfg +# Printers using the sam3x8c +DICTIONARY sam3x8c.dict +CONFIG ../../config/generic-printrboard-g2.cfg + # Printers using the sam3x8e DICTIONARY sam3x8e.dict CONFIG ../../config/generic-radds.cfg