Arm Cortex (LPC 2148) Based Motor Speed Control
Arm Cortex (LPC 2148) Based Motor Speed Control
Arm Cortex (LPC 2148) Based Motor Speed Control
PROJECT REPORT
ON
Prof. S. P. JOLHE
In partial fulfillment of degree in
B.E. Electrical Engineering(E&P)
ABSTRACT
INDEX
SR. NO.
CONTENT
PAGE NO
ABSTRACT
INDEX
ii
LIST OF FIGURES
LIST OF TABLE
vii
CHAPTER 1
INTRODUCTION
CHAPTER 2
LPC 2148
2.1
General Description
2.2
Pin Diagram
2.3
2.4
Memory Organization
13
13
13
14
15
15
15
16
16
17
17
18
19
20
20
20
System Control
22
22
2.5.2 PLL
22
23
23
24
2.5
SR. NO.
CONTENT
PAGE NO.
24
24
2.6
Power Control
24
2.7
VPB Bus
25
2.8
25
2.9
Embedded ICE
26
2.10
Embedded Trace
26
2.11
Real Monitor
27
27
27
28
29
30
IMPLEMENTATION
36
3.1
37
3.2
Description of Component
37
37
40
42
43
46
46
49
54
4.1
54
4.2
55
4.3
57
CONCLUSION
60
REFERENCES
61
2.12
CHAPTER 3
3.3
CHAPTER 4
CHAPTER 5
LIST OF FIGURES
FIG. NO.
FIGURE NAME
PAGE NO.
2.1
2.2
MEMORY MAP
14
2.3
29
2.4
31
3.1
BLOCK DIAGRAM
36
3.2
SCHEMATIC DIAGRAM
37
3.3
38
SUPPLY UNIT
3.4
39
3.5
39
3.6
41
3.7
42
3.8
SWITCH SCHEMATIC
43
3.9
LCD DIAGRAM
44
3.10
LCD SCHEMATIC
45
3.11
46
3.12
L293D IC BOARD
47
3.14
49
3.15
49
ACTUAL VIEW
3.16
52
OF TRIAC
3.17
52
CIRCUIT
4.2
55
4.3
56
4.4
DC MOTOR CONTROL
56
FIG. NO.
FIGURE NAME
PAGE NO.
4.5
57
4.6
57
SIGNAL
4.7
58
SIGNAL
4.8
AC MOTOR CONTROL
58
LIST OF TABLE
TABLE NO.
TABLE NAME
PAGE NO.
2.1
2.2
32
3.1
PIN DESCRIPTION
48
3.2
MAXIMUM RATING OF
51
MOC3021
CHAPTER 1
INTRODUCTION
CHAPTER 1
INTRODUCTION
AC motors have been the workhorse of industry since the earliest days of
electrical engineering. They are reliable, efficient, cost-effective and need little or no
maintenance. In addition, ac motors such as induction and reluctance motors need no
electrical connection to the rotor, so can easily be made flameproof for use in
hazardous environments such as in mines, petrol refineries, etc.
In order to provide proper speed control of an ac motor, it is necessary to
supply the motor with a three phase supply of which both the voltage and the
frequency can be varied. Such a supply will create a variable speed rotating field in
the stator that will allow the rotor to rotate at the required speed with low slip. This ac
motor drive can efficiently provide full torque from zero speed to full speed, can
overspeed if necessary, and can, by changing phase rotation, easily provide bidirectional operation of the motor. A drive with these characteristics is known as a
PWM (Pulse Width Modulated) motor drive.
Drives and motors are an integral part of industrial equipment from
packaging,robotics, computer numerical control (CNC), machine tools, industrial
pumps,and fans, etc. Designing next-generation drive systems to lower operating
costsrequires complex control algorithms at very low latencies as well as a
flexibleplatform to support changing needs and the ability to design multipleaxissystems.
Traditional drivesystems based on ASICs, digital signal processors (DSPs),
andmicrocontroller units lack the performance and flexibility to address these needs.
So we use ARM controller.
The project is designed to control the speed of a DC and AC motor using an
ARM7 LPC2148 processor. The speed of motor is directly proportional to the voltage
applied across its terminals. Hence, if voltage across motor terminal is varied, then
speed can also be varied. This project uses the above principle to control the speed of
the motor by varying the duty cycle of the pulse applied to it, popularly known as
PWM control. The project uses input button interfaced to the processor, which are
used to control the speed of motor. Pulse Width Modulation is generated at the output
by the microcontroller as per the program. The program is written in Embedded C.
The average voltage given or the average current flowing through the motor will
change depending on the duty cycle, ON and OFF time of the pulses, so the speed of
the motorwill change. A motor driver IC is interfaced to the ARM7 LPC2148
processor board for receiving PWM signals and delivering desired output for speed
control. Further the project can be enhanced by using power electronic devices such
as IGBTs to achieve speed control higher capacity industrial motors.
CHAPTER 2
LPC 2148
CHAPTER 2
LPC 2148
Key features
Embedded ICE RT and Embedded Trace interfaces offer real-time debugging with
the On-chip Real Monitor software and high-speed tracing of instruction
execution.
One or two (LPC2141/42 vs. LPC2144/46/48) 10-bit ADCs provide a total of 6/14
analog inputs, with conversion times as low as 2.44 s per channel.
Two 32-bit timers/external event counters (with four capture and four compare
Channels each), PWM unit (six outputs) and watchdog.
Low power Real-Time Clock (RTC) with independent power and 32 kHz clock
input.
Multiple serial interfaces including two UARTs (16C550), two Fast I2C-bus (400
Kbit/s), SPI and SSP with buffering and variable data length capabilities.
60 MHz maximum CPU clock available from programmable on-chip PLL with
settling Time of 100 s.
Single power supply chip with POR and BOD circuits: CPU operating voltage
range of 3.0 V to 3.6 V (3.3 V 10 %) with 5 V tolerant I/O pads.
Symbol
Pin
P0.0 to P0.31
Type
I/O
Description
Port 0Port 0 is a 32-bit I/O port with individual
direction controls for each bit. Total of 31 pins of
the Port 0 can be used as a general purpose
bidirectional digital I/Os while P0.31 is output only
pin. The operation of port 0 pins depends upon the
pin function selected via the pin connect block.
Pins P0.24, P0.26 and P0.27 are not available.
P0.0/TXD0/
19
I/O
PWM1
P0.1/RXD0/
(GPIO).
21
I/O
PWM3/EINT0
P0.2/SCL0/
22
I/O
CAP0.0
I/O
P0.3/SDA0/
26
I/O
MAT0.0/EINT
1
(GPIO).
I/O
Symbol
Pin
Type
P0.4/SCK0/
27
I/O
CAP0.1/AD0.6
Description
P0.4 General purpose input/output digital pin
(GPIO).
I/O
P0.5/MISO0/
29
I/O
MAT0.1/AD0.
I/O
P0.6/MOSI0/
30
I/O
CAP0.2/AD1.0
I/O
P0.7/SSEL0/
31
I/O
PWM2/EINT2
P0.8/TXD1/
33
I/O
PWM4/AD1.1
O
Symbol
Pin
Type
P0.9/RXD1/
34
I/O
PWM6/EINT3
P0.10/RTS1/
Description
P0.9 General purpose input/output digital pin
(GPIO).
35
I/O
CAP1.0/AD1.2
P0.11/CTS1/
37
I/O
CAP1.1/SCL1
I
I/O
P0.12/DSR1/
38
I/O
MAT1.0/AD1.
P0.13/DTR1/
39
I/O
MAT1.1/AD1.
4
Symbol
Pin
Type
I
Description
AD1.4 ADC 1 input 4. Available in
LPC2144/46/48 only.
P0.14/DCD1/
41
I/O
EINT1/SDA1
I
I/O
P0.15/RI1/
45
I/O
EINT2/AD1.5
P0.16/EINT0/
46
I/O
MAT0.2/CAP0
(GPIO).
.2
P0.17/CAP1.2/
47
I/O
SCK1/MAT1.2
(GPIO).
I
I/O
Symbol
Pin
Type
P0.17/CAP1.2/
47
I/O
SCK1/MAT1.
Description
P0.17 General purpose input/output digital pin
(GPIO).
I/O
P0.18/CAP1.3/
53
I/O
MISO1/MAT1
(GPIO).
.3
I
I/O
P0.19/MAT1.2
54
I/O
/MOSI1/CAP1
(GPIO).
.2
O
I/O
P0.20/MAT1.3
55
I/O
/SSEL1/EINT
(GPIO).
I
P0.21/PWM5/
I/O
AD1.6/CAP1.
3
Symbol
Pin
Type
P0.22/AD1.7/
I/O
CAP0.0/MAT
Description
P0.22 General purpose input/output digital pin
(GPIO).
0.0
P0.23/VBUS
58
I/O
P0.25/AD0.4/
I/O
AOUT
P0.28/AD0.1/
13
I/O
CAP0.2/MAT
(GPIO).
0.2
P0.0 to P0.31
17
I/O
P0.0/TXD0/
19
I/O
PWM1
Symbol
P0.1/RXD0/
Pin
Type
21
I/O
PWM3/EINT0
P0.2/SCL0/
Description
P0.1 General purpose input/output digital pin
(GPIO).
22
I/O
CAP0.0
I/O
P0.3/SDA0/
26
I/O
MAT0.0/EIN
(GPIO).
T1
I/O
P0.4/SCK0/
27
I/O
CAP0.1/AD0.
I/O
P0.5/MISO0/
29
I/O
MAT0.1/AD0.
7
I/O
Symbol
P0.6/MOSI0/
Pin
30
Type
I/O
CAP0.2/AD1.
Description
P0.6 General purpose input/output digital pin
(GPIO).
I/O
P0.7/SSEL0/
31
I/O
PWM2/EINT2
can also be used as a general purpose RAM for data storage and code storage and
execution.
interrupt(s) being enabled. Activity of any enabled peripheral function that is not
mapped to a related pin should be considered undefined. The Pin Control Module
with its pin select registers defines the functionality of the microcontroller in a given
hardware environment. After reset all pins of Port 0 and 1 are configured as input with
the following exceptions: If debug is enabled, the JTAG pins will assume their JTAG
functionality; if trace is enabled, the Trace pins will assume their trace functionality.
The pins associated with the I2C0 and I2C1 interface are open drain.
Features
10 bit successive approximation analog to digital converter.
Measurement range of 0 V to VREF (2.0 V VREF VDDA).
Each converter capable of performing more than 400,000 10-bit samples per second.
Every analog input has a dedicated result register to reduce interrupt overhead.
Burst conversion mode for single or multiple inputs.
Optional conversion on transition on input pin or timer match signal.
Global Start command for both converters (LPC2142/44/46/48 only).
enabled. A DMA controller (available in LPC2146/48 only) can transfer data between
an endpoint buffer and the USB RAM.
Features:
Fully compliant with USB 2.0 Full-speed specification.
Supports 32 physical (16 logical) endpoints.
Supports control, bulk, interrupt and isochronous endpoints.
Scalable realization of endpoints at run time.
Endpoint maximum packet size selection (up to USB maximum specification) by
software at run time.
RAM message buffer size based on endpoint realization and maximum packet size.
Supports Soft Connect and Good Link LED indicator. These two functions are
sharing one pin.
Supports bus-powered capability with low suspend current.
Supports DMA transfer on all non-control endpoints (LPC2146/48 only).
One duplex DMA channel serves all endpoints (LPC2146/48 only).
Allows dynamic switching between CPU controlled and DMA modes (only in
LPC2146/48).
Double buffer implementation for bulk and isochronous endpoints given data
transfer. During a data transfer the master always sends a byte of data to the slave, and
the slave always sends a byte of data to the master.
to count cycles of the peripheral clock (PCLK) and optionally generate interrupts or
perform other actions when specified timer values occur, based on seven match
registers. The PWM function is also based on match register events.
The ability to separately control rising and falling edge locations allows the
PWM to be used for more applications. For instance, multi-phase motor control
typically requires three non-overlapping PWM outputs with individual control of all
three pulse widths and positions. Two match registers can be used to provide a single
edge controlled PWM output. One match register (MR0) controls the PWM cycle
rate, by resetting the count upon match. The other match register controls the PWM
edge position. Additional single edge controlled PWM outputs require only one match
register each, since the repetition rate is the same for all PWM outputs. Multiple
single edge controlled PWM outputs will all have a rising edge at the beginning of
each PWM cycle, when an MR0 match occurs. Three match registers can be used to
provide a PWM output with both edges controlled. Again, the MR0 match register
controls the PWM cycle rate. The other match registers control the two PWM edge
positions. Additional double edge controlled PWM outputs require only two match
registers each, since the repetition rate is the same for all PWM outputs.
With double edge controlled PWM outputs, specific match registers control
the rising and falling edge of the output. This allows both positive going PWM pulses
(when the rising edge occurs prior to the falling edge), and negative going PWM
pulses (when the falling edge occurs prior to the rising edge).
Features
Seven match registers allow up to six single edge controlled or three double edge
controlled PWM outputs, or a mix of both types.
The match registers also allow:
Continuous operation with optional interrupt generation on match.
Stop timer on match with optional interrupt generation.
Reset timer on match with optional interrupt generation.
Supports single edge controlled and/or double edge controlled PWM outputs. Single
edge controlled PWM outputs all go HIGH at the beginning of each cycle unless the
output is a constant LOW. Double edge controlled PWM outputs can have either edge
occur at any position within a cycle. This allows for both positive going and negative
going pulses.
Pulse period and width can be any number of timer counts. This allows complete
flexibility in the trade-off between resolution and repetition rate. All PWM outputs
will occur at the same repetition rate.
Double edge controlled PWM outputs can be programmed to be either positive
going or negative going pulses.
Match register updates are synchronized with pulse outputs to prevent generation of
erroneous pulses. Software must release new match values before they can become
effective.
May be used as a standard timer if the PWM mode is not enabled.
A 32-bit Timer/Counter with a programmable 32-bit Prescaler.
2.5.2 PLL
The PLL accepts an input clock frequency in the range of 10 MHz to 25 MHz.
The input frequency is multiplied up into the range of 10 MHz to 60 MHz with a
Current Controlled Oscillator (CCO). The multiplier can be an integer value from 1 to
32 (in practice, the multiplier value cannot be higher than 6 on this family of
microcontrollers due to the upper frequency limit of the CPU). The CCO operates in
the range of 156 MHz to 320 MHz, so there is an additional divider in the loop to
keep the CCO within its frequency range while the PLL is providing the desired
output frequency. The output divider may be set to divide by 2, 4, 8, or 16 to produce
the output clock. Since the minimum output divider value is 2, it is insured that the
PLL output has a 50 % duty cycle. The PLL is turned off and bypassed following a
chip reset and may be enabled by software. The program must configure and activate
the PLL, wait for the PLL to Lock, then connect to the PLL as a clock source. The
PLL settling time is 100 s.
chip output pins remain static. The Power-down mode can be terminated and normal
operation resumed by either a reset or certain specific interrupts that are able to
function without clocks. Since all dynamic operation of the chip is suspended, Powerdown mode reduces chip power consumption to nearly zero. Selecting an external 32
kHz clock instead of the PCLK as a clock-source for the on-chip RTC will enable the
microcontroller to have the RTC active during Power-down mode. Power-down
current is increased with RTC active. However, it is significantly lower than in Idle
mode. A Power Control for Peripherals feature allows individual peripherals to be
turned off if they are not needed in the application, resulting in additional power
savings during active and idle mode.
Processor*
: LPC2148
Clock speed
Clock Divisors
: 6 (or) 12
Data Memory
LCD
: 16x2 Backlight
LED indicators
: Power
RS-232
Power
Voltage Regulator
: 5V Onboard LM7805
Use 16/32 Bit ARM7 TDMI-S MCU No. LPC2148 from Philips (NXP)
Has 512 KB Flash Memory and 40KB Static RAM internal MCU
Use 12.00MHz Crystal, so MCU can process data with the maximum high speed
at 60MHz when using it with Phase-Locked Loop (PLL) internal MCU.
Has RTC Circuit (Real Time Clock) with 32.768 KHz XTAL and Battery Backup.
Has circuit to connect with standard 20 Pin JTAG ARM for Real Time Debugging
7-12V AC/DC Power Supply.
Has standard 2.0 USB as Full Speed inside (USB Function has 32 End Point).
Has Circuit to connect with Dot-Matrix LCD with circuit to adjust its contrast by
using 16 PIN Connector.
and current, is thus in both cases close to zero. PWM works also well with digital
controls, which, because of their on/off nature, can easily set the needed duty cycle.
PWM has also been used in certain communication systems where its duty cycle has
been used to convey information over a communications channel.
off times, and so the average power dissipation is quite low compared to the power
being delivered even when high switching frequencies are used.
Modern semiconductor switches such as MOSFETs or Insulated-gate bipolar
transistors (IGBTs) are quite ideal components. Thus high efficiency controllers can
be built. Typically frequency converters used to control AC motors have efficiency
that is better than 98 %. Switching power supplies have lower efficiency due to low
output voltage levels (often even less than 2 V for microprocessors are needed) but
still more than 70-80 % efficiency can be achieved. Variable-speed fan controllers for
computers usually use PWM, as it is far more efficient when compared to a
potentiometer or rheostat. (Neither of the latter is practical to operate electronically;
they would require a small drive motor).
Light dimmers for home use employ a specific type of PWM control. Home
use light dimmers typically include electronic circuitry which suppresses current flow
during defined portions of each cycle of the AC line voltage. Adjusting the brightness
of light emitted by a light source is then merely a matter of setting at what voltage (or
phase) in the AC half cycle the dimmer begins to provide electrical current to the light
source. In this case the PWM duty cycle is the ratio of the conduction time to the
duration of the half AC cycle defined by the frequency of the AC line voltage.
2.12.2 Pulse Width Modulation (PWM) in ARM LPC2148
The PWM is based on the standard Timer block and inherits all of its features,
although only the PWM function is pinned out on the LPC2141/2/4/6/8. The Timer is
designed to count cycles of the peripheral clock (PCLK) and optionally generate
interrupts or perform other actions when specified timer values occur, based on seven
match registers. It also includes four capture inputs to save the timer value when an
input signal transitions, and optionally generate an interrupt when those events occur.
The PWM function is in addition to these features, and is based on match register
events.
The ability to separately control rising and falling edge locations allows the
PWM to be used for more applications. For instance, multi-phase motor control
typically requires three non-overlapping PWM outputs with individual control of all
three pulse widths and positions.
Two match registers can be used to provide a single edge controlled PWM
output. One match register (PWMMR0) controls the PWM cycle rate, by resetting the
count upon match. The other match register controls the PWM edge position.
Additional single edge controlled PWM outputs require only one match register each,
since the repetition rate is the same for all PWM outputs. Multiple single edge
controlled PWM outputs will all have a rising edge at the beginning of each PWM
cycle, when an PWMMR0 match occurs.
Three match registers can be used to provide a PWM output with both edges
controlled. Again, the PWMMR0 match register controls the PWM cycle rate. The
other match registers control the two PWM edge positions. Additional double edge
controlled PWM outputs require only two match registers each, since the repetition
rate is the same for all PWM outputs.
With double edge controlled PWM outputs, specific match registers control
the rising and falling edge of the output. This allows both positive going PWM pulses
(when the rising edge occurs prior to the falling edge), and negative going PWM
pulses (when the falling edge occurs prior to the rising edge).
Name
Description
Access
Reset
Address
Value
PWMR
0xE0014000
0xE0014004
0xE0014008
0xE001400C
0xE0014010
the
Timer
Counter
PWMTC
is
controlled
PWMPC
is
reached,
the
Name
Description
Access
Reset
Address
Value
PWMMCR
0xE0014014
0xE0014018
0xE001401c
if
an
interrupt
is
Match
Register
0. R/W
the
PWMTC.
In
PWM
Match
Register
1. R/W
the
PWMTC.
In
Name
Description
Access
Reset
Address
Value
PWMMR2
PWM
Match
Register
2. R/W
0xE0014020
0xE0014024
the
PWMTC.
In
PWM
Match
Register
3. R/W
the
PWMTC.
In
Name
Description
Access
Reset
Address
Value
PWMMR4
PWM
Match
Register
4. R/W
0xE0014040
0xE0014044
the
PWMTC.
In
PWM
Match
Register
5. R/W
the
PWMTC.
In
CHAPTER 3
IMPLEMENTATION
CHAPTER 3
IMPLEMENTATION
The aim of this project is to implement ARM7 based motor controller. The
system is used to control speed of DC and AC motors through controller. The
overview of this project is described as.
The complete overview of our architecture is defined in the block diagram. In
our system we have to use 32 bit microcontroller (LPC 2148). The LPC 2148
generates pulse width modulation for controlling the motor.
Filter
In order to obtain a DC voltage of 0 Hz, we have to use a low pass filter. So
that a capacitive filter circuit is used where a capacitor is connected at the rectifier
output and a DC is obtained across it. The filter wavelength is essentially a DC
voltage with negligible ripples and its ultimately fed to the load.
Regulator LM7805
The output voltage from the capacitor is more filtered and finally regulated.
The voltage regulator is a device, which maintains the output voltage constant
irrespective of the change in supply variation, load variation and temperature changes.
Here we use fix voltage regulator namely LM7805. The IC LM7805 is a+5V regulator
which is used for the microcontroller.
Description
The LM78XX/LM78XXA series of three-terminal positive regulator are
available in the TO-220/D-PAK package and with several fixed output voltages,
making them useful in a wide range of applications. Each type employs internal
current limiting, thermal shut down and safe operating area protection, making it
essentially indestructible. If adequate heat sinking is provided, they can deliver over
1A output current. Although designed primarily as fixed voltage regulators, these
devices can be used with external components to obtain adjustable voltages and
currents.
Features of LM 7805
Output Current up to 1A
Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V
Thermal Overload Protection
Short Circuit Protection
Output Transistor Safe Operating Area Protection
The LCD's are lightweight with only a few millimetres thickness. since the
LCD's consume less power, they are compatible with low power electronic circuits,
and can be powered for long durations .The LCD's don't generate light is needed to
read the display. By using backlighting, reading is possible in the dark .The LCD's
have long life and a wide operating temperature range.
One of the most popular output devices for embedded electronics is LCD. The
LCD interface has become very simple. This is due to the availability modules for
LCDs. The LCD along with necessary controller (LCD Controller) and mounting
facility is made available in the module itself. The LCD controller takes care of
everything necessary for the LCD. We communicate with the LCD controller with the
help of a command set provided by the manufacturer.
This circuit consists of a Microcontroller and a LCD. This LCD is operating
with an 8-bit data bus. So totally 11 data lines are required (8 Data lines and 3 control
lines). The 8 bit data lines are connected to the Port1 and the 3 control lines to the
Port1.16-Port1.23. The EN line is called "Enable." This control line indicates to the
LCD that we are sending it data. To send data to the LCD, the EN should be low (0)
and then set the other two control lines and/or put data on the data bus. When the
other lines are completely ready, bring EN high (1) and wait for the minimum amount
of time required by the LCD datasheet (this varies from LCD to LCD), and end by
bringing it low (0) again.
The RS line is the "Register Select" line. When RS is low (0), the data is to be
treated as a command or special instruction (such as clear screen, position cursor,
etc.). When RS is high (1), the data being sent is text data, which should be displayed
on the screen. For example, to display the letter "T" on the screen we would set RS
high.
The RW line is the "Read/Write" control line. When RW is low (0), the
information on the data bus is being written to the LCD. When RW is high (1), the
program is effectively querying (or reading) the LCD. Only one instruction ("Get
LCD status") is a read command. All others are written commands so RW will almost
always be low.
L293D contains two inbuilt H-bridge driver circuits. In its common mode of
operation, two DC motors can be driven simultaneously, both in forward and reverse
direction. The motor operations of two motors can be controlled by input logic at pins
2 & 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01
and 10 will rotate it in clockwise and anticlockwise directions, respectively.
Enable pins 1 and 9 (corresponding to the two motors) must be high for
motors to start operating. When an enable input is high, the associated driver gets
enabled. As a result, the outputs become active and work in phase with their inputs.
Similarly, when the enable input is low, that driver is disabled, and their outputs are
off and in the high-impedance state.
Features:
Thermal shutdown
High-Noise-Immunity input
Pin no.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Function
Enable pin for motor active high
Input 1 for motor 1
Output 1for motor 1
Ground(0v)
Ground(0v)
Output 2 for motor 1
Input 2 for motor 1
Supply voltage for motors; 9-12 V (up to 36 V )
Enable for motor 2; active high
Input 1 for motor 1
Output 1 for motor 1
Ground(0v)
Ground(0v)
Output 2 for motor 1
Input 2 for motor 1
Supply voltage 5v (up to 36 V)
Name
Enable 1,2
Input 1
Output 1
Ground
Ground
Output 2
Input 2
VCC 2
Enable 3,4
Input 3
Output 3
Ground
Ground
Output 4
Input 4
Vcc 1
The light is proportional to the signal, so the signal is thus transferred to the
phototransistor. Optocouplers may also comes in few module such as the SCR,
photodiodes, TRIAC of other semiconductor switch as an output, and incandescent
lamps, neon bulbs or other light source.
The optocoupler usually found in switch mode power supply circuit in many
electronic equipment. It is connected in between the primary and secondary section of
power supplies. The optocoupler application or function in the circuit is to:
1.
2.
3.
4.
Ground isolation
If the optocoupler IC breakdown, it will cause the equipment to have low
power, blink, no power, erratic power and even power shut down once switch on the
equipment. Many technicians and engineers do not know that they can actually test
the optocoupler with their analog multimeter. Most of them thought that there is no
way of testing an IC with an analog meter.
This is the principle used in OptoTriacs and optoSCRs, which are readily
available in Integrated circuit (I.C.) form, and do not need very complex circuitry to
make them work. Simply provide a small pulse at the right time to the Light Emitting
Diode in the package. The light produced by the LED activates the light sensitive
properties of the Triac or Thyristor gate and the power is switched on. The isolation
between the low power and high power circuits in these optically connected devices is
typically several thousand volts.
TABLE 3.2 Maximum Rating of MOC3021
Rating
Infrared Emmiting Diode
Reverse Voltage
Forward Current- Continuous
Total power Dissipation@TA=25
C
Negligible Power in TRIAC Driver
Derate above 25C
Output Driver
Off-state Output Terminal Voltage
Peak Repetive Surge Current
(PW=5 ms, 120 pps)
Total power Dissipation @TA=25
C
Derate above 25C
Total Device
Isolation Surge Voltage(1)
(Peak ac voltage, 60Hz , 1 second
Duration)
Total power Dissipation @ TA=25
C
Derate above 25C
Junction Temperature Range
Ambient Temperature Operating
Range(2)
Storage Temperature Range(2)
Soldering Temperature(10 s)
Symbol
Value
Unit
VR
IF
PD
3
60
100
Volts
mA
mW
1.33
mW/C
VDRM
ITSM
400
1
Volts
A
PD
300
mW
mW/C
VISO
7500
Vac(pk)
PD
330
mW
TJ
TA
4.4
-40 to +100
-40 to +85
mW/C
C
C
Tstg
Tl
-40 to +150
260
C
C
2. TRIAC (BT136)
A TRIAC or Triode for Alternating Current is an electronic component
approximately equivalent to two silicon-controlled rectifiers joined in inverse
parallel (paralleled but with the polarity reversed) and with their gates connected
together. The formal name for a TRIAC is bidirectional triode thyristor. This results
in a bidirectional electronic switch which can conduct current in either direction when
it is triggered (turned on) and thus doesn't have any polarity. It can be triggered by
either a positive or a negative voltage being applied to its gate electrode (with respect
to A1, otherwise known as MT1). Once triggered, the device continues to conduct
until the current through it drops below a certain threshold value, the holding current,
such as at the end of a half-cycle of alternating current (AC) mains power. This makes
the TRIAC a very convenient switch for AC circuits, allowing the control of very
large power flows with milliampere-scale control currents. In addition, applying a
trigger pulse at a controllable point in an AC cycle allows one to control the
percentage of current that flows through the TRIAC to the load (phase control).
3. SNUBBER CIRCUIT
When driving an inductive load, triacs are designed with RC Snubber. These
commutation aid networks are badly optimized in most of applications
The triac is today the only bidirectional device able to control various loads
supplied by the domestic and industrial mains. It is often designed with a network
made of a resistor R and a capacitor C, the SNUBBER circuit.
The main function of this circuit is to improve the switching behavior of the
triac at turn off. At turn off the commutation of the triac is the transient phase during
which the load current is passing through zero and the supply voltage is reapplied to
the triac terminals.
When a TRIAC controls inductive loads, the mains voltage and the load
current are not in phase. To limit the slope of the reapplied voltage and ensure right
TRIAC turn-off, designer usually used a Snubber circuit connected in parallel with
the TRIAC. This circuit can also be used to improve TRIAC immunity to fast
transient voltages. Without Snubber circuit, the slope of reapplied voltage is limited
by the TRIAC capacitance between anode and cathode junction. The oscillating
circuit is constituted by the load, L and R, and the internal capacitance, CT, of the
TRIAC. For example, the typical internal capacitances of 1 A, 12 A and 24 A
TRIACs are respectively 12 pF, 90 pF and 180 pF (without direct voltage junction
polarisation, worst case). Without Snubber circuit and for most part of inductive
loads, the damping factor () is generally lower than 1.
CHAPTER 4
HARDWARE DESIGN
AND
RESULTS
CHAPTER 4
HARDWARE DESIGN AND RESULTS
The main cause behind the reduction of the voltage is delay PWM which can
be only produced by ARM (LPC 2148) controllers. In this controller, the power
devices used is triac. By varying the firing pulses to the triac either voltage equal to
the supply or voltage less than the supply voltage are obtained.
We know when the reduced voltage is applied, the power consumed or
absorbed also decreases proportionally. Hence the brightness of the lamp and also the
speed of the induction motor are reduced and also can be made equal to the maximum
values only. The hardware and software are very similar to each other, the only
difference is that the load and circuits are real and not virtual in the hardware. There
are totally 3 part in the hardware of the project. They are
After that 50% duty cycle PWM signal is given to DC motor driver IC L293D
DC motor runs at medium speed.
Again 90% duty cycle PWM signal is given to DC motor driver IC L293D dc
motor runs high speed.
Firstly 30% duty cycle PWM signal is given to MOC 3021 Opto-isolator, Diac
in MOC 3021 triggers triac gate only 30% of single pulse, i.e. triac is ON only for
30% time of total time period of that PWM pulse. AC motor runs at lower speed.
Now 50% duty cycle PWM signal is given to MOC 3021 Opto-isolator, Diac
in MOC 3021 triggers triac gate only 50% of single pulse, i.e. triac is ON only for
50% time of total time period of that PWM pulse. AC motor runs at higher speed.
APPLICATIONS
User friendly
Convenience to operate
CHAPTER 5
CONCLUSION
CHAPTER 5
CONCLUSION
This project deals with the design and analysis of PWM fed speed control of
induction motor. An analysis of control of the speed of induction motor is established
by a equivalent model circuit. The project has been successfully completed with the
main aim of controlling the speed of Induction motor with PWM technique using
ARM microcontroller. The project has been designed using Proteus, Keil software for
ARM microcontroller and LCD with the added advantages of flexibility and ease in
working. The implementation of project is also very easy and understandable. This is
a user friendly project in which proper care has been taken to keep the circuit
arrangement as required by the user.
We hereby conclude that our project will prove to be a very effective in
customer satisfaction and flexibility. It will run to its maximum base to meet user
requirements and provide ease of using along with careful handling of errors if any.
REFERENCES
1. ARM System Developers Guide Designing and Optimizing by Andrew N.
Sloss Elsevier publication, 2004.
2. Arm User Manual, Phillips, August 2005.
3. ARM SYSTEM-ON-CHIP ARCHITECTURE, SECOND EDITION by Steve
Furber, Pearson Education Limited,2000.
4. Introduction to LCD programming tutorial by Craig Steiner Copyright 1997 2005 by Vault information services LLC(http://8052.com/tutlcd.phtml).
5. High Speed CMOS Optocoupler (Datasheet) by Agilent Technologies (2005).
Agilent HCPL-7723 & HCPL-072350 MBd 2 ns PWD. Retrieved November 2,
2010.
6. Modern Applied Science Vol 5, No 3 (2011). A Novel Approach toAnalog Signal
Isolation through Digital Opto-coupler (YOUTAB).
7. Safety Considerations When Using Optocouplers and Alternative Isolators for
Providing Protection Against Electrical Hazards by Avago Technologies (2010),
January 2010. Retrieved November 5, 2010.
8. General theory of electrical machines by P. S. Bimbhra, Khanna Publishers.
9. Power Electronics by P.C. Sen, Tata McGraw Hill publishing Company.
10. R. Khan, M.M.S. Riyadh, PWM Speed Control of AC Single Phase Induction
Motor Using MCU Series Combined With TRIACTechnology, International
Journal of Computer and Electrical Engineering, Vol. 3, No. 6, December 2011.
11. Shruti Shrivastava, Jageshwar Rawat, Amit Agrawal, Controlling DC Motor
using Microcontroller (PIC16F72) with PWM, International Journal of
Engineering Research Volume No.1, Issue No.2, pp : 45-47.
12. Jeetender Singh Chauhan, Sunil Semwal, Microcontroller Based Speed Control
of DC Geared Motor Through RS-232 Interface With PC International Journal of
Engineering Research and Applications (IJERA), Vol. 3, Issue 1, January February 2013, pp.778-783.