Professional Documents
Culture Documents
Name : THARUN A
Roll No :191EC298
Department :ECE
Year/Semester : II/III
Mail id :tharuna.ec19@bitsathy.ac.in
DECLARATION
I affirm that the lab task work titled “Speed control of AC,DC & Special motors
using Arduino” being submitted as the record of original work done by us under the
guidance of Dr. Dheepanchakkravarthy A NAME OF THE SUBJECT HANDLING
FACULTY, Designation, Department of ECE.
THARUN A
191EC298
OBJECTIVES :
To control the speed of single phase AC induction motor by using
arduino controller. The single phase inverter converts dc voltage into ac
voltage. Single phase induction motor speed depends on the frequency of
inverter.
INTRODUCTION:
AC MOTOR :
The motor that converts the alternating current into mechanical
power by using an electromagnetic induction phenomenon is called an AC
motor. This motor is driven by an alternating current. The stator and the rotor
are the two most important parts of the AC motors. The stator is the
stationary part of the motor, and the rotor is the rotating part of the motor.
The AC motor may be single phase or three phase.
The three phase AC motors are mostly applied in the industry for
bulk power conversion from electrical to mechanical. For small power
conversion, the single phase AC motors are mostly used.The single phase AC
motor is nearly small in size, and it provides a variety of services in the home,
office, business concerns, factories, etc. Almost all the domestic appliances
such as refrigerators, fans, washing machine, hair dryers, mixers, etc., use
single phase AC motor.
TYPES OF AC MOTOR:
The AC motor is mainly classified into two types. They are the
synchronous motor and the induction motor.
Synchronous Motor :
Stator
Rotor
STATOR :
As its name indicates stator is a stationary part of induction motor. A
single phase AC supply is given to the stator of single phase induction motor.
ROTAR:
The rotor is a rotating part of an induction motor. The rotor connects the
mechanical load through the shaft. The rotor in the single-phase induction motor
is of squirrel cage rotor type.
Stator of Single Phase Induction Motor:
The stator of the single-phase induction motor has laminated stamping
to reduce eddy current losses on its periphery. The slots are provided on its
stamping to carry stator or main winding. Stampings are made up of silicon
steel to reduce the hysteresis losses. When we apply a single phase AC supply
to the stator winding, the magnetic field gets produced, and the motor rotates
at speed slightly less than the synchronous speed Ns. Synchronous speed Ns is
given by
Where,
f = supply voltage frequency,
P = No. of poles of the motor.
So, now there is a current flowing in the stator and magnetic field
revolving on the rotor, thus Faraday’s law of electromagnetic induction acts
on the rotor. According to this law, the revolving magnetic fields produce
electricity in the rotor which generates force ‘F’ that can rotate the rotor.
Applications of Single Phase Induction Motor
These motors find use in fans, refrigerators, Air-conditioners, Vacuum
cleaners, washing machines, centrifugal pumps, tools, small farming
appliances, blowers etc….These are mostly used for low power but constant
speed devices such as agricultural tools and machinery where three -phase
supply are not available. So, basically, we use single phase induction motors in
our daily life frequently.
PICTORIAL REPRESENTATION :
CONCLUSION :
Single phase power system is widely used in domestic
purpose,commercial purpose and to some extent in industrial purpose .As the
single phase system is more economical and the power requirement in most
of the houses,shops ,offices are small ,which can be easily met by single phase
system.The single phase induction motors are simple in construction,cheap in
cost,reliable and easy to repair and maintain .
TO CONTROL THE SPEED OF DC MOTOR USING ARDUINO
OBJECTIVE:
INTRODUCTION:
WORKING OF DC MOTOR:
DC motors include two key components: a stator and
an armature. The stator is the stationary part of a motor, while the
armature rotates. In a DC motor, the stator provides a rotating magnetic
field that drives the armature to rotate.
A simple DC motor uses a stationary set of magnets in the stator, and a coil
of wire with a current running through it to generate an electromagnetic
field aligned with the centre of the coil. One or more windings of insulated
wire are wrapped around the core of the motor to concentrate the magnetic
field.
The windings of insulated wire are connected to a commutator (a rotary
electrical switch), that applies an electrical current to the windings. The
commutator allows each armature coil to be energised in turn, creating a
steady rotating force (known as torque).
When the coils are turned on and off in sequence, a rotating magnetic field
is created that interacts with the differing fields of the stationary magnets
in the stator to create torque, which causes it to rotate. These key operating
principles of DC motors allow them to convert the electrical energy from
direct current into mechanical energy through the rotating movement,
which can then be used for the propulsion of objects.
ADVANTAGES OF DC MOTOR:
Starting torque of DC Series motor is comparatively higher than
other motors so this kind of motors are widely used for traction
applications
Series wound motors can use for AC or DC supply so it’s also
known as universal motors.
Compare with Shunt Motor DC series motor develop more power
for the same construction size.
DISADVANTAGES OF DC MOTOR:
Speed control and regulation of DC series motor are not good.
It is necessary to have a load before starting the DC series
motors. So Dc Series motors are not good to use where load does
not apply to the initial stage.
APPLICATIONS OF DC MOTOR:
Direct Current series motors are useful traction applications in
electrical such as locomotives and trolley cars.
DC Series Motors are also used for cranes and conveyor belt
where higher starting torque is required .
PICTORIAL REPRESENTATION:
EXPLANATION:
Arduino board.
So, we are generating a PWM pulse on this pin which is then applied on
Now in order to control this PWM pulse I have used the LDR sensor, now
decrease.
int Motor1 = 2;
int Motor2 = 3;
int PWMControl= 6;
int PWM_Value = 0;
void setup() {
pinMode(Motor1, OUTPUT);
pinMode(Motor2, OUTPUT);
pinMode(PWMControl, OUTPUT);
pinMode(PWM_Input, INPUT);
Serial.begin(9600);
}
void loop() {
PWM_Value = analogRead(PWM_Input);
PWM_Value = map(PWM_Value, 0, 1023, 0, 255);
analogWrite(PWMControl, PWM_Value);
if(Serial.available())
{
char data = Serial.read();
Serial.println(data);
if(data == 'C'){MotorClockwise();}
if(data == 'A'){MotorAntiClockwise();}
if(data == 'S'){MotorStop();}
}
}
void MotorAntiClockwise()
{
digitalWrite(Motor1, HIGH);
digitalWrite(Motor2, LOW);
}
void MotorClockwise()
{
digitalWrite(Motor1, LOW);
digitalWrite(Motor2, HIGH);
}
void MotorStop()
{
digitalWrite(Motor1, HIGH);
digitalWrite(Motor2, HIGH);
}
now we starting the simulation and then we can send the commands via
virtual Terminal and it will start moving and then by changing the LDR
INTRODUCTION :
SERVO MOTOR:
DC Servo motor
AC Servo motor
Positional rotation Servo motor
Continuous rotation Servo motor
Linear Servo motor
DC Servo Motor:
AC Servo Motor:
Linear servo motor is also similar the positional rotation servo motor
is discussed above, but with an extra gears to alter the o/p from circular to
back-and-forth. These servo motors are not simple to find, but sometimes
you can find them at hobby stores where they are used as actuators in
higher model airplanes.
Power:
The power wire mostly has a red colour, which connects to the
5V pin of the Arduino.
The Servo motor requires a considerable amount of power,
especially for high power servos. So, for multiple servos or
while using servos along with other pins, it is better to power
the servo motor separately with an external supply. Because
the power at the remaining pins would be interrupted during
its operation.
For external powering, connect the ground of the
arduino commonly with the -ve terminal of the external power
supply. And connect the supply terminal of the servo (+V) to
the +Ve terminal of the external supply.
Ground:
The ground wire typically has black or brown colour. It connects to
the ground pin of the Arduino.
Control signal:
The signal wire commonly has an orange colour. Yellow, white, blue
colours are also used for this connection. One of the Digital pins of
Arduino can be used for the signal connection. But, it is commonly used
on PWM pins (3, 5, 6, 9, 10, or 11). The servo is mostly connected to pin 9
on the Arduino board. Even the servo is not in use, the analogWrite ()
(PWM) functionality on pins 9 and 10 disables by the accessing of the
library function (except the Arduino Mega). Thus the remaining PWM pins
can use for analogwrite () (PWM) by connecting servos to the pin 9 or 10.
A servo sweep circuit moves the servo shaft in to and fro motion.
Which rotates the arm 180 degrees clockwise and 180 degrees anti-
clockwise repeatedly.
Code:
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup()
{
myservo.attach(9);
}
void loop()
{
for(pos = 0; pos <= 180; pos += 1)
{
myservo.write(pos);
delay(15);
}
for(pos = 180; pos>=0; pos-=1)
{
myservo.write(pos);
delay(15);
}
}
Code:
#include <Servo.h>
Servo servo1;
int potin;
void setup()
{
servo1.attach(9);
}
void loop()
{
potin = analogRead(A0);
potin = map(potin, 0, 1023, 0, 180);
servo1.write(potin);
delay(15);
}
The speed of the servo motor can be adjusted by the knob connected
to the analog read pin 0 of the Arduino.
Code:
#include <Servo.h>
Servo servo1;
int potin,pos;
void setup()
{
servo1.attach(9);
}
void loop()
{
for(pos = 0; pos <= 180; pos += 1)
{
potin = analogRead(A0);
potin = map(potin, 0, 1023, 0, 1000);
servo1.write(pos);
delay(potin); // dealy of 0 to 1000ms
}
for(pos = 180; pos>=0; pos-=1)
{
potin = analogRead(A0);
potin = map(potin, 0, 1023, 0, 1000);
servo1.write(pos);
delay(potin);
}
}
Code:
#include <Servo.h>
Servo servo1;
long num, delays;
int i=0;
void setup()
{
servo1.attach(9);
Serial.begin(9600);
Serial.println("Enter Position and delay = position , delay ");
// Separate the values of position and delay by a comma.
Serial.print("Enter Position and delay = ");
}
void loop()
{
while(Serial.available()>0)
{
num= Serial.parseInt();
Serial.print(num);
Serial.print(" degree , ");
delays = Serial.parseInt();
Serial.print(delays);
Serial.println(" ms");
Serial.print("Enter Position and delay = ");
}
while (i<num){
i++;
servo1.write(i);
delay(delays);
}
while (i>num){
i--;
servo1.write(i);
delay(delays);
}
i = num;
}
Servo Motors are used throughout many industries and have the following
advantages:
High efficiency
High output power relative to their size
More constant torque at higher speed
Closed-loop control
Quiet operation
Highly reliable
High ratio of torque to inertia
High acceleration
High-speed performance
Torque control
Smooth running
High accuracy
Small in size
Well suited to varying load applications
PICTORIAL REPRESENTATION :
EXPLANATION :
First of all, open your Proteus software and design the below simple
circuit.
Servo Motor has three pins, one of them goes to Vcc, other one to
GND while the center pin is the controlling pin and goes to any
my Arduino.
Next thing we need to do is to design the code for Arduino. So, open
your Arduino software and copy paste the above code in it.
Now compile this code and get your hex file. Its the same code as
Now, run your simulation and you will see that your Servo motor
will start moving from 90 degrees to -90 degrees and then back to 90
degrees and will keep on going like this, as shown in above figures:
Now when you start it , first of all it will show the Position A in
above figure then will move anticlockwise and pass the position B
and finally will stop at Position C and then it will move clockwise
CONCLUSION :
INTRODUCTION:
STEPPER MOTOR:
KNOWLEDGE REQUIRED :
The number of input pulses given to the motor decides the step angle
and hence the position of motor shaft is controlled by controlling the
number of pulses. This unique feature makes the stepper motor to be well
suitable for open-loop control system wherein the precise position of the
shaft is maintained with exact number of pulses without using a feedback
sensor.
If the step angle is smaller, the greater will be the number of steps per
revolutions and higher will be the accuracy of the position obtained. The
step angles can be as large as 90 degrees and as small as 0.72 degrees,
however, the commonly used step angles are 1.8 degrees, 2.5 degrees, 7.5
degrees and 15 degrees.
The direction of the shaft rotation depends on the sequence of
pulses applied to the stator. The speed of the shaft or the average motor
speed is directly proportional to the frequency (the rate of input pulses) of
input pulses being applied at excitation windings. Therefore, if the
frequency is low, the stepper motor rotates in steps and for high frequency,
it continuously rotates like a DC motor due to inertia.
Like all electric motors,it has stator and rotor . The rotor is the
movable part which has no windings, brushes and a commutator. Usually
the rotors are either variable reductance or permanent magnet kind. The
stator is often constructed with multiple and multiphase windings,usually
of three or four phase windings wound for a required number of poles
decided by desired angular displacement per input pulse.
There are several types of stepper motors are available in today’s market
over a wide range of sizes, step count, constructions, wiring, gearing, and
other electrical characteristics. As these motors are capable to operate in
discrete nature, these are well suitable to interface with digital control
devices like computers.
Due to the precise control of speed, rotation, direction, and angular
position, these are of particular interest in industrial process control
systems, CNC machines, robotics, manufacturing automation systems, and
instrumentation.
Based on the winding of the stator, stepper motors can also be classified
as
So, connect the two wires from one coil to outputs 1 and 2 of L293D and the
other two wires from second coil to outputs 3 and 4.
The 4 inputs of the L293D Motor Diver IC are given from Arduino UNO.
So connect them to any of the 4 digital I/O pins (here, we connected them
to pins 2, 3, 4 and 5 of Arduino UNO).
Understand the power requirements of your stepper motor and provide
necessary power supply. Wrong power supply would permanently
damage the motor.
The control of steps is done with the help of computer using serial monitor.
So, make sure that the RX and TX pins of the Arduino are not used as
digital I/O. Alternatively, we can control the steps or rotation of the motor
with the help of analog input via a potentiometer.
Two phase stepper excitation is another technique where two phases are
energised at a time. With this technique, the step count doesn’t vary from
the one phase excitation but the torque and speed is significantly increased.
But the disadvantage is it requires twice the power. The following image
shows a 4 step based operation of one phase and two phase excitation
methods.
There is another technique called Half Stepping. This is a combination of
one phase and two phase excitation. The step count is doubled i.e. half the
step angle can be achieved.
So, with half stepping, we can get double the resolution with along with
smoother operation. The image below demonstrates an 8 step “Half
Stepping” excitation method.
As mentioned earlier, the step angle of the motor used in this project is 1.80
i.e. 200 steps for full step excitation. In order to increase the resolution
(double the resolution), we will use half step excitation and achieve 400
step count.
In order to control the steps, we will use the serial monitor. In the program,
for clock wise rotation, ‘+’ symbol is assigned and for anti – clock wise
rotation, ‘–’ sign is used.
After selecting the direction, then we can enter the number of steps directly
anywhere between 1 and 400.
CODE:
Applications
The project demonstrates the working of a Stepper motor and Stepper
Motor Control using Arduino. Stepper motors are commonly used in
robots, CNC Machines, industrial automation, small appliances like
printers etc.
Due to their high accuracy and holding torque, stepper motors are
used where precision positioning is essential.
ADVANTAGES :
The percentage step error does not accumulate as the motor rotates.
It is able to run at wide range of speeds, including very slow speeds
without reduction gearing.
Stepper motor provide excellent response during start, stop and
reverse mode.
It is highly reliable since no brushes or commutator are used. Its life
time depend on life of the bearing.
Stepper motor control circuit is simple and low cost. It is mainly used
for low power applications.
PICTORIAL REPRESENTATION:
EXPLANATION :
The L293D chip has 16 pins with 4 inputs (IN1, IN2, IN3 and IN4)
and 4 outputs (OUT1, OUT2, OUT3 and OUT4). The 4 outputs are
connected to the bipolar stepper motor as shown in the circuit
diagram.
The L293D has 2 VCC pins: VCC1 (pin #16) and VCC2 (pin #8). VCC1
is connected to Arduino +5V pin. VCC2 is connected to another
power source (positive terminal) with voltage equal to motor
nominal voltage, it’s labeled in the circuit diagram as V
Motor (VMotor = motor voltage). So if we have a stepper motor with
nominal voltage of 5V we’ve to connect VCC2 to +5V (Arduino 5V
output shouldn’t be used) and if the stepper motor nominal voltage is
12V we’ve to connect VCC2 to +12V (negative terminal of this source
is connected to circuit ground)…
CONCLUSION :