Skip to content

Commit

Permalink
Add the moonraker asvc-file. Add Recore A8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbakken committed Mar 20, 2024
1 parent 9595cf1 commit 7b972b5
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 0 deletions.
1 change: 1 addition & 0 deletions userpatches/overlay/install_components/klipper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ install_klipper(){
cp /tmp/overlay/klipper/thermocouple.py /home/debian/klipper/klippy/extras/
cp /tmp/overlay/klipper/generic-recore-a6.cfg /home/debian/klipper/config/
cp /tmp/overlay/klipper/generic-recore-a7.cfg /home/debian/klipper/config/
cp /tmp/overlay/klipper/generic-recore-a8.cfg /home/debian/klipper/config/
# Add compatibility with A5.
cp /tmp/overlay/klipper/recore_a5.py /home/debian/klipper/klippy/extras/
cp /tmp/overlay/klipper/recore_adc_temperature.py /home/debian/klipper/klippy/extras/
Expand Down
1 change: 1 addition & 0 deletions userpatches/overlay/install_components/moonraker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ install_moonraker(){
su -c "/home/debian/moonraker/scripts/set-policykit-rules.sh" debian
cp /tmp/overlay/moonraker/moonraker-"${UI}".conf /home/debian/printer_data/config/moonraker.conf
cp /tmp/overlay/moonraker/moonraker.asvc /home/debian/printer_data/
chown debian:debian moonraker /home/debian/printer_data/moonraker.asvc
}
256 changes: 256 additions & 0 deletions userpatches/overlay/klipper/generic-recore-a8.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
# Generic Recore A7 config

#[include mainsail.cfg]

[recore]
revision: A8
gain_t0: 1
gain_t1: 1
gain_t2: 1
gain_t3: 1
pullup_t0: 1
pullup_t1: 1
pullup_t2: 1
pullup_t3: 1
offset_t0: 0
offset_t1: 0
offset_t2: 0
offset_t3: 0

# The STM32F031 mcu
[mcu]
serial: /dev/ttyS2
baud: 250000
restart_method: command

# The AR100 mcu
[mcu ar100]
serial: /dev/ttyS1
baud: 1500000

[static_digital_output endstops_5V_enable]
pins: ar100:PF2

# pin high = 12V, pin low = 5V
[static_digital_output endstop_ES0_5V_12V]
pins: !ar100:PF0

[static_digital_output temperature_5V_enable]
pins: ar100:PF1

[static_digital_output user_led_enable]
pins: PA12

# Load "thermocouple" sensor
[thermocouple]

[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 25
max_z_accel: 30

[tmc2209 stepper_x]
uart_pin: ar100:PE16
uart_address: 0
run_current: 0.500
hold_current: 0.500

[tmc2209 stepper_y]
uart_pin: ar100:PE16
uart_address: 1
run_current: 0.500
hold_current: 0.500

[tmc2209 stepper_z]
uart_pin: ar100:PE16
uart_address: 2
run_current: 0.500
hold_current: 0.500

[tmc2209 extruder]
uart_pin: ar100:PE16
uart_address: 3
run_current: 0.500
hold_current: 0.500

[tmc2209 extruder1]
uart_pin: ar100:PD2
uart_address: 3
run_current: 0.1
hold_current: 0.1

[tmc2209 extruder2]
uart_pin: ar100:PD3
uart_address: 3
run_current: 0.1
hold_current: 0.1

[stepper_x]
step_pin: ar100:PL4
dir_pin: ar100:PE8
endstop_pin: !ar100:PH4
enable_pin: !ar100:PL12
rotation_distance: 40
microsteps: 16
position_endstop: 0
position_max: 200
homing_speed: 2.0

[stepper_y]
step_pin: ar100:PL5
dir_pin: ar100:PE9
endstop_pin: !ar100:PH5
enable_pin: !ar100:PL12
rotation_distance: 40
microsteps: 16
position_endstop: 0
position_max: 200
homing_speed: 2.0

[stepper_z]
step_pin: ar100:PL6
dir_pin: ar100:PE10
endstop_pin: !ar100:PH6
enable_pin: !ar100:PL12
rotation_distance: 40
microsteps: 16
position_endstop: 0
position_max: 200
homing_speed: 2.0

[extruder]
step_pin: ar100:PL7
dir_pin: ar100:PE11
enable_pin: !ar100:PL12
heater_pin: PA8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
rotation_distance: 40
microsteps: 16
nozzle_diameter: 0.400
filament_diameter: 1.75
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_extrude_temp: 30
min_temp: -272
max_temp: 300

[extruder1]
step_pin: ar100:PL8
dir_pin: ar100:PE12
enable_pin: !ar100:PL12
heater_pin: PA9
sensor_pin: PA1
sensor_type: EPCOS 100K B57560G104F
rotation_distance: 40
microsteps: 16
nozzle_diameter: 0.400
filament_diameter: 1.75
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_extrude_temp: 30
min_temp: -272
max_temp: 300

[extruder2]
step_pin: ar100:PL9
dir_pin: ar100:PE13
enable_pin: !ar100:PL12
heater_pin: PA10
sensor_pin: PA2
sensor_type: EPCOS 100K B57560G104F
rotation_distance: 40
microsteps: 16
nozzle_diameter: 0.400
filament_diameter: 1.75
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_extrude_temp: 30
min_temp: -272
max_temp: 300

[heater_bed]
heater_pin: PA11
sensor_pin: PA3
sensor_type: EPCOS 100K B57560G104F
control: watermark
min_temp: -272
max_temp: 300

[fan]
pin: PF0

[output_pin fan1]
pin: PB1

[output_pin fan2]
pin: PB5

# Set up board voltage, current, temperature.

[temperature_fan board]
pin: PB4
min_temp: 0
max_temp: 100
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA6
control: watermark
gcode_id: Board
target_temp: 50

[temperature_sensor cold_junction]
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA7
gcode_id: CJ

# Vout = Vin * 10K/110K = Vin*11
[adc_temperature v]
temperature1: 0.35
voltage1: 0
temperature2: 36.65
voltage2: 3.3

[temperature_sensor voltage]
adc_voltage: 3.3
sensor_pin: PA4
sensor_type: v
gcode_id: Voltage

# 1 A = 20 mV
[adc_temperature current]
temperature1: 0
voltage1: 0
temperature2: 165
voltage2: 3.3

[temperature_sensor current]
adc_voltage: 3.3
sensor_pin: PA5
sensor_type: current
max_temp: 20
gcode_id: Current

[adc_temperature fan_current]
temperature1: 0
voltage1: 0
temperature2: 33
voltage2: 3.3

[temperature_sensor fan_current]
adc_voltage: 3.3
sensor_pin: PB0
sensor_type: fan_current
max_temp: 2.0
gcode_id: FanCurrent

[gcode_button over_current_alarm]
pin: !ar100:PF6
press_gcode: M112
11 changes: 11 additions & 0 deletions userpatches/overlay/moonraker/moonraker.asvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
klipper_mcu
webcamd
MoonCord
KlipperScreen
moonraker-telegram-bot
moonraker-obico
sonar
crowsnest
octoeverywhere
ratos-configurator
ssh

0 comments on commit 7b972b5

Please sign in to comment.