EmbDev.net

Forum: Analog Circuits PWM + I2C interference in fan controller


von Hans H. (Guest)


Attached files:

Rate this post
0 useful
not useful
Hi,

I'm building a fan controller for a vintage computer and I'm facing some 
difficulties isolating the I2C bus and the motor PWM.  When I have a fan 
connected to the output, spikes are being introduced into the I2C bus 
which sometimes causes misreadings of the LM75A sensor data.  Can anyone 
suggest a simple way how I can decouple the two parts of the circuit 
better?

Please see the attached schematics and an image from my oscilloscope 
that shows the spikes.

Thanks!
Hans

von Achim S. (Guest)


Rate this post
0 useful
not useful
- reduce the pullups to 1k instead of 4k7
- disconnect the 100nF at the diode
- connect 100nF between 3.3V anf GND

von K. S. (the_yrr)


Rate this post
0 useful
not useful
Hans H. wrote:
> Can anyone
> suggest a simple way how I can decouple the two parts of the circuit
> better?

show us your layout. I guess there is a significant problem with it like 
bad ground routing, no decoupling, signal paths next to power paths ...

2N7000 @ 3V3 GS can only drive <<100mA, it is only specified for 4.5V 
and its maximum threshold voltage is 3.0V. You need a real logic level 
Mosfet unless you use a toy ventilator with very minor current 
consumption (like a few mA max).

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig