Professional Documents
Culture Documents
Bachelor of Engineering IN Electronics and Telecommunication
Bachelor of Engineering IN Electronics and Telecommunication
2-Blank spaces
A SEMINAR REPORT ON
(12/bold/uppercase)(Two blank
spaces)
BACHELOR OF ENGINEERING
IN
ELECTRONICS AND TELECOMMUNICATION
(16/bold/uppercase)
(Two blank spaces)
BY(14/bold/uppercase)
(Two blank spaces)
CERTIFICATE(16/bold/uppercase)
(Three blank space)
This Seminar report has not been earlier submitted to any other Institute or University for the
award of any degree or diploma.(12/ sentence case)
Dr.P.B.Mane
Principal
AISSMS Institute Of Information Technology, Pune.
.
Place:
Date:
The motivation factor for this work was the inspiration given to me by our honourable
principal Dr. P.B.Mane.
I would like to thank our external Guide Mrs/Mr (12/bold) for the project idea
and for providing required data. We would like to thank for her/his immense help and
numerous suggestions during my work. //
Lastly I am thankful to those who have directly or indirectly supported for our work.
4. OBJECTIVES (12/bold/uppercase)
5. METHODOLOGY (12/bold/uppercase)
9. REFERENCES (12/bold/uppercase)
(12/bold/uppercase)
Appendix A (BILL OF
MATERIAL/ APPROXIMATE
COST )(12/bold/uppercase)
Appendix B (DATA SHEETS)
(12/bold/uppercase)
REFFERED IEEE PAPERS
Introduction
Introduction should help to understand three key questions to the reader: Why is this
important problem? What has been done before? How does your topic (problem)bring
significant new understanding to the respective field? It should be written in present tense
and should include the following points:
i. Outline the problem you are working on, why is it interesting, important and what
are the challenges?
ii. List your aims and goals. An aim is something you intend to achieve(e.g., learn a
new programming language and apply it in solving the problem), while agoalis
something specific you expect to deliver(e.g., a working application with a
particular set of features).
iii. Give an overview of how you have carried out the project (i.e. software
development model).
iv. A brief overview of the rest of the chapters in the report (a guide to the reader of the
overall structure of the report).
v. This chapter is relatively short (2-4 pages) and must give the reader very clear
understanding of what the project is about and what your goals are.
Problem Statement
i. Give the detailed problem statement. This elaborates on what you may have
included in the introduction chapter and represents the starting point from which
requirements were derived. Problem Definition: Define/formulate the problem
clearly and concisely of your project work. Provide details of the overall
problem and then divide the problem into module(s).
Methodology
• Method adopted to solve the problem.
• Give an overview of how can you carry out the project.
• Step-wise approach to the solution.
EXPECTED RESULTS
Write the expected results of the system you are going to implement.
REFERENCES
i. List of references.
ii. Bibliography: This lists all the sources of information that you made use of during the
project but are not referenced in the text. The items in the list must be relevant to your
project, so don't just list everything you may have looked at or read.
Any structure, building or system needs maintenance and rehabilitation, which are of course
costly. Highways and roads are also not an exception. From the very past, the construction,
extension, maintenance and operating costs of highways, roads, bridges and tunnels were
collected directly or indirectly. In the old indirect method, the expenses are compensated
either by the tax payment for fuel or by budget allocation of the national income. The
shortcoming of this method is that a number of taxpayers, who do not use any of the roads
and carriageways, have to pay extra money. However, in the other system, called direct
method, the tolls are taken directly from the drivers passing that road or street. The other
three main reasons why tolling, or road pricing, is implemented are the The advances in the
technologies related to wireless communication has led to the emergence of several
engineering designs to aid the human requirements. Today on one side the importance for
secured access is growing in several fields and on the other side with technology
advancements the RFID cards and readers are becoming low cost. Both these aspects are the
primary reasons for rapidly growing RFID based authentication system. Today, several
wireless technologies are used for building wireless networks. Among them the 2.4GHz
wireless network is most widely deployed and used. The wide usage of 2.4 GHz wireless
communication indicates that this infrastructure can give near real time responses and makes
suitable for crucial industrial systems. Global system for mobile communication is that it is
an international standard. If you travel in parts of the world, GSM is the only type of cellular
service available. Implementing mobile communication based health monitoring via short
message service (SMS). Simple wireless control device to achieve the targets, or use the
GSM network technology to achieve. Nevertheless, the functions of these devices are too
simple to prevent the vehicle theft crimes from happening, furthermore, their burglar-proofs
methods are not only character.
Author:- Dilpreet Singh, Akhil Sood, Gulshan thakur, Nikhil Arora, Alok Kumar
Automatic Toll Tax systems has reduced the heavy congestion caused at toll collection in the
metropolitan cities. As the population is increasing day by day which results in high traffic
congestion on roads. Most of the people find it difficult to be a part of long queue at toll for
toll collection system. This causes high fuel consumption while waiting for a payment, which
is going to extinct in coming years. The research is providing a great solution to this problem.
LIFI is emerging technology in today’s era. Here, we are using the power of LIFI for wireless
communication to transmit user information from vehicle to toll. Every vehicle will be having
a microcontroller and a memory connected to it. In addition, the setup will be used to send
useful encoded data like vehicle number via LED. The LIFI receiver is present in middle of
road at tollbooth. An intelligent processor will be there at receiver side, which will
automatically process the toll tax payment according to the type of vehicle through a wallet
linked with vehicle number. The technology will be helpful in preserving the fuel
consumption of vehicle and will create an eco-friendly environment.
Nowadays almost all highways toll plazas are manually operated, where an operator collects
cash from the driver and provides a receipt. Since this procedure can be slow, we often
encounter traffic jams at the toll plazas on busy highways. Automatic process of toll
collection will save time, effort, and man power. In this work propose a low cost and efficient
technique called Electronic Toll Collection using RFID modules that automatically collects
the toll from moving vehicles when they cross the toll plaza. We also assume that an owner
maintains a prepaid account, so that toll tax is deducted automatically from the driver’s
account at toll plaza. If the balance in the owner’s account is low or if the vehicle is not
equipped with an RF system, the toll gate remains close. In such a case vehicle owner will
have to pay the toll tax in cash and collect the receipt. The owner receives an SMS message
on his/she mobile about the details of the payment and there is no need for him to stop the
vehicle. How many vehicles passing through the toll gate stored in a database. We can also
In this paper, we have proposed a simple, yet efficient combination of hardware and software
solution to billing in two of the largest traffic concerns in our country: Parking Systems and
Toll Systems. Using short range detection, we maintain a database of information,
automatically calculating fees against type of vehicle, timings, and weight of vehicle. We
have also proposed a strict monitoring system, which increases the security enforcements,
and reduces the number of blacklisted vehicles on the roads(especially near the borders).
These models can be easily integrated with all kinds of infrastructure making it easy to
implement, with minimal costs.
The proposed method is to provide a fast and safe environment for toll collection and to
automatically control the vehicle movements at the toll stations. The Capacitive Sensor used
here to sense the vehicle size.IR sensor is used to detect the vehicle and the Gate models are
used here to open and close while the vehicle is entering or exit in the Toll Tax unit. The
RFID reader is used to read the tag of the vehicles. The Vehicle information is stored in the
microcontroller based on the TAG number. Based on that number the Tax amount for that
vehicle will automatically transfer to the toll gate system. And that cost information will be
sent through GSM modem to a mobile phone of the owner. The status of the vehicle will be
displayed in the LCD. The main objective behind this proposal is to create a suitable
Automatic Toll Gate System to be implemented. This system uses IR technology, making it
very vulnerable to failure. Other than that, users also have to bear the high cost of owning the
two-piece tag required for this system. However, this proposed system requires major
changes in the infrastructure of the existing toll roads.
OBJECTIVES
RASPBERRY PI:-
This is the heart of the system which controls all the operations
Raspberry Pi Model, 512 Mb with a nice black plastic case: The Raspberry Pi is a low cost,
credit-card sized computer that plugs into a computer monitor or TV, and uses a standard
keyboard and mouse.
LCD DISPLAY:- All information will be displayed on LCD. LCD stands for Liquid Crystal
Display. LCD is finding wide spread use replacing LEDs (seven segment LEDs or other
multi segment LEDs) because of the following reasons:
2. The ability to display numbers, characters and graphics. This is in contrast to LEDs, which
are limited to numbers and a few characters.
IR SENSOR:- IR sensor used to detect the object like vehicle after that camera will activate
An infrared sensor emits and/or detects infrared radiation to sense its surroundings.
RFID READER:- Rfid Reader Has Number Of Tags Which Define Unique Id. Which
Deduct Amount. The RFID tag is used as a unique identity for account of a particular user.
In beginning, the user is prompted to scan his tag or ID. The serial code of the tag is
identified by the reader module and is sent to ATmega16 for comparison with stored data. If
the identity (serial number of the tag, i.e., 12 byte data) is matched with the one already
stored in the system, the toll amount is deducted from his account and user gets to drive
through the plaza. RFID systems can be classified by the type of tag and reader. A Passive
Reader Active Tag (PRAT) system has a passive reader which only receives radio signals
from active tags (battery operated, transmit only). The reception range of a PRAT system
reader can be adjusted from 1–2,000 feet (0–600 m), allowing flexibility in applications such
as asset protection and supervision.
SIM900 GSM Module :- This means the module supports communication in 900MHz band.
We are from India and most of the mobile network providers in this country operate in the
900Mhz band. If you are from another country, you have to check the mobile network band
BLOCK DIAGRAM
CAMERA LCD
R DISPLAY
A
RFID S
READER P
B
E
IR
R
SENSOR
R BUZZER
Y
P
GSM
I MODULE
Camera will detect the number plate which is predefined in the sd card and
data will be sent to the arm 11 LCD will show the pricing for the vehicle.
Balance will redacted by the RFID card when balance will reduce it will send
sms through to the user.
We are going to use a Infrared receiver. It is used to detect that vehicle has
enter into electronic toll collection plaza. As soon as IR sensor get activate,
camera capture image of vehicle No. Plate. Using image Processing capture
image process. After processing it will check with database for stolen vehicle.
If vehicle is founded as stolen the no plate image mail to the RTO office & at
that same time buzzer will beep for indication of stolen vehicle.
If image is not in database means that its not stolen vehicle, user can access
the smart card and complete his/her transaction.
All info get display on LCD and through IOT module it will also show on
android App.
RASPBERY PI
LCD DISPLAY
RFID READER
BUZZER
GSM MODULE
IR SENSOR
RASPBERRY PI DISCRIPTION
Raspberry Pi Model, 512 Mb with a nice black plastic case: The Raspberry Pi is a low cost,
credit-card sized computer that plugs into a computer monitor or TV, and uses a standard
keyboard and mouse. It has the ability to interact with the outside world, and has been used in
Hardware:
Initial sales were of the Model B, with Model A following in early 2013. Model A has
one USB port and no Ethernet controller, and will cost less than the Model B with two USB
ports and a 10/100 Ethernet controller.
Though the Model A doesn't have an 8P8C (RJ45) Ethernet port, it can connect to a network
by using an external user-supplied USB Ethernet or Wi-Fi adapter. On the model B the
Ethernet port is provided by a built-in USB Ethernet adapter. As is typical of modern
computers, generic USB keyboards and mice are compatible with the Raspberry Pi.
The Raspberry Pi does not come with a real-time clock, so an OS must use a network time
server, or ask the user for time information at boot time to get access to time and date for file
time and date stamping. However, a real-time clock (such as the DS1307) with battery
backup can be added via the I²C interface.
On 20 April 2012 the schematics for the Model-A and Model-B were released by the
Raspberry Pi Foundation.
Hardware accelerated video encoding became available on 24 August 2012 when it became
known that the existing license also covered encoding. Previously it was thought that
encoding would be added with the release of the announced camera module. However, for the
time being there is no stable software support for hardware H.264 encoding.
At the same time the Raspberry Pi Foundation released two additional codec’s that can be
bought separately, MPEG-2 and Microsoft's VC-1. Also it was announced that the Pi will
support CEC, enabling it to be controlled with the television's remote control.
On 5 September 2012, a revision 2.0 board was announced, with a number of minor
corrections and improvements. On 15 October 2012, the Raspberry Pi foundation announced
that all new Raspberry Pi model B's would be fitted with 512 MB instead of 256 MBRAM.
USB hub
A USB hub is a device that expands a single Universal Serial Bus (USB) port into
several so that there are more ports available to connect devices to a host system. USB hubs
are often built into equipment such as computers, keyboards, monitors, or printers. When
In order to connect additional devices to the RPi, you may want to obtain a USB hub,
which will allow multiple devices to be used. It is recommended that a powered hub is used -
this will provide any additional power to the devices without affecting the RPi itself. A USB
2.0 model is recommended. USB 1.1 is fine for keyboards and mice, but may not be fast
enough for other accessories.
SD Card
The SD card is a key part of the Raspberry Pi, provides the initial storage for the Operating
System and files. Storage can be extended through many types of USB connected peripherals.
32 GB SD card is used for our Project.
Secure Digital (SD) is a nonvolatile memory card used extensively in portable devices, such
as mobile phones, digital cameras, GPS navigation devices, handheld consoles, and tablet
computers. It is a family of solid-state storage media. The Secure Digital standard was
introduced in August 1999 as an improvement over Multimedia Cards (MMC). The Secure
Digital standard is maintained by the SD Association (SDA). SD technologies have been
implemented in more than 400 brands across dozens of product categories and more than
8,000 models. The Secure Digital format includes four card families available in three
different form factors. The four families are the original Standard-Capacity (SDSC), the
High-Capacity (SDHC), the extended-Capacity (SDXC), and the SDIO, which
combines input/output functions with data storage. The three form factors are the original
size, the mini size, and the micro size. Electrically passive adapters allow a smaller card to fit
and function in a device built for a larger card.There are many combinations of form factors
and device families, although as of 2013, the prevailing formats are full- or micro-size SDHC
and full or micro SDXC.
Power supply:
Computer USB Port or powered USB hub (will depend on power output)
Special wall warts with USB ports
Mobile Phone Backup Battery (will depend on power output) (in theory – needs
confirmation).
To use the above, you'll need a USB A 'male' to USB micro 'male' cable - these are often
shipped as data cables with MP3 players.
GPIO: One powerful feature of the Raspberry Pi is the row of GPIO (general purpose
input/output) pins along the edge of the board, next to the yellow video out socket.26 GPIO
Header in Model A/B and 40 GPIO Header in Model BThese pins are a physical interface
between the Pi and the outside world.Out of 26, 8 are dedicated IO Lines, 2 are for UART, 4
are for SPI (+1 for Another Chip Select) , and another 2 for the I2C Interface (Total 17 out of
26)
These pins are a physical interface between the Pi and the outside world.Rest is Supply Rails.
WiringPi : Easy to use C Library for accessing the GPIO Lines via Programming (Arduino
Style Programming) These pins are a physical interface between the Pi and the outside world.
At the simplest level, you can think of them as switches that you can turn on or off (input) or
that the Pi can turn on or off (output). Seventeen of the 26 pins are GPIO pins; the others are
power or ground pins.
The GPIO port is one of the most powerful tools at the Raspberry Pi’s disposal, allowing you
to connect directly to an electronic circuit to control it. In such a system, the Pi is referred to
as a microcontroller. This is what makes the Raspberry Pi great for big projects, as you can
use it to program a machine or circuit, and even have it connect to the internet via the other
Raspberry Pi functions so that it can control contraptions with web data. Each of the GPIO
pins can do something different and very specific. At the basic core, though, you can have
them provide power consistently to part of a circuit, program a power switch to one of the
The GPIO.BOARD option specifies that you are referring to the pins by the number of the
pin the plug - i.e the numbers printed on the board (e.g. P1) and in the middle of the diagrams
below.
The GPIO.BCM option means that you are referring to the pins by the "Broadcom SOC
channel" number, these are the numbers after "GPIO" in the green rectangles around the
outside of the below diagrams:
Unfortunately the BCM numbers changed between versions of the Pi1 Model B, and you'll
need to work out which one you. So it may be safer to use the BOARD numbers if you are
going to use more than one Raspberry Pi in a project.
The Model B+ uses the same numbering as the Model B r2.0, and adds new pins (board
numbers 27-40).
The Raspberry Pi Zero, Pi 2B and Pi 3B use the same numbering as the B+.
importRPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.OUT)
GPIO.output(7,True)
GPIO.output(7,False)
time.sleep(1)
GPIO.output(7,True)
time.sleep(1)
GPIO.output(7,False)
print “Done”
GPIO.cleanup()
To wire up an LED bulb to be programmable from the Raspberry Pi, to turn it on and off
again a few times. For this, you will need a breadboard prototyping circuit board, an LED, a
50-ohm resistor, and some wires. Refer to our Frizzing diagram on the right, to see how it’s
wired up; the negative end of the LED goes to a ground pin on the Raspberry Pi (which is
where the flow of electricity ends), and a programmable pin goes through the 50-ohm resistor
to provide power to the LED when it’s turned on. Open up IDLE, the Python programming
software, and create a new file. Save it as led.py, and input the code from the code listing.
What the code does is first tell Python to use the GPIO module so we can connect to the
GPIO pins, by importing the module. We then import the time module so we can create a
delay between commands. We then tell the code to treat the GPIO pins as the number they
are on the board, and to turn the seventh pin into an output. We alternate between True and
False so that it turns the pin on and off. Once it’s cycled a few times, it will print the message
‘Done’ into IDLE, and finally turn off the GPIO pins. You can do a lot more with GPIO if
you want to, and this is a good way to start before moving on to bigger projects.
LCD stands for Liquid Crystal Display. LCD is finding wide spread use replacing LEDs
(seven segment LEDs or other multi segment LEDs) because of the following reasons:
2. The ability to display numbers, characters and graphics. This is in contrast to LEDs, which
are limited to numbers and a few characters.
3. Incorporation of a refreshing controller into the LCD, thereby relieving the CPU of the task
of refreshing the LCD. In contrast, the LED must be refreshed by the CPU to keep displaying
the data.
These components are “specialized” for being used with the microcontrollers, which means
that they cannot be activated by standard IC circuits. They areused for writing different
messages on a miniature LCD.
A model described here is for its low price and great possibilities most frequently used in
practice. It is based on the HD44780 microcontroller (Hitachi) and can display messages in
Pins Functions
There are pins along one side of the small printed board used for connection to the
microcontroller. There are total of 14 pins marked with numbers (16 in case the background
light is built in). Their function is described in the table below:
Pin Logic
Function Name Description
Number State
Ground 1 Vss - 0V
D0 – D7 are interpreted as
0
4 RS commands
1
D0 – D7 are interpreted as data
10 D3 0/1 Bit 3
11 D4 0/1 Bit 4
12 D5 0/1 Bit 5
13 D6 0/1 Bit 6
LCD screen:
LCD screen consists of two lines with 16 characters each. Each character consists of 5x7 dot
matrix. Contrast on display depends on the power supply voltage and whether messages are
displayed in one or two lines. For that reason, variable voltage 0-Vdd is applied on pin
marked as Vee. Trimmer potentiometer is usually used for that purpose. Some versions of
displays have built in backlight (blue or green diodes). When used during operating, a resistor
for current limitation should be used (like with any LE diode).
All data transferred to LCD through outputs D0-D7 will be interpreted as commands or as
data, which depends on logic state on pin RS:
Execution
Command RS RW D7 D6 D5 D4 D3 D2 D1 D0
Time
Write to CGRAM or
1 0 D7 D6 D5 D4 D3 D2 D1 D0 40uS
DDRAM
Once the power supply is turned on, LCD is automatically cleared. This process lasts for
approximately 15mS. After that, display is ready to operate. The mode of operating is set by
default. This means that:
1. Display is cleared
2. Mode
3. Display/Cursor on/off
D = 0 Display off
U = 0 Cursor off
4. Character entry
Automatic reset is mainly performed without any problems. Mainly but not always! If for any
reason power supply voltage does not reach full value in thecourse of 10mS, display will start
perform completely unpredictably. If voltage supply unit cannot meet this condition or if it is
needed to provide completely safe operating, the process of initialization by which a new
reset enabling display to operate normally must be applied. Algorithm according to the
initialization is being performed depends on whether connection to the microcontroller is
through 4- or 8-bit interface. All left over to be done after that is to give basic commands and
of course- to display messages.
Specifications
When you take a digital photo or stare into your webcam, light zooms into the lens. This
incoming "picture" hits the image sensor, which breaks it up into individual pixels that are
converted into numeric form. CCDs and CMOS chips, the two kinds of image sensor, do this
job in slightly different ways. Both initially convert incoming light rays into electricity, much
like photoelectric cells (used in things like "magic eye" intruder alarms or restroom
washbasins that switch on automatically when you put your hands under the faucet). But a
CCD is essentially an analog optical chip that converts light into varying electrical signals,
which are then passed on to one or more other chips where they're digitized (turned into
numbers). By contrast, a CMOS chip does everything in one place: it captures light rays and
turns them into digital signals all on the one chip. So it's essentially a digital device where a
CCD is an analog one. CMOS chips work faster and are cheaper to make in high volume than
CCDs, so they're now used in most low-cost cellphone cameras and webcams. But CCDs are
still widely used in some applications, such as low-light astronomy.
Whether images are being generated by a CMOS sensor or a CCD and other circuitry, the
basic process is the same: an incoming image is converted into an outgoing pattern of digital
pixels. Let's just refer to "the image sensor" from now on (and forget about whether it's a
CCD and other chips or a CMOS sensor). First, the image sensor measures how much light is
arriving at each pixel. This information is turned into a number that can be stored on a
memory chip inside the camera. Thus, taking a digital photograph converts the picture you
see into a very long string of numbers. Each number describes one pixel in the image—how
bright or dark and what color it is.
The wavelengths of these regions and their applications are shown below.
The frequency range of infrared is higher than microwave and lesser than visible light.
For optical sensing and optical communication, photo optics technologies are used in the near
infrared region as the light is less complex than RF when implemented as a source of signal.
Optical wireless communication is done with IR data transmission for short range
applications.
An infrared sensor emits and/or detects infrared radiation to sense its surroundings.
The working of any Infrared sensor is governed by three laws: Planck’s Radiation law,
Stephen – Boltzmann law and Wien’s Displacement law.
Planck’s law states that “every object emits radiation at a temperature not equal to 00K”.
Stephen – Boltzmann law states that “at all wavelengths, the total energy emitted by a black
body is proportional to the fourth power of the absolute temperature”. According to Wien’s
Displacement law, “the radiation curve of a black body for different temperatures will reach
its peak at a wavelength inversely proportional to the temperature”.
The basic concept of an Infrared Sensor which is used as Obstacle detector is to transmit an
infrared signal, this infrared signal bounces from the surface of an object and the signal is
received at the infrared receiver.
There are five basic elements used in a typical infrared detection system: an infrared source, a
transmission medium, optical component, infrared detectors or receivers and signal
processing. Infrared lasers and Infrared LED’s of specific wavelength can be used as infrared
sources. The three main types of media used for infrared transmission are vacuum,
atmosphere and optical fibers. Optical components are used to focus the infrared radiation or
to limit the spectral response. Optical lenses made of Quartz, Germanium and Silicon are
used to focus the infrared radiation. Infrared receivers can be photodiodes, phototransistors
etc. some important specifications of infrared receivers are photosensitivity, detectivity and
noise equivalent power. Signal processing is done by amplifiers as the output of infrared
detector is very small.
Quantum type infrared detectors offer higher detection performance and are faster than
thermal type infrared detectors. The photosensitivity of quantum type detectors is wavelength
dependent. Quantum type detectors are further classified into two types: intrinsic and
extrinsic types. Intrinsic type quantum detectors are photoconductive cells and photovoltaic
cells.
Active infrared sensors consist of two elements: infrared source and infrared detector.
Infrared sources include an LED or infrared laser diode. Infrared detectors include
photodiodes or phototransistors. The energy emitted by the infrared source is reflected by an
object and falls on the infrared detector.
IR Transmitter
Infrared Transmitter is a light emitting diode (LED) which emits infrared radiations. Hence,
they are called IR LED’s. Even though an IR LED looks like a normal LED, the radiation
emitted by it is invisible to the human eye.
There are different types of infrared transmitters depending on their wavelengths, output
power and response time.
A simple infrared transmitter can be constructed using an infrared LED, a current limiting
resistor and a power supply. The schematic of a typical IR transmitter is shown below.
IR transmitters can be found in several applications. Some applications require infrared heat
and the best infrared source is infrared transmitter. When infrared emitters are used with
Quartz, solar cells can be made.
IR Receiver
Infrared receivers are also called as infrared sensors as they detect the radiation from an IR
transmitter. IR receivers come in the form of photodiodes and phototransistors. Infrared
Photodiodes are different from normal photo diodes as they detect only infrared radiation.
The picture of a typical IR receiver or a photodiode is shown below.
Principle of Working
The principle of an IR sensor working as an Object Detection Sensor can be explained using
the following figure. An IR sensor consists of an IR LED and an IR Photodiode; together
they are called as Photo – Coupler or Opto – Coupler.
IR LED emits infrared light. The Photodiode detects the infrared light. An IC Op – Amp is
used as a voltage comparator. The potentiometer is used to calibrate the output of the sensor
according to the requirement.
When the light emitted by the IR LED is incident on the photodiode after hitting an object,
the resistance of the photodiode falls down from a huge value. One of the input of the op –
amp is at threshold value set by the potentiometer. The other input to the op-amp is from the
photodiode’s series resistor. When the incident radiation is more on the photodiode, the
voltage drop across the series resistor will be high. In the IC, both the threshold voltage and
The positioning of the IR LED and the IR Receiver is an important factor. When the IR LED
is held directly in front of the IR receiver, this setup is called Direct Incidence. In this case,
almost the entire radiation from the IR LED will fall on the IR receiver. Hence there is a line
of sight communication between the infrared transmitter and the receiver. If an object falls in
this line, it obstructs the radiation from reaching the receiver either by reflecting the radiation
or absorbing the radiation.
If the surface of the object is non-reflective in nature i.e. it is black or other dark color, it
absorbs almost all the radiation incident on it. As there is no reflected radiation, there is no
radiation incident on the photodiode and the resistance of the photodiode remains higher
allowing no current to flow. This situation is similar to there being no object at all.
In order to avoid reflections from surrounding objects other than the object, both the IR
transmitter and the IR receiver must be enclosed properly. Generally the enclosure is made of
plastic and is painted with black color.
SIM900 GSM Module – This means the module supports communication in 900MHz band.
We are from India and most of the mobile network providers in this country operate in the
900Mhz band. If you are from another country, you have to check the mobile network band
in your area. A majority of United States mobile networks operate in 850Mhz band (the band
is either 850Mhz or 1900Mhz). Canada operates primarily on 1900 Mhz band.
GSM AT COMMANDS
RFID systems can be classified by the type of tag and reader. A Passive Reader
Active Tag (PRAT) system has a passive reader which only receives radio signals
from active tags (battery operated, transmit only). The reception range of a PRAT
system reader can be adjusted from 1–2,000 feet (0–600 m), allowing flexibility in
applications such as asset protection and supervision.
An Active Reader Passive Tag (ARPT) system has an active reader, which transmits
interrogator signals and also receives authentication replies from passive tags.
An Active Reader Active Tag (ARAT) system uses active tags awoken with an
interrogator signal from the active reader. A variation of this system could also use a
Battery-Assisted Passive (BAP) tag which acts like a passive tag but has a small
battery to power the tag's return reporting signal. Fixed readers are set up to create a
specific interrogation zone which can be tightly controlled. This allows a highly
defined reading area for when tags go in and out of the interrogation zone. Mobile
readers may be hand-held or mounted on carts or vehicles.
PYTHON LANGAUGE
LINUX O.S
Win32 Disk imager
OpenCV
1) PYTHON
The Python programming language actually started as a scripting language for Linux.
Python programs are similar to shell scripts in that the files contain a series of commands that
the computer executes from top to bottom. Python is a very useful and versatile high level
programming language, with easy to read syntax that allows programmers to use fewer lines
of code than would be possible in languages such as assembly, C, or Java.
Compare a “hello world” program written in C vs. the same program written in Python:
Python programs don’t need to be compiled before running them, as you do with C
programs. However, you will need to install the Python interpreter on your computer to run
them. The interpreter is the program that reads the Python file and executes the code. There
are programs like Py2exe or Pyinstaller that can package Python code into stand-alone
We will only cover the basics of writing and executing a Python program here, but for a great
tutorial covering everything a programmer needs to know about Python, you might want to
check out the book Learning Python 5th Ed. (O’Reilly) by Mark Lutz.
Python 2 and Python 3 come pre-installed on Raspbian, but to install it on another Linux OS
or to update it, simply run sudo apt-get install python3 or sudo apt-get install python. To
access Python from the command prompt, type “python” or “python3” depending on which
version you want to use. This opens up the Python REPL (read-eval-print-loop), from which
you can enter Python commands just like you use the command line.
Our first program in Python will be the standard “hello world” program. To begin,
enter sudo nano hello-world.py at the command prompt to open the nano text editor and
create a new file named hello-world.py.
Enter this code into nano, then press Ctrl-X to exit and save the file:
#!/usr/bin/python
All Python program files will need to be saved as “.py” file types. You can write the
program in a text editor such as notepad or notepad++ as long as you save the file with a
“.py” extension.
To run the program without making it executable, navigate to the location where you
saved your file, and type python hello-world.py.
We can make the hello-world.py file executable by entering chmod +x hello-
world.py at the command prompt. Now, all we need to do to run the program is enter: ./hello-
world.py.
Raspbian is a free operating system based on Debi an, optimized for the Raspberry Pi
hardware. Raspbian comes with over 35,000 packages: precompiled software bundled in a
nice format for easy installation on your Raspberry Pi.
SD Card
Recommend an 8GB class 4 SD card Display & connectivity cable Any HDMI/DVI monitor
and any TV should work as a display for the Pi. For best results, use one with HDMI input
Any standard USB keyboard and mouse will work with your Raspberry Pi. Wireless
keyboards and mice will work if already paired. For keyboard layout configuration options
see raspi-config.
Power supply
The Pi is powered by a USB Micro power supply (like most standard mobile phone chargers).
You'll need a good-quality power supply that can supply at least 2A at 5V for the Model 3B,
or 700mA at 5V for the earlier, lower powered models.
Low current (~700mA) power supplies will work for basic usage, but are likely to cause the
Pi to reboot if it draws too much power.
OPTIONAL
An Ethernet cable is used to connect your Pi to a local network and the internet.
Need an image writer to write the downloaded OS into the SD card (micro SD card in case of
Raspberry Pi B+ model).
Insert the SD card into the laptop/pc and run the image writer. Once open, browse and select
the downloaded Raspbian image file. Select the correct device that is the drive representing
After that, click on the "Write" button in the bottom. As an example, see the image below,
where the SD card (or micro SD) drives is represented by the letter "G:\"
There might be situations when the user credentials like the "username" and password will be
asked. Raspberry Pi comes with a default user name and password and so always use it
whenever it is being asked. The credentials are:
Login: pi
Password: raspberry
When the Pi has been booted for the first time, a configuration screen called the "Setup
Options" should appear and it will look like the image.
The raspi-config tool helps you to configure your Raspberry Pi; several settings can be
changed with this tool without having to know the correct commands to use. It is written as a
bash script, run in a terminal window, and uses whiptail (whiptail is a "dialog" replacement
using newt instead of ncurses, see "man whiptail") to create the windows, menus and
messages. Some changes require "administrator" permissions, so the tool must be run in a
terminal with:
sudo raspi-config
This can be run from the command line or from a terminal window if using the GUI. Older
versions of Raspbian would boot to the command line and the raspi-config tool would run on
first boot after installation. NeIr versions boot to the GUI and do not run raspi-config. There
is a similar GUI configuration tool that can be run from the menus.
Although it is already installed on Raspbian, and there is an update option within the menus,
it is installed or updated from package raspi-config.
sudo raspi-config
Select the first option in the list of the setup options window, that is select the "Expand File
system" option and hit the enter key. We do this to make use of all the space present on the
SD card as a full partition. All this does is, expand the OS to fit the whole space on the SD
card which can then be used as the storage memory for the Pi.
Menu Options
It helpfully advises that it is for initial configuration, and can be run at any time. You may
have difficulties if you have heavily customized your installation as the changes it makes
might not be correct if what it attempts to change is not what it expects.
The usual distribution images are 2 GB. When you copy the image to a larger SD card you
have a portion of that card unused. This option expands the initial image to expand to fill the
rest of the SD card, giving you more space. You need to reboot the Raspberry Pi to make this
available. THERE IS NO CONFIRMATION - SELECTING THE OPTION EXPANDS THE
PARTITION.
This option selects the keyboard being used, so that the characters produced are the same as
those typed (important examples are # and /). It is slow to display, while it reads all the
keyboard types. Changes usually take effect immediately, but may require a reboot.
Brands of keyboards are chosen first folloId by other choices to set up the nationality of the
keyboard. The default is a Generic 105-key (Intl) PC. If you cannot find your keyboard on the
list then use one of the generic keyboards.
The default user for the Raspian install is "pi" and its password is "raspberry". If you change
the password, other people will need to know the new password, including you, to logon to
the Raspberry Pi. Each user/password combination can be different on each SD card.
This option selects the characters and other symbols being displayed on the screen, and is
important if you want to use the non-english ones. It is slow to display, while it reads all the
locale information. Changes usually take effect immediately, but may require a reboot.
You usually select only the one(s) you want (press space); this will generate the configuration
data for all those you select. The default setting is en_GB UTF-8 UTF-8
This is where you setup your system clock; if it’s wrong it just means the date and time
assigned to files you create (automatically when you make them) will be wrong. It is slow to
display as there are lots of selections. First you select the continent, then select a City from
that continent. You may have to select the one nearest to you.
The Raspberry Pi does not have an onboard clock (you can add one), so the "clock" stops
when you poIr it off. If you are connected to the internet the Raspberry Pi can be set up to get
the time from an online time signal.
The official images are supplied with the Raspberry Pi booting into a command line,
presumably because problems with connecting the display are feIr and simpler. If you think
you are ok with the GUI interface you can boot to this. You can change this at any time.
Desktop (GUI interface) - gives a picture based screen, similar to a Windows, Mac or
smartphone, that requires a mouse to select actions (usually). This option also skips the login
by using the pi user. Pressing the red Exit button on the right hand side of the screen will give
the options to logout, shutdown or reboot. Using logout will give a GUI login screen. Using
Ctrl-Alt-Backspace also gives a GUI login screen. To use a command line open the Terminal
window. To get back to the command line, logout and press Ctrl-Alt-F1. To permanently get
back the command line, run raspi-config and reset the boot behaviour and restart.
The raspi-config utility has changed quite a bit since it started, and is likely to continue to
change. Use this option to check if your version of raspi-config is the latest, and if not
download the latest version; you will need to be connected to the internet to update it. Once
updating is complete, raspi-config will close. You should restart raspi-config with "sudo
raspi-config" to make sure that you have completed all the options.
<Finish>
Use this 'button' when you have completed your changes. You will be asked whether you
want to reboot or not. When used for the first time its best to reboot. This should restart your
Pi. There will be a delay if you have chosen to resize your SD card.
Select the third option in the list of the setup options window, that is select the "Enable Boot
To Desktop/Scratch" option and hit the enter key. It will take you to another window called
the "choose boot option" window that looks like the image below.
sudo reboot
After the reboot from the previous step, if everything went right, then you will end up on the
desktop which looks like the image below.
sudo rpi-update
Updating the firmware is necessary because certain models of the Pi might not have all the
required dependencies to run smoothly or it may have some bug. The latest firmware might
have the fix to those bugs, thus its very important to update it in the beginning itself.
import numpy as np
A numpy array is a grid of values, all of the same type, and is indexed by a tuple of
nonnegative integers. The number of dimensions is the rank of the array; the shape of an
array is a tuple of integers giving the size of the array along each dimension.
We can initialize numpy arrays from nested Python lists, and access elements using square
brackets.
Pin numbering
There are two ways of numbering the IO pins on a Raspberry Pi within RPi.GPIO. The first is
using the BOARD numbering system. This refers to the pin numbers on the P1 header of the
Raspberry Pi board. The advantage of using this numbering system is that your hardware will
always work, regardless of the board revision of the RPi. You will not need to rewire your
connector or change your code.
The second numbering system is the BCM numbers. This is a lower level way of working - it
refers to the channel numbers on the Broadcom SOC. You have to always work with a
diagram of which channel number goes to which pin on the RPi board. Your script could
break between revisions of Raspberry Pi boards.
GPIO.setmode(GPIO.BOARD)
# or
GPIO.setmode(GPIO.BCM)
To detect which pin numbering system has been set (for example, by another Python
module):
mode = GPIO.getmode()
Warnings
It is possible that you have more than one script/circuit on the GPIO of your Raspberry Pi. As
a result of this, if RPi.GPIO detects that a pin has been configured to something other than
the default (input), you get a warning when you try to configure a script. To disable these
warnings:
GPIO.setwarnings(False)
Setup up a channel
You need to set up every channel you are using as an input or an output. To configure a
channel as an input:
GPIO.setup(channel, GPIO.IN)
(where channel is the channel number based on the numbering system you have specified
(BOARD or BCM)).
More advanced information about setting up input channels can be found here.
GPIO.setup(channel, GPIO.OUT)
(where channel is the channel number based on the numbering system you have specified
(BOARD or BCM)).
USB WEBCAM
INSTALL FSWEBCAM
BASIC USAGE
Enter the command fswebcam followed by a filename and a picture will be taken using the
webcam, and saved to the filename specified:
SPECIFY RESOLUTION
The webcam used in this example has a resolution of 1280 x 720 so to specify the resolution
want the image to be taken at, use the -r flag:
SPECIFY NO BANNER
4) OPENCV
OpenCV was started at Intel in 1999 by Gary Bradsky and the first release came out
in 2000. Vadim Pisarevsky joined Gary Bradsky to manage Intel’s Russian software OpenCV
team. In 2005, OpenCV was used on Stanley, the vehicle who won 2005 DARPA Grand
Challenge. Later its active development continued under the support of Willow Garage, with
Gary Bradsky and Vadim Pisarevsky leading the project. Right now, OpenCV supports a lot
of algorithms related to Computer Vision and Machine Learning and it is expanding day-by-
day. Currently OpenCV supports a wide variety of programming languages like C++, Python,
Java etc and is available on different platforms including Windows, Linux, OS X, Android,
iOS etc. Also, interfaces based on CUDA and OpenCL are also under active development for
high-speed GPU operations. OpenCV-Python is the Python API of OpenCV. It combines the
best qualities of OpenCV C++ API and Python language.
OpenCV-Python
Python is a general purpose programming language started by Guido van Rossum,
which became very popular in short time mainly because of its simplicity and code
Step 0:
Step 2:
Step 3:
Install the GTK development library. This library is used to build Graphical User Interfaces
(GUIs) and is required for the high gui library of OpenCV which allows you to view images
on your screen:
$ sudo apt-get install libgtk2.0-dev
Step 4:
Step 5:
Install libraries that are used to optimize various operations within OpenCV:
$ sudo apt-get install libatlas-base-dev gfortran
Step 6:
Install pip :
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py
Step 7:
$ mkvirtualenv cv
Step 8:
$ mkdir build
$ cd build
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D
CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D
INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D
BUILD_EXAMPLES=ON ..
Compile OpenCV:
Step 10:
If you’ve gotten this far in the guide, OpenCV should now be installed
in /usr/local/lib/python2.7/site-packages
But in order to utilize OpenCV within our cv virtual environment, we first need to sym-link
OpenCV into our site-packages directory:
$ cd ~/.virtualenvs/cv/lib/python2.7/site-packages/
$ ln -s /usr/local/lib/python2.7/site-packages/cv2.so cv2.so
$ ln -s /usr/local/lib/python2.7/site-packages/cv.py cv.py
Step 11:
1 $ workon cv
2 $ python
3 >>> import cv2
4 >>> cv2.__version__
This is finally OpenCV and Python is now successfully installed on your Raspberry Pi.
ADVANTAGES
By doing automation of toll plaza we can have the best solution over money loss at toll plaza
by reducing the man power required for collection of money and also can reduce the traffic
indirectly resulting in reduction of time at toll plaza. In our project, we have introduced the
techniques such as Radio Frequency Identification. This technique will include the RFID tag
& reader which in coordination with each other can be used to detect the vehicle identity.
By effectively utilizing this technique at different stages of our project we are able to
represent the automation in toll plaza which will reduce the complete processing time by few
seconds which is very important as well as helps to reduce money leakage in a very cost
effective manner.
REFERENCES