40
DEPARTMENT OF ELECTRONIC SCINECE  AKI’S POONA COLLEGE OF ARTS, SCIENCE & COMMERCE CAMP, PUNE-01 Completed By: Project Guide: Shaikh Abul Quais (2449) Prof. SAJID NAEEM Shaikh Faizan (2450) M.Sc-II(Electronics)  A PROJECT PRESE NTATION ON

rollingdisplay-120713053527-phpapp01

Embed Size (px)

Citation preview

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 1/40

DEPARTMENT OF ELECTRONIC SCINECE 

AKI’S POONA COLLEGE OF ARTS, SCIENCE & COMMERCE 

CAMP, PUNE-01 

Completed By: Project Guide:Shaikh Abul Quais (2449) Prof. SAJID NAEEM

Shaikh Faizan (2450)

M.Sc-II(Electronics)

 A PROJECT PRESENTATION ON

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 2/40

INTRODUCTION

Now a day, because of the many companies coming up, there aregreat needs for advertisements. Making banners every time is a very time- and money- consuming task. Using a reprogrammablemicrocontroller along with an LCD of appropriate size solves theproblem to a huge extent. This system can be used on roads wherehuge banners are put up. Along with this system that I have

designed and build consists of an extra added featureannouncement. Thus, the whole system can be used in places likerailway station, railways, bus stops, buses, hospitals, roads,

 banking, colleges & schools etc. This system can not only display the message but also announce the

message through the speaker. If display is not working then speaker is there to announce the

message and if there is problem in the voice processing unit orspeaker then the LCD is there to display the message. This is a very useful facility in this system. Therefore the “Rolling Display with Announcement System” system is very useful

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 3/40

 AIM & OBJECTIVES

 AIM: The aim of this project is to develop microcontroller based Rolling Display with Announcement System. 

OBJECTIVES:To study the 8 bit AT89S52 microcontroller.To study the recording IC APR9600.To design the interfacing of recording IC APR9600 with

 AT89S52.To design the interfacing circuit of LCD to 8051

microcontroller.To develop the assembly language code for interfacing of LCD

and IC APR9600 to 8051 microcontroller.To design rolling display with announcement system by using

microcontroller 89S52 and APR9600 recording IC.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 4/40

CONTENTS OF BLOCK DIAGRAM

POWER SUPPLY 

MICROCONTROLLER 

 VOICE PROCESSING UNIT(APR9600)

DISPLAY SPEAKER 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 5/40

1. POWER SUPPLY 

TRANSFORMER 

RECTIFIER 

FILTER 

REGULATOR LOAD

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 6/40

2. MICROCONTROLLER 

Microcontroller has: 

CPU (microprocessor)

RAM

ROM I/O ports

Timer

ADC and other peripherals

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 7/40

History of the 8051

In 1981, Intel Corporation introduced an 8-bitmicrocontroller called the 8051.

This microcontroller had 128 bytes of RAM, 4K 

 bytes of on-chip ROM, two timers, one serial port,and four ports (each 8-bits wide) all on a single chip.

The 8051 is an 8-bit processor, meaning that theCPU can work on only 8 bits of data at a time.

Data larger than 8 bits has to be broken into 8-bitpieces to be processed by the CPU.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 8/40

The 8051 has a total of four I/O ports, each 8 bits wide.

 Although the 8051 can have a maximum of 64K bytes of on-chip

ROM, many manufacturers have put only 4K bytes on the chip.

The 8051 became widely popular after Intel allowed other

manufacturers to make and market any flavors of the 8051 they 

please with the condition that they remain code-compatible with

the 8051.

This has led to many versions of the 8051 with different speeds

and amounts of on-chip ROM marketed by more than half a

dozen manufacturers.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 9/40

BLOCK DIAGRAM FEATURES

8051 MICROCONTROLLER

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 10/40

 APLPLICATION Family of 8051

89C51

89C52 89C2051

89C2052

89S51 89S52

Etc….. 

8051 MICROCONTROLLER 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 11/40

BLOCK DIAGRAM OF 89S52

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 12/40

3. VOICE PROCESSING UNIT (APR9600)

This block plays very important role in this system. The messagesare recorded in the form of human voice by using a microphone.

For recording and replaying the messages APR9600 IC is used.  APR9600 is a low-cost high performance sound record/replay IC

incorporating flash analogue storage technique.

Recorded sound is retained even after power supply is removedfrom the module. The APR9600 has a 28 pin DIP package as shown above. Supply 

 voltage is between 4.5V to 6.5V. During recording and replaying,current consumption is 25 mA. In idle mode, the current drops to 1mA.

Total sound recording time can be varied from 32 seconds to 60seconds by changing the value of a oscillation resistor. The IC can be controlled simply using push button keys. It is also

possible to control the IC using external digital circuitry such asmicro-controllers and computers.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 13/40

HOW APR9600 WORKS?

 APR9600 works into two modes.1. Serial mode

2. Parallel mode

In serial access mode, sound can be recorded in256 sections.

In parallel access mode, sound can be recorded in 2,4 or 8 sections.

These modes are selected using MSEL1 (Pin24),MSEL2 (Pin 25) and M8 (Pin 9).

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 14/40

Modes and selection of modes

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 15/40

 Record sound tracks  Circuit

MSEL1=1 MSEL2=1  –M8=1 RE=0. The maximum length of the 8

tracks is 7.5 seconds. Press M1continuously and you will seeBUSY LED illuminates. Youcan now speak to themicrophone. Recording willterminate if –M1 is released orif the recording time exceeds7.5 seconds. Similarly, press –M2 to -M8 to record othersound tracks.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 16/40

Liquid CrystalDisplay(LCD)

The display used is16*2 alphanumericdisplay.

Display 

     D     7

     1     4

     D     6

     1     3

     D     5

     1     2

     D     4

     1     1

     D     3

     1     0

     D     2

     9

     D     1

     8

     D     0

     7

     E

     6

     R     W

     5

     R     S

     4

     V     S

     S

     1

     V     D

     D

     2

     V     E

     E

     3

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 17/40

 A liquid crystal has

properties between asolid and a liquid.

It has properties moreof a liquid.

It is more easily affected by temperature.

LIQUID CRYSTALS 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 18/40

 A reflective mirror is setup atthe bottom.

 Above it a glass filter with apolarizing film on one side andan electrode on the other iskept.

The liquid crystal substancecomes next followed by anotherpiece of glass with an electrodetowards the LC substance and apolarizing film on the other.

There is a cover glass whichkeeps the inside of the LCDintact.

Construction of LCD 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 19/40

 When NO CURRENT:

Light is passed through front of LCD

It is reflected by the mirror and it bounces back.

 When there is CURRENT:

LC molecules „untwist‟ Light is blocked from passing through.

 Area becomes darker as compared to others n a characteris displayed on LCD.

Basic Operation

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 20/40

The speaker is used toannounce or play the

recorded message whichis already stored in the

 APR9600 recording ICand which is displayedon the LCD. The speakeris playing mostimportant role in thisproject. Speaker used is 8ohm 1 watt speaker.

Speaker

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 21/40

Circuit

Diagram

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 22/40

 WORKING OF CIRCUIT

The data pins of LCD are connected to the Port0 of themicrocontroller.

RS= P2.5 RW=P2.6 and EN= P2.7

Port1 is assigned for the message pins of APR9600.

The APR9600 is used in random access mode(8 messages). The voice is recorded by using electrets microphone, while

recording the voice MSEL1=1, MSEL2=1, M8=1, RE=0.

Press M1 continuously and you will see BUSY LEDilluminates. Now speak to the microphone. Recording is

started, recording will terminate if M1 is released or if therecording time exceeds 7.5 seconds. press M2 to M8 to recordother sound tracks.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 23/40

Playing the stored messages

CE=0 to enable device & RE=1 to disable recording &enable playback.

By applying low to high signal to APR9600 message

pins from microcontroller to play the desiredmessage.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 24/40

Messeges

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 25/40

 Algorithm

Step1: Initialization of LCD. Step2: Wait for some time. Step3: Display welcome message. Step4: Initialization of LCD. Step5: Display “Next stop is:”  Step6: Wait for some time. Step7: Display the Stop name. Step8: Give low to high pulse to APR9600 to play the

particular message which is displayed on LCD.

Step9: Display the next stop name. Step10: Go to step8 to repeat the process 7 times again. Step 11: End

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 26/40

Flowchart

Initialize the LCD 

Wait for some time 

Display Welcome message 

Wait for some time 

Start 

Define Port 0 as data lines of 

LCD 

Define EN=P2.7

RW=P2.6

EN=P2.5

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 27/40

Send low to high pulse to apr9600

message pin with some delay in between

to play the particular message 

Display the desired stop name on LCD in

accordance with the announcement 

Wait for some time 

Repeat each announcement and rolling

message 2 times 

Display message

“NEXT STOP IS” 

Wait for some time 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 28/40

8 messages is

finished???? 

Display message

“NEXT STOP IS” 

Stop 

Wait for some time 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 29/40

Software

Kiel51 Compiler

Proteus 6.9 Simulator

Mc-Flash Programmer

Flash Magic Programmer

Express PCB

Delay Calculator

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 30/40

Hardware

PC

Target Board of microcontroller 

Power Supply

PCB layout

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 31/40

 Advantages

The system is easy to build and design.

It requires less hardware.

The code for rolling the message is easily developed

 by using Assembly language. The system is not costly.

It requires less power to operate.

In case of power failure, it can be operated on the battery supply.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 32/40

Disadvantages

The main disadvantage of the system is the APR9600 is having time duration of 60 secondsonly.

The sound quality is not good enough. If any of the message pin is pressed manually in

 between the running system the particular message will be played.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 33/40

 APPLICATION 

In Railway platforms for announcement and displayingthe trains schedule.

In train buggies for displaying the station names. In Bus stops for announcement and displaying the buses

schedule. In Buses for displaying the stop names. In School for any type of notice and lecture time. In Colleges for any type of notice and lecture time Hospitals Roads Shops  And many more applications are there.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 34/40

PHOTOGRAPHS: 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 35/40  

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 36/40

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 37/40

Future Scope

 We can introduce the RF module in the system.

It can be accessed using GSM modules at any placeat any time.

By adding GPS we can track our system. By using other type of voice recording IC having

duration of time large.

 We can use graphical LCD instead of numerical LCD.

 We introduce the RTC for time management.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 38/40

Conclusion

The “Rolling Display with AnnouncementSystem” is successfully designed, build and tested.

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 39/40

References

Introduction to Embedded System

By Mohammed Ali Mazidi

Embedded System by Raj Kamal

Electronic For You (Magazine) Chip Digit (Magazine)

 www.embeddedgarage.com 

 www.efy.co.in 

7/27/2019 rollingdisplay-120713053527-phpapp01

http://slidepdf.com/reader/full/rollingdisplay-120713053527-phpapp01 40/40