PWM GPIO

From Let's Control It
Revision as of 18:58, 22 April 2017 by Toffel969 (talk | contribs) (→‎PWM control)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PWM control

It is also possible to output an PWM signal on the GPIO pins.

To set a certain PWM level:

http://<ESP IP address>/control?cmd=PWM,<pin>,<level>

This feature can be used to dim lights, control (DC)-fan speeds, etc.

Be aware that the direct GPIO has currently a "heartbeat" issue where flickers can occur. If that is critical to your application you can use the PCA9685

Example

Nodemcu pwm mosfet.png