Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berndbausch/0cdd7c70b7654486549d453aec2f3f54 to your computer and use it in GitHub Desktop.
Save berndbausch/0cdd7c70b7654486549d453aec2f3f54 to your computer and use it in GitHub Desktop.
Arduino pins
Each motor needs three pins, two normal digital output pins for setting the direction, and one PWM pin that sets the speed.
I started with pins 6(PWM)/7/8 and 11(PWM)/12/13. Works well.
I added infrared control software IRRemote. The motor connected to 11/12/13 doesn't turn anymore.
Solution: Use pin 5 instead of 11. IRRemote seems to use pin 11 to implement timer interrupts; I don't quite understand the details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment