The control works OK but it shuts down the drv-8301 when changing speed quickly.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
The control works OK but it shuts down the drv-8301 when changing speed quickly.
When decelerating rapidly you take energy from the motor, and try to put it onto the DC bus. Since you have a power supply as the DC bus, you are trying to push the energy into the power supply. Some power supplies can handle this (the expensive, sourcing and sinking supplies), others can't, and some get destroyed.
There are two solutions;
Don't decelerate so quickly. Set a lower gMotorVars.MaxAccel_krpmps (from memory, forgive me if I got the name wrong) to limit acceleration and deceleration.
Get a power source which can handle the energy getting pushed back in. A big battery can handle the drain when accelerating as well as the charging when decelerating. Keep in mind that a big battery can also deliver enough power to destroy your electronics in an exciting way, so I would advise just lowering MaxAccell
Best regards,
Rob