I'm fairly new at microcontrollers. I have an Arduino Uno, and I wanted to use it to switch between two motors, using my DC power supply with 15V as their power source. I've tried it by hand (manually switching between the two) and it works how I want.
I want to switch at a rate of 10 Hz. When Motor 1 is off, Motor 2 is on. When Motor 2 is off, Motor 1 is on. How can I use the Uno to alternate these motors' connection to the power supply?