Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Variable voltage generator using PIC

Status
Not open for further replies.

UroBoros

Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,463
Hi,

I need to provide 1V to 5V variable voltage to a device to control its operation. The present mechanism of Potentiometer has become unreliable.

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? or digital potentiometer?

I can handle a PIC well. But hardware? If We use PWM how to smooth it using op-amp or something?

Please suggest

picstudent
 

I have used a MCP41010 digital pot for this type of application (in fact generating waveforms in the 1 to 5 KHz range)
MCP41010
it has an SPI interface so is nice and easy to program (I used a PIC24 but anything with an SPI interface would do)
An alternative is to use a DtoA converter chip
 
Hi,

I would suggest that you use PWM followed by an RC or LC inductor. You could also use an R2R DAC or a DAC chip.

For the PWM method, the output voltage will be proportional to your duty cycle. Use a high frequency (> 20kHz). Select the appropriate type of filter as required.

Take a look here: www.datadog.com/pwm_tutorial.pdf

Hope this helps.
Tahmid.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top