Me again with yet another programming question, so I really tried and looked at everything but I can’t seem to find why my arduino won’t give any PWM on my pin 45.
To be sure, I tried with a simple Fade sketch and everything works perfectly, so PWM or Arduino hardware is not to be suspected.
Now in my sketch between 6-25seconds, I have a PID calculating a PWM value that I’m then putting in an analogWrite(pin45,xxx).
I even tried to put an intermediate int value (since Output is a Double) but it didn’t change anything…
I can monitor the PWM on the small LED of my mosfet module and it does light up only when the PWM value reaches 255.
I searched in vain for any line that would put this value to 0 but nothing… Also, I’m monitoring th Output of the PID on an LCD and it’s rising slowly as expected…
My sketch is of course attached.
Thanks for your help!
SketchStart2_76.ino (14.3 KB)