AC Solenoid Pump Control

I don't believe the OP understands what PWM is, it's more than just a string of pulses at some frequency.