GiorgioAresu / FanController

Arduino library to control 3 and 4 pins fans
MIT License
40 stars 13 forks source link

How to stop the fans? #15

Open ghost opened 3 years ago

ghost commented 3 years ago

I can't seem to find a way to stop the fans. The obvious setDutyCycle(0) doesn't work.

In forums I've read that you can turn it off by switching pin mode to OUTPUT and digitalWrite(pin, LOW). But I don't know what effect that would have while this libraries code is running (problems along the line, how to start the fans again?)

I would highly appreciate if someone could implement a method stop() and maybe restart()

ufoDziner commented 1 year ago

Just started to use this library. It's great, but I can't stop the fans either. Closest I can get is ~5% without side effects. Any chance there is a fix in the works? Thanks!

kenkit commented 5 months ago

You can use another input and a mofset as mentioned in this other diagram. You only need the mofset part https://github.com/sker65/esphome-fan-controller DO NOTE THE PWM Signals won't work if you use this. I think I will add this to the library incase user sets duty cycle to 0 turn off the mofset, this will also stop power from running into the fan