Where can I find the documentation for tuner.softPwm #21
Replies: 1 comment
-
I'll be adding documentation later this year after the next sTune and QuickPID update. Right now, softPwm is a function in sTune that is called by QuickPID. Here's the header for the softPwm function: The last parameter is for setting the debounce value in milliseconds.
softPwm uses the PID input when using solid state relays (SSR).
|
Beta Was this translation helpful? Give feedback.
-
Good Morning,
I'm hoping that someone can help point me in the right direction for the configuration definition for this project's "softPwm"
Looking in the examples I see the following "tuner.softPwm(relayPin, Input, Output, 0, outputSpan, 1);"
I'm trying to understand what this is doing.
The "relayPin" makes sense that this is the Hardware pin on the MCU
"Input" not quite so clear, why does this need to know the PID input?
"Output" This looks to be the value desired to be set as the output signal when mapped to the next 2 following values
"0" looks to be the minimum map value, i.e. 0%
"outputSpan" looks to be the maximum map value, i.e.100%
"1" not a clue what this is for,
Kind regards
Alex
Beta Was this translation helpful? Give feedback.
All reactions