I've got a PIC at 48MHz processing data and using the PWM module to drive two fans via individual IRL520 FETs. The PWM module is running around 44kHz, with duty cycles between 20% and 100% I have a signal diode across the fan to protect the FET.
When the duty cycle is below 100% the data on the I2C lines seems sporadic, so I'm convinced there must be some noise from the fan switching leaking back into the system.
I have 0.33uF caps between Vcc and Gnd on the PIC, and also between +5V and Gnd on the I2C lines that feed the LCD and sensors. I have 470uF cap on the 12V input and also between 5V and Gnd after the 5V regulator.
I'm sure I need to do something across the fans or around the FET to block electrical noise from the fans, but I don't know what. Sadly I don't have access to a scope to look at the signals.
Can anyone advise?
Sent from my XT1039 using Tapatalk