+21622886281
Arduino DC Motor

Running a DC motor with Arduino in both directions

Purpose of this tutorial:

In this tutorial we will order a DC motor by the Arduino board in both directions:

  1. the DC motor rotates in a direct direction for 3 seconds.
  2. Then it rotates in an indirect direction for 3 seconds.
  3. Finally It stops for 1 second and we start step 1.

Necessary components

  • Arduino UNO
  • DC Motor
  • SN754410 motor controller
  • 4 batteries of 1.5V
  • Connecting wires
  • Test plate

Mounting

Program

Here is the program that allows to control a DC motor by the Arduino.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top