Trying to create a printer.cfg. Is it possible to get fan pin and stepper current info from marlin source?

Hi there,

I’m trying to refine a printer.cfg that I found for my printer, Sovol SV06.
It’s missing:

  • The heater_fan information. I’m trying to find the pin for that fan.
  • I also want to set the correct run_current for the stepper motors.

The Marlin source code is open to the public for this printer. I’m having trouble finding this information in the source code though.

Is this information embeded within the Marlin source? Should I keep looking?

Thanks! :grinning:

Following is the logic and the way how to find such information in Marlin sources:

  1. Identify the MOTHERBOARD in the relevant Configuration.h
  2. Find it in boards.h
  3. Then scroll up in boards.h to see which is the leading MCU type
  4. Find the pins_XXX.h in the relevant folder of the MCU type

#1

#2

#3

#4

4 Likes

I wasn’t expecting this. Thank you so much!

I’ll post back when I complete this task

Much :heart:

@Sineos Learned a lot looking through the source code, thanks for that!

Still can’t seem to find the pin for the hotend_fan. I only see one fan listed, which is the part cooling fan.

Is there someone else that I should be looking?

Some printers have the hotend fan wired directly to the +12V/+24V rail (e.g. Ender 3). Maybe yours is like that too?

Well, without knowing the board it is difficult:

  • You could trace back the fan’s pins from the connector and see where you end up
  • On a lot of boards, the hot-end fan is not PWM controlled but fixed speed. It is possible that a high heater pin automatically sets the hot-end high as well without own dedicated pin.

Quick google revealed at least three Klipper cfg for this board (there is even an open PR for Klipper):

All lack a hot-end fan. So it seems to be handled differently

2 Likes