Sie sind auf Seite 1von 29

UNIT - V

1) Stepper Motor Control 2) Matrix Keyboard 3) Dynamic 7 Segment Display 4) Analog to Digital converter 5) DC Motor Control 6) LCD Display 7) Serial Data Transfer

STEPPER MOTOR CONTROL


Stepper Motor Winding Diagram Specifications Rotation / Excitation methods Clockwise / Anti Clockwise Sequence Single & Multi Winding Excitation Driving unit Digital & Analog

STEPPER MOTOR CONTROL


W1 1 0 0 1 1 0 0 1 W2 1 1 0 0 1 1 0 0 W3 0 1 1 0 0 1 1 0 W4 0 0 1 1 0 0 1 1

STEPPER MOTOR CONTROL

MATRIX KEYBOARD
General Keyboard Structure Adv & Disadv of General Keyboard Layout of Matrix Keyboard Scanning and Sense Lines Scan Sequence Key De-bounce Methods

MATRIX KEYBOARD DRIVER


Scan Lines Sense Lines

7 8 9 5 6

MATRIX KEYBOARD

0 #

2 3

MATRIX KEYBOARD
Sense Lines RL2 RL1 RL0 SL0 Scan Lines

1 4 7

2 5 8 0

3 6 9 #

SL1

SL2 SL3

MATRIX KEYBOARD
SL3 SL2 SL1 SL0 RL2 RL1 RL0
0 0 1 0 0 1 0 0 1 1 0 0 1 0 0 1 0

1 2 3 4 5
RL2 RL1 RL0 SL0 SL1

0 0 0 01

0 0 1 0

0 1 0 0

1 0 0 0

0 1 0 0 1 0 0

1 4 7

2 5 8 0

3 6 9 #

1
0 0

0
0 1

0
1 0

6 7 8 9
0

SL2 SL3

MATRIX KEYBOARD

MATRIX KEYBOARD

DYNAMIC 7 SEGMENT DISPLAY


Seven Segment Display Eight LEDs Two types Common Anode & Common Cathode Dynamic Seven Segment Display Scan Sequence

DYNAMIC 7 SEGMENT DISPLAY


Seven Segment Display
a f b

gV
e d dp c

dp

Common

DYNAMIC 7 SEGMENT DISPLAY

DYNAMIC 7 SEGMENT DISPLAY

DYNAMIC 7 SEGMENT DISPLAY

ANALOG TO DIGITAL CONVERTER


ADC Working Types Applications Specifications No of Bits, i/p, o/p etc

ANALOG TO DIGITAL CONVERTER

DIGITAL TO ANALOG CONVERTER

DC MOTOR CONTROL
DC Motor Speed Control Methods Advantage of PWM Method Driving Circuit

DC MOTOR CONTROL

LCD DISPLAY
Principle of LCD 16x2 LCD LCD Module Driver & Screen RAM Character Molding Display Type Cursor, L/R Entry etc

LCD DISPLAY

LCD DISPLAY

LCD DISPLAY

Pin number
1 2 3 4

Symbol
Vss Vcc Vee RS

Level
0/1

I/O
I

Function
Power supply (GND) Power supply (+5V) Contrast adjust 0 = Instruction input, 1 = Data input 0 = Write to LCD module, 1 = Read from LCD module Enable signal Data bus line 0 (LSB)

5 6 7

R/W E DB0

0/1 1, 1->0 0/1

I I I/O

8
9 10 11 12 13 14

DB1
DB2 DB3 DB4 DB5 DB6 DB7

0/1
0/1 0/1 0/1 0/1 0/1 0/1

I/O
I/O I/O I/O I/O I/O I/O

Data bus line 1


Data bus line 2 Data bus line 3 Data bus line 4 Data bus line 5 Data bus line 6 Data bus line 7 (MSB)

Code Instruction
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0

Description

Executi on time

Clear display Cursor home Entry mode set Display On/Off control Cursor/disp lay shift Function set Set CGRAM address Set DDRAM address Read busyflag and address counter Write to CGRAM or DDRAM Read from CGRAM or DDRAM

0 0

0 0

0 0

0 0

0 0

0 0

0 0

0 0

0 1

1 *

Clears display and returns cursor to the home position (address 0). Returns cursor to home position (address 0). Also returns display being shifted to the original position. DDRAM contents remains unchanged. Sets cursor move direction (I/D), specifies to shift the display (S). These operations are performed during data read/write. Sets On/Off of all display (D), cursor On/Off (C) and blink of cursor position character (B). Sets cursor-move or display-shift (S/C), shift direction (R/L). DDRAM contents remains unchanged. Sets interface data length (DL), number of display line (N) and character font(F). Sets the CGRAM address. CGRAM data is sent and received after this setting. Sets the DDRAM address. DDRAM data is sent and received after this setting.

1.64mS

1.64mS

I/D

40uS

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 1

0 0 1

0 1 DL

1
S/C

D
R/L

C * *

B * *

40uS

40uS 40uS

CGRAM address

40uS

DDRAM address

40uS

BF

CGRAM / DDRAM address

Reads Busy-flag (BF) indicating internal operation is being performed and reads CGRAM or DDRAM address counter contents (depending on previous instruction).

0uS

write data

Writes data to CGRAM or DDRAM.

40uS

read data

Reads data from CGRAM or DDRAM.

40uS

LCD DISPLAY

Das könnte Ihnen auch gefallen