Default mbed pwm doesn't have enough resolution at high frequencies, thats why I implemented VNH5019 Motor carrier with FastPWM.

Dependencies:   FastPWM

Fork of VNH5019 by IEEE RAS METU

Revision:
13:414b463160ef
Parent:
12:fee8aa385836
Child:
14:193c422498bf
--- a/VNH5019.h	Thu Mar 15 20:49:18 2018 +0000
+++ b/VNH5019.h	Thu Mar 15 20:51:20 2018 +0000
@@ -91,7 +91,7 @@
 {
    // Scale is 210mV per A
    // Scale factor is 3.3 / 0.210 = 15.7142
-   return CS.read()*15.7142;
+   return CS.read();//*15.7142;
 }
 
 inline