Wrote function to allow for individual fan to be set based on fan # and fan speed (%) input. Changes values in STM32 PWM CCR registers to adjust duty cycle of signal.
Notes
@dyldonahue configured fans in CubeMX as follows:
Fan 1 (pin PA10) --> Timer 1, Channel 3
Fan 2 (pin PA8)--> Timer 1, Channel 1
Fan 3 (pin PC9) --> Timer 8, Channel 4
Fan 4 (pin PC8) --> Timer 8, Channel 3
Fan 5 (pin PC7) --> TImer 8, Channel 2
Fan 6 (pin PC6) --> Timer 8, Channel 1
To Do
Still need to add wrapper function to apply the logic for toggling the individual fans.
Checklist
It can be helpful to check the Checks and Files changed tabs.
Please reach out to your Project Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
Changes
Wrote function to allow for individual fan to be set based on fan # and fan speed (%) input. Changes values in STM32 PWM CCR registers to adjust duty cycle of signal.
Notes
@dyldonahue configured fans in CubeMX as follows: Fan 1 (pin PA10) --> Timer 1, Channel 3 Fan 2 (pin PA8)--> Timer 1, Channel 1 Fan 3 (pin PC9) --> Timer 8, Channel 4 Fan 4 (pin PC8) --> Timer 8, Channel 3 Fan 5 (pin PC7) --> TImer 8, Channel 2 Fan 6 (pin PC6) --> Timer 8, Channel 1
To Do
Still need to add wrapper function to apply the logic for toggling the individual fans.
Checklist
It can be helpful to check the
Checks
andFiles changed
tabs. Please reach out to your Project Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.Closes #72 (issue #72 )