1

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?

enter image description here

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); }

JRE
  • 71,321
  • 10
  • 107
  • 188
Aland
  • 13
  • 3

1 Answers1

1

A H-bridge can be used to control the direction of a DC motor. Taking the example of the Arduino Motor Shield Rev3:

The Arduino Motor Shield is based on the L298 (datasheet), which is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently.

Chester Gillon
  • 3,690
  • 1
  • 11
  • 15