esp8266-fan-control
esp8266-fan-control copied to clipboard
pwm?
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?
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.
Wo wird denn die Frequenz festgelegt? Fehlt da nicht ein analogWriteFreq(25000)?