I am trying to control a proportional pressure reducing/relieving solenoid valve with a PIC microcontroller PWM output. I am confident in what I have done with the micro and get a good pwm signal that should drive the valve. When I control the valve with a power supply the valve behaves as the data sheet indicates except for a little bit of stiction. When I use the pwm from the micro I get the same amount of current through the power supply but the results are completely different. I am clueless as to what other circuitry should be used post micro to ensure the current to the solenoid is consistent. Any ideas for a pwm controlled current supply.