Low Power Microcontroller Based Simple Smart Token Number Display System
Low Power Microcontroller Based Simple Smart Token Number Display System
Low Power Microcontroller Based Simple Smart Token Number Display System
Rajesh Kannan Megalingam, Sreenath P S, Devidayal Soman, Jessin P A, Srikanth S
Amrita Vishwa Vidyapeetham, Kollam, Kerala, India.
Email: [email protected], [email protected], [email protected], [email protected],
[email protected]
Abstract: The inconvenience encountered in many public dealing II. GENERAL OVERVIEW OF THE SYSTEM
places like restaurants, banks, canteens etc. where people
Block Diagram of the Token Number Display System
normally follow queue system has called for many solutions to
speed up and ease the dealings. In this paper we show a low OPERATOR DISPLAY CUSTOMER DISPLAY
display. Using this system the customers need not wait in the BCD TO SEVEN
SEGMENT
BCD TO SEVEN
SEGMENT
DECODER/DRIVER DECODER/DRIVER
queue but come to get their order once their token number is SOUND
GENERATING
Keywords: Sleep, Low power, Token number display. Fig 1. Block diagram of the PIC microcontroller based token number display
system
I. INTRODUCTION
The token number display system basically consists of six
In our university campus canteen token numbers are blocks as shown in Fig 1. They are as follows: PIC
announced using microphone. It causes lot of confusion due to microcontroller – 16F877A, keypad, display units, 74LS47
similarity in phonetics; such as ‘seventeen’ and ‘seventy’ BCD to Seven segment decoder/driver, and a 5V/12V power
sounds alike. Moreover customers sitting far from the counter supply. A detailed description of each block is given below.
are unable to hear the numbers being announced vocally. It is
always observed that visuals catch attention immediately and A. Microcontroller – PIC16F77A[1]
clearly than acoustics. The present situation demands a token PIC16F877A is one of the most commonly used
number display system. Tokens are distributed on ‘first come, microcontrollers especially in automotive, industrial
first serve’ basis and as soon as the service is ready for the appliances and consumer applications. We use 40-pin DIP
customer, the attendant has to just enter the token number package of PIC16F877A which operates at a supply voltage of
which will be displayed on a large seven segment display with 5V and a frequency of 4MHz. Here we utilize the SLEEP
an alarm. The customer need not wait in the queue once their instruction of the microcontroller to enter the power down
order is placed. They can have a chat or ease, till their token mode.
number is displayed and then can get their order.
1) Low power or Power down mode
Our system is unique in the sense that we put the entire
system in the low power mode when the system is not in use, Low power or power down mode is entered by executing
to reduce the power consumption. In the first part of the paper, SLEEP instruction. The I/O ports maintain the status they had
the overview of the system is given which is followed by the before the SLEEP instruction was executed (driving high, low
brief working of each of the blocks in the system. In the final or high-impedance). For lowest power consumption in this
part of the paper we give the testing method, tools used, mode, all the I/O ports are placed at either VDD or VSS,
debugging and the experimental results. Also the estimated ensuring that no external circuitry is drawing current from I/O
power consumption is tabulated. pin. The active low MCLR pin is kept at a logic level high.
The device wakes up from SLEEP through external input on
MCLR pin or PORTB change interrupt.
172
indicating the availability of service. The system takes care of
the false triggering of sound system without entering token
number. If the system remains idle, that is, no number is
entered for a certain amount of time; the system enters the low
power mode. To resume, the system is reset. The power
supply unit provides the required power for the entire system.
Fig 4. Circuit diagram of 5V power supply
IV. EXPERIMENTS AND RESULTS
mounting seven individual segments on a mica sheet. Both the The construction and implementation of the system was
displays are driven by the 74LS47 BCD-to-seven segment carried out in different stages in order to obtain the expected
decoder/driver, which is interfaced to the common anode results. Overall system design was divided into modules
operator display through 330Ω current-limiting resistors. The which were individually designed and tested before the
open collector configuration of 74LS47 decoder is utilized to integration of the various subsystems. Software design was
drive the large customer display, which requires an operating started in MPLAB IDE. A series of program was written in
voltage of 8-12 V. PIC assembly language. It was then compiled and simulated in
the MPLAB environment. The MPASM assembler (the
D. Power Supply assembler) is a command-line or Windows-based PC
A 5V/12V DC supply is all that required for the working application that provides a platform for developing assembly
of the circuit. The microcontroller requires 5V supply for its language code for Microchip's PIC microcontroller families.
working. The display driver ICs and the seven segment The version we used was MPLAB IDE 7.3. After satisfactory
displays require the 5V/12V power supply for their proper result was obtained the interactive simulation was carried out
working. The circuit diagram or the 5V power supply is in Proteus. This software is a revolutionary interactive system
shown in Fig 3. level simulator developed by Labcenter Electronics. The
A microcontroller based system requires a power supply version we used was Proteus 6.9 SP5 with Advanced
which provides constant DC power. A transient on the power Simulation. This product combines mixed mode circuit
supply could result in system failure. The power supply unit simulation, micro-processor models and interactive
designed is 5V DC and is not affected by variation in the AC component models to allow the simulation of complete
serving as input to the transformer. A 230 V transformer is microcontroller based designs. The circuit diagram of the
used with output voltage of 9V. Token number display simulation in Proteus is shown in the
Four 1N4007 diodes are arranged to form a bridge Fig 5.
rectifier, which converts the AC to DC and satisfies the Initially the keypad was tested with a few set of LEDS.
charging current demands of the filter capacitor. The DC The connections and the conditions of keypad was thus
voltage varies above and below an average value. This verified. The seven segment displays were interfaced with
variation is called ripple voltage. In order to reduce ripple 74LS47 BCD to seven segment decoder/driver to which the
voltage to a very small value, the DC voltage needs to be
filtered. Filter capacitors of capacitance 1000 µF were chosen
to reduce the ripple voltage contained in a rectified voltage, to
a relatively filtered voltage which resembles a smooth DC
voltage as much as possible.
The regulator receives the input of a fairly constant DC
voltage and supplies, as output, a somewhat lower value of
DC voltage, which it maintains fixed or regulated over a wide
range of load current or input variation. The LM7805
regulator maintains a 5V DC supply voltage to the system.
The main circuit diagram of the system is shown in Fig 4.
III. WORKING OF THE SYSTEM
The number entered through the keypad is given as input
to the PIC microcontroller. The keypad is matrix 4x3
telephonic keypad. The microcontroller identifies the key with
the help of a keypad scanning algorithm described later in the
paper. Initially both the operator and customer displays are set
to 00. It sends the corresponding BCD equivalent of the
entered number to the 7447 BCD to seven segment
decoder/driver which drives the operator display. When the
‘BUZ’ key is pressed, the numbers in the operator display are
Fig 5. Proteus Simulation output
exhibited in the large customer display with a pleasant sound
173
TABLE II. ENERGY CONSUMPTION OFF PIC16F877A AT VDD = 5V, FOSC = 4
M Z
MH
P = VDDD 2 *f * C (1)
174
TABLE III. POWER CONSUMPTION OF 74LS47 BCD-TO-SEVEN-SEGMENT that state until the device wakes from Sleep. A customized
DECODERS/DRIVER
seven segment display was assembled from individual
Time in Power Energy Total segments which can be seen even from a few meters. When
seconds consumption consumption consumption sleep mode is enabled this system consumes only about 7% of
(mW) (kWh) (kWh) the total energy consumed by the conventional token number
36000 35 3.5 x 10-4 1.4 x10-3 display systems without sleep mode.
ACKNOWLEDGMENT
TABLE IV. ENERGY CONSUMPTION OF SEVEN SEGMENT DISPLAY AT VDD = 8
V AND ISEGMENT = 36 mA We would like to acknowledge the Almighty GOD who gave
us strength and health to successfully complete this venture.
Mode Time in Energy Energy We also wish to express our heart-felt gratitude to Amrita
Seconds consu- consumption Total Vishwa Vidyapeetham, in particular the Digital library, for
mption one one display consumption
segment (7 segments) (kWh) access to their research facilities and for providing us the
kWh kWh laboratory facilities for conducting the research. The authors
Active 7500 6 x10-4 4.2 x 10-3
8.4 x 10-3
wish to express their deep gratitude to all persons who helped
Sleep 28500 0 0 them directly or indirectly towards the successful completion
of this paper.
TABLE V. TOTAL ENERGY CONSUMPTION OF THE LOW POWER TOKEN
NUMBER DISPLAY SYSTEM VS CONVENTIONAL SYSTEMS
REFERENCES
Sleep Total Total Total Total [1] PIC 16F87XA Microcontroller datasheet, Microchip Technologies Inc.
feature consumpt consum- consum- consumption [2] 74LS47 Datasheet, Texas instruments.
enabled -ion of ption of ption of of the system [3] Neil Weste and Kamran Eshragian, ‘Principles of CMOS VLSI
PIC 74LS47 seven kWh Design’,Second edition, Prentice Hall.
microcon decoders/ segment [4] T.R Padmanabhan ‘Introduction to microcontrollers and their
troller drivers display applications’, Narosa Publication.
kWh kWh kWh [5] B.L Theraja ‘A Textbook of Electrical Technology’, paperback.
yes 4.18 x 10-4 1.4 x10-3 8.4 x 10-3 1.022 x 10-3 [6] Arun Kumar Singh, 'Microcontroller and Embedded System’ , 1st
no 2 x 10-3 1.4 x10-3 5.6 x 10-2 5.94 x 10-2 Edition.
[7] Ms. Seint Seint Htwe “ Remote Token Display and Sound System”,
D. Total power consumption World academy of science, engineering and technology.
The Table V shows the total power consumption token [8] Bylander, E.G., ‘‘Electronic Displays,’’ McGraw-Hill Edition, Inc.,
number display systems with sleep feature enabled and the 1979.
[9] Floyd, T.L., ‘‘Electronic Devices I and II,’’ 4 ed., Prentice Hall
th
175