NRI G.13 - Drinks machine

No, PWM is not the answer.
The PWM frequency is fixed unless you want to fiddle with registers.
Using micros () may be much simpler.
Have a look at blink without delay.