Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Using a capacitor to convert PWM to a voltage

2012-08-20 by Jim Wagner

And, further, you will NOT get a 10V signal from a 5V logic PWM. From 5V logic,it will vary from (approximately) 0 to (approximately) 5V. There are ways to get 10V out, but you need some kind of supply that is 10V or higher to do it. 


Second, it will take more than just a capacitor. You want at least a series resistor, as Don suggests. 


Jim Wagner 
Oregon Research Electronics 

----- Original Message -----
From: "Don Kinzer" <dkinzer@gmail.com> 
To: AVR-Chat@yahoogroups.com 
Sent: Monday, August 20, 2012 3:14:40 PM 
Subject: [AVR-Chat] Re: Using a capacitor to convert PWM to a voltage 






--- In AVR-Chat@yahoogroups.com , Philippe Habib <phabib@...> wrote: 
> Can someone provide some guidance about how to size the capacitor 
> and what type of capacitor is best suited for this type of thing? 
You need a resistor in addition to the capacitor. The values for the R and C to get good filtering will vary depending the chosen PWM frequency and the impedance of the load. (The PWM signal puts charge into the capacitor during the on time and draws it out during the off time; the load draws charge out of the capacitor.) 

In order to calculate acceptable values for R and C, one would need to know the PWM frequency, the load impedance, the desired responsiveness and the allowable error voltage. For a one-off project, it may be simpler to try some values and determine what works well enough. For example, for a 1KHz PWM signal you might start with 100 ohms and 10uF. An oscilloscope would be useful to be able to "see" the resulting signal. 

Don Kinzer 
ZBasic Microcontrollers 




[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.