esp8266-fan-control icon indicating copy to clipboard operation
esp8266-fan-control copied to clipboard

pwm?

Open pepelillo opened this issue 3 years ago • 2 comments
trafficstars

Hello.

One question O'm not a developer but if the speed is controlled by ioPIN 12 (Analog) how the PWM based control is made?

pepelillo avatar Jan 26 '22 18:01 pepelillo

Using pinMode(FAN_PIN, OUTPUT) the pin 12 on the board is set as a digital output. See the digital pins page for details. Using the analogWrite() function, you can the write a PWM wave to the pin.

stefanthoss avatar Feb 06 '22 01:02 stefanthoss

Wo wird denn die Frequenz festgelegt? Fehlt da nicht ein analogWriteFreq(25000)?

warp735 avatar Feb 22 '22 10:02 warp735