-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mellow SB2040 v2 and SB2040 Pro toolhead boards (#417)
- Loading branch information
Showing
4 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[board_pins toolhead_manufacturer] | ||
mcu: toolhead | ||
aliases: | ||
MCU_EMOT_EN=gpio7 , MCU_EMOT_STEP=gpio9 , MCU_EMOT_DIR=gpio10 , MCU_EMOT_CS=gpio8 , | ||
|
||
MCU_5V_ENDSTOP=gpio28 , | ||
MCU_ENDSTOP=gpio29 , | ||
MCU_HV_ENDSTOP=gpio25 , | ||
|
||
MCU_FAN0=gpio13 , MCU_FAN1=gpio14 , MCU_FAN2=gpio15 , | ||
|
||
MCU_TEMP=gpio27 , MCU_ONBOARD_NTCK100K=gpio26 , | ||
|
||
MCU_HEAT=gpio6 , | ||
|
||
MCU_RGB=gpio12 , | ||
MCU_PWM0=gpio16 , MCU_PWM1=gpio17 , | ||
|
||
MCU_ADXL_CS=gpio1 , MCU_ADXL_SCK=gpio0 , MCU_ADXL_MOSI=gpio3 , MCU_ADXL_MISO=gpio2 , # gpio0-2-3 share with EMOT SPI!!! | ||
MCU_MAX31865_CS=gpio22 , MCU_MAX31865_SCK=gpio18 , MCU_MAX31865_MOSI=gpio19 , MCU_MAX31865_MISO=gpio23 , |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[board_pins toolhead_manufacturer] | ||
mcu: toolhead | ||
aliases: | ||
MCU_EMOT_EN=gpio7 , MCU_EMOT_STEP=gpio9 , MCU_EMOT_DIR=gpio10 , MCU_EMOT_UART=gpio8 , | ||
|
||
MCU_5V_ENDSTOP=gpio28 , | ||
MCU_ENDSTOP=gpio29 , | ||
MCU_HV_ENDSTOP=gpio25 , | ||
|
||
MCU_FAN0=gpio13 , MCU_FAN1=gpio14 , MCU_FAN2=gpio15 , | ||
|
||
MCU_TEMP=gpio27 , MCU_ONBOARD_NTCK100K=gpio26 , | ||
|
||
MCU_HEAT=gpio6 , | ||
|
||
MCU_RGB=gpio12 , | ||
MCU_PWM0=gpio16 , MCU_PWM1=gpio17 , | ||
|
||
MCU_ADXL_CS=gpio1 , MCU_ADXL_SCK=gpio0 , MCU_ADXL_MOSI=gpio3 , MCU_ADXL_MISO=gpio2 , | ||
MCU_MAX31865_CS=gpio22 , MCU_MAX31865_SCK=gpio18 , MCU_MAX31865_MOSI=gpio19 , MCU_MAX31865_MISO=gpio23 , |
76 changes: 76 additions & 0 deletions
76
user_templates/mcu_defaults/toolhead/Mellow_SB2040_Pro.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
#-------------------------------------------# | ||
#### Mellow SB2040 Pro MCU definition ######## | ||
#-------------------------------------------# | ||
|
||
[mcu toolhead] | ||
##-------------------------------------------------------------------- | ||
canbus_uuid: change-me-to-the-correct-canbus-id | ||
##-------------------------------------------------------------------- | ||
|
||
# If you want to override the wiring of the Mellow SB2040, keep in mind that this | ||
# board is defined using the "toolhead" name. So you should use "pin: toolhead:PIN_NAME" | ||
# in your own overrides.cfg files. | ||
|
||
[include config/mcu_definitions/toolhead/Mellow_SB2040_Pro.cfg] # Do not remove this line | ||
[board_pins sb2040_mcu] | ||
mcu: toolhead | ||
aliases: | ||
E_STEP=MCU_EMOT_STEP , E_DIR=MCU_EMOT_DIR , E_ENABLE=MCU_EMOT_EN , E_TMCUART=MCU_EMOT_CS , | ||
|
||
X_STOP=MCU_ENDSTOP , | ||
PROBE_INPUT=MCU_HV_ENDSTOP , | ||
TOOLHEAD_SENSOR=MCU_5V_ENDSTOP , | ||
|
||
E_HEATER=MCU_HEAT , E_TEMPERATURE=MCU_TEMP , CHAMBER_TEMPERATURE=MCU_ONBOARD_NTCK100K , | ||
|
||
PART_FAN=MCU_FAN0 , E_FAN=MCU_FAN1 , | ||
|
||
STATUS_NEOPIXEL=MCU_RGB , | ||
|
||
ADXL_CS=MCU_ADXL_CS , ADXL_SCLK=MCU_ADXL_SCK , ADXL_MOSI=MCU_ADXL_MOSI , ADXL_MISO=MCU_ADXL_MISO , | ||
|
||
|
||
#----------------------------------------# | ||
# Mellow SB2040 Pro pins remapping # | ||
#----------------------------------------# | ||
|
||
# These pins overrides are automatically added when you select a CANbus | ||
# toolhead MCU during the installation process. They should provide a | ||
# good base to work with. Feel free to adapt to your board if needed! | ||
|
||
[extruder] | ||
step_pin: toolhead:E_STEP | ||
dir_pin: toolhead:E_DIR | ||
enable_pin: !toolhead:E_ENABLE | ||
heater_pin: toolhead:E_HEATER | ||
sensor_pin: toolhead:E_TEMPERATURE | ||
#pullup_resistor: 1000 # (1000 for PT1000 with jumper conn,4700-default without jumper) | ||
## for PT100: | ||
#sensor_type: MAX31865 | ||
#sensor_pin: toolhead:MCU_MAX31865_CS | ||
# spi_software_sclk_pin: toolhead:MCU_MAX31865_SCK | ||
# spi_software_mosi_pin: toolhead:MCU_MAX31865_MOSI | ||
# spi_software_miso_pin: toolhead:MCU_MAX31865_MISO | ||
#rtd_reference_r: 430 | ||
|
||
[probe] | ||
pin: ^toolhead:PROBE_INPUT | ||
|
||
[fan] | ||
pin: toolhead:PART_FAN | ||
|
||
[heater_fan hotend_fan] | ||
pin: toolhead:E_FAN | ||
|
||
## Uncomment the following line if not using sensorless homing | ||
## and having the X endstop plugged to the toolhead MCU | ||
# [stepper_x] | ||
# endstop_pin: ^toolhead:X_STOP | ||
|
||
[neopixel status_leds] | ||
pin: toolhead:STATUS_NEOPIXEL | ||
|
||
[tmc2240 extruder] | ||
uart_pin: toolhead:E_TMCUART | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
#-------------------------------------------# | ||
#### Mellow SB2040 v2 MCU definition ######## | ||
#-------------------------------------------# | ||
|
||
[mcu toolhead] | ||
##-------------------------------------------------------------------- | ||
canbus_uuid: change-me-to-the-correct-canbus-id | ||
##-------------------------------------------------------------------- | ||
|
||
# If you want to override the wiring of the Mellow SB2040, keep in mind that this | ||
# board is defined using the "toolhead" name. So you should use "pin: toolhead:PIN_NAME" | ||
# in your own overrides.cfg files. | ||
|
||
[include config/mcu_definitions/toolhead/Mellow_SB2040_v2.cfg] # Do not remove this line | ||
[board_pins sb2040_mcu] | ||
mcu: toolhead | ||
aliases: | ||
E_STEP=MCU_EMOT_STEP , E_DIR=MCU_EMOT_DIR , E_ENABLE=MCU_EMOT_EN , E_TMCUART=MCU_EMOT_UART , | ||
|
||
X_STOP=MCU_ENDSTOP , | ||
PROBE_INPUT=MCU_HV_ENDSTOP , | ||
TOOLHEAD_SENSOR=MCU_5V_ENDSTOP , | ||
|
||
E_HEATER=MCU_HEAT , E_TEMPERATURE=MCU_TEMP , CHAMBER_TEMPERATURE=MCU_ONBOARD_NTCK100K , | ||
|
||
PART_FAN=MCU_FAN0 , E_FAN=MCU_FAN1 , | ||
|
||
STATUS_NEOPIXEL=MCU_RGB , | ||
|
||
ADXL_CS=MCU_ADXL_CS , ADXL_SCLK=MCU_ADXL_SCK , ADXL_MOSI=MCU_ADXL_MOSI , ADXL_MISO=MCU_ADXL_MISO , | ||
|
||
|
||
#----------------------------------------# | ||
# Mellow SB2040 v2 pins remapping # | ||
#----------------------------------------# | ||
|
||
# These pins overrides are automatically added when you select a CANbus | ||
# toolhead MCU during the installation process. They should provide a | ||
# good base to work with. Feel free to adapt to your board if needed! | ||
|
||
[extruder] | ||
step_pin: toolhead:E_STEP | ||
dir_pin: toolhead:E_DIR | ||
enable_pin: !toolhead:E_ENABLE | ||
heater_pin: toolhead:E_HEATER | ||
sensor_pin: toolhead:E_TEMPERATURE | ||
#pullup_resistor: 1000 # (1000 for PT1000 with jumper conn,4700-default without jumper) | ||
## for PT100: | ||
#sensor_type: MAX31865 | ||
#sensor_pin: toolhead:MCU_MAX31865_CS | ||
# spi_software_sclk_pin: toolhead:MCU_MAX31865_SCK | ||
# spi_software_mosi_pin: toolhead:MCU_MAX31865_MOSI | ||
# spi_software_miso_pin: toolhead:MCU_MAX31865_MISO | ||
#rtd_reference_r: 430 | ||
|
||
[probe] | ||
pin: ^toolhead:PROBE_INPUT | ||
|
||
[fan] | ||
pin: toolhead:PART_FAN | ||
|
||
[heater_fan hotend_fan] | ||
pin: toolhead:E_FAN | ||
|
||
## Uncomment the following line if not using sensorless homing | ||
## and having the X endstop plugged to the toolhead MCU | ||
# [stepper_x] | ||
# endstop_pin: ^toolhead:X_STOP | ||
|
||
[neopixel status_leds] | ||
pin: toolhead:STATUS_NEOPIXEL | ||
|
||
[tmc2209 extruder] | ||
uart_pin: toolhead:E_TMCUART | ||
|