Trying to create a config file from scratch

Basic Information:

Printer Model: Lotmaxx Shark V2
MCU / Printerboard: STM32F407
Host / SBC
klippy.log

Describe your issue:

As the title implies, I have recently acquired a Lotmaxx Shark V2. I’m new to Klipper as I’ve just converted my CR10 Smart to Klipper. I’ve seen online, many people commenting about not having the pinout for the Shark, and “China” will not provide it. In fact, their firmware is very hush hush as the M503 command returns very basic info, like what axis and limit switches are inverted. I got bored at work, and took the board and my meter. I now have the pinout, all the way to the laser. However, I’m not very knowledgeable with Klipper to generate my own config file. If I provide the pinout, could someone help me generate a config file and I will test it on my printer. If successful, it can be uploaded to klipper to add to their database.

Thanks in advance.

1 Like

Basically it is not that hard. Take the config of something vaguely similar, e.g. klipper/config/generic-mks-rumba32-v1.0.cfg at master · Klipper3d/klipper · GitHub, and replace the pin definitions with yours.

Thanks. I’ll try it. I noticed it has an extruder setting, then below it are extruder 1 and 2, both commented out. Do I do the same, or “define” both extruders and leave them uncommented? (not sure what the correct term is, but don’t put a hash tag in front of the line).

Well, if you have more than one extruder then you might want to use it. Your goal is to reflect your physical hardware with the appropriate setting blocks.

Any chance you could share the pinout and your journey? I am considering it on my Shark v2, It is fully calibrated and printing beautifully but slowly.

Give me a couple of days. I’ll dig everything out. I sold the printer, so i didnt pursue any further.

1 Like

Below is the pinout I have for the Shark. I do not know what bootloader to load, but the chip is correct. If you scroll down, I made a note where I stopped. I don’t know if the bottom part will work or not. Again, I haven’t tested this as I have sold my shark. Please keep me posted on your success (I’d like to know if I did something right or not…lol). Thanks.

This file contains common pin mappings for Lotmaxx Shark V2. To use

this config, the firmware should be compiled for the STMicroelectronics STM32,

Processor model STM32F407.

See docs/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PA5
dir_pin: PA4
enable_pin: PA6
microsteps: 16
rotation_distance: 40
endstop_pin: !PD15
position_endstop: 0
position_max: 250
homing_speed: 50

[stepper_y]
step_pin: PE8
dir_pin: PA2
enable_pin: PA3
microsteps: 16
rotation_distance: 40
endstop_pin: !PD14
position_endstop: 0
position_max: 250
homing_speed: 50

[stepper_z]
step_pin: PC2
dir_pin: !PC1
enable_pin: PC3
microsteps: 16
rotation_distance: 40
endstop_pin: PD13
position_endstop: 0.0
position_max: 270

[extruder]
#step_pin: PB5
#dir_pin: PB6
#enable_pin: !PC12
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
#heater_pin: PC6
sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PC4
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 250

[extruder1]
step_pin: PC14
dir_pin: !PC13
enable_pin: PC15
heater_pin: PE12
sensor_pin: PC4

[extruder2]
step_pin: PE5
dir_pin: PE4
enable_pin: PE6
heater_pin: PE12
sensor_pin: PC4

[heater_bed]
heater_pin: PE11
sensor_type: Generic 3950
sensor_pin: PC5
control: pid
pid_Kp:
pid_Ki:
pid_Kd:
min_temp: 0
max_temp: 130

[fan]
pin:

[filament_sensor filament_sensor_1]
pause_on_runout: true
pin: PD11

[filament_sensor filament_sensor_2]
pause_on_runout: true
pin: PD10

[heater_fan fan1]
pin: PE10

[heater_fan fan2]
pin: PE9

[mcu]
serial: /dev/ttyUSB0

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1000
max_z_velocity: 5
max_z_accel: 100

I stopped here. Below this, I have no idea
########################################

EXP1 / EXP2 (display) pins

########################################

[board_pins]
aliases:
# EXP1 header
EXP1_1=PE8, EXP1_3=PE9, EXP1_5=PE12, EXP1_7=PE14, EXP1_9=,
EXP1_2=PE7, EXP1_4=PE10, EXP1_6=PE13, EXP1_8=PE15, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_3=PB2, EXP2_5=PB1, EXP2_7=PB0, EXP2_9=,
EXP2_2=PA5, EXP2_4=PA2, EXP2_6=PA7, EXP2_8=, EXP2_10=PC5

See the sample-lcd.cfg file for definitions of common LCD displays.

########################################

TMC2209 configuration

########################################

#[tmc2209 stepper_x]
#uart_pin: PC14
##tx_pin: PA3
#run_current: 0.800
#diag_pin:

#[tmc2209 stepper_y]
#uart_pin: PE4
##tx_pin: PA4
#run_current: 0.800
#diag_pin:

#[tmc2209 stepper_z]
#uart_pin: PE0
##tx_pin: PD13
#run_current: 0.800
#diag_pin:

#[tmc2209 extruder]
#uart_pin: PC13
##tx_pin: PD14
#run_current: 0.600
#diag_pin:

@Hammer3091 :

Either upload your code as a file:

Upload

Or at least use the Preformatted Text feature of the forum editor for your code:

Format

The way you did makes it useless.

2 Likes

I wouldn’t say its useless. You can always type it in by hand into your printer config file like I’ve been doing. However, in the interest of speeding things along, I don’t have the options you posted. I am very new to 95% of this (except the internet. I predate the internet), so if you could tell me where exactly those option are, I’d be happy to help make things easier for you.

It’s useless because There are missing spaces and other characters are used to re-format the text. That way.

It should look like this:

# This file contains common pin mappings for Lotmaxx Shark V2.  To use
# this config, the firmware should be compiled for the STMicroelectronics STM32,
# Processor model STM32F407.

# See docs/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PA5
dir_pin: PA4
enable_pin: PA6
microsteps: 16
rotation_distance: 40
endstop_pin: !PD15
position_endstop: 0
position_max: 250
homing_speed: 50

[stepper_y]
step_pin: PE8
dir_pin: PA2
enable_pin: PA3
...
1 Like

I don’t have those options on a computer. I only have those options if i private message someone. Where are those options on a computer?

See How-To Ask for Help (directly below the screenshot)