You are on page 1of 65

MODERN BUS STATION USING RF

ABSTRACT-

With the title itself, one can understand that this project is exclusively used to give the
information of the forthcoming station to the passengers in the bus. Most of the passengers do
not bother about the stations arriving until their destination arrives. There may also be chances
like they miss their destination and have to get down at some other station and go back to reach
their destination. To get rid of this kind of problem, we have designed a project called
“MODERN BUS STATION USING RFâ€. This project uses wireless communication, RF.
RF has the advantages of fast communication for longer distances and reliability. The RF
modules used here are STT-433 MHz Transmitter along with an RF encoder HT12E, STR-433
MHz Receiver along with an RF decoder HT12D. Every station will have the RF transmitter.
The RF transmitter will be interfaced to the controller through an RF encoder to encode the data
received by the controller and to transmit the data. Here in our project the RF transmitter
continuously transmits the predefined data. The RF receiver which interfaces the controller
through an RF decoder will be fixed in the train. Here the RF decoder is used to decode the
signal received by the transmitter. As the train moves and approaches the station, the RF receiver
present in the train will receive the information(predefined data) which is being continuously
transmitted by the transmitter and will pass the decoded data to the controller so that the
controller performs the predefined task of displaying the corresponding data on the LCD. Thus
the passengers can know the forthcoming station and act accordingly. Here in our project
APR9600 voice module will also be provided for the audio indication of station arrival. It gives
the audio output of the prerecorded voice whenever required, as per the code logic. As this is the
prototype we will consider 4 push buttons as inputs for four different stations. This project uses
regulated 5V, 500mA power supply. 7805 three terminal voltage regulator is used for voltage
regulation. Full wave bridge rectifier is used to rectify the ac output of secondary of 230/12V
step down transformer.

I.INTRODUCTION
Automated fare collection (AFC) systems are used in many urban public transport systems
around the world. As the designation suggests, these are typically designed with the specific
purpose of automating the ticketing system, easing public transport use for passengers and
adding efficiency to revenue collection operations. In addition, AFC systems are used to enable
integrated ticketing across different public trans-port modes and operators in urban areas. This
chapter gives you an introduction about the Internet of Things and its real time applications. The
main idea behind this project is to collect the fare automatically using the Internet of Things in a
cost efficient manner.Internet of Things allows objects to sensed and controlled remotely across
existing network infrastructure.

II.LITERATURE REVIEW

Literature review was carried out throughout the whole project to gain knowledge and improve
the skills needed to complete this project. The main sources for this project are previous related
projects, research thesis, books, journals and online tutorials. This chapter focuses on the basic
concepts and all fundamental theories which related to this project and the drawbacks of the
current system.

EXISTING METHODOLOGY

At present, public transportation plays a key role in everyone’s life for budget friendly
transportation from one location to another location. So, nowadays we are utilizing the public
transportation like bus, train, auto etc for our easy way of transportation and we are not aware of
the bus in which at what time the bus will arrive and departs from the bus station, we don’t have
the information regarding bus location.

So, the passengers travelling in the public transport with lack of bus information in terms of bus
location, passenger count inside the bus etc. Recently we all aware of bus accidents which occurs
with any reasons and lost many precious life’s. We don’t have any information system regarding
of getting an alert of any bus met with an accident.
PROPOSED METHODOLOGY

The bus tracking system will provide information of the bus location to the remote user or
passengers out there. This system mainly gives the information of the bus in two methods
respectively. We are using two types of communications between bus driver to passengers & bus
driver to the transport department.

The first method is that we are informing the fellow passengers about the particular bus location
via RF Communication based sending data to the passengers waiting over at bus station. In this
method, we are using two models as one is RF Transmitter block (Bus Driver kit) & another one
is RF Receiver Block (Bus Station kit) in which it contains of four switches, Arduino Uno, GPS
Module, GSM Module, 16x2 LCD Display in RF Transmitter block and AT89C51 Micro-
controller unit in RF Receiver Block. The bus driver need to manually press the each switch
which represents the bus stops of the particular bus route and sends the data to the LCD Display
which is monitored in the bus station by  waiting passengers.  The displayed data will be      as
”BUS TS1234 IS AT LOCATION: xxxxx” in the bus station block. Similarly the bus driver need
to press all the other respective switches after crossing the each bus stop in that bus route to send
the bus location to the passengers waiting over at bus station.

In second method, this is used for getting the accurate bus location to the passengers effectively
by GPS & GSM Communication in between bus driver and passengers in the metropolitan city
or the passengers waiting out of the bus station. The passengers will able to track the real time
bus location by using GSM technology by sending an SMS to the concerned mobile number sim
which is inserted in the GSM Module in RF Tx block. After that any remote user wants the
information of the particular bus location from anywhere in the city, the user is all need to do is
sending an text message to the mobile number in the GSM Module as “@9234564563” then the
GSM Module receives the message and Arduino checks for the GPS availability and sends a
command to the GPS Module to receive the location of the bus from the satellites and then it
sends the latitude & longitude co-ordinates to LCD Display in RF Tx block and it also send a
SMS containing the google map link as “ALERT, BUS.NO.TS1234 IS AT
LOCATION: https://www.google.co.in/maps/place/(latitude,langitude”. By this method any
remote user in the city will get access to the bus location in a very easy manner by sending a
single message.

It also gives information regarding any accident occurred to the bus at anytime to the concerned
transport in-charge and to the transport department. It is basically works with the principle of
limit switch which will be present in the bus driver circuit and whenever the accident occurred
the limit switch will get pressed by the obstacle in which it indicates accident occurred to
particular bus. Then Arduino sends the command to the GSM Module and it sends the accident
prone area location as “ALERT, ACCIDENT DETECTED FOR BUS NO.TS1234, AT
LOCATION: https://www.google.co.in/maps/place/(latitude,langitude” to the concerned
transport department, Hospitals, Ambulance and Police Department.

Through this system we are able to get the information of bus in terms of bus location to the
public and accident detection of bus to the concerned departments in two types of
Communication which is RF Communication and GPS,GSM Communication.

RF Communication System

The primary motivation for this article was the design of a wireless communication system for
monitoring environmental parameters in bulk materials, namely, wood chip. This is a situation
where it is not possible to use sensors connected to a fixed bus line. The architecture of the
wireless RF monitoring system is in Figure 1 [12].
In the proposed monitoring system, n environmental sensors are located in the monitored area.
As the monitored area may be larger than the range of RF transmitting modules, the system
contains m receiving modules. Each receiving module is capable of receiving data from a set of
sensors, while these sets may overlap. For the implementation of wireless communication,
technology was chosen that allows communication at a distance of min. 50m and automatic
reception of data from transmitter probes without the need for further configuration. Using WiFi
or Bluetooth communication would require the need to connect the transmitters to the wireless
network. The use of RF signal in the free RF band 433.19MHz appears to be optimal for use in
terms of implementation and energy-saving.

When analyzing the problem, the requirements for the entire monitoring system were defined as
follows:(i)temperature measurement in the range -10C to 90C with accuracy of +/-0.5C and
resolution of 0.1C,(ii)autonomous operation of measuring probes for at least three months,
(iii)probe design resistant to the pressure of stored material in which the probe is placed and
against mechanical stress caused by mechanisms used in processing and material handling,
(iv)operation of probes in the free RF band 433.92MHz,(v)one-way communication protocol
which allows detection of a duplicate multiprobe transmission on the receiver side,
(vi)parameterized probe transmission frequency depending on the temperature of the material,
(vii)reception of a signal covering the entire storage site, secured by multiple receivers with
duplicate measured data filtering,(viii)data model of the system—internal model of the
measurement system maintaining information on the hardware configuration, active sensors,
their physical location, measured data, and other supplementary information,(ix)secure data
transmission from probes to receiving modules, secure communication from the receiving
modules and the control computer, and secure communication between the client software and
the control computer,(x)platform independent, simple client software,(xi)remote access to data.

The hardware part of the monitoring system consists of the required number of measurement
probes transmitting the measured data and one or more receiving modules covering the
monitored site.

Measuring Probe

The task of the measuring probe is measuring the required physical quantity (temperature,
humidity, pressure, etc.) at regular intervals and sending this value over the RF interface. An
autonomous operation is assumed, so for this module it is necessary to contain a battery that will
provide power to the entire solution. Along with the measured values, battery voltage
information will also be sent over RF link.

The measuring probe module (Figure 2) is designed to measure environmental parameters such
as temperature, humidity, atmospheric pressure, solar radiation intensity, and the like. For
biomass temperature monitoring purposes was developed a variant containing a temperature
sensor. The purpose of the measurement probe is to process the measured value, prepare
telemetry data, format the data according to the entered key, and send the processed data via the
RF interface. Ultra Low Power (ULP) components will be used to ensure minimum power
consumption.
As a communication channel a radio transmission was selected with a carrier frequency of
433.199MHz and OOK modulation. On-off keying (OOK) denotes the simplest form of
amplitude-shift keying (ASK) modulation that represents digital data at the presence or absence
of a carrier wave. In its simplest form, the presence of a carrier for a specific duration represents
a binary one, while its absence for the same duration represents a binary zero [13].

 Application Communication Protocol - nSoric RF Packet

The proposed monitoring system will work with one-way communication. For the data packet,
the following requirements were defined:(i)sufficiently large address space for
sensors(ii)variable packet items(iii)content of the data part: telemetry data and data from
connected sensors(iv)packet check(v)minimalistic demands for overhead communication

RF Transmission Security
When using RF communication in the free bandwidth, the weakest point is the unencrypted
transmission of measured data from the probes transmitter to the receiver. Such transmission
may be acquired, modified, and further transmitted, which represents a security risk. Since it is a
one- way transfer, it is not possible to exchange the encryption keys before the communication
itself. To implement secure transmission, the following requirements were defined:(1)utilization
of a symmetric cipher(2)computational light-weight encryption algorithm(3)encryption
algorithm suitable for small source message lengths(4)use of multiple encryption keys
To implement encryption into measuring probes, the cryptographic algorithm needs to be simple
because it is necessary to conserve electrical energy when it comes to autonomous measuring
probes. The methods of reducing power consumption are lowering the core frequency of the
microcontroller, use of microcontroller sleep modes, and minimization of the time when the
microcontroller works in RUN mode.

Another important parameter when selecting a suitable encryption algorithm is the length of the
message that is being sent. The resulting encrypted frame must not exceed 27B. The data frame
used (DATA_VW) is in Figure 4. The maximum frame length is 27B, of which 4B is the
overhead and 23B is the data itself. The minimum possible frame length is 5B: 4B overhead and
1B telemetry data. When using a probe with a temperature sensor, the communication frame will
have a length of 7B. An important parameter in choosing encryption algorithm is the length of
the encrypted block and the key size. Due to the minimum and maximum length of the
communication frame, the block length 8B is suitable. For this length, the data frame may have
lengths 8B, 16B, and 24B.

When implementing the cryptographic algorithm for data acquisition systems [16, 17], the means
of communication must be taken into account. In a one-way communication, the use of
symmetric encryption is the optimal choice. Based on the analysis of the efficiency and
complexity of the block cipher algorithms, we chose the SPECK algorithm.

INTRODUCTION ABOUT EMBEDDED SYSTEMS


2.1 Introduction:
An embedded system is a system which is going to do a predefined specified task is the
embedded system and is even defined as combination of both software and hardware. A general-
purpose definition of embedded systems is that they are devices used to control, monitor or assist
the operation of equipment, machinery or plant. "Embedded" reflects the fact that they are an
integral part of the system. At the other extreme a general-purpose computer may be used to
control the operation of a large complex processing plant, and its presence will be obvious.
All embedded systems are including computers or microprocessors. Some of these computers are
however very simple systems as compared with a personal computer.
The very simplest embedded systems are capable of performing only a single function or set of
functions to meet a single predetermined purpose. In more complex systems an application
program that enables the embedded system to be used for a particular purpose in a specific
application determines the functioning of the embedded system. The ability to have programs
means that the same embedded system can be used for a variety of different purposes. In some
cases, a microprocessor may be designed in such a way that application software for a particular
purpose can be added to the basic software in a second process, after which it is not possible to
make further changes.
The applications software on such processors is sometimes referred to as firmware.
The simplest devices consist of a single microprocessor (often called a "chip”), which may itself
be packaged with other chips in a hybrid system or Application Specific Integrated Circuit
(ASIC). Its input comes from a detector or sensor and its output goes to a switch or activator
which (for example) may start or stop the operation of a machine or, by operating a valve, may
control the flow of fuel to an engine.
As the embedded system is the combination of both software and hardware

2.2 Block diagram of embedded system:


Embedded
System

Software Hardware

ALP Processor
C Peripherals
VB memory
Etc.,

Fig.2.2: Block diagram of embedded system


Software deals with the languages like ALP, C, and VB etc., and Hardware deals with
Processors, Peripherals, and Memory
2.3 Applications of embedded systems:
 Manufacturing and process control

 Construction industry
 Transport
 Buildings and premises
 Domestic service
 Communications
 Office systems and mobile equipment
 Banking, finance and commercial
 Medical diagnostics, monitoring and life support
 Testing, monitoring and diagnostic systems

2.4 Micro Processor (µp):


A silicon chip that contains a CPU. In the world of personal computers, the terms
microprocessor and CPU are used interchangeably. At the heart of all personal computers and
most workstations sits a microprocessor. Microprocessors also control the logic of almost all
digital devices, from clock radios to fuel-injection systems for automobiles.
Processors are classified into four types like:
 Micro Processor (µp)
 Micro controller (µc)
 Digital Signal Processo1r (DSP)
 Application Specific Integrated Circuits (ASIC)

2.5 Three Basic Elements of a Microprocessor:


Fig.2.5: Three basic elements of a microprocessor
2.6 Harvard Architecture:
Computers have separate memory areas for program instructions and data. There are two or more
internal data buses, which allow simultaneous access to both instructions and data. The CPU
fetches program instructions on the program memory bus.
The Harvard architecture is a computer architecture with physically separate storage and signal
pathways for instructions and data. The term originated from the Harvard Mark I relay-based
computer, which stored instructions on punched tape (24 bits wide) and data in electro-
mechanical counters. These early machines had limited data storage, entirely contained within
the central processing unit, and provided no access to the instruction storage as data. Programs
needed to be loaded by an operator, the processor could not boot itself.

Fig.2.6: Harvard Architecture


2.6.1 Uses of the Harvard architecture:

The principal advantage of the pure Harvard architecture - simultaneous access to more than one
memory system - has been reduced by modified Harvard processors using modern CPU cache
systems. Relatively pure Harvard architecture machines are used mostly in applications where
tradeoffs, such as the cost and power savings from omitting caches, outweigh the programming
penalties from having distinct code and data address spaces.
 Digital signal processors (DSPs) generally execute small, highly-optimized audio or
video processing algorithms. They avoid caches because their behaviour must be extremely
reproducible. The difficulties of coping with multiple address spaces are of secondary concern to
speed of execution. As a result, some DSPs have multiple data memories in distinct address
spaces to facilitate SIMD and VLIW processing. Texas Instruments TMS320 C55x processors,
as one example, have multiple parallel data busses (two write, three read) and one instruction
bus.
 Microcontrollers are characterized by having small amounts of program (flash memory)
and data (SRAM) memory, with no cache, and take advantage of the Harvard architecture to
speed processing by concurrent instruction and data access. The separate storage means the
program and data memories can have different bit depths, for example using 16-bit wide
instructions and 8-bit wide data. They also mean that instruction pre-fetch can be performed in
parallel with other activities. Examples include, the AVR by Atmel Corp, the PIC by Microchip
Technology, Inc. and the ARM Cortex-M3 processor (not all ARM chips have Harvard
architecture).
Even in these cases, it is common to have special instructions to access program memory as data
for read-only tables, or for reprogramming.

2.6.2 Von-Neumann Architecture


A computer has a single, common memory space in which both program instructions and data
are stored. There is a single internal data bus that fetches both instructions and data. They cannot
be performed at the same time. The von Neumann architecture is a design model for a stored-
program digital computer that uses a central processing unit (CPU) and a single separate storage
structure ("memory") to hold both instructions and data. It is named after the mathematician and
early computer scientist John von Neumann. Such computers implement a universal Turing
machine and have a sequential architecture.
A stored-program digital computer is one that keeps its programmed instructions, as well as its
data, in read-write, random-access memory (RAM). Stored-program computers were
advancement over the program-controlled computers of the 1940s, such as the Colossus and the
ENIAC, which were programmed by setting switches and inserting patch leads to route data and
to control signals between various functional units. In the vast majority of modern computers, the
same memory is used for both data and program instructions. The mechanisms for transferring
the data and instructions between the CPU and memory are, however, considerably more
complex than the original von Neumann architecture.
The terms "von Neumann architecture" and "stored-program computer" are generally used
interchangeably, and that usage is followed in this article.

Fig.2.6.1: Schematic of the Von-Neumann Architecture.

MICRO CONTROLLER UNIT


3.1 ATMEGA328
Arduino Uno is a microcontroller board based on 8-bit ATmega328P microcontroller.
Along with ATmega328P, it consists other components such as crystal oscillator, serial
communication, voltage regulator, etc. to support the microcontroller. Arduino Uno has 14
digital input/output pins (out of which 6 can be used as PWM outputs), 6 analog input pins, a
USB connection, A Power barrel jack, an ICSP header and a reset button.
The ATmega8 microcontroller contains 32 general purpose working registers. As shown in
the below figure these registers are directly connected to ALU. Two registers can carry one
single instruction consequently in one clock cycle.
Specifications:
Microcontroller ATmega328P – 8 bit AVR family microcontroller
Operating Voltage 5V
Recommended Input
7-12V
Voltage
Input Voltage Limits 6-20V
Analog Input Pins 6 (A0 – A5)
Digital I/O Pins 14 (Out of which 6 provide PWM output)
DC Current on I/O Pins 40 Ma
DC Current on 3.3V Pin 50 Ma
Flash Memory 32 KB (0.5 KB is used for Boot loader)
SRAM 2 KB
EEPROM 1 KB

Frequency (Clock Speed) 16 MHz

Table 3.1: Atmega328 specifications

Arduino:
Arduino is a prototype platform (open-source) based on an easy-to-use hardware and
software. It consists of a circuit board, which can be programmed (referred to as a
microcontroller) and a ready-made software called Arduino IDE (Integrated Development
Environment), which is used to write and upload the computer code to the physical board.
The key features are −
 Arduino boards are able to read analog or digital input signals from different sensors and
turn it into an output such as activating a motor, turning LED on/off, connect to the
cloud and many other actions.
 You can control your board functions by sending a set of instructions to the
microcontroller on the board via Arduino IDE (referred to as uploading software).
 Unlike most previous programmable circuit boards, Arduino does not need an extra piece
of hardware (called a programmer) in order to load a 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 the functions of the micro-
controller into a more accessible package.

Fig 3.1 Arduino Uno

3.2 Board Types


Various kinds of Arduino boards are available depending on different microcontrollers
used. However, all Arduino boards have one thing in common: they are programed through the
Arduino IDE.
The differences are based on the number of inputs and outputs (the number of sensors,
LEDs, and buttons you can use on a single board), speed, operating voltage, form factor etc.
Some boards are designed to be embedded and have no programming interface (hardware),
which you would need to buy separately. Some can run directly from a 3.7V battery, others
need at least 5V.
Here is a list of different Arduino boards available.

3.2.1 Board Description:

In this chapter, we will learn about the different components on the Arduino board. We
will study the Arduino UNO board because it is the most popular board in the Arduino board
family. In addition, it is the best board to get started with electronics and coding. Some boards
look a bit different from the one given below, but most Arduinos have majority of these
components in common.

Power USB
1 Arduino board can be powered by using the USB cable from your computer. All you need
to do is connect the USB cable to the USB connection (1).

Power (Barrel Jack)


2 Arduino boards can be powered directly from the AC mains power supply by connecting it
to the Barrel Jack (2).

Voltage Regulator
3 The function of the voltage regulator is to control the voltage given to the Arduino board
and stabilize the DC voltages used by the processor and other elements.

Crystal Oscillator
The crystal oscillator helps Arduino in dealing with time issues. How does Arduino
4 calculate time? The answer is, by using the crystal oscillator. The number printed on top of
the Arduino crystal is 16.000H9H. It tells us that the frequency is 16,000,000 Hertz or 16
MHz.

5, 17 Arduino Reset
You can reset your Arduino board, i.e., start your program from the beginning. You can
reset the UNO board in two ways. First, by using the reset button (17) on the board.
Second, you can connect an external reset button to the Arduino pin labelled RESET (5).

Pins (3.3, 5, GND, Vin)


 3.3V (6) − Supply 3.3 output volt
 5V (7) − Supply 5 output volt
 Most of the components used with Arduino board works fine with 3.3 volt and 5
6, 7, 8,
volt.
9
 GND (8)(Ground) − There are several GND pins on the Arduino, any of which can
be used to ground your circuit.
 Vin (9) − This pin also can be used to power the Arduino board from an external
power source, like AC mains power supply.

Analog pins
The Arduino UNO board has six analog input pins A0 through A5. These pins can read the
10
signal from an analog sensor like the humidity sensor or temperature sensor and convert it
into a digital value that can be read by the microprocessor.

Main microcontroller
Each Arduino board has its own microcontroller (11). You can assume it as the brain of
your board. The main IC (integrated circuit) on the Arduino is slightly different from board
11 to board. The microcontrollers are usually of the ATMEL Company. You must know what
IC your board has before loading up a new program from the Arduino IDE. This
information is available on the top of the IC. For more details about the IC construction and
functions, you can refer to the data sheet.

ICSP pin
Mostly, ICSP (12) is an AVR, a tiny programming header for the Arduino consisting of
12 MOSI, MISO, SCK, RESET, VCC, and GND. It is often referred to as an SPI (Serial
Peripheral Interface), which could be considered as an "expansion" of the output. Actually,
you are slaving the output device to the master of the SPI bus.
Power LED indicator
This LED should light up when you plug your Arduino into a power source to indicate that
13
your board is powered up correctly. If this light does not turn on, then there is something
wrong with the connection.

TX and RX LEDs
On your board, you will find two labels: TX (transmit) and RX (receive). They appear in
two places on the Arduino UNO board. First, at the digital pins 0 and 1, to indicate the pins
14
responsible for serial communication. Second, the TX and RX led (13). The TX led flashes
with different speed while sending the serial data. The speed of flashing depends on the
baud rate used by the board. RX flashes during the receiving process.

Digital I/O
The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM (Pulse
15 Width Modulation) output. These pins can be configured to work as input digital pins to
read logic values (0 or 1) or as digital output pins to drive different modules like LEDs,
relays, etc. The pins labeled “~” can be used to generate PWM.

AREF
16 AREF stands for Analog Reference. It is sometimes, used to set an external reference
voltage (between 0 and 5 Volts) as the upper limit for the analog input pins.

3.7 PIN DESCRIPTION OF ATMEGA328


Fig.3.7: Pin description of ATMEGA328

ADVANTAGES OF ARDUINO

 It is cheap
 It comes with an open supply hardware feature that permits users to develop their own kit
 The software of the Arduino is well-suited with all kinds of in operation systems like
Linux, Windows, and Macintosh, etc.
 It also comes with open supply software system feature that permits tough software
system developers to use the Arduino code to merge with the prevailing programming
language libraries and may be extended and changed.
 For beginners, it is very simple to use.

APPLICATIONS

ATMEGA328 is commonly used in many projects and autonomous systems where a


simple, low- powered, low- cost microcontroller is needed. Perhaps the most common
implementation of this chip is on the popular Arduino development platform, namely the
Arduino UNO and Arduino Nano model
CHAPTER-4
POWER SUPPLY UNIT

4.1 INTRODUCTION:
The power supplies are designed to convert high voltage AC mains electricity to a suitable
low voltage supply for electronic circuits and other devices. A power supply can by broken down
into a series of blocks, each of which performs a particular function. A d.c power supply which
maintains the output voltage constant irrespective of a.c mains fluctuations or load variations is
known as “Regulated D.C Power Supply”.

4.1.1 BLOCK DIAGRAM OF POWER SUPPLY:

Fig.4.1.1: Block Diagram of Power Supply

Fig.4.1.1(A): Schematic Diagram of Power Supply


4.1.2 DESCRIPTION OF POWER SUPPLY:

A power supply is a component that supplies power to at least one electric load.
Typically, it converts one type of electrical power to another, but it may also convert a a different
form of energy – such as solar, mechanical, or chemical - into electrical energy.

A power supply provides components with electric power. The term usually pertains to devices
integrated within the component being powered. For example, computer power supplies convert
AC current to DC current and are generally located at the rear of the computer case, along with
at least one fan. A power supply is also known as a power supply unit, power brick or power
adapter.

4.2 TRANSFORMER:

A transformer is a device that transfers electrical energy from one circuit to another
through inductively coupled conductors—the transformer's coils. A varying current in the first or
primary winding creates a varying magnetic flux in the transformer's core, and thus a varying
magnetic field through the secondary winding. This varying magnetic field induces a varying
electromotive force (EMF) or "voltage" in the secondary winding. This effect is called mutual
induction.

Fig.4.2: Transformer Symbol

(or)

Transformer is a device that converts the one form energy to another form of energy like a
transducer.
Fig.4.2(A): Transformer

4.2.1 Basic Principle of Transformer:

A transformer makes use of Faraday's law and the ferromagnetic properties of an iron core to
efficiently raise or lower AC voltages. It of course cannot increase power so that if the voltage is
raised, the current is proportionally lowered and vice versa.

Working of Transformer:

A transformer consists of two coils (often called 'windings') linked by an iron core, as
shown in figure below. There is no electrical connection between the coils, instead they are
linked by a magnetic field created in the core.
Fig.4.2.1: Basic Transformer

Transformers are used to convert electricity from one voltage to another with minimal loss of
power. They only work with AC (alternating current) because they require a changing magnetic
field to be created in their core. Transformers can increase voltage (step-up) as well as reduce
voltage (step-down).

Alternating current flowing in the primary (input) coil creates a continually changing magnetic
field in the iron core. This field also passes through the secondary (output) coil and the changing
strength of the magnetic field induces an alternating voltage in the secondary coil. If the
secondary coil is connected to a load the induced voltage will make an induced current flow. The
correct term for the induced voltage is 'induced electromotive force' which is usually abbreviated
to induced e.m.f. The iron core is laminated to prevent 'eddy currents' flowing in the core.

These are currents produced by the alternating magnetic field


inducing a small voltage in the core, just like that induced in the secondary coil. Eddy currents
waste power by needlessly heating up the core but they are reduced to a negligible amount by
laminating the iron because this increases the electrical resistance of the core without affecting
its magnetic properties.

Transformers have two great advantages over other methods of changing voltage:

1. They provide total electrical isolation between the input and output, so they can be safely
used to reduce the high voltage of the mains supply.
2. Almost no power is wasted in a transformer. They have a high efficiency (power out /
power in) of 95% or more.
4.2.2 Classification of Transformer:

 Step-Up Transformer
 Step-Down Transformer

Step-Down Transformer:

Step down transformers are designed to reduce electrical voltage. Their primary voltage
is greater than their secondary voltage. This kind of transformer "steps down" the voltage applied
to it. For instance, a step down transformer is needed to use a 110v product in a country with a
220v supply.

Step down transformers convert electrical voltage from one level or phase configuration usually
down to a lower level. They can include features for electrical isolation, power distribution, and
control and instrumentation applications. Step down transformers typically rely on the principle
of magnetic induction between coils to convert voltage and/or current levels.

Step down transformers are made from two or more coils of insulated wire wound around a core
made of iron. When voltage is applied to one coil (frequently called the primary or input) it
magnetizes the iron core, which induces a voltage in the other coil, (frequently called the
secondary or output). The turn’s ratio of the two sets of windings determines the amount of
voltage transformation.

Fig.4.2.2: Step-Down Transformer


An example of this would be: 100 turns on the primary and 50 turns on the secondary, a ratio of
2 to 1.

Step down transformers can be considered nothing more than a voltage ratio device.

With step down transformers the voltage ratio between primary and secondary will mirror the
"turn’s ratio" (except for single phase smaller than 1 kva which have compensated secondary). A
practical application of this 2 to 1 turn’s ratio would be a 480 to 240 voltage step down. Note that
if the input were 440 volts then the output would be 220 volts. The ratio between input and
output voltage will stay constant. Transformers should not be operated at voltages higher than
the nameplate rating, but may be operated at lower voltages than rated. Because of this it is
possible to do some non-standard applications using standard transformers.

Single phase steps down transformers 1 kva and larger may also be reverse connected to step-
down or step-up voltages. (Note: single phase steps up or step down transformers sized less than
1 KVA should not be reverse connected because the secondary windings have additional turns to
overcome a voltage drop when the load is applied. If reverse connected, the output voltage will
be less than desired.)

Step-Up Transformer:

A step up transformer has more turns of wire on the secondary coil, which makes a larger
induced voltage in the secondary coil. It is called a step up transformer because the voltage
output is larger than the voltage input.

Step-up transformer 110v 220v design is one whose secondary voltage is greater than its primary
voltage. This kind of transformer "steps up" the voltage applied to it. For instance, a step up
transformer is needed to use a 220v product in a country with a 110v supply. A step up
transformer 110v 220v converts alternating current (AC) from one voltage to another voltage. It
has no moving parts and works on a magnetic induction principle; it can be designed to "step-up"
or "step-down" voltage. So a step up transformer increases the voltage and a step down
transformer decreases the voltage.
The primary components for voltage transformation are the step up transformer core and coil.
The insulation is placed between the turns of wire to prevent shorting to one another or to
ground. This is typically comprised of Mylar, nomex, Kraft paper, varnish, or other materials. As
a transformer has no moving parts, it will typically have a life expectancy between 20 and 25
years.

Fig.4.2.2(a): Step-Up Transformer

4.3 DIODES:

Diodes allow electricity to flow in only one direction.  The arrow of the circuit symbol
shows the direction in which the current can flow.  Diodes are the electrical version of a valve
and early diodes were actually called valves.

Fig.4.3: Diode Symbol

A diode is a device which only allows current to flow through it in one direction.  In this
direction, the diode is said to be 'forward-biased' and the only effect on the signal is that there
will be a voltage loss of around 0.7V.  In the opposite direction, the diode is said to be 'reverse-
biased' and no current will flow through it.

4.4 Rectifier:
The purpose of a rectifier is to convert an AC waveform into a DC waveform (OR) Rectifier
converts AC current or voltages into DC current or voltage.  There are two different rectification
circuits, known as 'half-wave' and 'full-wave' rectifiers.  Both use components called diodes to
convert AC into DC.

The Half-Wave Rectifier:

The half-wave rectifier is the simplest type of rectifier since it only uses one diode, as shown in
figure.

Fig.4.4(a): Half Wave Rectifier

Figure 2 shows the AC input waveform to this circuit and the resulting output.  As you can see,
when the AC input is positive, the diode is forward-biased and lets the current through.  When
the AC input is negative, the diode is reverse-biased and the diode does not let any current
through, meaning the output is0V.  Because there is a 0.7V voltage loss across the diode, the
peak output voltage will be 0.7V less than Vs.

While the output of the half-wave rectifier is DC (it is all positive), it would not be suitable as a
power supply for a circuit.  Firstly, the output voltage continually varies between 0V and Vs-
0.7V, and secondly, for half the time there is no output at all. 

The Full-wave Rectifier:


The circuit in figure 3 addresses the second of these problems since at no time is the output
voltage 0V.  This time four diodes are arranged so that both the positive and negative parts of the
AC waveform are converted to DC. 

Fig.4.4(b): Full-Wave Rectifier

Fig.4.4(c): Full-Wave Rectification

When the AC input is positive, diodes A and B are forward-biased, while diodes C and D are
reverse-biased.  When the AC input is negative, the opposite is true - diodes C and D are
forward-biased, while diodes A and B are reverse-biased. While the full-wave rectifier is an
improvement on the half-wave rectifier, its output still isn't suitable as a power supply for most
circuits since the output voltage still varies between 0V and Vs-1.4V.  So, if you put 12V AC in,
you will 10.6V DC out.
4.5 CAPACITOR FILTER:

The capacitor-input filter, also called "Pi" filter due to its shape that looks like the Greek
letter pi, is a type of electronic filter. Filter circuits are used to remove unwanted or undesired
frequencies from a signal.

Fig.4.5: Capacitor Filter

A typical capacitor input filter consists of a filter capacitor C1, connected across the rectifier
output, an inductor L, in series and another filter capacitor connected across the load.

1. The capacitor C1 offers low reactance to the AC component of the rectifier output while
it offers infinite reactance to the DC component. As a result the capacitor shunts an
appreciable amount of the AC component while the DC component continues its journey
to the inductor L
2. The inductor L offers high reactance to the AC component but it offers almost zero
reactance to the DC component. As a result, the DC component flows through the
inductor while the AC component is blocked.
3. The capacitor C2 bypasses the AC component which the inductor had failed to block. As
a result, only the DC component appears across the load RL.

Fig.4.5(A): Centered Tapped Full-Wave Rectifier with a Capacitor Filter

4.6 VOLTAGE REGULATOR:


A voltage regulator is an electrical regulator designed to automatically maintain a
constant voltage level. It may use an electromechanical mechanism, or passive or active
electronic components. Depending on the design, it may be used to regulate one or more AC or
DC voltages. There are two types of regulator are they.

 Positive Voltage Series (78xx) and


 Negative Voltage Series (79xx)

78xx:’78’ indicate the positive series and ‘xx’indicates the voltage rating. Suppose 7805
produces the maximum 5V.’05’indicates the regulator output is 5V.

79xx:’78’ indicate the negative series and ‘xx’indicates the voltage rating. Suppose 7905
produces the maximum -5V.’05’indicates the regulator output is -5V.

These regulators consist the three pins there are

Pin1: It is used for input pin.

Pin2: This is ground pin for regulator

Pin3: It is used for output pin. Through this pin we get the output.

Fig.4.6: Regulator
BLOCK DIAGRAM-

TRANSMITTER SIDE-

POWER
SUPPLY

RF
SWITCH 1 ENCODER
HT12E

MICRO RF
SWITCH 2
CONTROLLER TRANSMIT
—TER

SWITCH 3

SWITCH 4

RECEIVER SIDE-
POWER LCD

SUPPLY DISPLAY
RF
MICRO
DECODE CONTROLL
R ER APR 9600
HT12D
RF
RECEIVE
R SPEAKER

RFID (Radio Frequency Identification):


Introduction
Radio Frequency Identification (RFID) technology has been attracting considerable attention
with the expectation of improved supply chain visibility for both suppliers and retailers. It will
also improve the consumer shopping experience by making it more likely that the products
they want to purchase are available.
Recent announcements from some key retailers have brought the interest in RFID to the
forefront. This guide is an attempt to familiarize the reader with RFID technology so that they
can be asking the right questions when considering the technology.
What is RFID?
RFID (Radio Frequency Identification) is a method of identifying unique items using radio
waves. Typical RFID systems are made up of 2 major components: readers and tags. The reader,
sometimes called the interrogator, sends and receives RF data to and from the tag via antennas.
A reader may have multiple antennas that are responsible for sending and receiving the radio
waves. The tag, or transponder, is made up of the microchip that stores the data, an antenna, and
a carrier to which the chip and antenna are mounted.
RFID technology is used today in many applications, including security and access control,
transportation and supply chain tracking. It is a technology that works well for collecting
multiple pieces of data on items for tracking and counting purposes in a cooperative
environment.
Is All RFID Created Equal?
There are many different versions of RFID that operate at different radio frequencies. The choice
of frequency is dependent on the requirements of the application.
Three primary frequency bands have been allocated for RFID use.
Low Frequency (125/134 KHz):
Most commonly used for access control and asset tracking.
Mid-Frequency (13.56 MHz):
Used where medium data rate and read ranges are required.
Ultra High-Frequency (850 MHz to 950 MHz and 2.4 GHz to 2.5 GHz): offer the longest
read ranges and high reading speeds.

Applications for RFID within the supply chain can be found at multiple frequencies and
different RFID solutions may be required to meet the varying needs of the marketplace.
Many of today’s RFID technologies cannot reliably cover areas wider than 4 to 5 feet,
making them unsuitable for wide openings that are the norm in manufacturing,
distribution and store
receiving dock environments. Since UHF (Ultra High Frequency) can cover portals up to 9 feet
wide it is gaining industry support as the choice bandwidth for inventory tracking
applications including pallets and cases.
Technology providers are developing readers that work with multiple system protocols and
frequencies so that users will be able to choose the RFID products that work best for their
market and products.

RFID tags are further broken down into two categories:

Active RFID Tags are battery powered .They broadcast a signal to the reader and can transmit
over the greatest Distances (100+ feet).Typically they can cost $4.00 - $20.00 or more and are
used to track high value goods like vehicles and large containers of goods. Shipboard containers
are a good example of an active RFID tag application
Passive RFID Tags do not contain a battery. Instead, they draw their power from the reader.
The reader transmits a low power radio signal through its antenna to the tag, which in turn
receives it through its own antenna to power the integrated circuit (chip). The tag will briefly
converse with the reader for verification and the exchange of data. As a result, passive tags can
transmit information over shorter distances (typically 10 feet or less) than active tags. They have
a smaller memory capacity and are considerably lower in cost ($1.00 or less) making them ideal
for tracking lower cost items.

There are two basic types of chips available on RFID tags, Read-Only and Read-
Write. Read only chips are programmed with unique information stored on them during
the manufacturing process. The information on read-only chips can never be changed.
With Read-Write chips, the user can add information to the tag or write over existing
information when the tag is within range of the reader. Read-Write chips are more expensive
that Read Only chips. Another method used is something called a "WORM" chip (Write Once
Read Many). It can be written once and then becomes "Read only" afterwards. This is a
desirable format since companies will be able to write an EPC (electronic product code) to the
tag when the product is produced and packaged.

How Will RFID Affect Our Industry?


RFID is expected to provide huge advantages to manufacturers by offering the tools to better
plan production and respond more quickly to market demand. It will facilitate automation of
inventory counts and speed shipping and receiving at the distribution level. For retailers, it will
help to reduce stock-outs, enable product tracking and potentially reduce theft and streamline the
POS function. RFID will also open other merchandising opportunities and help with the overall
consumer buying experience.

Due to the current cost of the technology (both tags and infrastructure), the initial phase of
adoption for retailers is at carton and pallet marking applications. The current technology being
adopted for carton and pallet labeling is passive UHF tags (850 MHz – 950 MHz). As the cost of
tags and readers comes down, a wider adoption at the item marking level will develop.
In order for RFID to grow quickly, it is important that standards be developed so that the
technology providers are working toward a common goal of providing low cost and compatible
technologies. Not only will it drive down costs, but standards will also help users to reap the
greatest benefit from their investment by providing value throughout the whole supply chain.

Organizations Focused on Developing RFID Standards:


EPC global, Inc., a division of the Uniform Code Council, and its sponsors are working to
standardize a new Electronic Product Code (EPC) as the next standard for identifying products.
Their goal is not to replace existing bar code standards but to expand the information available
down to unique identifiers for each marked item, and to enable more automatic reading. EPC
utilizes the basic structure of the Global Trade Item Number (GTIN).

EPC global, Inc. has proposed open standards for tags and readers with the intention of bringing
the costs down to a level where RFID tags could be applied to individual items. The work may
lead to the creation of a new global Internet network that would allow companies to track items
and enable end users to access the full benefits of RFID.

EPC global, Inc. has developed a specification for RFID tags to be used in the retail sector. The
specification does not mandate what type of tag to be used but is intended to provide guidelines
on data structure and how the tags should perform so that they can be used over a common
platform. It is tailored around the experiences gained from the implementation of UPC and its
success in the marketplace for more than 25 years. The specification requires that the chip
contain an Electronic Product Code (EPC). The chip must be able to communicate according to
an open standard and meet some minimum requirements so that it can be read by reading devices
anywhere.

6.9 The Electronic Product Code (EPC)


The EPC is a number made up of a header and 3 sets of data as shown in the figure below. The
header identifies the EPC version number – which will allow for different lengths or types of
EPC later on. The second part of the number identifies the EPC manager – typically this would
be the manufacturer of the item the EPC is attached to. The third part is called object class and
refers to the exact type of product– most often the stock-keeping unit (SKU). The fourth series
of numbers is the serial number that is unique to the item. (The second and third sets of data are
similar in function to the numbers in UPC barcodes.)

ELECTRONIC PRODUCT CODE TYPE 1

01 • 0000A89 • 00016F • 000169DCO

Header EPC Manager Object Class Serial Number


8-bits 28-bits 24-bits 36-bits

Above is an example of a 96-bit EPC. It will allow sufficient capacity for 268 million
companies. Each manufacturer will have the ability to create up to 16 million object classes
with 68 billion serial numbers in each class. This should provide sufficient capacity to cover
all products manufactured in the world for many years to come. As an interim step, the Auto-
ID center is also proposing a 64-bit tag in order to minimize cost in the near term.
Potential Issues That Need Consideration When Choosing The Type Of RFID And
Method For Application To Your Products Or Packaging.
Enthusiasm within the RFID industry has resulted in much hype about the technology over the
past several years. As a result, it is important to embrace the technology with a bit of caution.
The following are some of the issues that require close scrutiny when investigating RFID:
Tag Cost – This should not to be confused with chip cost. Although the goal is to bring the cost
of the tag (chip and antenna) down to 5 cents, this goal is in the future since it both assumes
manufacturing breakthroughs and is predicated on consumption in the billions of tags per year.
Today, the cost is closer to "less than 50 cents" for a read/write solution in high (millions)
volume. Ultimate tag cost will also be very much dependent on the type of chip required (read
only versus read/write), size of the antenna needed and how it is packaged to meet a specific
application.

Tag Size – Tag size is dependent on the read range desired. Although the chips are very tiny,
they will not operate without being mounted to an antenna. The size of the antenna will
determine the read distance performance of the tag so understanding the size of the antenna
needed for the application is more important than the size of the chip alone.

Infrastructure Cost – Much focus appears to be placed on the tag cost since it is a recurring
expenditure. Reader cost and infrastructure costs for implementing RFID must also be looked at
very closely as well. Both the software systems requirements and physical environment, in which
RFID is intended to be used, are critical to the ultimate performance of a system and may require
changes to accommodate using it effectively. As an example, RFID chips cannot be read through
metal objects. Other forms of electromagnetic interference may also impede performance of he
technology and require changes to the physical environment where RFID will be used. The
number and types of readers will also be a major expenditure depending on your application.

Read Distances – Read distances for RFID are very much dependent on the frequency chosen
for the application. Tag orientation also affects the read range as the range diminishes as the tag
is rotated from
being perpendicular to the path to the reader. Reading reliability is quite good when labels are
alone in a reader field like cases on a conveyor line, but less certain when the labels are
randomly oriented as with labeled cases on a skid. The antenna size (both on the tag and the
readers) will also be a determining factor. Hand held readers are not capable of using as much
power as stationary readers and as a result provide shorter read distances.
Government Regulation – Governments around the world regulate the use of the frequency
spectrum. Different countries have already assigned certain parts of the spectrum for other
uses and as a result, there is virtually no part of the spectrum that is available everywhere in
the world for use by RFID. This means that a RFID tag may not work in all countries. As an
example if you choose the Ultra High Frequency (UHF) frequency that
Operates at 915MHz in the U.S. and you ship your product to Europe, they may not be able to
be read it since Europe operates in the UHF spectrum at 869 MHz. This is an important
consideration when operating in a global environment.

Anti-Collision – This is an important feature of RFID chips/readers since it will allow multiple
tags to be read while grouped in one reader field. It is not available on all RFID tags but is an
important feature if you are planning to use RFID for inventory counts, shipping and receiving
where multiple tags need to be read at the same time.

Privacy Issues – Consumer groups have expressed concern over the potential (real or imagined)
privacy invasion that might result with widespread RFID item marking. These groups are
pushing for legislation that will require manufacturers to advise consumers that the products
contain RFID devices and must provide a means so that the devices can be disabled at point of
purchase. These issues are most prevalent at the item marking level and will have little impact on
the implementation of carton and pallet labeling.
RFID
Glossary of Commonly Used Terms:
Active Tag – An RFID tag that uses a battery to power its microchip and communicate with a
reader. Active tags can transmit over the greatest distances (100+ feet). Typically they can cost
$20.00 or more and are used to track high value goods like vehicles and large containers of
merchandise.

Agile Reader – A reader that can read different types of RFID tags – either made by different
manufacturers or operating on different frequencies.

Antenna – A device for sending or receiving electromagnetic waves.


Anti-Collision – A feature of RFID systems that enables a batch of tags to be read in one
reader field by preventing the radio waves from interfering with one another. It also prevents
individual tags from being read more than once.

Automatic Data Capture (ADC) – Methods of collecting data and entering it directly into a
computer system without human intervention. Automatic Identification (Auto-ID) Refers to
any technologies for capturing and processing data into a computer system without using a
keyboard. Includes bar coding, RFID and voice recognition.

Auto-ID Center – A group of potential RFID end users, technology companies and
academia. The Auto-ID center began at the Massachusetts Institute of Technology (MIT)
and is now a global entity. It is focused on driving the commercialization of ultra-low cost
RFID solutions that use Internet like infrastructure for tracking goods throughout the global
supply chain. The Auto-ID Center organization is now EPC global.

Electronic Product Code (EPC)


A standard format for a 96-bit code that was developed by the Auto-ID Center. It is designed
to enable identification of products down to the unique item level. EPC’s have memory
allocated for the product manufacturer, product category and the individual item. The benefit
of EPC’s over traditional bar codes is their ability to be read without line of sight and their
ability to track down to the individual item versus at the SKU level.

EPC global – The association of companies that are working together to set standards for
RFID in the retail supply chain. EPC global is a joint venture between EAN International
and the Uniform Code Council, Inc.
Radio Frequency Identification (RFID)
A method of identifying items uniquely using radio waves. Radio waves do not require line
of site and can pass through materials like cardboard and plastic but not metals and some
liquids.

Read Range
The distance from which a reader can communicate with a tag. Several factors including
frequency used orientation of the tag, power of the reader and design of the antenna
affect range.

Reader
Also called an interrogator. The RFID reader communicates via radio waves with the RFID
tag and passes information in digital form to the computer system. Readers can be configured
with antennas in many formats including handheld devices, portals or conveyor mounted.

Read Only Tags


Tags that contain data that cannot be changed. Read only chips are less expensive than read-
write chips.

Read-Write Tags
RFID chips that can be read and written multiple times. Read/Write tags can accept data at
various points along the distribution cycle. This may include transaction data at the retail point
of sale. They are typically more expensive than read only tags but offer more flexibility.

RFID Transponder
Another name for a RFID tag. Typically refers to a microchip that is attached to an antenna,
which communicates with a reader via radio waves. RFID tags contain serial numbers that are
permanently encoded, and which allow them to be uniquely id
"WORM" Chip (Write Once Read Many) and then becomes "Read only" afterward.
Liquid Crystal Display
A liquid crystal display (LCD) is a thin, flat display device made up of any number of
colour or monochrome pixels arrayed in front of a light source or reflector. Each pixel consists
of a column of liquid crystal molecules suspended between two transparent electrodes, and two
polarizing filters, the axes of polarity of which are perpendicular to each other. Without the
liquid crystals between them, light passing through one would be blocked by the other. The
liquid crystal twists the polarization of light entering one filter to allow it to pass through the
other.
A program must interact with the outside world using input and output devices that
communicate directly with a human being. One of the most common devices attached to an
controller is an LCD display. Some of the most common LCDs connected to the contollers are
16X1, 16x2 and 20x2 displays. This means 16 characters per line by 1 line 16 characters per line
by 2 lines and 20 characters per line by 2 lines, respectively.
Many microcontroller devices use ‘smart LCD’ displays to output visual information.
LCD displays designed around LCD NT-C1611 module, are inexpensive, easy to use, and it is
even possible to produce a readout using the 5X7 dots plus cursor of the display. They have a
standard ASCII set of characters and mathematical symbols. For an 8-bit data bus, the display
requires a +5V supply plus 10 I/O lines (RS RW D7 D6 D5 D4 D3 D2 D1 D0). For a 4-bit data
bus it only requires the supply lines plus 6 extra lines(RS RW D7 D6 D5 D4). When the LCD
display is not enabled, data lines are tri-state and they do not interfere with the operation of the
microcontroller.
5.2.1 Description Of 16x2:
This is the first interfacing example for the Parallel Port. We will start with something
simple. This example doesn’t use the Bi-directional feature found on newer ports, thus it should
work with most, if no all-Parallel Ports. It however doesn’t show the use of the Status Port as an
input. So what are we interfacing? A 16 Character x 2 Line LCD Module to the Parallel Port.
These LCD Modules are very common these days, and are quite simple to work with, as all the
logic required to run them is on board.

available. Line lengths of


8, 16,
20, 24,
32 and
40
charact
ers are
all
standar
d, in
one,
two
Figure:5.2.1 Schematic Diagram of LCD (16x2)

 Above is the quite simple schematic. The LCD panel’s Enable and Register Select is


connected to the Control Port. The Control Port is an open collector / open drain output.
While most Parallel Ports have internal pull-up resistors, there are a few which don’t.
Therefore by incorporating the two 10K external pull up resistors, the circuit is more
portable for a wider range of computers, some of which may have no internal pull up
resistors.
 We make no effort to place the Data bus into reverse direction. Therefore we hard wire
the R/W line of the LCD panel, into write mode. This will cause no bus conflicts on the
data lines. As a result we cannot read back the LCD’s internal Busy Flag which tells us if
the LCD has accepted and finished processing the last instruction. This problem is
overcome by inserting known delays into our program.
 The 10k Potentiometer controls the contrast of the LCD panel. Nothing fancy here. As
with all the examples, I’ve left the power supply out. You can use a bench power supply
set to 5v or use a onboard +5 regulator. Remember a few de-coupling capacitors,
especially if you have trouble with the circuit working properly.

5.2.2 16 x 2 Alphanumeric LCD Module :

 Intelligent, with built-in Hitachi HD44780 compatible LCD controller and RAM
providing simple interfacing
 61 x 15.8 mm viewing area
 5 x 7 dot matrix format for 2.96 x 5.56 mm characters, plus cursor line
 Can display 224 different symbols
 Low power consumption (1 mA typical)
 Powerful command set and user-produced characters
 TTL and CMOS compatible
 Connector for standard 0.1-pitch pin headers

Symbol Level Function


Pin
1 VSS - Power, GND
2 VDD - Power, 5V
3 Vo - Power, for LCD Drive
Register Select Signal
4 RS H/L H: Data Input
L: Instruction Input
H: Data Read (LCD->MPU)
5 R/W H/L
L: Data Write (MPU->LCD)
6 E H,H->L Enable
7-14 DB0-DB7 H/L Data Bus; Software selectable 4- or 8-bit mode
15 NC - NOT CONNECTED
16 NC - NOT CONNECTED

Table:7 16 x 2 Alphanumeric LCD Module Specifications

5.2.3 Features of LCD:


• 5 x 8 dots with cursor
• Built-in controller (KS 0066 or Equivalent)
• + 5V power supply (Also available for + 3V)
• 1/16 duty cycle
• B/L to be driven by pin 1, pin 2 or pin 15, pin 16 or A.K (LED)
• N.V. optional for + 3V power supply
Data can be placed at any location on the LCD. For 16×1 LCD, the address locations are:

Table:8 Address locations for a 1x16 line LCD


Even limited to character based modules, there is still a wide variety of shapes and sizes
available. Line lengths of 8,16,20,24,32 and 40 characters are all standard, in one, two and four
line versions.
Several different LC technologies exists. “supertwist” types, for example, offer Improved
contrast and viewing angle over the older “twisted nematic” types. Some modules are available
with back lighting, so that they can be viewed in dimly-lit conditions. The back lighting may be
either “electro-luminescent”, requiring a high voltage inverter circuit, or simple LED
illumination.
5.3 PIN DESCRIPTION:
Most LCDs with 1 controller has 14 Pins and LCDs with 2 controller has 16 Pins (two pins are
extra in both for back-light LED connections).

Figure 5.3 Pin diagram of 1x16 lines LCD


Table:9 Pin specifications
5.4 CONTROL LINES:

EN: Line is called “Enable.” This control line is used to tell the LCD that you are sending it
data. To send data to the LCD, your program should make sure this line is low (0) and then set
the other two control lines and/or put data on the data bus. When the other lines are completely
ready, bring EN high (1) and wait for the minimum amount of time required by the LCD
datasheet (this varies from LCD to LCD), and end by bringing it low (0) again.
RS: Line is the “Register Select” line. When RS is low (0), the data is to be treated as a
command or special instruction (such as clear screen, position cursor, etc.). When RS is high (1),
the data being sent is text data which should be displayed on the screen. For example, to display
the letter “T” on the screen you would set RS high.
RW: Line is the “Read/Write” control line. When RW is low (0), the information on the data
bus is being written to the LCD. When RW is high (1), the program is effectively querying (or
reading) the LCD. Only one instruction (“Get LCD status”) is a read command. All others are
write commands, so RW will almost always be low. Finally, the data bus consists of 4 or 8 lines
(depending on the mode of operation selected by the user). In the case of an 8-bit data bus, the
lines are referred to as DB0, DB1, DB2, DB3, DB4, DB5, DB6, and DB7.
Logic status on control lines:
• E – 0 Access to LCD disabled
- 1 Access to LCD enabled
• R/W – 0 Writing data to LCD
- 1 Reading data from LCD
• RS – 0 Instructions
- 1 Character
Writing data to the LCD:
1) Set R/W bit to low
2) Set RS bit to logic 0 or 1 (instruction or character)
3) Set data to data lines (if it is writing)
4) Set E line to high
5) Set E line to low
Read data from data lines (if it is reading) on LCD:
1) Set R/W bit to high
2) Set RS bit to logic 0 or 1 (instruction or character)
3) Set data to data lines (if it is writing)
4) Set E line to high
5) Set E line to low
Entering Text:
First, a little tip: it is manually a lot easier to enter characters and commands in
hexadecimal rather than binary (although, of course, you will need to translate commands from
binary couple of sub-miniature hexadecimal rotary switches is a simple matter, although a little bit
into hex so that you know which bits you are setting). Replacing the d.i.l. switch pack with a of
re-wiring is necessary.
LCD Commands:
There are some present commands instructions in LCD, which we need to send to LCD
through some microcontroller. Some important command instructions are given below:

Hex Code Command to LCD Instruction Register


0F LCD ON, cursor ON
01 Clear display screen
02 Return home
04 Decrement cursor (shift cursor to left)
06 Increment cursor (shift cursor to right)
05 Shift display right
07 Shift display left
0E Display ON, cursor blinking
80 Force cursor to beginning of first line
C0 Force cursor to beginning of second line
38 2 lines and 5×7 matrix
83 Cursor line 1 position 3
3C Activate second line
08 Display OFF, cursor OFF
C1 Jump to second line, position 1
OC Display ON, cursor OFF
C1 Jump to second line, position 1
C2 Jump to second line, position 2
Table:10 Commands
INTRODUCTION TO APR9600:

The APR9600 provided all the necessary features for recording and playing the audio with very
fewer external components at a very low cost. May be many of you are aware that the APR9600
audio recorder and playback IC is no longer manufacured!. The chip was manufactured by a
Taiwan based company called APLUS Integrated Circuits Inc. I have searched for it in retail
shops all across SP road Bangalore but the vendors said that the chip is no longer manufactured.
Features:

 Single chip, high quality voice recording and playback solution


 User friendly, Easy to use operation
 Non – Volatile – flash memory technology, no battery backup required
 4-8 Khz sampling rate
 Audio output to drive a speaker or audio out for public address system
 Can record voice with the help of on-board microphone or via any audio input
Speaker

 
8 Ohm 10W Speaker
8 Ohm Speaker Pinout

Features and Specification

 Nominal Size: 20 mm
 Impedance: 8 Ohm ± 15% at 1 KHz 1V
 Resonant frequency: 750 Hz± 150 Hz at 1V
 Sound pressure level: 86 dB/w ± 3 dB
 Response: 10 dB (max)
 Input power: 0.5W
 Handling capacity: 1W
 Operation must be normal at program source of 0.5W
 Buzz, rattle, etc. must be normal at sine wave of 2 V
 Magnet Size:  8 x 1 mm
 Heat test: 60 ± 2° C
 Humidity test: 40 ± 2° C

 
8 Ohm Speakers with different power rating

0.5W, 2W, 10W, 25W, 40W and other.

Brief about 8 ohm Speaker

The purpose of speaker is to produce audio output that can be heard by the listeners. Speakers
are the transducers that used to convert the electromagnetic waves into sound waves. It receives
audio input from computer or audio receivers. The input fed to speaker is in analog or digital
form. Analog speakers simply amplify electromagnetic waves into sound waves while digital
first convert the signal into analog and then amplify it.

Sound produced by the speaker is defined by frequency and amplitude, where frequency
determines how high or low the pitch of the sound is. Amplitude or loudness of the speaker is
defines by the change in the air pressure created by the speaker’s sound waves.

We all know that, speakers have few different parameters like impedance, power handling, size,
frequency response. Here, impedance tells you that how much current will flow through a
speaker at a certain voltage. Like this speaker has 8 ohms of impedance and comes with a power
handling capacity of 1W.

How to Use a Speaker?

In the below circuit diagram of Audio amplifier, speaker does not respond to high frequency.
If there is no voltage at control PIN 5 speaker doesn’t produce sound. By creating some noise
near Condenser Mic, then that sound converts into electrical signal using the transistor and then
fed to the PIN 5 of 555 timer IC. When there is voltage at PIN 5, output pulse width increases for
a moment and get detected by the speaker and produce sound.

In the circuit R2 and R3 resistor used for provide biasing to transistor and R1 for condenser mic,
you can also test the circuit by blowing the air over the condenser mic, the speaker will generate
sound accordingly.
 
2D-model

SOFTWARE EXPLINATION

6.1 SOFTWARE EXPLANATION:

Software Requirements
• Proteus simulation
• Arduino software
• Programming language

6.1.1 Arduino software:


Arduino is an open-source prototyping platform based on easy-to-use hardware and
software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a
Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing
something online. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board. To do so you use the Arduino programming language (based on
Wiring), and the Arduino Software (IDE), based on Processing. Over the years Arduino has been
the brain of thousands of projects, from everyday objects to complex scientific instruments. A
worldwide community of makers - students, hobbyists, artists, programmers, and professionals

- has gathered around this open-source platform, their contributions have added up to an
incredible amount of accessible knowledge that can be of great help to novices and experts alike.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping,
aimed at students without a background in electronics and programming. As soon as it reached a
wider community, the Arduino board started changing to adapt to new needs and challenges,
differentiating its offer from simple 8-bit boards to products for IoT applications, wearable, 3D
printing, and embedded environments. All Arduino boards are completely open- source,
empowering users to build them independently and eventually adapt them to their particular
needs. The software, too, is open-source, and it is growing through the contributions of users
worldwide.

Why Arduino?

Thanks to its simple and accessible user experience, Arduino has been used in thousands
of different projects and applications. The Arduino software is easy-to-use for beginners, yet
flexible enough for advanced users. It runs on Mac, Windows, and Linux. Teachers and students
use it to build low cost scientific instruments, to prove chemistry and physics principles, or to get
started with programming and robotics. Designers and architects build interactive prototypes,
musicians and artists use it for installations and to experiment with new musical instruments.
Makers, of course, use it to build many of the projects exhibited at the Maker Faire, for example.
Arduino is a key tool to learn new things. Anyone - children, hobbyists, artists, programmers -
can start tinkering just following the step by step instructions of a kit, or sharing ideas online
with other members of the Arduino community. There are many other microcontrollers and
microcontroller platforms available for physical computing. Parallax Basic Stamp, Net media's
BX-24, Phidgets, MIT's Handyboard, and many others offer similar functionality. All of these
tools take the messy details of microcontroller programming and wrap it up in an easy-to-use
package. Arduino also simplifies the process of working with microcontrollers, but it offers some
advantage for teachers, students, and interested amateurs over other systems:

 Inexpensive - Arduino boards are relatively inexpensive compared to other microcontroller


platforms. The least expensive version of the Arduino module can be assembled by hand, and
even the pre-assembled Arduino modules cost less than$50
 Cross-platform - The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
 Simple, clear programming environment - The Arduino Software (IDE) is easy-to-use for
beginners, yet flexible enough for advanced users to take advantage of as well. For teachers, it's
conveniently based on the Processing programming environment, so students learning to
program in that environment will be familiar with how the Arduino IDE works.
 Open source and extensible software - The Arduino software is published as open source tools,
available for extension by experienced programmers. The language can be expanded through C+
+ libraries, and people wanting to understand the technical details can make the leap from
Arduino to the AVR C programming language on which it's based. Similarly, you can add AVR-
C code directly into your Arduino programs if you want to.
 Open source and extensible hardware - The plans of the Arduino boards are published under a
Creative Commons license, so experienced circuit designers c an make their own version
 Of the module, extending it and improving it. Even relatively inexperienced users can build the
breadboard version of the module in order to understand how it works and save money
 Getting Started with Arduino and Genuino products:-

Install the Arduino Software (IDE) on Windows PCs-

…This document explains how to install the Arduino Software (IDE) on Windows machines.
 Download the Arduino Software(IDE)
 Proceed with board specific instructions.
How to Download the Arduino Software (IDE):

Get the latest version from the download page. You can choose between the Installer (.exe) and
the Zip packages. We suggest you use the first one that installs directly everything you need to
use the Arduino Software (IDE), including the drivers. With the Zip package you need to install
the drivers manually.

When the download finishes, proceed with the installation and please allow the driver installation
process when you get a warning from the operating system.

Moving On
Connect your Arduino to the computer with the USB cable. You do not need the
battery for now. The green PWR LED will light. If there was already a program burned into the
Arduino, it will run.
Start the Arduino development environment. In Arduino-speak, programs are called “sketches”,
but here we will just call them programs.
In the editing window that comes up, enter the following program, paying attention to where
semi-colons appear at the end of command lines.
void setup()
{
Serial.begin(9600);
Serial.println("Hello World");
}
void loop() {}
6.2 MC Programming Language: Embedded C
This is the most widely used programming language for embedded
processors/controllers. Assembly is also used but mainly to implement those portions of the code
where very high timing accuracy, code size efficiency, etc. are prime requirements. Embedded C
is perhaps the most popular languages among Embedded Programmers for programming
Embedded Systems. There are many popular programming languages like Assembly, BASIC,
C++ etc. that are often used for developing Embedded Systems but Embedded C remains popular
due to its efficiency, less development time and portability.

6.3 Proteus:
Proteus:
Proteus is a simulation and design software tool developed by Lab centre
Electronics for Electrical and Electronic circuit design. It also possess 2D CAD drawing feature.
It deserves to bear the tagline “From concept to completion”.
About Proteus
It is a software suite containing schematic, simulation as well as PCB designing.
ISIS is the software used to draw schematics and simulate the circuits in real time. The
simulation allows human access during run time, thus providing real time simulation.
ARES  is used for PCB designing. It has the feature of viewing output in 3D view of the
designed PCB along with components.
The designer can also develop 2D drawings for the product.
Features
ISIS has wide range of components in its library. It has sources, signal generators,
measurement  and analysis tools like oscilloscope, voltmeter, ammeter etc., probes for real time
monitoring of the parameters of the circuit, switches, displays, loads like motors and lamps,
discrete components like resistors, capacitors, inductors, transformers, digital and analog
Integrated circuits, semi-conductor switches, relays, microcontrollers, processors, sensors etc.
ARES offers PCB designing up to 14 inner layers, with surface mount and through hole
packages. It is embedded with the foot prints of different category of components like ICs,
transistors, headers, connectors and other discrete components. It offers Auto routing and manual
routing options to the PCB Designer. The schematic drawn in the ISIS can be directly transferred
ARES.
Starting New Design
Step 1: Open ISIS software and select New design in File menu
Step 2: A dialogue box appears to save the current design. However, we are creating a new
design file so you can click Yes or No depending on the content of the present file. Then a Pop-
Up appears asking to select the template. It is similar to selecting the paper size while printing.
For now, select default or according to the layout size of the circuit.
 
Step 3: An untitled design sheet will be opened, save it according to your wish, it is better to
create a new folder for every layout as it generates other files supporting your design. However,
it is not mandatory.
Step 4: To Select components, Click on the component mode button.
Fig Component Mode
Step 5: Click on Pick from Libraries. It shows the categories of components available and a
search option to enter the part name.

Fig Pick from Libraries


Step 6: Select the components from categories or type the part name in Keywords text box.

Fig Keywords Textbox


Example shows selection of push button. Select the components accordingly.
Fig Push Button Selection
Step 7: The selected components will appear in the devices list. Select the component and place
it in the design sheet by left-click.
Fig Component Selection
Place all the required components and route the wires i.e., make connections.
Either selection mode above the component mode or component mode allows to connect
through wires. Left click from one terminal to other to make connection. Double right-click on
the connected wire or the component to remove connection or the component respectively.
Double click on the component to edit the properties of the components and click on Ok.
Step 8: After connecting the circuit, click on the play button to run the simulation.
Fig Simulation Run
In this example simulation, the button is depressed during simulation by clicking on it to
make LED glow.
Fig Simulation Animating
Simulation can be stepped, paused or stopped at any time.

Fig Simulation Step-Pause-Stop Buttons


REFERENCE:
[1]W. Wang, J. P. Attanucci, and N. H.M. Wilson, ―Bus passenger origindestination estimation
and related analyses using automated data collection systems,‖ J. Public Transp., vol. 14, no. 4,
pp. 131–150, 2011.
[2] J. Zhao, A. Rahbee, and N. H. M.Wilson, ―Estimating a rail passenger trip origin-
destination matrix using automatic data collection systems,‖ Comput. Civ. Infrastruct. Eng., vol.
22, no. 5, pp. 376– 387, Jul.2007.
[3] J. J. Barry, R. Freimer, and H. Slavin, ―Use of entryonly automatic fare collection data to
estimatelinked transit trips in New York City,‖ Transp.Res. Rec. J. Transp. Res. Board, vol.
2112, pp. 53–61, Dec. 2009.
[4] J. J. Barry, R. Newhouser, A. Rahbee, and S. Sayeda, ―Origin and destination estimation in
New York City with automated fare system data,‖ Transp. Res. Rec. J. Transp. Res. Board, vol.
1817, pp. 183–187, 2002.
[5] M. Munizaga, F. Devillaine, C. Navarrete, and D. Silva, ―Validating travelbehavior
estimated from smartcard data,‖ Transp. Res.C, Emerg. Technol., vol. 44, pp. 70–79, Jul. 2014.
[6] M. Trépanier, N. Tranchant, and R. Chapleau, ―Individual trip destina-tion estimation in a
transit smart card automated fare collection system,‖ J. Intell. Transp. Syst. Technol. Plann.,
Oper., vol. 11, no. 1, pp. 1–14, 2007.
[7] J. M. Farzin, ―Constructing an automated bus origindestination matrix using farecard and
global positioning system data in São Paulo, Brazil,‖ Transp. Res. Rec. J. Transp. Res. Board,
vol. 2072, pp. 30–37, Dec. 2008.
[8] D. Li, Y. Lin, X. Zhao, H. Song, and N. Zou, ―Estimating a transit passenger trip origin-
destination matrix using automatic fare collection system,‖ in Database Systems for Advanced
Applications, J. Xu, G. Yu,S.Zhou, and R. Unland, Eds. Berlin, Germany: Springer-Verlag,
2011, pp. 502–513.
[9] J. B. Gordon, ―Intermodal passenger flows on London’s public transport network:
Automated inference of full passenger journeys using fare transaction and vehicle-location data,‖
M.S. thesis, Dept. Urban Stud. Plann.,Mass. Inst. Technol., Cambridge, MA, USA, 2012.
[10] M. A. Munizaga and C. Palma, ―Estimation of a disaggregate multimodalpublic transport
Origin-Destination matrix from passive smartcard datafrom Santiago, Chile,‖ Transp. Res. C,
Emerg. Technol., vol. 24, pp. 9–18,Oct. 2012.

You might also like