Protofy
Protofy copied to clipboard
Integration of PWM control
Need To Be Solved
Our project requires the integration of PWM control, in this case for peristaltics.
Solution Suggestion
Below is the suggested YAML configuration for seamless integration:
mqtt: broker: xxx.xx.xxx.xx topic_prefix: devicename on_json_message: - topic: devicename/output/peristalticspeed/command then: - lambda: |- if (x.containsKey("pwmLevel")) { id(peristaltic1speed).set_level((float)x["pwmLevel"]); }
output: - platform: ledc pin: 25 id: peristalticspeed frequency: 50Hz
This feature request is already made on : https://github.com/Protofy-xyz/Protofy/issues/59
Yes! I also need this feature for my project, it will be very useful
This has been solved. You can use it as you can see in image attached: