Control a DC motor via a standard H-bridge using a PwmOut pin to control speed and two DigitalOut pins to control direction. Can change pwm period on the PwmOut pin, and also brake high or low.

Dependents:   SimpleRover PIDRover IMURover incrementalencoder-pid-robot ... more

History

Added functionality to brake high or low. default tip

2010-09-07, by aberk [Tue, 07 Sep 2010 11:21:42 +0000] rev 1

Added functionality to brake high or low.


Added period(...) method to allow the period on the PwmOut pin to be changed.

2010-09-02, by aberk [Thu, 02 Sep 2010 16:32:57 +0000] rev 0

Added period(...) method to allow the period on the PwmOut pin to be changed.