Library for Pololu Motor driver - VNH5019 Motor Driver Carrier https://www.pololu.com/product/1451

Dependents:   VNH5019_2 VNH5019_1

Files at this revision

API Documentation at this revision

Comitter:
TeaPack_CZ
Date:
Sat Feb 25 22:36:03 2017 +0000
Parent:
0:c54243e9db1d
Commit message:
Improve class description

Changed in this revision

MotorDriver.h Show annotated file Show diff for this revision Revisions of this file
--- a/MotorDriver.h	Sat Feb 25 21:54:26 2017 +0000
+++ b/MotorDriver.h	Sat Feb 25 22:36:03 2017 +0000
@@ -1,5 +1,8 @@
-/** Class for the Pololu motor driver (VNH5019)
- *  ANOTATION TODO ... \n\n
+/** Class for the Pololu1451 motor driver carrier (VNH5019)\n
+ *  This class can control VNH5019 motor driver. Class supports stop command and 
+ *  hold command, which uses active breaking of motor. Active position returning
+ *  can not by supported without encoder. Connected pins are: INA, INB, PWM, CS.
+ *  Pins ENA, ENB needs external pullups (10k) to make it work.\n\n
  *  https://www.pololu.com/product/1451\n\n
  *
  *                                      Writen by: Jan Crha (TeaPack_CZ), 2017.
@@ -14,8 +17,8 @@
  *  
  *  Serial PC(USBTX,USBRX);
  *
- *  MotorDriver Motor(p20,p21,p22);
- *  AnalogIn senseB(p19);
+ *  MotorDriver Motor(p20,p21,p22); // Connect to pins PWM, INA, INB
+ *  AnalogIn senseB(p19);           //Connect to pin CS
  *  
  *  int main(){
  *