McReeii
Hello,
I'm building a label roll winding machine as I'm new to plc programming I don't know how to control the speed of an H-Bridge DCmotor with a simple rotary encoder using ESP32.
I decided to use Function Block Diagram, Is there any simple way to control motor speed?
any source where I can learn more about controls and FBD is ok too.
Reply 0 0
thiagoralves
If your H-bridge takes PWM as input, just use one of the “analog out” pins of the ESP32 and you should be good. Those analog out pins are actually PWM enabled pins, where the value of the analog out controls the width of the PWM pulse. 
Reply 0 0
Reply