I need to provide 1V to 5V variable voltage to a device to control its operation. and we also want 30 mA.
I have triaed it using PWM and generated variable voltage but i didnt get the desired current.
I need to provide a up and down push button which should vary the output voltage from 1 volt to 5 volts.
What is the the practical method with common components? PWM possible?
I can handle a PIC well. But hardware? If We use PWM how to smooth it using op-amp or something?
If you use PWM you'll need to use an RC filter. It depends on how much ripple you can tolerate. Some PICs have Digital-to-analog converters-you could use one of those. Or use an external DAC.
I just noticed, you actually ARE using a DAC. So, why are you talking about PWM?