MECHATRONICS - Unit Notes
MECHATRONICS - Unit Notes
• 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.
Signals and
conditioning
Digital logic
systems
Computers and
display devices
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.
Elements of mechatronics system
• Digital logic systems
• Logic circuits, micro controllers, programmable logic controllers(PLC), sequencing
and timing controls, control algorithm.
• Closed loop system uses on a feed back loop to control the operation of
the system.
Room heating (Closed loop) control system
Open loop system • Closed loop system
• 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 control system
Sequential controllers
Control
Microprocessor
Functional Block diagram of Microprocessor
• Direct addressing
• Register addressing
• Register indirect addressing
• Immediate addressing
• Implicit addressing
• 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
• 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)
• 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
Instruction sets 8085
• 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)
• LHLD addr (Load HL pair direct)
• SHLD addr (Store HL pair direct)
• STAX xp ( store accumulator Indirect)
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
Logical group
•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
• 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.
• JZ addr (label) [jump if the result is zero]
• 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
Block diagram of 8051
UNIT 3
PROGRAMMABLE PERIPERAL INTERFACE
Content
• Introduction
• Architecture of 8255
• Keyboard interfacing
• LED display –interfacing
• ADC and DAC interface
• Temperature Control
• Stepper Motor Control
• Traffic Control interface
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.
Microprocessors unit with I/O devices
Input Output
Micro
devices devices
(keyboard) processors
(LED)
Input Output
peripherals peripherals
• Some of the general purpose interfacing devices
• I/O ports
• Programmable peripherals interface (PPI)
• DMA controllers
• Interrupt controller
Input
Micro Output
devices PPI 8279
proce device
(key 8255 Display
ssors (LED)
board)
Peripheral Display
Interface Interface
Address Space Partitioning
• 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.
PROGRAMMABLE PERIPHERALS INTERFACE INTER
8255 (PPI)
Operating mode 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 A GROUP B
D4 D3 D1 D0 PORT A PORTC U PORT B PORT C L
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
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
Traffic Light Control System
Interfacing diagram for Traffic Light Control
System
UNIT 4
PROGRAMMABLE LOGIC CONTROLLER
Content
• Introduction
• Basic structure
• Input and output processing
• Programming
• Mnemonics
• Timers, counters and internal relays
• Data handling
• Selection of PLC
PROGRAMMABLE LOGIC CONTROLLER
• 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
Programming unit
An AND System
An OR System
NOT System
NOR System
NAND System
XOR System
Cylinder Sequencing
A+, B+, A- and B-
List of Mnemonics used for the Mitsubishi f
Series PLC
Mnemonics for Logic system
Mnemonics for Logic system
Timer
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
Internal relay
Counter
Master control relay
JUMP Instruction
Data handling
• Data movement
• Data comparison
• Arithmetic operation
• Code conversion
Data Movement
Controlling the speed of motor
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
UNIT 5
ACTUATORS AND MECHATRONICS SYSTEMS DESIGN
CONTENT
Analysis of problem
Preparation of specification
Evaluation
Implementation of design
Traditional design
A mechanical system
A
mechanical
system
Electronic
components,
computers & IT
systems
Comparison of traditional and mechatronics
design
• Timer switch
• Windscreen wiper motion
• Weighing scales
Timer switch
Possible solution for timer switch
Windscreen wiper motion
Possible solution for Windscreen wiper
motion
Weighing scales