hello, I am new here
I am trying to make a fan controller for a 4 pin PWM computer fan
this is the best I could find regarding a proper specification:
http://formfactors.org/developer%5Cspecs%5C4_Wire_PWM_Spec.pdfthe fan has an internal pullup resistor so needs to connect to an open drain / open collector style output
I have attached my circuit diagram including a simplified circuit for the fan to help show what is happening
now the problem I am having is this, if I measure at the gate of the MOSFET I get the expected 25kHz square wave:
......but if I measure at the drain I get this ugly sawtooth wave which does not control the fan properly:
I disconnected the fan and took readings from the signal pin, I get a constant 4.25 volts and current between it and ground is 58uA, this would suggest to me a pullup in the region of 80k, also if I ground the pin the fan shuts off, and if I leave it floating it spins up to full speed, all this is consistent with an internal pullup
so I disconnect the fan from drain and put a 100k resistor to 5v instead, I get the same ugly wave, if I swap the resistor for a 1k I get a nice square wave, if I connect the fan with this 1k pullup in place I also get the square wave and the fan responds correctly, this and the sawtooth on the oscilloscope leads me to believe that the MOSFET is being very slow to switch off when the drain to source current is low, am I correct? will a different MOSFET respond better?