Design and Interface Examples Using 8051

43
Design and interface examples using 8051 PRESENTED BY: JAWAD RASOOL (2K6-EE-08) BILAL MEHBOOB (2K6-EE-43) NAUMAN ASGHAR (2K6-EE-44) ADIL SALMAN (2K6-EE-54)

Transcript of Design and Interface Examples Using 8051

Page 1: Design and Interface Examples Using 8051

Design and interface examples using 8051

PRESENTED BY:

JAWAD RASOOL (2K6-EE-08)BILAL MEHBOOB (2K6-EE-43) NAUMAN ASGHAR (2K6-EE-44)ADIL SALMAN (2K6-EE-54)

Page 2: Design and Interface Examples Using 8051

TOPICS BEING PRESENTED

• This chapter includes following interfaces techniques

» Keypad interface» 7-segmaent interface» LCD interface» Loudspeaker interface» RS 232 Serial interface» Parallel interface» Analog I/O interface» Interface to sensors» Interface to relays» Interface to stepper motor

Page 3: Design and Interface Examples Using 8051

ADIL SALMAN (2K6-EE-254)

TOPICS BEING PRESENTED

KEY PAD INTERFACELCD INTERFACE

RELAY INTERFACE

Page 4: Design and Interface Examples Using 8051

KEYPAD INTERFACE• Key pad is an essential part of control system which is used to send

numeric or alphabetical information to the system.• E.g. : The values send to a counter or timer can be set by using keypad. It is usually used in calculators.

Page 5: Design and Interface Examples Using 8051

MATRIX KEYPAD STRUCTURE

• A key pad is basically an even matrix connected to two ports of microcontroller.

• Suppose if we want to make a 16 buttons keypad then we will use a 4*4 matrix.

Page 6: Design and Interface Examples Using 8051

MATRIX TYPE KEYPAD

Page 7: Design and Interface Examples Using 8051

INTERFACE WITH MICROCONTROLLER

Page 8: Design and Interface Examples Using 8051

PROGRAM PROCEDURE

Page 9: Design and Interface Examples Using 8051

LCD INTERFACE

• LCD (Liquid Crystal Display) is a powerful tool to display graphs , characters & numeric values etc….

• There are no's of types of types depending upon the number of characters in rows & columns.(E.g: 20*2 or 40*2 etc….)

Page 10: Design and Interface Examples Using 8051

PIN CONFIGURATION OF LCD

1.Vss - Gnd 2.Vcc - +5V 3.Vee - Contrast control 4. RS - Register select [ Command / Data ] 5. RW - Read / Write 6. EN - Enable pulse. 7. D0 - Data bus LSB 8. D1 ........ ........ 14. D7 - Data bus MSB.

Page 11: Design and Interface Examples Using 8051

INTERFACING OF LCD WITH 8051

Page 12: Design and Interface Examples Using 8051

RELAY INTERFACE

• Relays are used where it is necessary to control a circuit by a low-power signal or where several circuits must be controlled by one signal.

Page 13: Design and Interface Examples Using 8051

TYPES OF RELAY• Solid state

• Latching

• Contactor

• Reed • Overload Protection

Page 14: Design and Interface Examples Using 8051

RELAY STRUCTURE

Page 15: Design and Interface Examples Using 8051

RELAY INTERFACE WITH MICROCONTROLLER

Page 16: Design and Interface Examples Using 8051

BILAL MEHBOOB (2K6-EE-243)

TOPIC BEING PRESENTED

INTERFACE WITH LOUD SPEAKER

Page 17: Design and Interface Examples Using 8051

LOUD SPEAKER

• A loudspeaker is an electro acoustic transducer that converts an electrical signal into sound. The speaker moves in accordance with the variations of an electrical signal and causes sound waves.

Page 18: Design and Interface Examples Using 8051

STRUCTURE OF A LOUD SPEAKER

Page 19: Design and Interface Examples Using 8051

TYPES OF LOUD SPEAKERS

• LOUD SPEAKER CAN BE DIVIDED IN TO NO’S OF TYPES DEPENDING ON FREQUENCY RANGES.

• Full-range drivers• Subwoofer• Woofer• Mid-range driver• Tweeter• Coaxial drivers

Page 20: Design and Interface Examples Using 8051

INTERFACE OF LOUD SPEAKER WITH MICROCONTROLLER

Page 21: Design and Interface Examples Using 8051

NAUMAN ASGHAR (2K6-EE-244)

TOPICS BEING PRESENTED

7-SEGMENT DISPLAY INTERFACEINTERFACE WITH SENSORS

RS-232 INTERFACE

Page 22: Design and Interface Examples Using 8051

INTERFACE WITH 7-SEGMENT DISPLAY

• A seven-segment display is a form of electronic display device for displaying alphabetic & numeric characters.

• It is digital clocks , calculators ,Electronic meters….etc…..

Page 23: Design and Interface Examples Using 8051

TYPES & PINS CONFIGURATION

• On the basis of biasing» Common Anode» Common Cathode

• On the basis of pins» Multiplexed» Non multiplexed

Page 24: Design and Interface Examples Using 8051

INTERFACE WITH MICROCONTROLLER

Page 25: Design and Interface Examples Using 8051

INTERFACE WITH SENSORS

• A sensor is a device that measures a physical quantity and converts it into a signal which can be read by an observer or by an instrument .

• Light, motion, temperature, magnetic fields, gravity, humidity, vibration…..etc..

Page 26: Design and Interface Examples Using 8051

TYPES OF SENSOR

• Types of sensor can be divided according to physical quantities they can measure

» Motion sensor» Temperature sensor» Light sensor» Chemical sensor» Position sensor» Pressure sensor

Page 27: Design and Interface Examples Using 8051

INTERFACE OF SENSOR WITH 8051

Page 28: Design and Interface Examples Using 8051

INTERFACE WITH RS-232

• RS-232 (Recommended Standard 232) is a standard (protocol)for serial binary single-ended data and control signals.

• It is commonly used in computer serial ports.

Page 29: Design and Interface Examples Using 8051

Types

• RS-232 Serial connectors types depend upon their pin configurations.

» DB-9 (9 PIN CONNECTOR)

» DB-25 (25-PIN CONNECTOR)

Page 30: Design and Interface Examples Using 8051

PIN CONFIGURATIONS

Page 31: Design and Interface Examples Using 8051

INTERFACE WITH RS-232

Page 32: Design and Interface Examples Using 8051

JAWAD RASOOL (2K6-EE-208)

TOPICS BEING PRESENTED

INTERFACE TO STEPPER MOTORANALOG I/O INTERFACE

PARALLEL INTERFACE

Page 33: Design and Interface Examples Using 8051

INTERFACE TO STEPPER MOTOR

• Stepper motor is used for controlled movement or rotation.

• It can rotate in clock/anti clock wise.

Page 34: Design and Interface Examples Using 8051

TYPES OF STEPPER MOTOR

• There are two major types of stepper motor: 1.) Uni-Polar

2.) Bi-Polar

Page 35: Design and Interface Examples Using 8051

PIN CONFIGURATION (UNI-POLAR)

• There are 6 pins in this stepper motor

» Two pins for forward movement

» Two pins for backward movement

» Two common pins (one for forward movement & second for backward movement)

Page 36: Design and Interface Examples Using 8051

INTERFACE WITH MICROCONTROLLER

Page 37: Design and Interface Examples Using 8051

INTERFACE WITH I/O,S

• Two types of I/O,S:» Analog» Digital

• 8051 doesn't support direct interface with analog i/p so, analog i/p must be converted into digital before being interfaced with 8051.

Page 38: Design and Interface Examples Using 8051

CONT….

• Following are some ADC,S being used to interface analog i/p with controller

» ADC 0804» ADC 0832

Page 39: Design and Interface Examples Using 8051

CONT…..

• 8051 only produce digital o/p so we can't use this o/p for analog devices.

• So its o/p must be converted into analog form before interfacing with any analog o/p device.

• Some commonly used DAC,S are :

» MC1408-L8» DAC 0808

Page 40: Design and Interface Examples Using 8051

EXAMPLE OF ANALOG I/O,S

Page 41: Design and Interface Examples Using 8051

PARALLEL INTERFACE

• It is also known as a printer port or Centronics port.

• It is of two types depending upon its pin configuration.

» DB-25» 36 PIN MICRO RIBBON CONNECTOR

Page 42: Design and Interface Examples Using 8051

PIN CONFIGURATION OF DB-25

Page 43: Design and Interface Examples Using 8051

INTERFACE WITH MICROCONTROLLER