I have the following scheme RPI, L298n with 6v DC motor. I'm trying to add a XL6009 boost converter but set to boost 5v into 6v but sometimes the motor is rotating and sometimes is buzzing. Does this have any connection with PWM? I would like the motor to rotate all the time when I run my code. Without XL6009 is working without any problem.

  • \$\begingroup\$ What voltage do you measure when the motor is (a) running, (b) buzzing? What current is it drawing in each case? What max current can your power supply, er, supply? \$\endgroup\$ – Brian Drummond May 15 '16 at 20:09
  • \$\begingroup\$ (a) 5.6V (b) over 5.6v . max current PS is 2A. I haven't measure the current draw. \$\endgroup\$ – Andy Andy May 15 '16 at 20:53
  • \$\begingroup\$ Could the cable be the problem? \$\endgroup\$ – Andy Andy May 15 '16 at 22:10

"sometimes the motor is rotating and sometimes is buzzing" is a clue that the boost IC does not have enough current to start a stopped motor. It is random because the position of the motor contacts is not random.

At a stop state the motor contacts are engaged so the motor will start. Either the start current is borderline with what the booster IC can work with, or you need larger value electrolytic caps on the power to the motor.

Also check the current limiting on the booster IC. Maybe it is adjustable and can put out more current safely to start the motor every time. The 'buzzing' sound is the boost IC trying to start the motor with pulses of current that are not quite strong enough, so the motor does not turn, but sits there in an over current state-buzzing. The motor needs more starting current.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.