Beruflich Dokumente
Kultur Dokumente
UQF LEVEL 8
SENIOR PROJECT I
February, 2020
TABLE OF CONTENTS
INTRODUCTION ..................................................................................................................... 1
1.6.5: Implementation of the Circuit Design and Testing the Built Prototype .................. 3
1.6.6: Report Writing ......................................................................................................... 4
CHAPTER TWO ....................................................................................................................... 5
i
2.3.1: Principle Operation of the Existing System ............................................................. 8
2.3.2: Disadvantages of the Existing System ..................................................................... 8
2.4: Proposed System ............................................................................................................. 8
REFERENCES......................................................................................................................... 36
Appendix A .............................................................................................................................. 38
Appendix B .............................................................................................................................. 39
ii
LIST OF FIGURES
Figure 2.1: A UPC- A Barcode Symbol (Layman, 2002).......................................................... 5
Figure 2.2: Block Diagram of the Existing System. (Agrawal, 2016) ....................................... 8
Figure 2.3: Block Diagram of the Proposed System.................................................................. 9
Figure 2.4: Power Supply Block Diagram (Billings and Morey, 2011) .................................. 10
Figure 2.5: Circuit Diagram of Power Supply (Billings and Morey, 2011) ............................ 10
Figure 2.6: Transformer Construction ..................................................................................... 11
Figure 2.7: Block Diagram of Full-Wave Rectifier (Ezhilarasi, 2018) ................................... 12
Figure 2.8: Bridge Rectifier ..................................................................................................... 13
Figure 2.9: Capacitor ............................................................................................................... 14
Figure 2.10: Shunt Capacitor Filter ......................................................................................... 15
Figure 2.11: Series Inductor Filter ........................................................................................... 15
Figure 2.12: Choke Input Filter ............................................................................................... 15
Figure 2.13: R-C Filter ............................................................................................................. 16
Figure 2.14: Circuit Configuration of π- Filter ........................................................................ 16
Figure 2.15: 78xx Regulator (Wheelers, 2012) ....................................................................... 18
Figure 2.16: 79xx Regulator (Wheelers, 2012) ....................................................................... 19
Figure 2.17: General Architecture of Microcontroller ............................................................. 22
Figure 2.18: Arduino UNO (Barrett, 2013). ............................................................................ 25
Figure 2.19: (a) (b) Physical Appearance of PIC16F877A (Rafiquzzaman, 2011) ................. 26
Figure 2.20: Structure of PIC 16F877A Microcontroller (Rafiquzzaman, 2011).................... 27
Figure 2.21: Crystal Oscillator ................................................................................................. 28
Figure 2.22: PIC16F877A Basic Interface and Configuration ................................................ 29
Figure 2.23: Barcode Scanner (Soudharya, 2015). .................................................................. 30
Figure 2.24: Push Button Switch (Monk, 1999) ...................................................................... 31
Figure 2.25: Weighing Sensor (Soudharya, 2015)................................................................... 31
Figure 2.26: Liquid Crystal Display (Robocraze, 2019).......................................................... 32
Figure 2.27: A Buzzer (Sims, 1980) ........................................................................................ 34
Figure 2.28: Zigbee Module (Kalaivani et al, 2019) ............................................................... 35
iii
LIST OF TABLES
Table 2.1: The Design Requirements for Control Unit............................................................ 20
iv
LIST OF ABBREVIATIONS
v
LIST OF SYMBOLS
COMPONENT SYMBOL
TRANSFORMER
CAPACITOR
RESISTOR
PUSH BUTTON
S1
DIODE
BUZZER
GROUND
vi
CHAPTER ONE
INTRODUCTION
1.1: Background Information
Shopping supermarket is a place where most people from all walks of life will get their daily
necessities ranging from food product, apparels, toiletries, gardening tools electrical appliances,
and others. The numbers of little and enormous looking supermarkets keep it up increasing over
the years throughout the world because of the demand of the general public. Thus, the amount
of advancement of shopping center system and infrastructure conjointly varies. In Tanzania,
there are still a plenty of spaces for improvement in terms of providing quality shopping
experience to the consumers as compared to some foreign countries’ shopping supermarket
system. Consumers often face many challenges and inconvenience when shopping at
supermarkets. These challenges include worrying that the amount of money brought is not
enough for paying all selected items and also overspending budget at a point of selecting items
as nothing alert the customer on costs of the selected items so far. As the existing billing system
is facilitated at the cashier desk, it is not possible to know prior whether the customer is overspent
or not before reaching at the desk to pay the net bill for all selected items.
1
1.3.2: Specific Objectives
i. To study the existing system of Shopping and Billing Systems Management.
ii. To identify various techniques used globally in Automatic Shopping and Billing System
Management.
iii. To design Billing System Management by using barcode techniques
iv. To design system to countercheck legit of items cost through weighing scale
v. To simulate the designed circuit and testing the built prototype.
1.6: Methodology
Methodology means the different approaches that are to be taken in order to fulfill the objectives
of the project. The following methods are adopted;
1.6.1: Literature Review From Various Sources.
This is done through studying different sources include books, articles and all other related
documents, as well as studying different existing systems basing on shopping trolleys and billing
systems applied in various malls worldwide.
1.6.2: Data Collection.
This facilitates with the data that will be used to accomplish this project. Since it describes the
data collected from various case study areas, with respect to the problem statement. The data
collection is divided into two parts namely Primary data and Secondary data.
2
a) Primary Data Collection
Primary data are the data obtained by the researcher directly by using interview, questionnaire
or observation and experimentation. In this project, primary data will be collected basing on
billing systems in various shopping supermarkets.
b) Secondary Data Collection
Secondary data are the data obtained by taking already made data by other researchers from
different sources such as internet surfing, magazines or books. In this project, the secondary data
will be collected through different sources include internet, magazines or reading books. The
information obtained in this section will depends on a data collected in primary sources. In this
method the following checklist may help the researcher to determine the reliability of secondary
source of information.
i. Does the source provide current information?
ii. Is the source reliable?
iii. Is the author having an authority on the subject?
iv. Does the author identify his/her opinion?
3
1.6.6: Report Writing
Through the time line for the project, documentation of all the necessary and important
information about the design will be written for reference.
4
CHAPTER TWO
LITERATURE REVIEW
2.1: Introduction
This chapter provides general information which describes features, operations and limitations
of the existing systems. It also explains the relevant works that are useful to this project’s design,
conception and any other information that are likely to be important in improvements of the
project. It also explains about the proposed system, its operation and advantages of the proposed
system over the existing system.
5
a) Types of Barcode
i. Linear barcode (1D): A first generation, “One dimensional” barcode that is made up of
lines and spaces of various width that create specific patterns. Examples Code bar, code
11, Code 39, code 49 etc.
ii. Matrix barcode (2D): A matrix code, also termed as a 2D barcode or simply a 2D code,
is a two – dimensional way to represent information. It is similar to a linear (1-
dimension) barcode, but can represent more data per area. Example AR Code, Aztec
Code, BEE tag, Code 16K etc.
b) Barcode Quality Control and Verification
Barcode verification examines scanability and the quality of the barcode in comparison to
industry standards and specifications. (Layman, 2002) Barcode verifiers are primarily used by
businesses that print and use barcodes. Any trading partner in the supply chain can test barcode
quality. It is important to verify a barcode to ensure that any reader in the supply chain can
successfully interpret a barcode with a low error rate. Retailers levy large penalties for non-
compliant barcodes. These chargebacks can reduce a manufacturer's revenue by 2% to 10%.
(Zieger, 2003)
Barcode verifier standards
i. Barcode verifiers should comply with the ISO/IEC 15426-1 (linear) or ISO/IEC 15426-
2 (2D). This standard defines the measuring accuracy of a barcode verifier
ii. The current international barcode quality specification is ISO/IEC 15416 (linear) and
ISO/IEC 15415 (2D). The European Standard EN 1635 has been withdrawn and replaced
by ISO/IEC 15416. The original U.S. barcode quality specification was ANSI X3.182.
(UPCs used in the US – ANSI/UCC5). This standard defines the quality requirements for
barcodes and matrix codes (also called optical codes).
iii. As of 2011 the ISO workgroup JTC1 SC31 was developing a Direct Part Marking (DPM)
quality standard: ISO/IEC TR 29158. (ISO Web site, retrieved on 03 Feb, 2020)
International standards are available from the International Organization for Standardization
(ISO). These standards are also available from local/national standardization organizations, such
as ANSI, BSI, DIN, NEN and others.
6
c) Benefits of Barcode
7
2.3: Existing System
The system mainly consists of three sections include trolley section, product section and billing
counter section. Consider the figure 2.3 below which illustrates existing system.
8
Figure 2.3: Block Diagram of the Proposed System
2.4.1: Principle Operation of the Proposed System
A programmed control Unit is attached to barcode reader, control switch, weighing sensor, LCD
display and buzzer. When the customer picks a product and drop it into the trolley, the barcode
scanner scans the product’s barcode label and its price and sends a signal to the control unit. The
control unit then store it in the memory and compares it the lookup table. If it matches then it
shows the name and weight of product on the LCD screen and also the total amount of product
purchased. So, after customer has finished with shopping then the net bill that generated at the
trolley will be send to the central billing section via wi-fi module for updating customer
information and printing the receipt. Otherwise, a system will produce a sound notification at
instant billing time to indicate the invalid access when the user drops the item in the trolley
without to scan it. This will overcome the problem of existing system which was earlier stated.
2.4.2: Advantages of the Proposed System
i. It is automatically operated System or bill calculation at trolley itself.
ii. It reduces time spent at billing counter and Increases customer satisfaction.
iii. It Reduces manpower required in billing section. This can reduce the expenses incurred
by the management.
iv. It is user friendly system, since buyers can be aware of the total bill amount during the
time of purchase.
9
simulation of the project. The block diagram of the proposed system consists of the following
components;
2.5.1: Power Supply
A power supply is an electronic circuit device that supplies electric energy to an electrical load.
The primary function of a power supply is to convert one form of energy to another and as a
result, power supply is sometimes referred as electrical power converters (McKenna, Richardson
et al.2012). Some power supply are discrete, stand-alone devices, whereas others are built into
larger devices along with their load (Pressman, 1997). Most of electronic circuit uses direct
current power supply for biasing purpose.
Power supply system consists of four components which are transformer, rectifier, filter and
regulator.
Figure 2.4: Power Supply Block Diagram (Billings and Morey, 2011)
Figure 2.5: Circuit Diagram of Power Supply (Billings and Morey, 2011)
a) Transformer
Transformer is a static device which transforms electrical energy from one circuit to another
circuit under mutual induction but without changing its frequency. The electric circuit which
receives energy from the supply mains is called primary winding and the other circuit which
delivers electric energy to the load is called secondary winding. The Transformer is an
electromagnetic energy conversion device. The energy received by the primary winding is first
10
converted to magnetic energy and it is then reconverted to useful electrical energy in the other
circuit (secondary winding circuit). Thus, primary and secondary windings of a Transformer are
not connected electrically, but are coupled magnetically. This coupling magnetic field allows the
transfer of energy in either direction from high-voltage to low-voltage circuits or from low-
voltage to high-voltage circuits.
Transformers are classified as follows;
i. Step Up Transformer & Step-Down Transformer- Generally used for stepping up and
down the voltage level of power in transmission and distribution power network.
ii. Three Phase Transformer & Single-Phase Transformer – Transformer made up of three
cores are employed as three phase transformers and those made up of a single core is
named single transformers
iii. Electrical Power Transformer, Distribution Transformer - Transformer is generally used
in transmission network which is normally known as power transformer, distribution
transformer is used in distribution network and this is lower rating transformer
iv. Instrument Transformers, Current Transformer & Potential Transformer we use for
measuring current and voltage at substations and in different instruments in industries are
called instrument transformer.
v. Outdoor Transformer & Indoor Transformer - Transformers that are designed for
installing at outdoor are outdoor transformers and transformers designed for installing at
indoor are indoor transformers.
Where,
Vp = Is the primary voltage of the transformer
Vs = Is the secondary voltage of the transformer
Np =Is the primary number of turns of the transformer
11
Ns =Is the secondary number of turns of the transformer
Ip =Is the primary current of the transformer
Is = Is the secondary current of the transformer
In this project; Step down transformer will be used to step down AC voltage from main supply
into 12V voltage, the value that is suitable to be fed to the rectifier for the further process.
b) Rectifier
It is a circuit which employs one or more diodes to convert ac voltage into pulsating dc voltage.
The simple process of rectification produces a type of DC characterized by pulsating voltages
and currents (although still unidirectional). Depending upon the type of end-use, this type of DC
current may then be further modified into the type of relatively constant voltage DC
characteristically produced by such sources as batteries and cells. In general, there are two types
of rectifier, thus are half wave and full wave rectifiers.
Both half and full wave rectifiers use transformer at their inputs. The transformer should be step-
down transformer in order to reduce the voltage into the required value, depending on the dc
output voltage level needed.(Martinez and Enjenti, 1996)
i. Half-wave rectification.
In half wave rectification, either the positive or negative half of the AC wave is passed, while
the other half is blocked. Because only one half of the input waveform reaches the output, it is
very inefficient if used for power transfer. Half-wave rectification can be achieved with a single
diode in a one-phase supply, or with three diodes in a three-phase supply. Half wave rectifiers
yield a unidirectional but pulsating direct current.
ii. Full-wave rectification.
A full-wave rectifier converts the whole of the input waveform to one of constant polarity
(positive or negative) at its output. Full-wave rectification converts both polarities of the input
waveform to DC (direct current), and is more efficient. However, the full wave rectifier can be
grouped into full wave rectifier center tap or full wave bridge rectifier circuit. In case of bridge
rectifier four diode are employed. The figure below shows the full wave rectifier bridge circuit
with single component bridges where the diode bridge is wired internally.
12
In Full-Wave Rectification, there are centre tapped full-wave rectifier and bridge full-wave
rectifier where in centre tapped two diodes are used. During the half positive cycle one diode
conducts current and during the negative half cycle the second diode conducts currents. In bridge
full-wave rectifier, four diodes are used where during a positive half cycle two diodes are
forward biased and allows the current through the load, the other two diodes are reverse biased.
During the negative half cycle the two diodes which are reverse biased during the positive cycle
are now forward biased and conducts current through the load.
13
For Further Calculation in this rectifier, the following formula will be used in designing the
supply to the system;
Consider the input supply voltage from the secondary transformer as Vrms (Root-mean square
voltage). The corresponding peak voltage of secondary transformer (Vp) will be obtained from
the following formula;
Vp = √𝟐𝐕𝐫𝐦𝐬 …………………………………………………. (Equation 2.2)
For the peak value of the rectified voltage, Vpr;
Vpr = Vp – 2Vd, Where Vd is the diode Voltage drop given as 0.7V …………. (Equation 2.3)
For the average output voltage;
Vav = 2Vpr∕ 𝝅 ……………………………………………………………………. (Equation 2.4)
For Peak Inverse Voltage (PIV);
PIV = Vp + 0.7 ….…………………………………………………………………... (Equation
2.5)
c) Filter
The function of this circuit element is to remove the fluctuations or pulsations (called ripples)
present in the output voltage supplied by the rectifier. Of course, no filter can in practice gives
an output voltage as ripple-free as that of a dc battery but it approaches it so closely that the
power supply performs as well.
The output of the rectifier circuit contains an AC component called ripples, which should be
filtered before the voltage goes to the regulator.
14
opposes any change in voltage. When connected across a pulsating dc voltage, it tends to
smoothen out or filter out the voltage pulsations (or ripples) (A. K. Theraja).
15
iv. The R-C Filter; this filter consists of resistor in series with load and capacitor in parallel
with load. The resistor is connected before the capacitor (A. K. Theraja).
16
In this project the shunt capacitor filter will be used due to the ICs voltage regulators needs only
The simplest formulas that will be used for further calculations using shunt capacitors;
DC load Voltage;
Vo = Vp – Vrp ………………………………………………… (Equation 2.6)
Where; Vo – The output voltage
Vp – Peak Voltage
Vrp – Ripple Voltage
But Vrp = 0.1Vp …………………………………………………………………... (Equation 2.7)
In RMS Value, Vrp (rms) = Vrp /√𝟐 ……………………………………………. (Equation 2.8)
𝑰𝒅𝒄
Also, Vrp (rms) = ……………………………………………………… (Equation
𝟒√𝟑𝒇𝑪
2.9)
Where; f = frequency
C = Capacitor
Idc = Output DC / Full Load Current.
For Ripple factor;
The ripple factor of unfiltered waves is given as;
𝟎.𝟑𝟎𝟖𝐕𝐩𝐫
r= 𝟐𝐕𝐩𝐫 ×100…….……………………………………………………. (Equation 3.0)
𝚷
𝟏
Therefore, the value of filtering capacitor c = …………………………… (Equation 3.2)
𝟐√𝟑𝒇𝑹𝒓
d) Voltage Regulator
17
2) The Need for the Voltage Regulator
The purpose of Voltage regulators is to provide a steady supply voltage to the designing circuit.
This is due to the sources of primary power are usually not stable enough to supply to the
proposed circuit with its specifications. Internal designing of circuit components requires stable
voltage for proper operation. Most Microcontroller run from a 3 V or 5 V supply, which should
be regulated to within a fraction of a Volt. For instance, many chips designed to operate from a
5 V nominal require the voltage to remain between 4.5 and 5.5 Volts.
3) Types of Regulator
a) 78xx Regulator
The 78xx is a family of self-contained fixed linear voltage regulator integrated circuits. The
78xx family is commonly used in electronic circuits requiring a regulated power supply due
to their ease-of-use and low cost. For ICs within the family, the xx is replaced with two digits,
indicating the output voltage (for example, the 7805 has a 5-volt output, while the 7812
produces 12 volts). The 78xx line is positive voltage regulators: they produce a voltage that
is positive relative to a common ground. 78xxICs can be used to provide positive supply
voltages.(Wheelers, 2012)
18
Figure 2.16: 79xx Regulator (Wheelers, 2012)
In this project, 78xx regulator will be used due to the reason that 79xx regulator produces a
negative output voltage. Hence in this designing system, 78xx regulator will provide +5v DC
output voltages to supply the control unit, barcode reader unit and display unit as well as +9v to
supply the weighing sensor module.
For Regulator;
Resistors will be used to limit the current entering Light Emitting Diode (LED).
Where; R = Resistor
V = Voltage
I = Current
2.5.2: Microcontroller
Control unit is the part of a system that manages all of the actions performed by the system. It is
responsible for all major operations including accepting data from the barcode reader, weighing
sensor and take action on the switch to control the data received from the barcode reader. In this
system microcontroller will be used as a control unit.
Microcontrollers (also known as embedded controller) are microcomputer. Unlike personal
computers, microcontrollers are computers that designed to carry out a specific function.
However, microcontrollers are not used on their own, they are embedded with another computer
or machine. They carry out their function by taking inputs from device they are incorporated into
it. For example, in this project microcontroller will be programmed in such a way that it will be
used for reading various digital input signals from barcode scanner and weighing sensor, sending
this data to display screen so that the person operating this project should understand the status
and giving the respective signal to the various output devices (Peradath, 2017).
19
Factors that have driven the development of microcontroller are low cost, versatility, easy to
program and small in size, in contrast to the general-purpose microcontroller. Microcontroller
are very attractive in design because they are small in size and broad functionality allow them to
be physically embedded in the system to perform all of the necessary functions. It is a small
computer on a single integrated circuit consist of a relatively simple central processing unit
(CPU) combined with support functions such as crystal oscillator, timer, serial and analog input
and output. Program memory also included on a chip as well as a typically small amount of
random-access memory (RAM) (Peatman, 1997). Consider the table 2.1 given below which
illustrates the necessary requirements of microcontroller to be used in this project.
PARAMETER REQUIREMENTS
I/O Pins Min. 16 pins
Power Consumption Low (app. 2V to 5V)
Memory Specifications Up to 128 KB for Program Memory
4KB Data Memory
Clock Speed At least 8MHz
Cost Affordable (Less Expensive)
Availability Easily Available
Control Interface Analog/ digital
Additional Features
Support programming for scanning items
detection either removing or adding the
items and weighing scale detection.
Microcontrollers are used in automatically controlled products and devices, such as automobile
engine control systems, implantable medical devices, remote controls, office machines,
appliances, power tools, toys and other embedded systems. By reducing the size and cost
compared to a design that uses a separate microprocessor, memory, and input/output devices,
microcontrollers make it economical to digitally control even more devices and processes. Mixed
signal microcontrollers are common, integrating analog components needed to control non-
digital electronic systems.
20
Some microcontrollers may use four-bit words and operate at clock rate frequencies as low as 4
kHz, for low power consumption (single-digit mill watts or microwatts). They will generally
have the ability to retain functionality while waiting for an event such as a button press or other
interrupt; power consumption while sleeping (CPU clock and most peripherals off) may be just
Nano watts, making many of them well suited for long lasting battery applications. Other
microcontrollers may serve performance-critical roles, where they may need to act more like a
digital signal processor (DSP), with higher clock speeds and power consumption.
a) Categories of Microcontrollers
Microcontrollers are divided into categories according to their memory, architecture, bits and
instruction sets(Hintz and Tabak, 1992). These include: -
i. Bits: 8-bit microcontroller executes logic & arithmetic operations. Examples of 8 bits’
micro controller is Intel 8031/8051. 16-bits microcontroller executes with greater
accuracy and performance in contrast to 8-bit. Example of 16-bit microcontroller is Intel
8096. 32-bit microcontroller is employed mainly in automatically controlled appliances
such as office machines, implantable medical appliances, etc. It requires 32-bit
instructions to carry out any logical or arithmetic function.
ii. Memory: External Memory Microcontroller – When an embedded structure is built with
a microcontroller which does not comprise of all the functioning blocks existing on a
chip it is named as external memory microcontroller. For illustration- 8031
microcontroller does not have program memory on the chip. In addition, Embedded
Memory Microcontroller – When an embedded structure is built with a microcontroller
which comprise of all the functioning blocks existing on a chip it is named as embedded
memory microcontroller. For illustration- 8051 microcontroller has all program & data
memory, counters & timers, interrupts, I/O ports and therefore its embedded memory
microcontroller.
iii. Instruction Set: CISC- CISC means complex instruction set computer, it allows the user
to apply 1 instruction as an alternative to many simple instructions. In addition, RISC-
RISC means Reduced Instruction Set Computers. RISC reduces the operation time by
shortening the clock cycle per instruction.
iv. Memory Architecture
• Harvard Memory Architecture Microcontroller
• Princeton Memory Architecture Microcontroller
21
b) Structure of Microcontroller
22
ADC converters are used for converting the analog signal to digital form. The input signal in this
converter should be in analog form (e.g. sensor output) and the output from this unit is in digital
form. The digital output can be used for various digital applications (e.g. measurement devices).
vii. Digital to Analog Converter (DAC)
DAC perform reversal operation of ADC conversion. DAC converts the digital signal into analog
format. It usually used for controlling analog devices like DC motors, various drives, etc.
viii. Interrupt Control
The interrupt control used for providing interrupt (delay) for a working program, The interrupt
may be external (activated by using interrupt pin) or internal (by using interrupt instruction
during programming).
ix. Special Functioning Block
Some microcontrollers used only for some special applications (e.g. space systems and robotics)
these controllers containing additional ports to perform such special operations. This considered
as special functioning block.
c) Types of Microcontroller
There are various types of microcontroller which are AVR microcontroller, Arduino
microcontroller, 8051 microcontroller, ARM microcontroller and PIC microcontroller.
i. 8051 Microcontroller
The most universally employed set of microcontrollers come from the 8051 family. 8051
Microcontrollers persist to be an ideal choice for a huge group of hobbyists and experts. In the
course of 8051, the humankind became eyewitness to the most ground-breaking set of
microcontrollers. The original 8051 microcontrollers were initially invented by Intel. The one
other members of this 8051 family is:
8052 – This microcontroller has 3 timers & 256 bytes of RAM. Additionally, it has all the
features of the traditional 8051 microcontrollers.
8051 Microcontroller Architecture:
The universally employed set of microcontrollers comes from the 8051 family. 8051
microcontrollers persist to be an ideal choice for a hobbyists and experts. In the course of 8051
microcontrollers the humankind become eyewitness to the most ground-breaking set of
microcontrollers. The original 8051 microcontrollers were initially invented by intel. The two
other members of this 8051 family includes 805-this microcontroller has 3 timers and 256 bytes
of RAM. Additionally, it has all the features of the traditional 8051 microcontrollers.
8051microcontroller is a subset of 8052 microcontrollers.
23
ii. AVR Microcontroller
AVR also known as advanced virtual RISC is an 8-bits RISC architecture microcontroller. This
is available from 1996 onwards only. There are 16-bits and 32-bit microcontrollers also available
in the same family. RISC means reduced instruction set computer. AVR has 40 instructions
which have all 1 cycles-based instructions. By default, AVR microcontroller operates with the
1MHZ clock cycles. AVR family microcontroller easily without any external programmer. AVR
has number of input and output ports, timer/counter, A/D converter, 12c interfaces, PWM
channels, on-chip analog computer (Tasdelen and Kutulu, 2016).
iii. ARM Microcontroller
ARM is the name of a company that designs micro-processors architecture. ARM is a short for
advanced RISC machines and their processor contain higher in speed because they perform small
number of instructions. It is also engaged in licensing them to the producers who fabricate
genuine chips (Garnsey et al., 2008). In actuality ARM is a 32-bit genuine RISC architecture. It
was initially developed in the year 1980 by Acorn Computers Ltd. This ARM base
microprocessor does not have on-board flash memory. ARM is particularly designed for micro-
controller devices, it is simple to be trained and make use of, however powerful enough for the
most challenging embedded device.
iv. Arduino Microcontroller
Arduino is an open-source platform used for building electronics projects. Arduino consists of
both a physical programmable circuit board (often referred to as a microcontroller) and a piece
of software, or IDE (Integrated Development Environment) that runs on your computer, used to
write and upload computer code to the physical board. The Arduino platform has become quite
popular with people just starting out with electronics, and for good reason (Buechley et al., 2008).
Unlike most previous programmable circuit boards, the Arduino does not need a separate piece
of hardware (called a programmer) in order to load new code onto the board – you can simply
use a USB cable. Additionally, the Arduino IDE uses a simplified version of C++, making it
easier to learn to program. Finally, Arduino provides a standard form factor that breaks out the
functions of the micro-controller into a more accessible package.
24
Figure 2.18: Arduino UNO (Barrett, 2013).
v. PIC Microcontroller
Peripheral Interface Controller (PIC) was developed by micro-chip technology. The micro-chip
technology is a manufacturer of microcontroller, memory and analog semiconductor. The PIC
family devices are larger and more capable than the AVR. PIC series range from a really simple
8pin 4MHZ microcontroller up to 40pin 25MHZ devices. The PIC microcontrollers are available
in 3 different architecture (Amondi, 2015). Those are 8-bits, 16-bits, 32-bits microcontroller.
PIC microcontroller has nearly 40 instructions which all are taken 4 clocks cycles to execute.
The speed of the PIC controller is 3-million instructions per seconds.
In this project, PIC Microcontroller will be used due to the following advantages compared to
the other types.
a) Reasons for why to use PIC Microcontroller and Not others
i. They are reliable and malfunctioning of PIC percentage is very less and performance of
the PIC is very fast because of using RISC architecture.
ii. Power consumption is also very less when compared to other micro controllers. When we
see in the programmer point of view interfacing is very easy, also we can connect analog
devices directly without any extra circuitry and use them. Programming is also very easy
when compared to other microcontrollers.
b) About PIC Microcontroller
Peripheral Interface Controller (PIC) provided by Micro-chip Technology to categorize its
solitary chip microcontrollers. These appliances have been extremely successful in 8-bit micro-
controllers. The foremost cause behind it is that Micro-chip Technology has been constantly
upgrading the appliance architecture and included much required peripherals to the micro-
controller to go well with clientele necessities. PIC microcontrollers are very popular amid
hobbyists and industrialists; this is only cause of wide availability, low cost, large user base &
serial programming capability.
25
Figure 2.19: (a) (b) Physical Appearance of PIC16F877A (Rafiquzzaman, 2011)
c) PIC Microcontroller Architecture
The architecture of the 8-bit PIC microcontrollers can be categorized as below;
i. Base Line Architecture – In the base-line architecture PIC microcontrollers of PIC10F
family is included, other than that a fraction of PIC12 & PIC16 families are also included.
These gadgets make use of 12-bit program word architecture with six to twenty-eight pin
package alternatives. Briefly defined attribute set of baseline architecture allows the most
lucrative product solutions. This architecture is perfect for battery enabled gadgets. The
PIC10F200 series is another reasonably priced 8-bit flash micro-controller with a 6-pin
package.
ii. Mid-Range Architecture – In this midline member of PIC12 & PIC16 families are added
that attribute 14-bit program word architecture. The midrange PIC16 gadgets proffer a
broad variety of package alternatives (from 8 to 64 package), with low to high levels of
peripheral incorporation. This PIC16 appliance attributes a variety of analog, digital &
serial peripherals, like- SPI, USART, I2C, USB, LCD & A/D converters. The mid-range
PIC16 micro-controllers have suspended controlling ability with an eight-level hardware
load.
iii. High Performance Architecture – The high-performance architecture included the PIC18
family of appliances. These micro-controllers make use of 16-bit program word
architecture along with 18 to 100 pin package alternatives. The PIC18 appliances are high
performance micro-controllers with incorporated Analog to Digital converters. All PIC18
micro-controllers integrate a highly developed RISC architecture that supports flash
appliances. The PIC18 has improved foundation attributes, 32 level deep load and several
inner and exterior interrupts.
Since the type of PIC that will be used in this proposed project is from 16F PIC family which is
16F877A. The reason to use this type is due to its many number of pins which is 40 pins, High
performance RISC CPU, High Operating speed, High memory Up to 368×8bit of RAM (data
memory), 256×8 of EEPROM (data memory), 8k×14 of flash memory, Wide operating voltage
26
range (2.0 – 5.56) volts, Commercial, industrial and extended temperature ranges, Low power
consumption.
27
Advantages of Crystal Oscillator
i. The Crystal Oscillators have very high frequency stability.
ii. The Crystal Oscillator is possible to obtain very high precise and stable frequency of
oscillators.
iii. It has High frequency of operation.
iv. It has very low frequency drift due to change in temperature and other parameters.
v. The Quartz clock is very high.
vi. It has Automatic amplitude control.
Disadvantages of Crystal Oscillator
i. These are suitable for high frequency application.
ii. Crystals of low fundamental frequencies are not easily available.
Application of Crystal Oscillator
i. The Crystal Oscillators are used in the frequency synthesizers.
ii. It is used in special types of receivers.
iii. It is used in radio and TV transmitters.
iv. It is used as a crystal clock in microprocessors.
28
Figure 2.22: PIC16F877A Basic Interface and Configuration
As shown in Figure 2.22, there is RESET switch connected to power supply in parallel to resistor
for limiting current and C1 and C2 connected to either side of the crystal are parasitic capacitor
which assist the crystal oscillator to maintain and optimize electric condition.
After obtaining value for the external capacitors, it is then important to justify if the selected
oscillator drives the microcontroller.
The formula and condition in Equation 3.8 is used to justify scenario.
29
…….……. (Equation 3.8)
30
2.5.5: Control Switch Unit
Control switches will be provided on the trolley for the user to check the total cost of the item
has to purchase, what products has taken, per unit cost of the item, etc. after completing the
shopping, the user need to press the finish button. Also, as the users put the items the costs will
get added to total. Thus, the billing will be done at the trolley itself. Item name and its cost will
be displayed. (Soudharya, 2015).
31
2.5.7: Liquid Crystal Display (LCD)
A liquid crystal display is a flat display or other electronic visual display that uses the light
modulating properties of liquid crystals. It displays the information according to the instruction
sent to it from the controller. LCD displays utilize two sheets of polarizing material with a liquid
crystal solution between them. An electric current passed through the liquid causes the crystal
to align so that light cannot pass through them. Each crystal, therefore, is like a shutter, either
allowing light to pass through or blocking the light. LCD’s consume much less power than LED
and gas-display because they work on the principle of blocking light rather than emitting it.
LCD’s are used in flat screen TV’s, Smartphone, computer monitors, digital watches,
etc.(Lagerwall, 2008).The LCD can be made in different size such as 8x1, 8x2, 10x2, 16x1,
16x2, 16x4, 20x2, 20x4, 24x2, 30x2, 32x2, 40x2 etc. For example, in an mxn LCD. M denotes
number of coulombs and n represents number of rows. Like if the LCD is denoted by 16x4 it
means it has 16 coulombs and 4 rows. All these LCD’s performs the same functions such as
display characters, numbers, special characters ASCII characters etc. Hence their programming
is also the same since they all comes with the 14 pins (0 to 13) or 16 pins (0 to 15).
32
In this project, LCD will be used to display the product details like price, weight, discount etc.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD
each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command
and Data. The command register stores the command instructions given to the LCD. A command
is an instruction given to LCD to do a predefined task like initializing it, clearing its screen,
setting the cursor position, controlling display etc. The data register stores the data to be
displayed on the LCD. The data is the ASCII value of the character to be displayed on the LCD.
(Kokawa and Nishihara et al,1995).
4 Select command when low; and data register when high Register select
6 Sends data to data pins when a high to low pulse is given Enable
33
i. Electromechanical
Early devices were based on an electromechanical system identical to an electric bell without the
metal gong. Similarly, a relay may be connected to interrupt its own actuating current, causing
the contacts to buzz. Often these units were anchored to a wall or ceiling to use it as a sounding
board. The word "buzzer" comes from the rasping noise that electromechanical buzzers made.
ii. Mechanical
A joy buzzer is an example of a purely mechanical buzzer and they require drivers. Other
examples of them are doorbells.
Piezoelectric
A piezoelectric element may be driven by an oscillating electronic circuit or other audio
signal source, driven with a piezoelectric audio amplifier. Sounds commonly used to indicate
that a button has been pressed are a click, a ring or a beep.
Interior of a readymade loudspeaker, showing a piezoelectric-disk-beeper (With 3 electrodes ...
including 1 feedback-electrode (the central, small electrode joined with red wire in this photo)
and an oscillator to self-drive the buzzer. A piezoelectric buzzer/beeper also depends on acoustic
cavity resonance or Helmholtz resonance to produce an audible beep.
In this project, the buzzer alarm will be used to indicate the invalid access. This will be connected
to the output of control unit. It most commonly consists of a number of switches or sensors
connected to a control unit that determines if and which button was pushed or a preset time has
lapsed, and usually illuminates a light on the appropriate button or control panel, and sounds a
warning in the form of a continuous or intermittent buzzing or beeping sound. In this project,
when a customer forgets to read a product or indulge in malicious activities the buzzer will alert
by a ringing or buzzing sound (Dische et al, 1983).
34
term meaning IEEE 802.11x. Examples of Wi-Fi module include Zigbee, Bluetooth etc.
(Kalaivani et al, 2019)
In this project Zigbee module will be used. ZigBee is a specification for a suite of high-level
communication protocols using small, low-power digital radios based on the IEEE 802.15.4-
2003 standard for Low Rate Wireless Personal Area Networks (LR-WPANs). The technology
defined by the ZigBee specification is intended to be simpler and less expensive than other
WPANs, such as Bluetooth. Zigbee devices can transmit data over long distances by passing
data through a mesh network. Zigbee is typically used in low data rate applications that require
long battery life and secure networking. The distances that can be achieved transmitting from
one station to the next extend up to about 70 meters. It shows name of every item, its
corresponding cost and the total bill of all products.
35
REFERENCES
[1] BERGIA, M. (2006). Supermarket Trolley. New York: Google Patents.
[2] CONNOLLY, T.M. & BEGG, C. E. (2015). Database Systems: A practical Approach to
Design, Implementation and Management, Pearson Education.
[3] A. EZHILARASI, (2018). Smart Assistance Trolley. New Delhi: International Research
Journal of Engineering and Technology.
[4] Prof. S.H. PATIL, (2007). A Survey on Technologies Used for Billing System in
Supermarkets. New Delhi: International Journal of Innovative Research in Science,
Engineering and Technology.
[5] ANJALI PERADATH, (2017). RFID Based on Smart Trolley for Supermarket
Automation. New Delhi: International Research Journal of Engineering and Technology.
[6] SHUBHAM AGRAWAL, (2016). Intelligent Cart System. New Delhi: International
Journal of Innovative Research in Science, Engineering and Technology.
[7] V. SOUDHARYA, (2015). Futuristic Trolley for Intelligent billing System. New Delhi:
International Journal of Research in Electronics.
[8] P. KALAIVAN et al, (2019). An Automated Billing System in Shopping Malls Using
Bascart: Bulletin Scientific Research [Online]. Available:
https://doi.org/10.34256/bsr1919 [ Retrieved on 05, January, 2020].
[9] S. SANDHIYA, (2019). An Automated Billing System in Shopping Malls Using Bascart:
Bulletin Scientific Research [Online]. Available:
https://doi.org/10.34256/bsr1919 [ Retrieved on 08, January, 2020].
[10] UDITA GANGWAL, (2013). Smart Shopping Cart for Automated Billing Purpose using
Wireless Sensor Networks. New Delhi: The Seventh International Conference on Sensor
Technologies and Applications.
[11] GARANDE JAYSHREE, (2014). RFID Based Automatic Billing Trolley. New Delhi:
International Journal of Emerging Technology and Advanced Engineering.
[12] J. ADVIRKAR, (2015). Intelligent Shopping Basket Using IOT. New Delhi:
International Journal of Pure and Applied Mathematics.
[13] LAGERWALL, S. T. (2008). Ferroelectric and Antiferroelectric Liquid Crystals. 2nd ed.
[Online]. Available:
https://en.wikipedia.org/wiki/Liquid-crystal_display [Accessed 20 January 2020].
[14] KOKAWA, S. et al. (1995). Liquid crystal display. Nagasaki: Google Patents.
[15] MONK, P. S. A. S, (1999). Practical electronics for inventors. S.L.:S. N.
36
[16] ROBOCRAZE, (2019). Robocraze Alphanumeric Display LCD. [Online]. Available:
http://www.indiamart.com/proddetal/alphanumeric-display-lcd [Accessed Friday 24
January,2020].
[17] PRESSMAN, A. (1997). Switching power supply design. London: McGraw-Hill, Inc.
[18] RAFIQUZZAMAN, M., (2011). Microcomputer Theory and Applications with the
PIC18F.London: Wiley Publishing.
[19] DISCHE, S, et al. (1983). Childhood Nocturnal Enuresis. New Delhi: Factor associated
with outcome of treatment with an enuresis alarm.
[20] SIMS, C. C, (1980). Alarm Buzzer Apparatus: Google Patents.
[21] PEATMAN, J.B, (1997). Design with PIC Microcontrollers. New York: Simon &
Schuster Trade.
[22] MARTINEZ, R. and P. N. ENJENTI, (1996). A high-performance Single-phase Rectifier
with Input Power Factor Correction. IEEE Transactions on Power Electronics 11(2): 311-
317.
[23] BILLINGS, K.H. & MOREY, T. (2011). Switched Power Supply Handbook. London:
Mc Graw-Hill Companies.
[24] MIkroC, Microcontroller Applications, McGraw Hill, 2001.
[25] M. Ismail, (2017). Design of an Intelligent Shopping Basket using IoT. Tirupathi:
International Journal of Pure and Applied Mathematics.
[26] ROBERTS, SAM, 2019. Barcode Technology. New York.
[27] Layman’s Guide to ANSI, CEN, and ISO Barcode Price Quality Docs. Association for
Automatic identification and Data Capture Technology (AIM), 2002.
[28] Principles of Electronics – by- V.K. Metha.
37
Appendix A
A.1 Cost Estimation
Table A1: Cost Estimation
38
Appendix B
B.1 Project Schedule
Table B1: Senior Project I
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
KEY:
39