Skip to content

Instantly share code, notes, and snippets.

@pbogut
Created January 10, 2020 22:13
Show Gist options
  • Save pbogut/94d929a75193d448e527f419ba61d2b4 to your computer and use it in GitHub Desktop.
Save pbogut/94d929a75193d448e527f419ba61d2b4 to your computer and use it in GitHub Desktop.
Anet A8 - Stock Extruder - 3D Touch (bltouch) ABL - Klipper config
# This file contains common pin mappings for Anet A8 printer from 2016
# and 2017. To use this config, the firmware should be compiled for
# the AVR atmega1284p.
# Note that the "make flash" command does not work with Anet boards -
# the boards are typically flashed with this command:
# avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
# See the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: PD7
dir_pin: PC5
enable_pin: !PD6
step_distance: .01
endstop_pin: ^!PC2
position_endstop: -35
position_max: 220
position_min: -35
homing_speed: 100
[stepper_y]
step_pin: PC6
dir_pin: PC7
enable_pin: !PD6
step_distance: .01
endstop_pin: ^!PC3
position_endstop: -18
position_min: -18
position_max: 220
homing_speed: 100
[stepper_z]
step_pin: PB3
dir_pin: !PB2
enable_pin: !PA5
step_distance: .0025
# endstop_pin: ^!PC4
# position_endstop: 0.5
position_max: 240
homing_speed: 5
endstop_pin: probe:z_virtual_endstop
position_min: -2 # The Z carriage may need to travel below the Z=0
# homing point if the bed has a significant tilt.
# Heater callibration
# PID_CALIBRATE HEATER=extruder TARGET=200
# SAVE_CONFIG
[extruder]
step_pin: PB1
dir_pin: PB0
enable_pin: !PD6
step_distance: .0105
#control: watermark
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PD5
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA7
min_temp: 0
max_temp: 270
min_extrude_temp: 0
max_extrude_only_distance: 500.0
# Heater callibration
# PID_CALIBRATE HEATER=heater_bed TARGET=60
# SAVE_CONFIG
[heater_bed]
heater_pin: PD4
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA6
control: watermark
min_temp: 0
max_temp: 130
[fan]
pin: PB4
[mcu]
serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1000
max_z_velocity: 20
max_z_accel: 100
[display]
lcd_type: hd44780
rs_pin: PA3
e_pin: PA2
d4_pin: PD2
d5_pin: PD3
d6_pin: PC0
d7_pin: PC1
[bltouch]
z_offset: -1.10
x_offset: 66
y_offset: 0
sensor_pin: ^PC4
control_pin: PA4
[bed_mesh]
min_point: 0,0
max_point: 150,150
probe_count: 5,5
horizontal_move_z: 25
[homing_override]
set_position_z: 0
axes: xyz
gcode:
G90
G1 Z5 F600 ; Lift Z 35 mm to make sure probe wont hit bed, it may hit top though
G28 X0 Y0
;G1 X110 - probe_x_offset Y110 - probe_z_offset F3600
G1 X44 Y110 F3600
G28 Z0
G1 Z10
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 28.455
#*# pid_ki = 1.568
#*# pid_kd = 129.114
@Dorkan88
Copy link

IT does not work , many errors

@pbogut
Copy link
Author

pbogut commented Sep 27, 2022

Well, works for me, but I didn't update klipper for a long time and they like to break configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment