I watched the tutorial and I managed to make the L298N chip to work with a small vibration motor, but I have difficulty running a pump.
I have a 5V supply (which actually measures 5.7V). I attach my pump to it an the pump works.
I connect my supply to VCC and +5 on L298N and when I attach a small vibration motor to the outputs the motor works.
I replace the small motor with pump and pump does not work, it tries to rotate and produces a constant quite noise.
What am I missing here?
I do know the pump is working, and L298N is wired properly. When I measure the voltage across the pump inputs it is 4.6V, while when a pump is not connected it is what the voltage supply gives 5.7.
The LM298N is an ancient bipolar H-bridge (obsolete IMO), so it has a high voltage drop except at very low load currents. Use a modern mosfet-based H-bridge instead. If you want a ready-made module, then this one Pololu - MC33926 Motor Driver Carrier will probably do the job. If you don't need to reverse the direction of the pump, then you don't need an H-bridge, just a logic-level mosfet and a couple of resistors.
Well the LM298N was really designed for 48V / 36V / 24V motors, not low voltages... It's voltage drop of 3.5V worst case (IIRC)
severely limits its use at 5V!
There aren't many good modern MOSFET bridges around that aren't surface mount, otherwise the 298 really would
become obsolete.