I've got a wiper motor hooked up to a motor driver getting PWM signals from a MAKE controller digital out and the following code
This just makes the wiper motor go clockwise for two seconds, stay still for two seconds and then go counter clockwise for two seconds. This bit works fine.
The problem occurs when I add a 10k Pot to one of the analog inputs. Even if the code never refers to the pot and even if the pot is set to zero, it changes the PWM output somehow so that the above code results in ONLY clockwise movement of varying speeds. I was going to use the pot as a feedback to control the wiper motor but I need the counter clockwise movement as well.