Created
May 7, 2018 08:44
-
-
Save berndbausch/0cdd7c70b7654486549d453aec2f3f54 to your computer and use it in GitHub Desktop.
Revisions
-
berndbausch created this gist
May 7, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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.