Skip to content

This task is one of the tasks required in Smart Methods training program.

Notifications You must be signed in to change notification settings

a-dossari/Arduino-with-DC-motor-and-relays

Repository files navigation

Make DC motor move by using Arduino.

As you can see in the file, when we hold the button, the motor will move clockwise due to the right relay, and then counterclockwise due to the left relay.

To build the circuit, I used:

  • Arduino board.

  • DC motor.

  • Button for the DC motor.

  • Two relays (instead of L298 motor driver).

  • Two 2N2222 transistors for the relays.