Morning ^^ I'm having an issue with my dc motor, when the motor change direction quickly it starts making noise and doesn't spin, I was reading about it and got to a snubber circuit or a h-bridge diode circuit, can someone pls give me a path?
Can this be solved with a certain circuit or I'll have to be adding delays to my code to give the motor time to settle?
Does it work if you change the direction slowly?
Yes, if I do a slow test run it works just fine, but for it's intended use it needs to be faster
What is the motor driver you are using?
The motor is being used to maintain a specific direction, so it requires a quick response. Not excessively fast, but sometimes when adjusting, it veers slightly in the opposite direction. The system attempts to compensate, resulting in this issue with the motor. Occasionally, the same problem occurs during normal use.
I'm using H-bridge shield L298p
What voltage and current does you motor need?
Is it a geared motor?
Can you stop the motor, waiting enough time for the motor to come to a complete stop, then reverse the motor direction? If you can implement electro-dynamic breaking by shorting the motor leads that can stop a motor fairly rapidly.
Suddenly changing direction is likely to cause a huge current spike on the drive circuit.
It's a 12v dc motor, I don't remember exactly the current but I remember seeing it go like 1.2-3A +- (3A on the super high end, more like a spike, so it goes more in between)
It's a geared motor
This would be a last option, Ideally it would work on demand
This is most of the problem, to know a way to make that transition safelly so the motor stops encountering that problem
Unfortunately you can’t do a fast stop (brake) with that particular shield.
You have three options
- Buy a new driver with a brake capability.
- Add extra hardware to your current design to brake the motor.
- Add an external electromechanical brake
What should I be looking after?
Does it have to be a shield or can it be a seperate board that you connect with wires?
It doesn't need to be a shield, I got a shield just to the setup is tight
Trying to do a fast reverse may be tripping a protective circuit in your motor driver.
I would buy one of these drivers.
It will never get hot and you can break to motor to quickly stop it before changing directions.
https://www.amazon.com/HiLetgo-BTS7960-Driver-Arduino-Current/dp/B00WSN98DC/
Here is the manual:
BTS7960 Motor Driver.pdf (1.1 MB)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.