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!
Sineos
January 27, 2023, 7:13am
2
Following is the logic and the way how to find such information in Marlin sources:
Identify the MOTHERBOARD
in the relevant Configuration.h
Find it in boards.h
Then scroll up in boards.h
to see which is the leading MCU type
Find the pins_XXX.h
in the relevant folder of the MCU type
#1
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
*/
//#define SERIAL_PORT_3 1
//#define BAUDRATE_3 250000 // Enable to override BAUDRATE
// Enable the Bluetooth serial interface on AT90USB devices
//#define BLUETOOTH
// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_SOVOL_V131
#endif
// Name displayed in the LCD "Ready" message and Info menu
#define CUSTOM_MACHINE_NAME "SOVOL SV06"
// Printer's unique ID, used by some programs to differentiate between machines.
// Choose your own or use a service like https://www.uuidgenerator.net/version4
//#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
/**
#2
#3
#4
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
This file has been truncated. show original
4 Likes
I wasn’t expecting this. Thank you so much!
I’ll post back when I complete this task
Much
@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?
Sineos
January 29, 2023, 3:00pm
6
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):
Klipper3d:master
← spinixguy:master
opened 12:43AM - 19 Jan 23 UTC
configuration file for sovol sv06 printer
# This file contains pin mappings for the stock Sovol SV06
# To use this config, during "make menuconfig" select the
# STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# Also, since it is using the GD32F103, please select Disable SWD at startup
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
# See docs/Config_Reference.md for a description of parameters.
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
restart_method: command
#############################################################################################################
### PRINTING PROFILE
# If you have an error : ".../steppers/steppers-basic.cfg' does not exist"
This file has been truncated. show original
# This file contains pin mappings for the stock Sovol SV06
# To use this config, during "make menuconfig" select the
# STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# Also, since it is using the GD32F103, please select Disable SWD at startup
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
# See docs/Config_Reference.md for a description of parameters.
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 300
This file has been truncated. show original
All lack a hot-end fan. So it seems to be handled differently
2 Likes