I am designing a PCB to control a DC Motor's direction with an ATMega328P microcontroller. The output isn't enough for the DC motor so I used a TIP120 but now I can't control the way the motor is rotating. Is there a better way of doing that or using a different component?
The code for the Arduino in the picture is:
void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
}
void loop()
{
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(1000);
digitalWrite(3, LOW);
}
