Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 13th March 2006, 12:52 PM   (permalink)
Default Constant average output voltage with PWM

Hello forum,

I'm looking for a circuit that can give a constant average voltage with PWM regardless of the input voltage.

Example: I need 1.5V from a random voltage source. The 1.5V should be the average of a PWM pulse. Eg. the input voltage is 3V, the PWM duty cycle should be 50% to give an average output voltage of 1.5V.

The load for the 1.5V is resistive.

Any suggestions?


Regards,
Futterama
Futterama is offline  
Old 13th March 2006, 01:04 PM   (permalink)
Default

It sounds like a normal switchmode regulator?, the filtered output voltage is fed back to control the mark/space ratio. However, your supply voltage is rather low and will make a design more difficult.

What exactly are you trying to do?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 13th March 2006, 01:26 PM   (permalink)
Default

I'm trying to drive a glowplug for a RC engine, from a 2-18V supply using PWM.
Futterama is offline  
Old 13th March 2006, 02:53 PM   (permalink)
Default

You would be better off using a Switching power supply. "Down Converer"

Not PWM.
__________________
I No Longer accept Private Messages on here.
All Emails to me Must Contain the Word \"Electronic\" in the \"Subject Line\"
or they go Directly to my Junk Mail Folder.
Email me at: chemelec@hotmail.com
Website: http://www3.telus.net/chemelec
chemelec is offline  
Old 13th March 2006, 03:45 PM   (permalink)
Default

Quote:
Originally Posted by chemelec
You would be better off using a Switching power supply. "Down Converer"

Not PWM.
I disagree. Use a PIC with PWM and a A2D then code a program that adjust to PWM so that the A2D remains at 1.5V. You'll need a low pass filter to feed the A2D. My 0.02€ (but maybe that's a switching power supply anyway :lol
hantto is offline  
Old 13th March 2006, 03:56 PM   (permalink)
Default

Quote:
Originally Posted by hantto
Quote:
Originally Posted by chemelec
You would be better off using a Switching power supply. "Down Converer"

Not PWM.
I disagree. Use a PIC with PWM and a A2D then code a program that adjust to PWM so that the A2D remains at 1.5V. You'll need a low pass filter to feed the A2D. My 0.02€ (but maybe that's a switching power supply anyway :lol
Just as I said above, it's a regulated switchmode PSU.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 13th March 2006, 07:04 PM   (permalink)
Default

Quote:
Originally Posted by hantto
Use a PIC with PWM and a A2D then code a program that adjust to PWM so that the A2D remains at 1.5V. You'll need a low pass filter to feed the A2D.
A low pass filter like this:



Right?
Futterama is offline  
Old 13th March 2006, 10:14 PM   (permalink)
Default

Quote:
Originally Posted by Futterama
Quote:
Originally Posted by hantto
Use a PIC with PWM and a A2D then code a program that adjust to PWM so that the A2D remains at 1.5V. You'll need a low pass filter to feed the A2D.
A low pass filter like this:



Right?
Yes, with suitable component values.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 13th March 2006, 10:28 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Yes, with suitable component values.
Which is? 100n and 10k? I'm gust guessing...
Futterama is offline  
Old 13th March 2006, 10:33 PM   (permalink)
Default

Quote:
Originally Posted by Futterama
Quote:
Originally Posted by Nigel Goodwin
Yes, with suitable component values.
Which is? 100n and 10k? I'm gust guessing...
You need to calculate them, if you check the MicroChip website they have an application note about just that!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 14th March 2006, 06:36 AM   (permalink)
Default

you need to use a fairly high PWM frequency and pick a cut off frequency well below the PWM frequency. the 3db frequency is defined as f = 1/(2*PI*R*C) You want to attenuate the PWM component pretty heavily. Though ripple may not be an issue here.

to get a feeling for this, try SPICEing it.

what you don't say is how much current which has a fair bearing on the matter...
philba is offline  
Old 14th March 2006, 06:47 AM   (permalink)
Default

Quote:
Originally Posted by philba
what you don't say is how much current which has a fair bearing on the matter...
I don't know the exact current, but I think it is a few ampere, like 3 or 4A.[/quote]
Futterama is offline  
Old 14th March 2006, 08:05 AM   (permalink)
Default

well, that's going to take a bit more than just a PIC and a little filtering...

I think I'd look at a buck converter like the lm2852 if its under 2A. Minimal components: 4 caps, 1 coil and the chip.
philba is offline  
Old 14th March 2006, 12:10 PM   (permalink)
Default

Well, I got something that works now. I just measure the input voltage with the PIC A2D, and calculate the PWM duty cycle from that, so it will output the average 1.5V square wave to a MOSFET that drives the glowplug.

Thanks for all your replies.

Regards,
Futterama
Futterama is offline  
Old 14th March 2006, 05:55 PM   (permalink)
Default

Your might want to revisit your requirements.
A resistive glow plug should take a PWM signal with no problem whatsoever. You can use a voltage divider to read the source voltage and adjust PWM period based on that.
Code:
Source voltage  PMW period 
1.5v                 100%
  3v                   25%
15v                     1%
The RC filter is very lossy since it burns up all the extra voltage in the resistor. I don't know what a glow plug takes but I'm guessing in the amp range. This may require a beefy resistor and the cap would need a fairly sizable capacitance and high current capacity to filter it into DC effectively.

If you want DC, usually you use an inductor to make a step-down "buck" converter to do this sort of thing. Those change the voltage without generating a lot of heat.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.
Oznog is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:45 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker