Home > other >  STM32 PWM motor control
STM32 PWM motor control

Time:12-05


I want to be a ph hybrid system, system overview is an electromagnetic flowmeter, a ph sensors, two PWM motor,
Detected using electromagnetic flowmeter flow after a duty ratio of PWM motor output lye to mix tank, now read ph ph sensor to control the duty ratio of another motor to set the ph value,
My small white, me a week to the don't understand things too much, want to help you big hermits,

CodePudding user response:

Question one by one

CodePudding user response:

What are you doing this is actually a set HP fluid into a system,

First of all, there is a problem need solution under the building Lord, you of the flowmeter is doing here? My understanding is using PWM to control the valve, and then use the amount of liquid flow meter to count through the,

If I understand correctly, you this is a simple feedback system,

Draw a simple picture, hand painting, soul will see


From this figure can see you need to control and to get the value of the

You may also need a feedback control algorithm, such as PID,
Is the following,


Probably that's all,

So under the decomposition:

1. The control motor, here is actually the control valve?

2. Get flowmeter value

3. Get the ph

4.
feedback algorithm
Well, maybe that's all, module one by one to do first, and then pieced together, will be home and dry,

Good luck,

  • Related