Skip to content

Where can I find the documentation for tuner.softPwm #21

Answered by Dlloydev
alextrical asked this question in Q&A
Discussion options

You must be logged in to vote

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:
float softPwm(const uint8_t relayPin, float input, float output, float setpoint = 0, uint32_t windowSize = 1000, uint8_t debounce = 0);

The last parameter is for setting the debounce value in milliseconds.

  • Use debounce=0 if using an SSR. In this case, sTune can optimize the output to keep tighter regulation when the input is near or at the setpoint.
  • Use debounce=1 if using the output with a MOSFET or transistor (this is set to 1 in your example)
  • If using a mechanical relay, you can use a hi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alextrical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants