I have a pair of these valve:s https://kellypneumatics.com/download_files/MidPVspec.pdf. We tried to control them using a PWM signal from a Raspberry Pi but this is not working causing some vibrations and notable fluctuations on the output. So i decided to write you to help us with a configuration to control them.
Attached the image of the circuit that im using for now:
you need some overvoltage protection for your MOSFET, because you are driving an inductive laod.
Zener, MOV, ..
Even a freewheeling diode may work. But mind the slow decaying current.
To simplify the circuit I recommend to use a logic level MOSFET.
If you want to drive multiple valves, then consider to use a ready to buy low side switch (driver) IC.
According with the PWM frequency i did it till 2Khz and the behavior geot better but still the vibrations. The datasheet does not recommend any PWM. :???:
you need some overvoltage protection for your MOSFET, because you are driving an inductive laod.
Zener, MOV, ..
Even a freewheeling diode may work. But mind the slow decaying current.
To simplify the circuit I recommend to use a logic level MOSFET.
If you want to drive multiple valves, then consider to use a ready to buy low side switch (driver) IC.
With this circuit we onlye wan to control one valve, is to say, one configuration for each valve. On the other side, why to use a Logi Level Mosfet? cand you recommend me one?
There are so many, and many will suit your application. Just go to any electronic parts distributor or Mosfet manufacturer and use their interactive selection guides.
Then you have all at once: V, I, price, availability, package, R_DS_ON... it´s much faster when you do this on your own.
Freewheeling diode is in fact required for PWM operation, I didn't notice it's missing.
PWM frequency has to chosen so that you get almost continuous current with a certain ripple to overcome valve hysteresis. Several 100 Hz up to some kHz are typical values, depending on the valve mechanical time constant. Missing freewheeling diode will however cause abrupt current decay and thus higher vibration.
I agree with FvM.
A valve is an inductive device, it's movement is controlled by magnetic field, which is proportional to current (not voltage).
Thus - with the freewheeling diode - and a suitable PWM frequency you can control the valve with PWM duty cycle.
I've done this already with hydraulic proportional valves.