Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Variable voltage source generation using pic18f4520(5v and 30ma)

Status
Not open for further replies.

palakpatel6188

Newbie level 5
Joined
Sep 3, 2014
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
61
Hi,

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? p.PNG

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

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
4,834
Helped
1,065
Reputation
2,140
Reaction score
1,049
Trophy points
1,393
Location
California, USA
Activity points
26,364
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?
 

amayilsamy

Advanced Member level 1
Joined
Feb 5, 2013
Messages
422
Helped
38
Reputation
76
Reaction score
35
Trophy points
1,308
Location
Chennai,India
Activity points
3,368
You can simply do with using DAC. MCP4716 I2C based DAC 5 V output, 25 mA output..
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
595
Reputation
1,186
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search


Welcome to EDABoard.com

Sponsor

Sponsor

Design Fast


×
Top