Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save berndbausch/0cdd7c70b7654486549d453aec2f3f54 to your computer and use it in GitHub Desktop.
Save berndbausch/0cdd7c70b7654486549d453aec2f3f54 to your computer and use it in GitHub Desktop.

Revisions

  1. berndbausch created this gist May 7, 2018.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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.