文档库

最新最全的文档下载
当前位置:文档库 > AFMOTOR_h

AFMOTOR_h

// Adafruit Motor shield library

// copyright Adafruit Industries LLC, 2009

// this code is public domain, enjoy!

/*

* Usage Notes:

* For PIC32, all features work properly with the following two exceptions:

*

* 1) Because the PIC32 only has 5 PWM outputs, and the AFMotor shield needs 6

* to completely operate (for for motor outputs and two for RC servos), the

* M1 motor output will not have PWM ability when used with a PIC32 board.

* However, there is a very simple workaround. If you need to drive a stepper

* or DC motor with PWM on motor output M1, you can use the PWM output on pin

* 9 or pin 10 (normally use for RC servo outputs on Arduino, not needed for

* RC servo outputs on PIC32) to drive the PWM input for M1 by simply putting

* a jumber from pin 9 to pin 11 or pin 10 to pin 11. Then uncomment one of the

* two #defines below to activate the PWM on either pin 9 or pin 10. You will

* then have a fully functional microstepping for 2 stepper motors, or four

* DC motor outputs with PWM.

*

* 2) There is a conflict between RC Servo outputs on pins 9 and pins 10 and

* the operation of DC motors and stepper motors as of 9/2012. This issue

* will get fixed in future MPIDE releases, but at the present time it means

* that the Motor Party example will NOT work properly. Any time you attach

* an RC servo to pins 9 or pins 10, ALL PWM outputs on the whole board will

* stop working. Thus no steppers or DC motors.

*

*/

免费下载Word文档免费下载: AFMOTOR_h

(共5页)

TOP相关主题