Default mbed pwm doesn't have enough resolution at high frequencies, thats why I implemented VNH5019 Motor carrier with FastPWM.
Fork of VNH5019 by
Diff: VNH5019.cpp
- Revision:
- 3:2b139675f60d
- Parent:
- 1:5e8d9ed18f0f
- Child:
- 4:3802325cf6e1
--- a/VNH5019.cpp Sat Feb 01 14:56:54 2014 +0000 +++ b/VNH5019.cpp Sun Feb 09 11:17:06 2014 +0000 @@ -47,6 +47,13 @@ } } +void VNH5019::stop() +{ + INA = 0; + INB = 0; + PWM = 0.0; +} + void VNH5019::brake(float Brake) { // normalize Brake to 0..1