I have controlled other DC motors using PWM without any problems but with this pump it is not working at all. Unfortunately i don't know how to draw schematics but i'm just using a mosfet transistor and an extrernal 12V power supply. I have connected other DC motors to make sure the circuit is working.
When i give any signal less then 255 using analogWrite the motor is just making a little bit of noise. But as soon as i go from 254 to 255 the motor runs at full power. Can anyone help explain this to me?
DrJanItor:
Unfortunately i don't know how to draw schematics...
Time to learn. Schematics are the lingua franca of electronics. symbols Inputs on the left, outputs on the right. Positive supply voltages above, ground and negative supply voltages below. Hand drawn is OK if clear and legible. There's software like ExpressSCH to help.
IRF520 only turns fully on with 10V on the gate. With 5V it barely turns on, with a PWM signal, that could result in an effective voltage of less than 5V.
Try a better MOSFET, one that turns full on at lower voltages, such as this one
The problem with getting something like that from AliExpress is that its pretty likely to be either
fake, counterfeit or simply not a logic-level MOSFET. Reputable suppliers are the place to go.
There are loads of IRF520's or worse being unloaded as "Arduino compatible" when its not.
Most if not all of those small cheap pumps are BLDC - it makes waterproofing very easy.
I have a whole bunch of them, never tried PWM, never felt the need to lower the speed. It likely will not work indeed. Other models have a throttle on the inlet, which you can use to lower the volume.
TomGeorge:
Hi,
The link provides the specs of the pump.
BLDC motor doesn't like PWM.
Tom....
JCA34F:
From the linked web page:Probably won't work with PWM, needs steady, low ripple DC.
Oh. I had just gotten my logic level mosfets and realised it made no difference. I thought it was possible to control all DC motors like this. I guess i learned something new. Thank you!
Paul__B:
So how do variable speed computer fans, which are BLDC, work then?
Must be that the internal electronics read the PWM and adjust the controls to the fan. The PWM is usually supplied on a separate signal input, it's not the power supply itself that's modulated.
I think you're referring to this device which is linked to from that page.
No word on whether it works with brushless motors (likely not), the specs do match those of the brushed motors that are suggested as option for that pump on the page you linked to, and it will work great with that type of motor.