Jump to content

NEWBEE question still confussed


jseparovic

Recommended Posts

Hope the question makes sence ????

hi been looking for clarity and can not  seam to find the answere ,maybe over thinking it ?

am using a octopus 1.1  Sb2209 Can tool head ,bl touch for z and usb eddy for bed mesh .adding leds and chamber exhaust and chamber 12v leds 

the eletrical  and mechnical  side am fine with. 

....................................................................................................

ok,so starting with a trident octopus config file ,

go though and whats on my set up set up (ok got that part)

so in the extrude section in my printer .cfg file i would have [mcu EBBCan] ok i get that 

.................................................................................................................

if i want then, to have a separt .cfg file say [include mcu EBBCan] or [include Fan]

Q. what will be in the priter config .cfg ? to direct it to this file !

and do i just hash out the whole extruder/fan  section ?or remove it 

i know in the top it will have [include mcu EBBCan] or [include fan]

same question for bl touch and usb eddy 

have included both the trident config and sb2209 files /

 

 Trident_Octopus_Config.cfg

 

 

[mcu EBBCan]
canbus_uuid: YOUR_CANBUS_UUID_HERE # Replace with the actual UUID of your SB2209

[extruder]
step_pin: EBBCan: PD0
dir_pin: !EBBCan: PD1
enable_pin: !EBBCan: PD2
microsteps: 16
rotation_distance: 22.678 # Adjust based on your extruder gear ratio and steps/mm
gear_ratio: 50:10 # Example for a geared extruder
full_steps_per_rotation: 200
nozzle_diameter: 0.4
filament_diameter: 1.75
heater_pin: EBBCan: PA0
sensor_type: NTC 100K M3085
sensor_pin: EBBCan: PA3
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114

[tmc2209 extruder]
uart_pin: EBBCan: PA15
run_current: 0.650
stealthchop_threshold: 999999

[fan]
pin: EBBCan: PA1
kick_start_time: 0.5
off_below: 0.10

[heater_fan hotend_fan]
pin: EBBCan: PA2
heater: extruder
heater_temp: 50.0

[probe]
pin: EBBCan: PB9 # Example pin for a probe, adjust as needed

[adxl345]
cs_pin: EBBCan: PB12
spi_software_sclk_pin: EBBCan: PB10
spi_software_mosi_pin: EBBCan: PB11
spi_software_miso_pin: EBBCan: PB2

 

Link to comment
Share on other sites

Klipper does not mind if a particular piece of configuration is either in printer.cfg, or in a different file that is included into printer.cfg. It is up to you. My printer has only some basic lines in printer.cfg (like mcu declarations, for example), and multiple "[include xxx.cfg]" lines for the rest of the config. And anything I moved to a separate .cfg file, I removed completely from printer.cfg (instead of just commenting out) to avoid any potential confusion in the future.

Link to comment
Share on other sites

7 hours ago, jseparovic said:

Q. what will be in the priter config .cfg ? to direct it to this file !

and do i just hash out the whole extruder/fan  section ?or remove it 

i know in the top it will have [include mcu EBBCan] or [include fan]

same question for bl touch and usb eddy 

Just to clarify what @rokapet posted and to answer directly...

You use the "include" command. The correct syntax using Trident_Octopus_Config.cfg would be...

[include Trident_Octopus_Config.cfg]

You can have and call as many .cfg files as you want and all you need to do in "include" them in your printer.cfg

Here's mine.

image.png.037dcb2afe5e4ef944e042b98661b85e.png

  • Like 1
Link to comment
Share on other sites

If you look at a `klippy.log` file you'll see that klipper essentially reads all of the config files and macros as one giant text file from top to bottom in the order the files are read, starting with printer.cfg and then any [include xxx] entries. It makes no difference how many files you use to organize or which order they are loaded in.

There is one caveat!

If/when you use the SAVE_CONFIG command to have klipper automatically save changes made (such as your probe Z offset or any PID tuning) it is only able to update the printer.cfg file, not any other files. For example, if you have [bltouch] settings in the `printer.cfg` file and you do a PROBE_CALIBRATE then SAVE_CONFIG, klipper will comment out the z_offset entry in the printer.cfg and add the updated value in the SAVE_CONFIG section at the bottom of the file. But if the [bltouch] settings are in a separate file then klipper is not able to comment out the z_offset line and you'll get a conflict when you reboot after a SAVE_CONFIG because now the z_offset is saved in 2 places.

I use separate files for lots of things, the only settings inside my printer.cfg are a few base level configurations like [printer], various [mcu], [input_shaper], [z_tilt], [bltouch], [bed_mesh], [bed_screws], and [screws_tilt_adjust]. All my macros are in a separate directory entirely and I group them by function inside separate text files. You can tell klipper to load entire directories with something like [include macros/*.cfg]

One of my config files is only for fans, heaters, and temperature sensors including the bed and extruder heater, as such the PID values for those heaters are in that file. Whenever I perform PID tuning for the heaters I simply manually update the config file with the updated values.

Similarly, klipper can only save bed meshes to the printer.cfg file, but you can manually save the meshes yourself in separate files if you wanted to and they will load without issue on reboot.

  • Like 2
Link to comment
Share on other sites

thank you that actual make sense to me ,and something to watch .

quick one you have a [include fans] file 

what i want to do is have my electionics fans turn on at say 200c nozzle temp .have indivaul fans would i just write a macro for that .

and can i vary voltage to them ,or have any speed control on them with in klipper .

my other option is to use another thermistor in the electronics bay and trigger the fans that way .

Link to comment
Share on other sites

23 hours ago, jack separovic said:

thank you that actual make sense to me ,and something to watch .

quick one you have a [include fans] file 

what i want to do is have my electionics fans turn on at say 200c nozzle temp .have indivaul fans would i just write a macro for that .

and can i vary voltage to them ,or have any speed control on them with in klipper .

my other option is to use another thermistor in the electronics bay and trigger the fans that way .

I have a fan aimed at my RPi inside my printer chassis that is activated when the onboard temp sensor reaches a specified temperature, here is how you can do that:

[temperature_fan Raspberry_Pi]
pin: fan2	# Pin name
target_temp: 60	# Temp that activates the fan
min_temp: 0
max_temp: 75
max_delta: 3.0	# Once fan is turned on it will stay on until the temperature drops below the target temp by this amount
max_power: 0.6
shutdown_speed: 0.0
sensor_type: temperature_host	# RPi temp sensor
control: watermark	# This setting makes the max_delta function work simply

Alternately you can configure fans to turn on whenever a heater turns on (such as your hotend) and it will stay on until the heater is deactivated AND the temp drops below a specified temperature. Like this:

[heater_fan Extruder]
pin: EBB:e1_fan		# Pin name
heater: extruder	# Which heater turns on the fan
heater_temp: 50		# Temp at which the fan turns off after the heater is disabled
shutdown_speed: 0.0

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...