Difference between revisions of "PWM GPIO"
Jump to navigation
Jump to search
(Created page with "=== PWM control === It is also possible to output an PWM signal on the GPIO pins. To set a certain PWM level: '''<nowiki>http://<ESP IP address>/control?cmd=PWM,<pin>,<level...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
This feature can be used to dim lights, control (DC)-fan speeds, etc. | This feature can be used to dim lights, control (DC)-fan speeds, etc. | ||
− | Be aware that the direct GPIO has currently | + | 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 | PCA9685]] |
=== Example === | === Example === | ||
− | [[File:Nodemcu pwm mosfet.png]] | + | [[File:Nodemcu pwm mosfet.png | 640px]] |
Latest revision as of 18:58, 22 April 2017
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