Author Topic: how to get rid of the contaminating PWM signal  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

Offline foxjulyTopic starter

  • Newbie
  • Posts: 9
  • Country: us
how to get rid of the contaminating PWM signal
« on: December 07, 2017, 06:37:22 am »
Hey Guys, I am currently working on a project of using arduino to control the computer fan. I used the Time1 library of Arduino to generate a 25 kHz PWM signal. The fan works pretty well and its speed can be controlled if I adjust the duty cycle of the PWM signal.
Also, I want to measure the rotation signal from the computer fan. However, what I got is a signal contaminated with the PWM signal, So, how can I solve it ? Attached is the circuit map.
Thanks a lot!
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: gb
Re: how to get rid of the contaminating PWM signal
« Reply #1 on: December 07, 2017, 07:54:44 am »
You cannot get rid of the PWM pulses, unless you stopped the PWM process.

Your question is a common one and Mr. Giorgos Lazaridis had figured out a way to tackle that. Basically he just stretches one PWM pulse to 100% and measure the speed feedback signal. Then the PWM pulses returns to normal. He called it the "Pulse Stretch method". You can learn how he did it at the following link:

PWM 3-Wires Fan Controller with RPM feedback

« Last Edit: December 07, 2017, 08:13:45 am by eblc1388 »
 
The following users thanked this post: foxjuly

Offline foxjulyTopic starter

  • Newbie
  • Posts: 9
  • Country: us
Re: how to get rid of the contaminating PWM signal
« Reply #2 on: December 08, 2017, 12:09:44 am »
Thanks, I tried to use a capacitor and it works, I am planning to use a small coil in combination with the capacitor to see if it can further remove the 25 kHz PWM Signal.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf