From a5cb74d58d0717a632197f54261e0d632b85e031 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 20 Dec 2018 11:02:29 -0500 Subject: [PATCH] config: Add a generic-minitronics1.cfg example config file Information provided by @BKLronin. Signed-off-by: Kevin O'Connor --- config/generic-minitronics1.cfg | 80 +++++++++++++++++++++++++++++++++ test/configs/atmega1280.config | 4 ++ test/klippy/printers.test | 4 ++ 3 files changed, 88 insertions(+) create mode 100644 config/generic-minitronics1.cfg create mode 100644 test/configs/atmega1280.config diff --git a/config/generic-minitronics1.cfg b/config/generic-minitronics1.cfg new file mode 100644 index 00000000..80153501 --- /dev/null +++ b/config/generic-minitronics1.cfg @@ -0,0 +1,80 @@ +# This file contains common pin mappings for Minitronics v1.0 +# boards. To use this config, the firmware should be compiled for the +# AVR atmega1280. + +# The "make flash" command does not work on the Minitronics v1.0 +# because the board actually has an atmega1281 chip. Use the following +# command to flash the board: +# avrdude -carduino -patmega1281 -P/dev/ttyUSB0 -b57600 -D -Uout/klipper.elf.hex + +# See the example.cfg file for a description of available parameters. + +[stepper_x] +step_pin: PF2 +dir_pin: PF1 +enable_pin: !PF3 +step_distance: .0125 +endstop_pin: ^!PE3 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[stepper_y] +step_pin: PA1 +dir_pin: PA2 +enable_pin: !PA0 +step_distance: .0125 +endstop_pin: ^!PE4 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[stepper_z] +step_pin: PA4 +dir_pin: !PA5 +enable_pin: !PA3 +step_distance: .0025 +endstop_pin: ^!PB4 +position_endstop: 0.5 +position_max: 200 + +[extruder] +step_pin: PA7 +dir_pin: PA6 +enable_pin: !PG2 +step_distance: .002 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +heater_pin: PB5 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PF7 +control: pid +pid_Kp: 22.2 +pid_Ki: 1.08 +pid_Kd: 114 +min_temp: 0 +max_temp: 250 + +[heater_bed] +heater_pin: PE5 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PF6 +control: watermark +min_temp: 0 +max_temp: 130 + +[fan] +pin: PB7 + +[mcu] +serial: /dev/ttyUSB0 + +[printer] +kinematics: cartesian +max_velocity: 300 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100 + +[static_digital_output yellow_led] +pins: PF0 diff --git a/test/configs/atmega1280.config b/test/configs/atmega1280.config new file mode 100644 index 00000000..a3e688f9 --- /dev/null +++ b/test/configs/atmega1280.config @@ -0,0 +1,4 @@ +# Base config file for atmega1280 +CONFIG_MACH_AVR=y +CONFIG_MACH_atmega1280=y +CONFIG_CLOCK_FREQ=16000000 diff --git a/test/klippy/printers.test b/test/klippy/printers.test index f5e8e095..70e10040 100644 --- a/test/klippy/printers.test +++ b/test/klippy/printers.test @@ -28,6 +28,10 @@ CONFIG ../../config/printer-velleman-k8200-2013.cfg CONFIG ../../config/printer-wanhao-duplicator-i3-plus-2017.cfg CONFIG ../../config/printer-wanhao-duplicator-6-2016.cfg +# Printers using the atmega1280 +DICTIONARY atmega1280.dict +CONFIG ../../config/generic-minitronics1.cfg + # Printers using the atmega1284p DICTIONARY atmega1284p.dict CONFIG ../../config/generic-melzi.cfg