0% found this document useful (0 votes)
16 views3 pages

Spin Direction Control

This document describes two experiments using an Arduino board to control a DC motor and servo motor. In the first experiment, an H-bridge motor driver and Arduino are used to control the direction of a DC motor by changing the polarity of the motor leads. The second experiment uses a potentiometer and Arduino to control the angular position of a servo motor by varying the pulse width of the signal to the servo. Diagrams show the circuit setup and motor positions for both experiments.

Uploaded by

MARIBETH AGUBA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

Spin Direction Control

This document describes two experiments using an Arduino board to control a DC motor and servo motor. In the first experiment, an H-bridge motor driver and Arduino are used to control the direction of a DC motor by changing the polarity of the motor leads. The second experiment uses a potentiometer and Arduino to control the angular position of a servo motor by varying the pulse width of the signal to the servo. Diagrams show the circuit setup and motor positions for both experiments.

Uploaded by

MARIBETH AGUBA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SPIN DIRECTION CONTROL

Tools:

Components Quantity

Arduino UNO R3 1

DC Motor 1

L293D H-Bridge Motor Driver 1

Breadboard 1

Method:
To set up the presentation, we began by connecting 5V and the ground of the IC
to 5V and the GND of Arduino, respectively. The DC motor connects to pins 1 and 2 of
the IC. Input 1 of the IC is di to digital pin 8 of the Arduino. On the other hand, input 2 of
the IC is joined to the digital pin 9 of the Arduino. The EN 1&2 of IC is associated with
digital pin 2 of the Arduino. The power of the IC corresponds to the positive terminal of
the breadboard to the 5V of the Arduino. Otherwise, the GND of the IC cooperated with
the negative terminal of the breadboard into the GND of the Arduino. The Arduino USB
cable connects and uploads the program to Arduino using Tinkercad software. The
power supply, battery, or USB cable is the need to provide power to Arduino.

Results and Discussion:


An H-Bridge circuit uses the direction of a DC motor's spin without switching the
leads to control. An electrical circuit known as an H-bridge may operate the motor in
both directions. There are several applications for H-bridges. Controlling the motors in
robots is one of the most popular uses. It is known as an H-bridge because it employs
four transistors coupled in another that the schematic representation of the device
resembles an "H."

Figure 2.1. Positive Lead in Spin Direction Control


In this figure, it shows the positive rpm of the DC motor in spin direction control.
Typically, DC motors only have two leads: a positive lead and a negative lead. The
motor rotates if you connect these two lines straight to a battery.

Figure 2.2 Negative Lead in Spin Direction Control

This figure indicates the negative rpm of the DC motor in spin direction control.
The armature shaft stops in a 3 second after it rotates in the positive lead then the motor
rotates in the opposite direction if the lead switches.

CONTROLLING A SERVO MOTOR USING POTENTIOMETER

Tools:

Components Quantity

Arduino Uno R3 1

Servo Motor 1

Potentiometer 1

L293D H-Bridge Motor Driver 1

10kΩ Resistor 1

Method:
Constructing the schematic of controlling a servo motor using potentiometer, the
pins are specified. The 10kΩ resistor connects to the positive and negative power
terminal of the breadboard to the 5V and GND of the Arduino. There are three terminals
of the potentiometer. The terminal 1 of the potentiometer connects to the GND while the
terminal 2 is connected to the 5V of the Arduino. On the other hand, the wiper terminal of
the potentiometer is directed to the digital pin A0 of the Arduino. Since the availability of
the ULN2003 driving IC were not in the Tinkercad, the L293D H-Bridge Motor Driver is
used. The power of the L293D H-Bridge Motor Driver is connected to the 5v of the
Arduino. The power and GND of the servo motor are connected to the 5V and GND of
the Arduino, respectively. Hence, the signal terminal of the servo motor is associated to
the digital pin ~9 of the Arduino. Even if the code is provided, we are urged to manually
write it out in order to improve our abilities. After that, launch the simulation by clicking
on the button in the upper right corner of the screen. Check to see if the specifications of
the project and codes were followed after entering the code. You are prepared to upload
if there are no mistakes

Results and Discussion:


A small device with an output shaft is called a servo motor. The shaft moves to
particular angular locations by providing the servo a coded signal. The servo will retain
the shaft's angular position if the coded signal determines on the input line. The angular
location of the shaft varies if the coded signal changes. In preview, radio-controlled
airplanes employ servos to position control surfaces like elevators and rudders. In
addition to robots, they utilize in puppets and radio-controlled automobiles.

Figure 3. Servo Motor at Rest and at 90º Angle

The first figure shows that the servo motor is at rest, and the simulation is not
ready. When the simulation begins, the servo motor changes its angle depending on the
net open position.

You might also like