CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC12F675 + RC5 + PWM + fan (noise problem)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FJMSoft



Joined: 20 Oct 2013
Posts: 36

View user's profile Send private message

PIC12F675 + RC5 + PWM + fan (noise problem)
PostPosted: Sat Jan 11, 2014 2:11 pm     Reply with quote

Hello.
I'm trying to make a very small and simple fan controlled by IR (RC5).
Will be 3 fans, very small ones (200mA).
Receiver is a TSOP1838 "compatible" (MYS1838) connected to external interrupt.
I already made a working code, received the RC5 and controlled fans speeds using a timer PWM, no problem in code.
Test code just reads the RC5 and sets fixed PWM values.

Problem is (as somewhat expected) when fans are powered the IR sensor gives several output as an IR received, but really was not an IR received, I believe it is noise!

How can I workaround this?

Thank you very much.
temtronic



Joined: 01 Jul 2010
Posts: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jan 11, 2014 3:31 pm     Reply with quote

some ideas:
If you have access to an oscilloscope, you should be able to see where the noise is coming from. I suspect that the power supply is 'drooping' when those fans are powered. 3 x 200ma= 600ma, so I'd use a 5 amp rated supply.You also should have 18ga wire to the fans, bypass caps(.1/50v).as well as bypass caps near the PIC. If the PIC is powered from the 'fan' supply, I'd decouple it with a PI filter of 3x 10uf caps and 2x 10r. Layout is important, good grounds are essential. You might need some filtering on the IR detector output so check the mfr's website or datasheet. You might need to filter the power supply to that device as well.

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Sun Jan 12, 2014 3:52 am     Reply with quote

It is worth remembering that a motor in a fan will draw much higher 'pulse' currents, than it's rating. If the fans are 'brushless' designs (common now), they will have pulse currents well above the average 'rating'.

Have a look at:
<http://www.digikey.com/classic/documentredirector.aspx?doc=https://www.digikey.com/Web%20Export/Supplier%20Content/ComairRotron_25/PDF/Comair_Tutorial_BrushlessDCFans.pdf>

(for somewhat larger types, but the principles are the same).

Remember also that the starting current can easily be 5* the rated current....

Also with any load containing inductive components, there will be flyback to deal with when the load is switched off, and if these are brushless designs, this will be happening hundreds of times per second as they run.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group