Add PWM Capability to MOSFET outputs (Fan Outputs) #701
Labels
area: pcb
requires an update to an electrical design
project: mobo
Lumen motherboard
type: enhancement
New feature or request
Milestone
Version Number
Rev5b0
Bugfix or Enhancement
This is an enhancement.
Description
The MOSFET pins (MOS1-4) are currently driven by PE2-5. These are not all PWM capable because they lack the AF mapping to a TIM peripheral. The Gcode commnads for these outputs are the Marlin fan commands, which take an 8 bit duty cycle. This is not strictly necessary, but for the solenoids it may save energy (and thereby extend the life of the parts due to lower heat) to PWM them once they are actuated rather than leaving them at full current. This is relatively common.
Suggested Solution
Move MOS1 and MOS2 to PB8 and PB9 (TIM4/10/11) and move MOS3 and MOS4 to PE5 and PE6 (TIM9). This change to pin assignment should be fairly straightforward with the rev5 layout.
Alternatively, just moving the valve drivers to PE5/6 should be sufficient.
Interestingly, the best timer mapping is probably the two valves on PE5/6 since they will share frequency requirements and the pumps on PB8 and PB9 since they map to a different TIM block for whatever frequency requirements might be needed there.
The text was updated successfully, but these errors were encountered: