144 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			144 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
# This file contains pin mappings for the LDO Nitehawk-36 Toolboard
 | 
						|
# To use this config, the firmware should be compiled for the Raspberry Pi RP2040
 | 
						|
# Make sure to include this config *at the end* of printer.cfg to overwrite the relevent sections
 | 
						|
 | 
						|
# See https://docs.ldomotors.com/en/Toolboard/nitehawk-36#firmware-setup-and-update
 | 
						|
# For instructions on uploading/updating klipper firmware to the PCB
 | 
						|
 | 
						|
## LDO Nitehawk-SB Toolboard Partial Config
 | 
						|
 | 
						|
## *** THINGS TO CHANGE/CHECK: ***
 | 
						|
## MCU paths                            [mcu] section
 | 
						|
## Thermistor types                     [extruder] sections
 | 
						|
 | 
						|
## *MAKE SURE* to include this partial config file *AFTER* the main controller config. 
 | 
						|
## This will ensure the relavent sections are overwritten by the pin mappings specified here.
 | 
						|
 | 
						|
[mcu nhk]
 | 
						|
##  Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
 | 
						|
##--------------------------------------------------------------------
 | 
						|
serial: /dev/serial/by-id/usb-Klipper_rp2040_4E363334320E22C6-if00
 | 
						|
restart_method: command
 | 
						|
##--------------------------------------------------------------------
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   Endstops
 | 
						|
#####################################################################
 | 
						|
## XES - Toolhead PCB
 | 
						|
[stepper_x]
 | 
						|
endstop_pin: nhk:gpio13
 | 
						|
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   Filament Sensor
 | 
						|
#####################################################################
 | 
						|
#[filament_switch_sensor filament_sensor]
 | 
						|
#switch_pin: nhk:gpio3
 | 
						|
#pause_on_runout: True
 | 
						|
 | 
						|
#####################################################################
 | 
						|
# 	Extruder
 | 
						|
#####################################################################
 | 
						|
[extruder]
 | 
						|
step_pin: nhk:gpio23
 | 
						|
dir_pin: nhk:gpio24
 | 
						|
enable_pin: !nhk:gpio25
 | 
						|
heater_pin: nhk:gpio9
 | 
						|
sensor_pin: nhk:gpio29
 | 
						|
sensor_type: ATC Semitec 104NT-4-R025H42G
 | 
						|
pullup_resistor: 2200
 | 
						|
microsteps: 16
 | 
						|
min_temp: 0
 | 
						|
max_temp: 280
 | 
						|
min_extrude_temp: 170
 | 
						|
nozzle_diameter: 0.4
 | 
						|
filament_diameter: 1.75
 | 
						|
rotation_distance: 4.637
 | 
						|
control: pid
 | 
						|
pid_kp = 18.874
 | 
						|
pid_ki = 1.446
 | 
						|
pid_kd = 61.575
 | 
						|
pressure_advance: 0.025
 | 
						|
 | 
						|
[tmc2209 extruder]
 | 
						|
sense_resistor: 0.100
 | 
						|
uart_pin: nhk:gpio0
 | 
						|
tx_pin: nhk:gpio1
 | 
						|
interpolate: false
 | 
						|
#run_current:         #recommend setting it below 0.7A.
 | 
						|
run_current: 0.35
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   Fans
 | 
						|
#####################################################################
 | 
						|
## PCF
 | 
						|
[fan]
 | 
						|
pin: nhk:gpio6
 | 
						|
 | 
						|
 | 
						|
## HEF
 | 
						|
[heater_fan hotend_fan]
 | 
						|
pin: nhk:gpio5
 | 
						|
tachometer_pin: nhk:gpio16
 | 
						|
tachometer_ppr: 2
 | 
						|
 | 
						|
#####################################################################
 | 
						|
# 	Probe
 | 
						|
#####################################################################
 | 
						|
## Probe Port
 | 
						|
#[probe]
 | 
						|
#pin: nhk:gpio10
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   Lights
 | 
						|
#####################################################################
 | 
						|
##Stealthburner Headlights
 | 
						|
[neopixel sb_leds]
 | 
						|
pin: nhk:gpio7
 | 
						|
chain_count: 3
 | 
						|
color_order: GRBW
 | 
						|
initial_RED: 0.0
 | 
						|
initial_GREEN: 0.0
 | 
						|
initial_BLUE: 1.0
 | 
						|
initial_WHITE: 0.0
 | 
						|
 | 
						|
## PCB Activity Light
 | 
						|
[output_pin act_led]
 | 
						|
pin: !nhk:gpio8
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   Accelerometer
 | 
						|
#####################################################################
 | 
						|
[adxl345]
 | 
						|
cs_pin: nhk:gpio27
 | 
						|
spi_software_sclk_pin: nhk:gpio18
 | 
						|
spi_software_mosi_pin: nhk:gpio20
 | 
						|
spi_software_miso_pin: nhk:gpio19
 | 
						|
 | 
						|
[resonance_tester]
 | 
						|
accel_chip: adxl345
 | 
						|
accel_per_hz: 100
 | 
						|
sweeping_accel: 400
 | 
						|
sweeping_period: 0
 | 
						|
##--------------------------------------------------------------------
 | 
						|
## Uncomment below for 250mm build
 | 
						|
#probe_points:
 | 
						|
#    125, 125, 20
 | 
						|
 | 
						|
## Uncomment below for 300mm build
 | 
						|
#probe_points:
 | 
						|
#    155, 155, 20
 | 
						|
 | 
						|
## Uncomment below for 350mm build
 | 
						|
probe_points:
 | 
						|
    175, 175, 20
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   Addtional Sensors
 | 
						|
#####################################################################
 | 
						|
[temperature_sensor NH36]
 | 
						|
sensor_type: temperature_mcu
 | 
						|
sensor_mcu: nhk
 | 
						|
min_temp: 0
 | 
						|
max_temp: 100
 |