- changed status to resolved
Bug with <AFMotor.h>
Issue #39
resolved
Again thank you for that link i was able to fix that problem however another has occurred. Whenever i create an object for the motor, the first sensor stops outputting results, while the second sensor is still working.Is it a hardware issue or software issue? Any help would be greatly appreciated.
Comments (2)
-
repo owner -
reporter Thank you, i checked the pins in use and pins 2 and 13 were the only ones which were not affected. However 9 and 10 were available as i'm not using servos.
- Log in to comment
The AFMotor probably conflicts with pins 11 or 12. When using libraries or hardware, you need to check what timers they use and which pins may be effected. My guess is that the AFMotor library uses a timer that's used on pins 11 or 12.