KEMBAR78
Mechatronics - All 5 Units Notes | PDF | Programmable Logic Controller | Input/Output
0% found this document useful (0 votes)
48 views217 pages

Mechatronics - All 5 Units Notes

Uploaded by

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

Mechatronics - All 5 Units Notes

Uploaded by

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

www.rejinpaul.

com

INTRODUCTION

• 1969 -The ‘mechatronics’ word introduced by Tessturo Mori. He was a senior engineer of Japanese
company Yaskawa Electric Corporation.

• 1971 – the company was granted the trademark rights on the word.

• 1971- 80- mostly the servo technology is used in mechatronics

• 1981-90-IT introduced. Microprocessors were embedded in Mechanical system


www.rejinpaul.com

• 1991 -2000 – Communication technology was added. Remote


operation and robotics were developed .

• 1996 – 1st journal IEEE on mechatronics was released.

• After 2000, finds application in aerospace, defence, bio-mechanics,


automotive electronics, banking(ATM) etc.,
www.rejinpaul.com

DEFINITION

• Mechatronics is “ the synergistic integration


of mechanics and mechanical engineering,
Electronics, computer technology, and IT to
produce or enhance products and system”
www.rejinpaul.com

Graphical representation of mechatronics


www.rejinpaul.com

Elements of mechatronics system


Actuators and
sensors

Signals and
conditioning

Digital logic
systems

Software and data


acquisition systems

Computers and
display devices
www.rejinpaul.com
Elements of mechatronics system
• Actuators and sensors
• Actuators – pneumatic & Hydraulic actuator, electromechanical actuators,
electrical motor such as DC motor, AC motor, stepper motor, servo motor & piezo
electric actuators
• Sensors – linear and rotational sensor, acceleration sensor, force, torque and
pressure sensor, temperature sensor, proximity sensors, light sensors
• Signals and conditioning
• Two types: input and output
• Input signal conditioning devices: discrete circuits, amplifiers, analog to
digital(A/D) convertors, Digital to Analog (D/A) convertors.
• Output signal conditioning devices: amplifiers, Digital to Analog (D/A) convertors,
display decoders (DD) convertors, power transistors.
www.rejinpaul.com
Elements of mechatronics system
• Digital logic systems
• Logic circuits, micro controllers, programmable logic controllers(PLC), sequencing
and timing controls, control algorithm.

• Software and data acquisition systems


• Data logger, computer with plug in boards

• Computers and display devices


• LED, CRT, LCD, digital displays etc.,
www.rejinpaul.com

Examples of mechatronics systems


• NC and CNC machine tools, flexible manufacturing system, Prototyping
& robots
• Photo copiers, laser printers & fax machines
• Automatic washing machines automatic ovens
• Automatic teller machine (ATM)
• Coin counter
• Automatic/digital camera, digital watch
• CT scan system, automatic blood testing equipment
• Automatic sliding door
www.rejinpaul.com

Advantages of Mechatronics systems


• Cost effective and good quality products
• High degree of flexibility to modify or redesign
• Very good performance characteristics
• Wide area of applications
• Greater productivity in case of manufacturing organization
• Posibility or remote controlling as well as centralized monitoring and
control
• Greater extend of machine utilization
www.rejinpaul.com

Disadvantages of Mechatronics systems


• High initial cost
• Multi-disciplinary engineering background required to design and
implementation
• Need of highly trained workers
• Complexity in identification and correction of problem in the system
www.rejinpaul.com

System
www.rejinpaul.com

Measurement system

Liquid level measurement system


www.rejinpaul.com

Control systems

• A control system refers to a group of physical


component connected or related in such a
manner as to command direct or regulate
itself or another system.
www.rejinpaul.com

Cooling level control system

Steering control system of an automobile


www.rejinpaul.com

Temperature and blood pressure control


system of human body
www.rejinpaul.com

TYPES OF CONTROL SYSTEM

•Open loop control system


•Closed loop or feedback control system
www.rejinpaul.com

Open loop control system


• Open loop system are systems in which the output of
a system is not used as a variable to control the
system.
www.rejinpaul.com

Element of open loop control systems

Bread toaster (open loop ) control system


www.rejinpaul.com

Closed loop control system

• Closed loop system uses on a feed back loop to control the operation of
the system.
www.rejinpaul.com

Room heating (Closed loop) control system


Open loop system • Clowsw
edw.lroeo
jinppsayusl.tceom
• It does not uses feedback • It uses feedback system
• It is less accurate • It is more accurate
• It is simple in construction
• It is complicated in
• Presence of non-linearity causes
malfunctioning construction
• It perform accurately even
• The response is slow because in presence of non-
manual control linearity
• Easy maintenance because of no
complex electronic circuit • It perform task faster than
• Cost is less open loop
• It is difficult to maintain
and repair
• Cost is more
Automatic tank level contrwowl ws.yresjintpeam
ul.com
www.rejinpaul.com

Sequential controllers

• A sequential control involve sequential execution of well defined


operations.
www.rejinpaul.com
The working of modern automatic washing
machine is
• Step 1 : pre-wash cycle-(Cold water wash)

• Step 2: main wash cycle- (Hot water wash)

• Step 3: rinse cycle- (Number of preset time)

• Step 4: spin cycle- (Drain the water from clothes)


www.rejinpaul.com

Block diagram of automatic washing machine system


www.rejinpaul.com

Elements of control system for an automatic camera


www.rejinpaul.com

Concept of mechatronic approach


www.rejinpaul.com
Emerging area of mechatronics
• Machine vision
• Automation and robotics
• Development of unmanned vehicles
• Design of subsystem for automotive engineering
• Sensing and control system
• Operation and maintenance of CNC machine
• Expert system and artificial intelligence
• Industrial electronics and consumer products
• Medical mechatronics and medical imaging systems
• Micro/nano mechatronics
• Computer integrated manufacturing (CIM) system
www.rejinpaul.com
Need for mechatronics

• Dynamic market conditions


• Producing next generation products
• Integration of modern technologies in products
• Variety in product ranges
• Batch production runs
• Change in design perspective
• Product quality and consistency
• Ease of reconfiguration of the process
• Demand for increased flexibility
www.rejinpaul.com
Classification of Mechatronics
www.rejinpaul.com

Working of a four stroke SI engine


www.rejinpaul.com

Elements of control system for an


electronic engine management system
www.rejinpaul.com

UNIT II
8085 MICROPROCESSOR AND
8051 MICROCONTROLLER
www.rejinpaul.com

MICROPROCESSOR
• It is a semiconductor component that incorporates the functions of a central
processing unit (CPU) on a single integrated circuit (IC) . i.e., the central
processing unit (CPU) built on a single IC is called microprocessor.
www.rejinpaul.com

MICROPROCESSOR
• It is multipurpose, programmable and clock driven,
• Register based electronic device that reads binary instructions from a
storage device called memory,
• Accept binary data as input, process the data according to the instruction
and provides results as output.
www.rejinpaul.com

Functional Block diagram of Microprocessor

ALU Register Array

Control
Microprocessor
www.rejinpaul.com

Functional Block diagram of Microprocessor

• ALU (Arithmetic and Logic Unit)


• It carries out arithmetic and logic operations on 8 bit word.
• Arithmetic operation – addition, subtraction , multiplication , division etc.,
• Logic operation - AND,OR,EX-OR
• The content of accumulator and temporary register are the input to the ALU.
• ALU output is stored in accumulator
• Register array www.rejinpaul.com
• Register is a storage unit within the microprocessor used to store the data,
address of instruction of any program.
• Microprocessor contained 6 general purpose register it has 8- bit memory
• Registers are B,C,D,E,H and L
• To hold 16-bit data a combination of two 8-bit registers can be used.
• The combination of two 8-bit registers is known as Register Pair (BC, DE and HL).
• These Registers are used to store data temporarily during execution of the
program.
www.rejinpaul.com

• Control Unit
• The timing and control unit acts as the brain of a computer.
• It controls all operations of the CPU.
• It controls input, output and all other devices connected to the CPU.
www.rejinpaul.com

Evolution of Microprocessor

• First generation Microprocessor


• 1st Microprocessor, Intel 4004, a 4 bit PMOS Microprocessor introduced in
1971 by the Intel corporation, USA.45 instructions and 2300 transistors
• It has limited memory-simple aplications.
• An enhanced version of Intel 4004 is Intel 4040.
• e.g., Toshiba’s 73472, Rockwell International’s PPS-4 National IMP-4 etc.,
www.rejinpaul.com

Evolution of Microprocessor

• Second generation Microprocessor


• In 1972, Intel introduced 8- bit Microprocessor named as Intel 8008, which
also uses PMOS technology.
• But this technology was slow and not compatible with TTL logic
• In 1973, Intel introduced more powerful and fast 8- bit NMOS
Microprocessor called Intel 8080-3 power supplies.
• 1975-Intel 8085 is the improved version of Intel 8080
www.rejinpaul.com

• Third generation Microprocessor


• In 1978 Intel introduced a 16- bit Microprocessor called Intel 8086.
• Other 16- bit Microprocessor are Intel 80186, Intel 80286, zilog’s z8000,
Motorola’s 68000, 68010 etc.,
• Forth generation Microprocessor
• In 1980-32bit-Iapx432-not popular
• In 1985 Intel introduced a 32- bit Microprocessor called Intel 60386-desktop -
386MP
• Fifth generation Microprocessor
• Intel i860 is a 64 bit RISC microprocessor
www.rejinpaul.com

Architecture of 8085

• Three main section


• ALU
• Timing and Control unit-
• Set of register
ARCHITECTURE OFw8w0w8.re5jinpaul.com
www.rejinpaul.com

• ALU
• Addition, Subtraction, Logical AND,OR…etc
• Timing and Control Unit
• timing and control signals –execution of instructions
• Controls the entire operation of the microprocessor
• Register
• 1- 8 bit Accumulator….i.e.-register A (ACC)
• 6-8 bit general purpose register (B,C,D,E,H & L)
• 1- 16 bit register –SP(Stack Pointer)
• 1 -16 bit –PC (Program Counter)
• Instruction register
• Temporary register
• Flag register
www.rejinpaul.com

• Flag register
• Carry flag (CY) – it is set, If carry or borrow occurs during the arithmetic
operation.
• Parity flag (P) – it is set, if the result has even number of it otherwise made 0.
• Auxiliary carry flag (AC) – Binary coded decimal operations (BCD)
• Zero flag (z) – is set if the result becomes 0
• Sign flag (S) – is set if the result becomes –ve, if +ve, it is set to 0
• 2 bit (don’t care )
www.rejinpaul.com

Pin diagram
www.rejinpaul.com

Signals in 8085
• 6 group of signals
• Address bus (A15-A8)-
• unidirectional
• Data bus (AD7-AD0)
• bi-directional both data and
address
• Control and Status signals
• ALE (Address Latch Enable)
• RD,WR,IO/M,S0,S1
• Power supply and Clock frequency
• VCC +5
• VSS-Ground
• X1,X2
• CLK
www.rejinpaul.com

• Externally initiated signals


• INTR
• INTA
• TRAP
• RST 7.5,RST6.5,RST 5.5
• READY
• HOLD
• RESET IN
• RESET OUT
• HLDA
• Serial I/O Ports
• SID
• SOD
www.rejinpaul.com

ADRESSING MODES IN 8085

• Direct addressing
• Register addressing
• Register indirect addressing
• Immediate addressing
• Implicit addressing
www.rejinpaul.com

• Direct addressing
• LDA 240H (Load register A with the contents of memory location 240FH)
• STA 2400H (Store the content of the accumulator in the memory location
2400H)
• Register addressing
• MOV B, D (move the content of register D to register B)
• INX H (increment the content of [H-L] register pair
www.rejinpaul.com

• Register indirect addressing


• LXI H, 2500H (Load H-L pair with 2500H)
• MOV A, B (move the content of the memory location, whose address is in H-L
pair(H-L Pair) to accumulator)
• HLT (halt)
• Immediate addressing
• MVI A, 05 (Move 05 in register A)
• 3E, 05 (the code format of an instruction)
www.rejinpaul.com

• Implicit addressing
• There are certain instruction which operate the content of the accumulator.
• Such instruction do not require the address of the operand
• CMA
• RAL
• RAR
www.rejinpaul.com

Instruction sets 8085

• Data transfer group


• Arithmetic group
• Logical group
• Branch group
• Stack, I/O and Machine control group
www.rejinpaul.com
Data transfer group

• MOV r1,r2
• MOV r, M (Move the content of memory to
register)
• MOV M, r
• MVI r1, data (Move Immediate DATA to register)
• MVI M, data
• LDA data (Load accumulator direct)
• STA addr (store accumulator direct)
• XCHG (exchange the content of H-L with D-E pair)
www.rejinpaul.com

• LHLD addr (Load HL pair direct)


• SHLD addr (Store HL pair direct)
• STAX xp ( store accumulator Indirect)
www.rejinpaul.com
Arithmetic group

• ADD r • INR r
• ADD M • INR M
• ADI data • DCR r
• ADC r • DCR M
• ADC M
• SUB r
• SUB M
• SUI data
• SBB r
• SBB M
www.rejinpaul.com
Logical group

• ANA r • CMA (complement acc)


• ANA M • CMC(complement carry)
• ANI data • CMP r (compare)
• ORA r • CMP M
• ORA M • CPI data
• ORI data • RLC (rotate)
• XRA r • RRC
• XRA m • RAL
• XRI data • RAR
www.rejinpaul.com
Branch group

• Two branch instruction

• Conditional
• The conditional branch instructions
transfer the program to the specified
label when certain condition is
satisfied
• Unconditional
• The Unconditional branch instructions
transfer the program to the specified
label when certain condition is not
satisfied
www.rejinpaul.com

• Conditional jumb addr (label)


• If the condition is true and the program jumps to the specified label, the
execution of a conditional jump takes 3 machine cycles and 10 states
• If the condition is not true, only two machine cycles and 7 states are required
for the execution of the instruction.
www.rejinpaul.com

• JZ addr (label) [jump if the result is zero]

[PC] address (label), jump if z=0

Machine cycle – 2/3


States – 7/10
Addressing mode – Immediate
Flags - None
www.rejinpaul.com

• JNZ addr [ jump if the result is not zero]


[PC] address (label), jump if z=1

• JC addr [ jump if there is a carry ]


[PC] address (label), jump if CS = 1

• JNC addr [ jump if there is no carry ]


[PC] address (label), jump if CS = 0
www.rejinpaul.com

• JP addr [ jump if the result is plus)


[PC] address (label), jump if S = 0

• JM addr [ jump if the result is minus)


[PC] address (label), jump if S = 1
• JPE addr [ jump if even parity)
[PC] address (label), jump if P = 0
• JPE addr [ jump if odd parity) www.rejinpaul.com
[PC] address (label), jump if P = 1

•CALL addr (label)


• Call the subroutine identified by the operand
• CC addr (call subroutine if carry status CS=1)
• CNC addr (call subroutine if carry status CS=0)
• CZ addr (call subroutine if result is zero)
• CNZ addr (call subroutine if result is not zero)
• CP addr (call subroutine if result is plus)
• CM addr (call subroutine if result is minus)
• CPE addr (call subroutine if even parity)
• CPOE addr (call subroutine if odd parity)
www.rejinpaul.com

• Unconditional
• RET(Return from Subroutine)
• CALL addr
• RSTn (Restart)
www.rejinpaul.com

Stack ,I/O and Machine control Group

• PUSH rp [push the content of register pair to stack)


• PUSH PSW [push the program status to word]
• POP rp [pop the content of register pair which was saved from the
stack]
• POP PSW
• IN PORT
• OUT PORT
• EI (enable interrupts)
www.rejinpaul.com

• DI(disable interrupts)
• HLT (halt)
• NOP( notion oper)
• RIM(read interrupts mask)
• SIM (set interrupts mask)
www.rejinpaul.com

SIM(Set Interrupts Mask)


www.rejinpaul.com

RIM (Read Interrupts Mask)


www.rejinpaul.com

Timing diagram of 8085

• Opcode fetch cycle (4T or 6T)


• Memory Read cycle (3T)
• Memory write cycle (3T)
• I/O read cycle (3T)
• I/O write cycle (3T)
• Interrupt acknowledge (6T or 12T)
• Bus idle cycle (2T or 3T)
www.rejinpaul.com

Opcode fetch cycle


www.rejinpaul.com

Memory Read cycle


www.rejinpaul.com
Memory write cycle
www.rejinpaul.com

I/O read cycle


www.rejinpaul.com
I/O write cycle
www.rejinpaul.com

Microcontroller

• A Microcontroller is a small computer on a single integrated circuit


containing a processor core, memory and programmable
input/output peripherals.
www.rejinpaul.com

Features Microcontroller

• 8 bit CPU
• On chip oscillator
• 4Kb of ROM
• 128 bytes of RAM
• 21 special functions register
• 32 I/O lines
• 64 KB address space for external data memory
• 64 KB address space for program memory
• 2 16-bit timer/counter
www.rejinpaul.com

Block diagram of 8051


www.rejinpaul.com

UNIT 3
PROGRAMMABLE PERIPERAL INTERFACE
www.rejinpaul.com

Content

• Introduction
• Architecture of 8255
• Keyboard interfacing
• LED display –interfacing
• ADC and DAC interface
• Temperature Control
• Stepper Motor Control
• Traffic Control interface
www.rejinpaul.com

Introduction
• To communicate with the outside world, microprocessor use peripherals
(I/O devices)
• Input devices – Keyboards, A/D converters etc.,
• Output devices – CRT, Printers, LEDs etc.,
• Peripherals are connected to the microprocessors through electronic
circuit known as interfacing circuits.
www.rejinpaul.com

Microprocessors unit with I/O devices

Input Output
Micro
devices devices
(keyboard) processors
(LED)
Input Output
peripherals peripherals
www.rejinpaul.com

• Some of the general purpose interfacing devices


• I/O ports
• Programmable peripherals interface (PPI)
• DMA controllers
• Interrupt controller

• Some of the special purpose interfacing devices


• CRT controller
• Keyboard
• Display
• Floppy Disc controllers
www.rejinpaul.com
Peripheral interfacing Chips are used
generation of I/O ports
• Programmable peripherals interface Inter 8255 (PPI)
• Programmable Interrupt controller (PIC) Intel 8259
• Programmable communication interface (PCI) Intel 8251
• Keyboard display Controller Intel 8279
• Programmable counter /Inverter timer Intel 8253
• A/D and D/A Converter Interfacing
www.rejinpaul.com

Advantages

• To perform specific functions by giving a control word to the internal


register.
• Control word –instructions informs the peripheral about various
functions to perform.
• Format (CW) specified by the manufacturer.
www.rejinpaul.com

Microprocessors unit with I/O devices

Input
Micro Output
devices PPI 8279
proce device
(key 8255 Display
ssors (LED)
board)

Peripheral Display
Interface Interface
www.rejinpaul.com

Address Space Partitioning

• The Microprocessors uses 16 bit wide address bus for addressing


memories and I/O devices.
• Using 16 bit wide address bus, it can access 216 = 64k bytes of
memory and I/O devices
• Two schemes for the allocation of addresses to memories and I/O
devices
• Memory mapped I/O
• I/O mapped I/O
www.rejinpaul.com

Memory mapped I/O

• It has only one address space


• Address space is defined as the set of all possible addresses that a
microprocessor can generate
• Some addresses assigned to memories and Some addresses to I/O
devices
• Memory locations are assigned with addresses from 8000 to 84FF
• I/O devices are assigned with addresses from 8500 to 85FF
www.rejinpaul.com

I/O mapped I/O scheme

• In this scheme, addresses assigned to memories locations can also be


assigned to I/O devices
• Since the same address may be assigned to memories locations or an
I/O devices
• The microprocessor has a signal to distinguish whether the address
on the address bus is for memories locations or an I/O devices
www.rejinpaul.com

I/O mapped I/O scheme

• When signal is high, then address on the address bus is for an I/O
devices
• When signal is low, then address on the address bus is for memory
locations
• Two extra instruction IN and OUT are used to address I/O devices.
• The IN instruction is used to read the data of an input devices.
• The OUT instruction is used to send the data of an input devices.
• This scheme is suitable for a large system.
www.rejinpaul.com
PROGRAMMABLE PERIPHERALS INTERFACE INTER
8255 (PPI)
www.rejinpaul.com

Operating mode of 8255

• Bit Set Reset (BSR) Mode


• I/O Mode
www.rejinpaul.com

Bit Set Reset (BSR) Mode

BSR control word format


www.rejinpaul.com

I/O Mode

• The 8255 has the following 3 modes of operation


• Mode 0 – Simple Input/output
• Mode 1 – Input / Output with the Handshake or strobed
• Mode 2 – Bi-directional I/O
www.rejinpaul.com

I/O Mode

Mode 0 – Simple Input/output


• Port A and port B are used as two simple 8-bit I/O port
• Port C as two 4-bit port
• Features
• Outputs are latched
• Inputs are buffered not latched
• Ports do not have handshake or interrupt capability
www.rejinpaul.com

I/O Mode
• Mode 1 – Input / Output with the Handshake
• Input or output data transfer is controlled by handshaking signals.
• Handshaking signals are used to transfer data between devices whose data
transfer speeds are not same.
• Port A and Port B are designed to operate with the Port C.
• When Port A and Port B are programmed in Mode 1, 6 pins of port C is used for
their control.
www.rejinpaul.com

I/O Mode
• D0-D7 data bus
– bi directional, tri state data bus line
– It is used to transfer data and control word from 8085 to 8255
• RD (Read)
– When this pin is low, the CPU can read data in the port or status word through
the data buffer
• WR (write)
– When this pin is low, the CPU can write data in the port or in the control register
through the data buffer
www.rejinpaul.com

I/O Mode
• Mode 2 – Bi-directional I/O
• Port A can be programmed to operate as a bidirectional port.
• The mode 2 operation is only for port A
• When port A is programmed in Mode 2, the Port B can be used in either
Mode 1 or Mode 0.
• Mode 2 operation the port a is controlled by PC3 to PC7 of port C.
www.rejinpaul.com

PIN DIAGRAM
OF 8255
www.rejinpaul.com
www.rejinpaul.com

PROGRAMMING and OPERATION of 8255

• Programming in MODE 0
• D7 –set to 1
• D6,D5,D2- all set to 0 –MODE 0
• D4,D3,D1 and D0- determine weather the corresponding ports are to
configured as input or output
A B GROUP Awww.rejinpaOuUl.PcBom
GR
D4 D3 D1 D0 PORT A PORTC U PORT B PORT C L

0 0 0 0 OUT OUT OUT OUT


0 0 0 1 OUT OUT OUT IP
0 0 1 0 OUT OUT IP OUT
0 0 1 1 OUT OUT IP IP
0 1 0 0 OUT IP OUT OUT
0 1 0 1 OUT IP OUT IP
0 1 1 0 OUT IP IP OUT
0 1 1 1 OUT IP IP IP
1 0 0 0 IP OUT OUT OUT
1 0 0 1 IP OUT OUT IP
1 0 1 0 IP OUT IP OUT
1 0 1 1 IP OUT IP IP
1 1 0 0 IP IP OUT OUT
1 1 0 1 IP IP OUT IP
1 1 1 0 IP IP IP OUT
www.rejinpaul.com
Programming in MODE 1
www.rejinpaul.com

• IBF- input buffer full


• INTR- interrupt request
• INTE-interrupt enable

• OBF-output buffer full


• INTR-interrupt request
• INTE-interrupt enable
www.rejinpaul.com

Programming in MODE 2
www.rejinpaul.com
www.rejinpaul.com

Interfacing cable
www.rejinpaul.com

Basic Key operation


www.rejinpaul.com
www.rejinpaul.com

2 X 2 Key operation
www.rejinpaul.com

Keyboard Microprocessor Interface software Flowchart


www.rejinpaul.com

INTERFACING-keyboard
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com

LED Operation
www.rejinpaul.com
www.rejinpaul.com
Microprocessor interface to LED (Common
anode)
www.rejinpaul.com
www.rejinpaul.com
Microprocessor interface to 7 segment
LED (Parallel)
www.rejinpaul.com
Microprocessor interface to 7 segment LED
(serial)
www.rejinpaul.com

Serial interface of 7
segment LED to
Microprocessor
software flowchart
www.rejinpaul.com

INTERFACE-LED display
www.rejinpaul.com
www.rejinpaul.com

ADC INTERFACE
www.rejinpaul.com

BLOCK diagram of ADC 0808


www.rejinpaul.com
www.rejinpaul.com

PIN diagram of ADC 0808


www.rejinpaul.com
www.rejinpaul.com

DAC INTERFACE
www.rejinpaul.com

Pin diagram of DAC


www.rejinpaul.com

Pin diagram of DAC


www.rejinpaul.com

INTERFACING diagram for DAC


www.rejinpaul.com

TEMPERATURE CONTROL

• Temperature sensor –convert temp to electrical signal by thermistor


• Transducer convert physical data into electrical signal
• Physical data –temp, light, flow, speed etc…
• LM34 & LM35 –temperature sensor by NATIONAL SEMICONDUCTOR
CO-OPERATION
www.rejinpaul.com
• LM34 • LM35
• Output voltage is linearly • Output voltage is linearly
proportional to Fahrenheit temp proportional to Celsius temp
• No external calibration • No external calibration
• 10mV for each degree of • 10mV for each degree of
Fahrenheit temp Centigrate temp
www.rejinpaul.com
www.rejinpaul.com

STEPPER MOTOR CONTROL interface


• Digital motor used to translate electrical pulse into mechanical
movement
• Center tap winding connected to 12 V supply
• Motor can be excited by grounding four terminals of the two windings
• ROTOR-Stepper motor has permanent magnet rotor .It is also known as
shaft
• STEP ANGLE-It is minimum degree of rotation associated with a single
step
www.rejinpaul.com
www.rejinpaul.com
Stepper Motor Interface
www.rejinpaul.com

Excitation Table

Step X1 X2 X3 X4
1 0 1 0 1
2 1 0 0 1
3 1 0 1 0
4 0 1 1 0
1 0 1 0 1
www.rejinpaul.com

Traffic Light Control System


• Allow traffic from W to E and E to W transition for 20 seconds
• Give transition period of 5 seconds (yellow bulbs ON)
• Allow traffic from N to s and S to n for 20 seconds
• Give transition period of 5 seconds (yellow bulbs ON)
• Repeat the process
www.rejinpaul.com

Traffic Light Control System


www.rejinpaul.com
Interfacing diagram for Traffic Light Control
System
www.rejinpaul.com
www.rejinpaul.com

UNIT 4
PROGRAMMABLE LOGIC CONTROLLER
www.rejinpaul.com

Content

• Introduction
• Basic structure
• Input and output processing
• Programming
• Mnemonics
• Timers, counters and internal relays
• Data handling
• Selection of PLC
www.rejinpaul.com

PROGRAMMABLE LOGIC CONTROLLER

• A Programmable Logic Controller(PLC) is a digital computer used for


automation of typically industrial electromechanical processes, such
as control of machinery on factory assembly lines, amusement rides
or light fixtures.
www.rejinpaul.com

Applications

• Automated manufacturing process equipment and machinery


• Packaging and filling equipment
• Chemical mixing
• Conveyor systems and distillation etc.,
www.rejinpaul.com

Features and specification


• They are rugged and designed to withstand vibration, temperature,
humidity and noise
• The interfacing for inputs and outputs is inside the controller.
• They are easily programmed and have an easily understood
programming language.
• Programming is primarily concerned with logic and switching operation.
www.rejinpaul.com

Hardwired motor circuit


www.rejinpaul.com

Hardwired motor circuit with PLC


www.rejinpaul.com

Basic structure
www.rejinpaul.com

• PLC is designed as a replacement for the hardwired relay and timer


logic, where PLC provides ease and flexibility of control based on
programming and executive logical instruction.
• The internal functions such as timers, counter and shift registers
making sophisticated control possible using even the smallest PLC.
www.rejinpaul.com

• PLC capable of performing function such as


• counting,
• logistics,
• numerical application,
• comparing and processing of signals.
• A PLC is divided in to 4 parts. They are
• Input/output module (I/O)
• Central processing Unit (CPU)
• Memory
• Programming unit
www.rejinpaul.com
i) Input/output module (I/O)
• It is used to transfer the data between external devices and CPU
• It is incorporated into PLC in two ways
I. Fixed I/O – it is a small unit that comes in one piece with processor i.e., the
I/O terminals cannot be changed in fixed I/O
II. Modular I/O – it is packed together i.e., there are several compartment of
I/O module are plugged together.
www.rejinpaul.com
Central processing Unit (CPU)
• It is consisting of a microprocessor which interrupts the input signal and
carries out the control actions according to the program stored in the
memory, communicating the decision as an action signal to the output.
• It scan the total information package stored in the memory and input and
output devices continuously.
• During the scan the CPU executes instruction based on input data, sends
appropriate output responses to the output devices, updates data
acquisition systems and indicate condition changes
www.rejinpaul.com

• Scan time for larger unit depends on the size of the memory and
configuration of the system
• Power supply unit is needed to convert the AC voltage to the low DC
voltage necessary for the processor and to supply power to other
circuit in the input and output interface module.
www.rejinpaul.com

Memory Unit

• The memory in PLC stores the digital control logic, the process
program and the necessary instruction to operate the system.
• The memory used in PLC are
• Non-volatile memory
• Volatile memory
• According to purpose of usage
• RAM –volatile memory
• ROM- permanent storage
www.rejinpaul.com

Programming unit

• It is used to enter the required program into the memory of the


processor
• There are normally 3 approaches followed by the program
• Use of hand held programmer
• Terminal with video display unit
• PC with appropriate software
Architecture www.rejinpaul.com
www.rejinpaul.com

• Buses
• Data buses – it is used for communicating data b/n elements
• Address buses-it is used to read the address of locations for accessing stored
data
• Control buses- it is used for internal control action carried by the CPU
• System buses- it is used for communication b/n Input/output ports and
input/output units
www.rejinpaul.com

• Memory
• RAM
• ROM
• PROM
• EPROM
• Electrically EPROM
www.rejinpaul.com

Optoisolator

• Electrical connection from the external world is usually by means of


optoisolator
• When a digital pulses passes through the LED, a pulse of Infrared
radiation is produced.
• This pulses is detected by the phototransistor and gives rise to a
voltage in that circuit.
www.rejinpaul.com
Optoisolator
www.rejinpaul.com

Input channel with optoisolator


www.rejinpaul.com

• Common input voltage is 5V and 24V


• Output voltage is 24V and 240V
• Output are often specified as being of
• Relay type
• Transistor type
• Triac type
www.rejinpaul.com

Relay type of output

The relay type output is used for both ac and dc switching


Relay are slow to operate
www.rejinpaul.com
Transistor type output

The transistor type output is used for dc switching


This give faster switching action
www.rejinpaul.com

Triac type of output

The triac type output is used for switching AC voltages


www.rejinpaul.com

Programming

• The programming of PLC is based on the ladder diagram.


• Ladder diagram involve writing a program in a similar maner to
drawing a switching circuit.
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
Switch controlling Solenoid www.rejinpaul.com

Ladder Diagram for


Switch Control

e.g., solenoid valve


open to allow water
to enter a vessel
Temperature Control System www.rejinpaul.com
www.rejinpaul.com

Logic functions

An AND System

An OR System
www.rejinpaul.com

NOT System

NOR System
www.rejinpaul.com

NAND System

XOR System
www.rejinpaul.com
Cylinder Sequencing
A+, B+, A- and B-
www.rejinpaul.com
List of Mnemonics used for the Mitsubishi f
Series PLC
www.rejinpaul.com
Mnemonics for Logic system
www.rejinpaul.com
Mnemonics for Logic system
www.rejinpaul.com

Timer
www.rejinpaul.com
Timer circuit programmed to cause an output to go
ON for 0.5s, then OFF for 0.5s, then OFF for 0.5s and
so on

ON-OFF
cycle timer
www.rejinpaul.com

Internal relay
www.rejinpaul.com

Counter
www.rejinpaul.com

Master control relay


www.rejinpaul.com

JUMP Instruction
www.rejinpaul.com

Data handling

• Data movement
• Data comparison
• Arithmetic operation
• Code conversion
www.rejinpaul.com

Data Movement
www.rejinpaul.com

Controlling the speed of motor


www.rejinpaul.com

Selection of PLC
• System definition
• Choosing the I/O hardware
• I/O timing consideration
• Analog I/O module –resolution, voltage level
• Conversion speed
• Analog closed control
• Communication
• Counter, encoders and positioning
• Selecting suppliers
www.rejinpaul.com

UNIT 5
ACTUATORS AND MECHATRONICS SYSTEMS DESIGN
www.rejinpaul.com

CONTENT

❖ Types of stepper and servo motors – construction, working principle


❖ Design process - Stages in designing mechatronics system
❖ Traditional and mechatronic design concept
❖ Possible design solution
❖ Case studies of mechatronics systems
❖ Pick and place robot
❖ Engine management system
❖ Automatic car park barrier
Stages in designing mechatrownwiwcs.resjiynpsateulm
.com

Need for design

Analysis of problem

Preparation of specification

Generation of possible solution

Evaluation

Production of detailed design

Production of working drawing

Implementation of design
www.rejinpaul.com

Traditional design

A mechanical system

Mechanical Hydraulic Electrical


linkages , drives and motors,
etc., pneumatic switches
actuators etc.,
www.rejinpaul.com

Mechatronic design

A
mechanical
system

Mechanical Hydraulic Electrical


linkages , and motors,
drives etc., pneumatic switches
actuators etc.,

Electronic
components,
computers & IT
systems
www.rejinpaul.com
Comparison of traditional and mechatronics
design

Traditional design Mechatronics design


• It is based on a traditional • It is based on mechanical,
systems such as mechanical, electronics, computer
hydraulic and pneumatic technology and control
systems engineering.
• Less flexible • More flexible
• Less accurate • More accurate
• More complicate mechanism in • Less complicate mechanism in
design design
• It involve more components • It involve fewer components
and moving parts and moving parts
www.rejinpaul.com

Possible design solution

• Timer switch
• Windscreen wiper motion
• Weighing scales
www.rejinpaul.com

Timer switch
www.rejinpaul.com

Possible solution for timer switch


www.rejinpaul.com

Windscreen wiper motion


www.rejinpaul.com
Possible solution for Windscreen wiper
motion
www.rejinpaul.com

Weighing scales

Weighing Scales Weighing Scales mechanism


www.rejinpaul.com

Wheatstone bridge arrangement with ADC


www.rejinpaul.com

Wheatstone bridge with microcontroller


www.rejinpaul.com

Case studies

• Pick and place robot


• Autonomous mobile robot
• Wireless surveillance balloon
• Engine management system
• Automatic car park barrier
www.rejinpaul.com

Pick and place robot


www.rejinpaul.com

Gripper mechanism of a robot


www.rejinpaul.com

Microcontroller circuit for pick and place robot


www.rejinpaul.com

Autonomous mobile robot


www.rejinpaul.com

Elements of autonomous mobile robot


www.rejinpaul.com

Wireless surveillance balloon


www.rejinpaul.com

Applications of wireless surveillance Ballon

• Border security (TARS) in military


• Enhancing battle field situational awareness
• Coastal surveillance
• Platform for mounting telecommunication, television, radio
transmitters etc.,
• Aerial platform for scientific instrument testing
www.rejinpaul.com
Engine Management System
www.rejinpaul.com

Basic components
• Electronic control unit
• Fuel delivery system
• Ignition system
• Various sensors
• Throttle position sensors
• Exhaust gas oxygen sensors
• Manifold absolute pressure sensors
• Temperature sensors
• Engine speed/Timing sensors
• Exhaust gas regulation sensors
• Mass sir flow sensors
www.rejinpaul.com

Interfacing of sensors with controller in Automatic car park barrier

You might also like