pwm to voltage with rc filter

Thread Starter

alirezajafari

Joined Jul 1, 2015
1
i have a sensor that the output of the sensor(TSOP 1138) is pwm with frequency 38KHz , i wanted to convert it to voltage
because i used low-pass RC filter that the value of the capacitor was 1uf and the resistor was 100Kohm but i don't have a good response time
i got mixed up perfectly
what should i do???:eek:
would you mind helping me that i can find the best value of the capacitor and resistor for that RC filter?:(
 

Alec_t

Joined Sep 17, 2013
14,335
Welcome to AAC!
What response time do you want? How much ripple can you tolerate on the DC? Time constant = R x C, so for 1uF and 100k = 0.1 sec.
 

MrAl

Joined Jun 17, 2014
11,496
Hi,

Yes it is a trade off between good filtering (low ripple) and fast response. The longer the time constant the better the filtering but the response time is then longer. There are other filters that might help that use other techniques for getting faster response and smooth output, but there is always some ripple so you have to decide how much is acceptable and how fast it really needs to be.
 

mcgyvr

Joined Oct 15, 2009
5,394
What are you using to read this IR sensor..
What are you doing with it that you need to convert the PWM?
You need to read the pulses to determine the remote codes not flatten it out.
 

ErnieM

Joined Apr 24, 2011
8,377
Since the most accurate way to measure the information contained in a PWM signal is to measure the pulse itself I have to ask what is making the measurement?
 
Top