Академический Документы
Профессиональный Документы
Культура Документы
ABSTRACT
The rapid growth in the population has also led to the surge in the volume of waste
being generated on a daily basis. This increase in the generation of waste due to
continuous growth in the urbanization and industrialization has become a severe problem
for the local and the national government. It is also posing a serious problem for the local
authorities to manage the wastes being dumped everywhere as landfill. To ensure the
minimal risk to the environment and human health, it is necessary to take meticulous
measures when segregating and transporting waste. One of the main concerns with our
environment has been solid waste management which impacts the health and
environment of our society. The detection, monitoring and management of wastes is one
of the primary problems of the present era. The traditional way of manually monitoring
the wastes in waste bins is a cumbersome process and utilizes more human effort, time
and cost which can easily be avoided with our present technologies. This is our solution,
a method in which waste management is automated. This is our GSM Garbage
Monitoring system, an innovative way that will help to keep the cities clean and healthy.
This project is developed based on EMBEDDED and GSM Technology. The key issue in
the waste management is that the garbage bin at public places gets overflowed well in
advance before the commencement of the next cleaning process. It in turn leads to
various hazards such as bad odor & ugliness to that place which may be the root cause
for spread of various diseases. To avoid all such hazardous scenario and maintain public
cleanliness and health this work is mounted on a smart garbage system. The main theme
of the work is to develop a smart intelligent garbage alert system for a proper garbage
management.
BLOCK DIAGRAM:
BUZZER
Ultrasonic
Sensor
Max 232
RESET ARDUINO
RPS
GSM
MODE
M
Gas Sensor
POWER SUPPLY:
In most of the cases water is the preliminary requirement to survive the People and plants.
SOFTWARE:
ARDUINO UNO
HARDWARE:
ARDUINO
Power Supply
Gas Sensor
Ultrasonic Sensor
Max232
GSM Modem
CHAPTER-2
INTRODUCTION
2.1 Embedded Systems:
An embedded system is a combination of software and hardware to perform a dedicated
task. Some of the main devices used in embedded products are Microprocessors and
Microcontrollers. Microprocessors are commonly referred to as general purpose processors as
they simply accept the inputs, process it and give the output. In contrast, a microcontroller not
only accepts the data as inputs but also manipulates it, interfaces the data with various devices,
controls the data and thus finally gives the result.
An embedded system can be defined as a computing device that does a specific focused
job. Appliances such as the air-conditioner, VCD player, DVD player, printer, fax machine,
mobile phone etc. are examples of embedded systems. Each of these appliances will have a
processor and special hardware to meet the specific requirement of the application along with the
embedded software that is executed by the processor for meeting that specific requirement. The
embedded software is also called “firm ware”. The desktop/laptop computer is a general purpose
computer. You can use it for a variety of applications such as playing games, word processing,
accounting, software development and so on. In contrast, the software in the embedded systems
is always fixed listed below:
2.1.2. Requirements
Embedded systems are unique in several ways, as described above. When designing
Embedded systems, there are several categories of requirements that should be Considered:
· Functional Requirements
· Temporal Requirements (Timeliness)
· Dependability Requirements.
Functional Requirements
Functional requirements describe the type of processing the system will perform. This
Processing varies, based on the application. Functional requirements include the Following;
· Data Collection requirements
· Sensor requirements
· Signal conditioning requirements
· Alarm monitoring requirements
· Direct Digital Control requirements
· Actuator control requirements
· Man-Machine Interaction requirements
(Informing the operator of the current state of a controlled object for example. These interfaces
can be as simple as a flashing LED or a very complex GUI-based system. They include the ways
that embedded systems assist the operator in controlling the object/system.)
2.1.2.2. Temporal Requirement
Embedded systems have many tasks to perform, each having its own deadline.
Temporal requirements define the stringency in which these time-based tasks must complete.
Examples include;
Minimal latency jitter
Minimal Error-detection latency
Temporal requirements can be very tight (for example control-loops) or less stringent
(for example response time in a user interface).
2.1.3.Processor selection.
Typically, as the application complexity increases, the need for a greater bit-width
processor increases. The selection of the CPU will greatly impact performance of the overall
system. Specifically, features like 8 / 16 / 24 / 32 bit architecture, RISC / CISC / DSP
architecture, cache, MMU, pipelining, branch prediction and super-scalar architecture, all affect
the speed of a system.Depending on system needs, these features may be necessary to achieve
peak performance of the system.
There are various benchmarking threshold data available for various 8/16/32 bit processors
like MIPS (Million Instructions per Second), EEMBC, Dhrystone, MIPS/MHz etc, which can be
taken as reference or comparison base.
CISC Vs RISC.
CISC is an acronym for Complex Instruction Set Computer and are chips that are easy to
program and which make efficient use of memory. Since the earliest machines were programmed
in assembly language and memory was slow and expensive, the CISC philosophy made sense,
and was commonly implemented in such large computers as the PDP-11 and the DECsystem 10
and 20 machines. Most common microprocessor designs such as the Intel 80x86 and Motorola
68K series followed the CISC philosophy. But recent changes in software and hardware
technology have forced a re-examination of CISC and many modern CISC processors are
hybrids, implementing many RISC principles.
The design constraints that led to the development of CISC (small amounts of slow memory
and fact that most early machines were programmed in assembly language) give CISC
instructions sets some common characteristics:
· A 2-operand format, where instructions have a source and a destination. Register to
register, register to memory, and memory to register commands. Multiple addressing modes
for memory, including specialized modes for indexing through arrays
· Variable length instructions where the length often varies according to the addressing
mode
· Instructions which require multiple clock cycles to execute.
· Most CISC hardware architectures have several characteristics in common:
· Complex instruction-decoding logic, driven by the need for a single instruction to support
multiple addressing modes.
· A small number of general purpose registers. This is the direct result of having
instructions which can operate directly on memory and the limited amount of chip space not
dedicated to instruction decoding, execution, and microcode storage.
· Several special purpose registers. Many CTSC designs set aside special registers for the
stack pointer, interrupt handling, and so on. This can simplify the hardware design somewhat,
at the expense of making the instruction set more complex.
· A 'Condition code" register which is set as a side-effect of most instructions. This register
reflects whether the result of the last operation is less than, equal to, or greater than zero and
records if certain error conditions occur.
At the time of their initial development, CISC machines used available technologies to
optimize computer performance.
Designers soon realized that the CISC philosophy had its own problems, including:
· Earlier generations of a processor family generally were contained as a subset in every
new version - so instruction set & chip hardware become more complex with each generation
of computers.
· So that as many instructions as possible could be stored in memory with the least possible
wasted space, individual instructions could be of almost any length - this means that different
instructions will take different amounts of clock time to execute, slowing down the overall
performance of the machine.
· Many specialized instructions aren't used frequently enough to justify their existence
-approximately 20% of the available instructions are used in a typical program.
· CISC instructions typically set the condition codes as a side effect of the instruction. Not
only does setting the condition codes take time, but programmers have to remember to
examine the condition code bits before a subsequent instruction changes them.
As memory speed increased, and high-level languages displaced assembly language, the
major reasons for CISC began to disappear, and computer designers began to look at ways
computer performance could be optimized beyond just making faster hardware.
One of their key realizations was that a sequence of simple instructions produces the same results
as a sequence of complex instructions, but can be implemented with a simpler (and faster)
hardware design. (Assuming that memory can keep up.) RISC (Reduced Instruction Set
Computers) processors were the result. CISC and RISC implementations are becoming more and
more alike. Many of today’s RISC chips support as many instructions as yesterday's CISC chips.
And today's CISC chips use many techniques formerly associated with RISC chips.
2.2 SCOPE OF EMBEDDED SYSTEMS
Nearly 99 per cent of the processors manufactured end up in embedded systems. The
embedded system market is one of the highest growth areas as these systems are used in very
market segment- consumer electronics, office automation, industrial automation, biomedical
engineering, wireless communication, data communication, telecommunications, transportation,
military and so on.
2.2.6 Telecommunications:
In the field of telecommunications, the embedded systems can be categorized as
subscriber terminals and network equipment. The subscriber terminals such as key telephones,
ISDN phones, terminal adapters, web cameras are embedded systems. The network equipment
includes multiplexers, multiple access systems, Packet Assemblers Dissemblers (PADs),
sate11ite modems etc. IP phone, IP gateway, IP gatekeeper etc. are the latest embedded systems
that provide very low-cost voice communication over the Internet.
2.2.9 Security:
Security of persons and information has always been a major issue. We need to protect
our homes and offices; and also the information we transmit and store. Developing embedded
systems for security applications is one of the most lucrative businesses nowadays. Security
devices at homes, offices, airports etc. for authentication and verification are embedded systems.
Encryption devices are nearly 99 per cent of the processors that are manufactured end up in~
embedded systems.
2.2.10 Finance:
Financial dealing through cash and cheques are now slowly paving way for transactions
using smart cards and ATM (Automatic Teller Machine, also expanded as Any Time Money)
machines. Smart card, of the size of a credit card, has a small micro-controller and memory; and
it interacts with the smart card reader! ATM machine and acts as an electronic wallet. Smart card
technology has the capability of ushering in a cashless society. Well, the list goes on. It is no
exaggeration to say that eyes wherever you go, you can see, or at least feel, the work of an
embedded system.
The operating system runs above the hardware, and the application software runs above
the operating system as shown in figure. The same architecture is applicable to any computer
including a desktop computer. However, there are significant differences. It is not compulsory to
have an operating system in every embedded system. For small appliances such as remote
control units, air conditioners, toys etc., there is no need for an operating system and you can
write only the software specific to that application.
Now, let us see the details of the various building blocks of the hardware of an embedded
system.
As shown in Fig. the building blocks are;
· Central Processing Unit (CPU)
· Memory (Read-only Memory and Random Access Memory)
· Input Devices
· Output devices
· Communication interfaces
.Application-specific circuitry
Memory:
The memory is categorized as Random Access 11emory (RAM) and Read Only Memory
(ROM). The contents of the RAM will be erased if power is switched off to the chip, whereas
ROM retains the contents even if the power is switched off. So, the firmware is stored in the
ROM. When power is switched on, the processor reads the ROM; the program is program is
executed.
Input devices:
Unlike the desktops, the input devices to an embedded system have very limited
capability. There will be no keyboard or a mouse, and hence interacting with the embedded
system is no easy task. Many embedded systems will have a small keypad-you press one key to
give a specific command. A keypad may be used to input only the digits. Many embedded
systems used in process control do not have any input device for user interaction; they take
inputs from sensors or transducers 1’fnd produce electrical signals that are in turn fed to other
systems.
Output devices:
The output devices of the embedded systems also have very limited capability. Some
embedded systems will have a few Light Emitting Diodes (LEDs) to indicate the health status of
the system modules, or for visual indication of alarms. A small Liquid Crystal Display (LCD)
may also be used to display some important parameters.
Interfaces:
The embedded systems may need to, interact with other embedded systems at they may
have to transmit data to a desktop. To facilitate this, the embedded systems are provided with one
or a few communication interfaces such as RS232, RS422, RS485, Universal Serial Bus (USB),
IEEE 1394, Ethernet etc.
Application-specific circuitry:
Sensors, transducers, special processing and control circuitry may be required fat an
embedded system, depending on its application. This circuitry interacts with the processor to
carry out the necessary work. The entire hardware has to be given power supply either through
the 230 volts main supply or through a battery. The hardware has to design in such a way that the
power consumption is minimized.
Wireless Communication:
Wireless communication, as the term implies, allows information to be exchanged
between two devices without the use of wire or cable. A wireless keyboard sends information to
the computer without the use of a keyboard cable; a cellular telephone sends information to
another telephone without the use of a telephone cable. Changing television channels, opening
and closing a garage door, and transferring a file from one computer to another can all be
accomplished using wireless technology. In all such cases, information is being transmitted and
received using electromagnetic energy, also referred to as electromagnetic radiation. One of the
most familiar sources of electromagnetic radiation is the sun; other common sources include TV
and radio signals, light bulbs and microwaves. To provide background information in
understanding wireless technology, the electromagnetic spectrum is first presented and some
basic terminology defined.
CHAPTER 3
ARDUINO
Overview:
The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It has 14
digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a
16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button.
It contains everything needed to support the microcontroller; simply connect it to a computer
with a USB cable or power it with a AC-to-DC adapter or battery to get started.
The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver
chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a
USB-to-serial converter.
The Uno board has a resistor pulling the 8U2 HWB line to ground, making it easier to put
into DFU mode.
1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins placed near
to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board.
In future, shields will be compatible with both the board that uses the AVR, which operates with 5V
and with the Arduino Due that operates with 3.3V. The second one is a not connected pin, that is
reserved for future purposes.
"Uno" means one in Italian and is named to mark the upcoming release of Arduino 1.0. The Uno
and version 1.0 will be the reference versions of Arduino, moving forward. The Uno is the latest
in a series of USB Arduino boards, and the reference model for the Arduino platform; for a
comparison with previous versions, see the index of Arduino boards.
Summary
Microcontroller ATmega328
Operating Voltage 5V
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Length 68.6 mm
Width 53.4 mm
Weight 25 g
Schematic & Reference Design
Note: The Arduino reference design can use an Atmega8, 168, or 328, Current models use
an ATmega328, but an Atmega8 is shown in the schematic for reference. The pin configuration is
identical on all three processors.
Power
The Arduino Uno can be powered via the USB connection or with an external power supply. The
power source is selected automatically.
External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery.
The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power
jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER
connector.
The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V,
however, the 5V pin may supply less than five volts and the board may be unstable. If using
more than 12V, the voltage regulator may overheat and damage the board. The recommended
range is 7 to 12 volts.
· VIN. The input voltage to the Arduino board when it's using an external power source (as
opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage
through this pin, or, if supplying voltage via the power jack, access it through this pin.
· 5V.This pin outputs a regulated 5V from the regulator on the board. The board can be supplied
with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board
(7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board.
We don't advise it.
· 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.
· IOREF. This pin on the Arduino board provides the voltage reference with which the
microcontroller operates. A properly configured shield can read the IOREF pin voltage and select the
appropriate power source or enable voltage translators on the outputs for working with the 5V or 3.3V.
Memory
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has 2 KB of SRAM
and 1 KB of EEPROM (which can be read and written with the EEPROM library).
· Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are
connected to the corresponding pins of the ATmega8U2 USB-to-TTL Serial chip.
· External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value,
a rising or falling edge, or a change in value. See the attachInterrupt() function for details.
· PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function.
· SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication using the SPI
library.
· LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED
is on, when the pin is LOW, it's off.
The Uno has 6 analog inputs, labeled A0 through A5, each of which provide 10 bits of resolution
(i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible
to change the upper end of their range using the AREF pin and the analogReference() function.
Additionally, some pins have specialized functionality:
· TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the Wire library.
Communication
The Arduino Uno has a number of facilities for communicating with a computer, another
Arduino, or other microcontrollers. The ATmega328 provides UART TTL (5V) serial
communication, which is available on digital pins 0 (RX) and 1 (TX). An ATmega16U2 on the
board channels this serial communication over USB and appears as a virtual com port to
software on the computer. The '16U2 firmware uses the standard USB COM drivers, and no
external driver is needed. However, on Windows, a .inf file is required. The Arduino software
includes a serial monitor which allows simple textual data to be sent to and from the Arduino
board. The RX and TX LEDs on the board will flash when data is being transmitted via the USB-
to-serial chip and USB connection to the computer (but not for serial communication on pins 0
and 1).
A SoftwareSerial library allows for serial communication on any of the Uno's digital pins.
The ATmega328 also supports I2C (TWI) and SPI communication. The Arduino software
includes a Wire library to simplify use of the I2C bus; see the documentation for details. For SPI
communication, use the SPI library.
Programming
The Arduino Uno can be programmed with the Arduino software (download). Select "Arduino
Uno from the Tools > Board menu (according to the microcontroller on your board). For details,
see the reference and tutorials.
The ATmega328 on the Arduino Uno comes preburned with a bootloader that allows you to
upload new code to it without the use of an external hardware programmer. It communicates
using the original STK500 protocol (reference, C header files).
You can also bypass the bootloader and program the microcontroller through the ICSP (In-
Circuit Serial Programming) header using Arduino ISP or similar; see these instructions for
details.
The ATmega16U2 (or 8U2 in the rev1 and rev2 boards) firmware source code is available .
The ATmega16U2/8U2 is loaded with a DFU bootloader, which can be activated by:
· On Rev1 boards: connecting the solder jumper on the back of the board (near the map of Italy)
and then resetting the 8U2.
· On Rev2 or later boards: there is a resistor that pulling the 8U2/16U2 HWB line to ground,
making it easier to put into DFU mode.
You can then use Atmel's FLIP software (Windows) or the DFU programmer (Mac OS X and
Linux) to load a new firmware. Or you can use the ISP header with an external programmer
(overwriting the DFU bootloader). See this user-contributed tutorial for more information.
This setup has other implications. When the Uno is connected to either a computer running Mac
OS X or Linux, it resets each time a connection is made to it from software (via USB). For the
following half-second or so, the bootloader is running on the Uno. While it is programmed to
ignore malformed data (i.e. anything besides an upload of new code), it will intercept the first
few bytes of data sent to the board after a connection is opened. If a sketch running on the board
receives one-time configuration or other data when it first starts, make sure that the software with
which it communicates waits a second after opening the connection and before sending this data.
The Uno contains a trace that can be cut to disable the auto-reset. The pads on either side of the
trace can be soldered together to re-enable it. It's labeled "RESET-EN". You may also be able to
disable the auto-reset by connecting a 110 ohm resistor from 5V to the reset line; see this forum
thread for details.
The Arduino Uno has a resettable polyfuse that protects your computer's USB ports from shorts
and overcurrent. Although most computers provide their own internal protection, the fuse
provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse
will automatically break the connection until the short or overload is removed.
Physical Characteristics
The maximum length and width of the Uno PCB are 2.7 and 2.1 inches respectively, with the
USB connector and power jack extending beyond the former dimension. Four screw holes allow
the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8
is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.
Ther is nothing simpler than this! This is the simplest way of controlling appearance of some
voltage on microcontroller’s input pin. There is also no need for additional explanation of how
these components operate.
Nevertheless, it is not so simple in practice... This is about something commonly unnoticeable
when using these components in everyday life. It is about contact bounce- a common problem
with m e c h a n i c a l switches. If contact switching does not happen so quickly, several
consecutive bounces can be noticed prior to maintain stable state. The reasons for this are:
vibrations, slight rough spots and dirt. Anyway, whole this process does not last long (a few
micro- or miliseconds), but long enough to be registered by the microcontroller. Concerning
pulse counter, error occurs in almost 100% of cases!
3.3 Embedded C language
Embedded C is a set of language extensions for the C Programming language by the C Standards
committee to address commonality issues that exist between C extensions for different embedded
systems. Historically, embedded C programming requires nonstandard extensions to the C language in
order to support exotic features such as fixed-point arithmetic, multiple distinct memory banks, and basic
I/O operations.
The C programming language is perhaps the most popular programming language for
programming embedded systems. We mentioned other popular programming languages).
Most C programmers are spoiled because they program in environments where not only there is a
standard library implementation, but there are frequently a number of other libraries available for use. The
cold fact is, that in embedded systems, there rarely are many of the libraries that programmers have
grown used to, but occasionally an embedded system might not have a complete standard library, if there
is a standard library at all. Few embedded systems have capability for dynamic linking, so if standard
library functions are to be available at all, they often need to be directly linked into the executable.
Oftentimes, because of space concerns, it is not possible to link in an entire library file, and programmers
are often forced to "brew their own" standard c library implementations if they want to use them at all.
While some libraries are bulky and not well suited for use on microcontrollers, many development
systems still include the standard libraries which are the most common for C programmers.
C remains a very popular language for micro-controller developers due to the code efficiency and
reduced overhead and development time. C offers low-level control and is considered more readable than
assembly. Many free C compilers are available for a wide variety of development platforms. The
compilers are part of an IDEs with ICD support, breakpoints, single-stepping and an assembly window.
The performance of C compilers has improved considerably in recent years, and they are claimed to be
more or less as good as assembly, depending on who you ask. Most tools now offer options for
customizing the compiler optimization. Additionally, using C increases portability, since C code can be
compiled for different types of processors.
Figure. 3.4 Embedded System Development Environment
CHAPTER-4
GSM
standard for mobile telephony systems in the world. The GSM Association, its promoting
industry trade organization of mobile phone carriers and manufacturers, estimates that 80% of
the global mobile market uses the standard. GSM is used by over 1.5 billion people across more
than 212 countries and territories. This ubiquity means that subscribers can use their phones
throughout the world, enabled by international roaming arrangements between mobile network
operators. GSM differs from its predecessor technologies in that both signaling and speech
channels are digital, and thus GSM is considered a second generation (2G) mobile phone
The GSM standard has been an advantage to both consumers, who may benefit from the
ability to roam and switch carriers without replacing phones, and also to network operators,
who can choose equipment from many GSM equipment vendors. GSM also pioneered low-cost
implementation of the short message service (SMS), also called text messaging, which has since
been supported on other mobile phone standards as well. The standard includes a worldwide
Newer versions of the standard were backward-compatible with the original GSM
system. For example, Release '97 of the standard added packet data capabilities by means of
General Packet Radio Service (GPRS). Release '99 introduced higher speed data transmission
(CEPT ) created the Group Special Mobile (GSM) to develop a standard for a mobile telephone
system that could be used across Europe. In 1987, a memorandum of understanding was signed
by 13 countries to develop a common cellular telephone system across Europe. In 1989, GSM
and phase I of the GSM specifications were published in 1990. The first GSM network was
launched in 1991 by Radiolinja in Finland with joint technical infrastructure maintenance from
Ericsson. By the end of 1993, over a million subscribers were using GSM phone networks being
GSM is a cellular network, which means that mobile phones connect to it by searching
for cells in the immediate vicinity. There are five different cell sizes in a GSM network—macro,
micro, pico, femto and umbrella cells. The coverage area of each cell varies according to the
implementation environment. Macro cells can be regarded as cells where the base station
antenna is installed on a mast or a building above average roof top level. Micro cells are cells
whose antenna height is under average roof top level; they are typically used in urban areas.
Picocells are small cells whose coverage diameter is a few dozen metres; they are mainly used
indoors. Femtocells are cells designed for use in residential or small business environments and
connect to the service provider’s network via a broadband internet connection. Umbrella cells
are used to cover shadowed regions of smaller cells and fill in gaps in coverage between those
cells.
Cell horizontal radius varies depending on antenna height, antenna gain and
propagation conditions from a couple of hundred meters to several tens of kilometers. The
longest distance the GSM specification supports in practical use is 35 kilometers (22 mi). There
are also several implementations of the concept of an extended cell, where the cell radius could
be double or even more, depending on the antenna system, the type of terrain and the timing
advance.
Indoor coverage is also supported by GSM and may be achieved by using an indoor
picocell base station, or an indoor repeater with distributed indoor antennas fed through power
splitters, to deliver the radio signals from an antenna outdoors to the separate indoor
distributed antenna system. These are typically deployed when a lot of call capacity is needed
indoors; for example, in shopping centers or airports. However, this is not a prerequisite, since
indoor coverage is also provided by in-building penetration of the radio signals from any
nearby cell.
continuous-phase frequency shift keying. In GMSK, the signal to be modulated onto the carrier
is first smoothed with a Gaussian low-pass filter prior to being fed to a frequency modulator,
GSM networks operate in a number of different carrier frequency ranges (separated into
GSM frequency ranges for 2G and UMTS frequency bands for 3G), with most 2G GSM networks
operating in the 900 MHz or 1800 MHz bands. Where these bands were already allocated, the
850 MHz and 1900 MHz bands were used instead (for example in Canada and the United
States). In rare cases the 400 and 450 MHz frequency bands are assigned in some countries
Most 3G networks in Europe operate in the 2100 MHz frequency band. Regardless of the
frequency selected by an operator, it is divided into timeslots for individual phones to use. This
allows eight full-rate or sixteen half-rate speech channels per radio frequency. These eight radio
timeslots (or eight burst periods) are grouped into a TDMA frame. Half rate channels use
alternate frames in the same timeslot. The channel data rate for all 8 channels is 270.833 kbit/s,
watt in GSM1800/1900.
The GSM mobile telephony service is based on a series of contiguous radio cells which
provide complete coverage of the service area and allow the subscriber operation anywhere
within it. Prior to this cellular concept, radiophones were limited to just the one transmitter
covering the whole service area. Cellular telephony differs from the radiophone service because
instead of one large transmitter, many small ones are used to cover the same area. The basic
problem is to handle the situation where a person using the phone in one cell moves out of
range of that cell. In the radiophone service there was no solution and the call was lost, which is
why the service area was so large. In cellular telephony, handing the call over to the next cell
solves the problem. This process is totally automatic and requires no special intervention by the
user, but it is a complex technical function requiring significant processing power to achieve a
quick reaction.
The functional architecture of a GSM system can be broadly divided into the Mobile
Station, the Base Station Subsystem, and the Network Subsystem. Each subsystem is comprised
of functional entities that communicate through the various interfaces using specified protocols.
The subscriber carries the mobile station; the base station subsystem controls the radio link with
the Mobile Station. The network subsystem, which is the main part of which is the Mobile
services Switching Center, performs the switching of calls between the mobile and other fixed
The Mobile Station (MS) represents the only equipment the GSM user ever sees from the
whole system. It actually consists of two distinct entities. The actual hardware is the Mobile
Equipment (ME), which is anonymous and consists of the physical equipment, such as the radio
transceiver, display and digital signal processors. The subscriber information is stored in the
Subscriber Identity Module (SIM), implemented as a Smart Card. The mobile equipment is
uniquely identified by the International Mobile Equipment Identity (IMEI). The SIM card
contains the International Mobile Subscriber Identity (IMSI), identifying the subscriber, a secret
key for authentication, and other user information. The IMEI and the IMSI are independent,
subscribed services irrespective of both the location of the terminal and the use of a specific
terminal. By inserting the SIM card into another GSM cellular phone, the user is able to receive
calls at that phone, make calls from that phone, or receive other subscribed services. The SIM
card may be protected against unauthorized use by a password or personal identity number.
The Base Station Subsystem is composed of two parts, the Base Transceiver Station (BTS)
and the Base Station Controller (BSC). The BTS houses the radio transceivers that define a cell
and transmits and receives signals on the cells' allocated frequencies with the mobile station.
A BSC operates with a group of BTSs and manages the radio resources for one or more
of them. The BSC is the connection between the MS and the Network Subsystem. It manages the
radio channel (setup, tear down, frequency hopping, etc.) as well as handovers and the
transmission power levels and frequency translations of the voice channel used over the radio
link to the standard channel used by the Public Switched Telephone Network or ISDN.
The central component of the Network Subsystem is the Mobile services Switching
Center (MSC). It acts like a normal switching node of the normal telephones of the land lines
and in addition provides all the functionality needed to handle a mobile subscriber, including
registration, authentication, location updating and inter-MSC handovers. These services are
provided in conjunction with several functional entities, which together form the Network
Subsystem. The MSC provides the connection to the public fixed network (PSTN or ISDN) and
is the interface between the GSM and the PSTN networks for both telephony and data.
· Traffic management
· Call set-up
· Termination
· Charging and accounting information
CHAPTER-5
Hardware Requirements
· Arduino
· Max232
· Sensors
· GSM
5.1. Design
LCDs are more energy efficient and offer safer disposal than CRTs. Its low electrical
power consumption enables it to be used in battery-powered electronic equipment. It is an
electronically-modulated optical device made up of any number of pixels filled with liquid
crystals and arrayed in front of a light source (backlight) or reflector to produce images in color
or monochrome. The earliest discovery leading to the development of LCD technology, the
discovery of liquid crystals, dates from 1888. By 2008, worldwide sales of televisions with LCD
screens had surpassed the sale of CRT units.
Each pixel of an LCD typically consists of a layer of molecules aligned between two
transparent electrodes, and two polarizing filters the axes of transmission of which are (in most
of the cases) perpendicular to each other. With no actual liquid crystal between the polarizing
filters, light passing through the first filter would be blocked by the second (crossed) polarizer. In
most of the cases the liquid crystal has double refraction
5.2.2Passive-matrix and active-matrix addressed LCDs
LCDs with a small number of segments, such as those used in digital watches and pocket
calculators, have individual electrical contacts for each segment. An external dedicated circuit
supplies an electric charge to control each segment. This display structure is unwieldy for more
than a few display elements.
The most commonly used Character based LCDs are based on Hitachi's HD44780
controller or other which are compatible with HD44580. In this tutorial, we will discuss about
character based LCDs, their interfacing with various microcontrollers, various interfaces (8-bit/4-
bit), programming, special stuff and tricks you can do with these simple looking LCDs which can
give a new look to your application.
5.2.3Pin Description
The most commonly used LCDs found in the market today are 1 Line, 2 Line or 4 Line
LCDs which have only 1 controller and support at most of 80 characters, whereas LCDs
supporting more than 80 characters make use of 2 HD44780 controllers.
Figure 5.3 pin description of LCD
A Gas detector also called a smoke alarm is a device that detects smoke, typically as an indicator
of fire. Commercial, industrial, and mass residential devices issue a signal to a fire alarm system,
while household detectors, known as smoke alarms, generally issue a local audible or visual
alarm from the detector itself.
INCLUDEPICTURE "http://i00.i.aliimg.com/wsphoto/v1/595802680_1/MQ-2-Gas-Sensor-
LPG-i-butane-propane-methane-alcohol-13073.jpg_350x350.jpg" \* MERGEFORMATINET
INCLUDEPICTURE "http://i00.i.aliimg.com/wsphoto/v1/595802680_1/MQ-2-Gas-Sensor-
LPG-i-butane-propane-methane-alcohol-13073.jpg_350x350.jpg" \* MERGEFORMATINET
INCLUDEPICTURE
"http://www.elecfreaks.com/wiki/images/thumb/d/d2/MQ-0205-04.jpg/500px-MQ-0205-
04.jpg" \* MERGEFORMATINET INCLUDEPICTURE
"http://www.elecfreaks.com/wiki/images/thumb/d/d2/MQ-0205-04.jpg/500px-MQ-0205-
04.jpg" \* MERGEFORMATINET
Gas detectors are typically housed in a disk-shaped plastic enclosure about 150 millimeters (6 in)
in diameter and 25 millimeters (1 in) thick, but the shape can vary by manufacturer or product
line. Most smoke detectors work either by optical detection (photoelectric) or by physical
process (ionization), while others use both detection methods to increase sensitivity to smoke.
Sensitive alarms can be used to detect, and thus deter, smoking in areas where it is banned such
as toilets and schools. Smoke detectors in large commercial, industrial, and residential buildings
are usually powered by a central fire alarm system, which is powered by the building power with
a battery backup. However, in many single family detached and smaller multiple family
housings, a smoke alarm is often powered only by a single disposable battery.
In the United States, the National Fire Protection Association estimates that nearly two-thirds of deaths
from home fires occur in properties without working smoke alarms/detectors.
CHAPTER - 6
SOFTWARE
Arduino software
The Arduino Uno can be programmed with the Arduino software. Select "Arduino Uno from the
Tools > Board menu (according to the microcontroller on your board).For details, see the
reference and tutorials. The ATmega328 on the Arduino Uno comes preburned with a boot loader
that allows you to upload new code to it without the use of an external hardware programmer. It
communicates using the original STK500 protocol (reference, C header files).We can also bypass
the boot loader and programs the microcontroller through the ICSP (In-Circuit Serial
Programming) header; see these instructions for details. The ATmega16U2 (or 8U2 in the rev1
and rev2 boards) firmware source code is available. The ATmega16U2/8U2 is loaded with a
DFU boot loader, which can be activated by:
·On Rev1 boards: connecting the solder jumper on the back of the board (near the map of
Italy) and then resetting the 8U2.
·On Rev2 or later boards: there is a resistor that pulling the 8U2/16U2 HWB line to ground,
making it easier to put into DFU mode.
The Arduino Uno has a number of facilities for communicating with a computer, another
Arduino, or other microcontrollers. The ATmega328 provides UART TTL (5V) serial
communication, which is available on digital pins 0 (RX) and 1 (TX). An ATmega16U2 on the
board channels this serial communication over USB and appears as a virtual com port to
software on the computer. The '16U2 firmware uses the standard USB COM drivers, and no
external driver is needed. However, on Windows, an .information file is required. The Arduino
software includes a serial monitor which allows simple textual data to be sent to and from the
Arduino board. The RX and TX LEDs on the board will flash when data is being transmitted via
the USB-to-serial chip and USB connection to the computer (but not for serial communication on
pins 0 and 1). A Software Serial library allows for serial communication on any of the Uno's
digital pins. The ATmega328 also supports I2C (TWI) and SPI communication. The Arduino
software includes aWire library to simplify use of the I2C bus
CHAPTER 9
CONCLUSION
The project “smart garbage alert system using Arduino UNO” been successfully
designed and tested. It has been developed by integrating features of all the
hardware components used. Presence of every module has been reasoned out
and placed carefully thus contributing to the best working of the unit.
Secondly, using highly advanced IC’s and with the help of growing technology the
project has been successfully implemented.
BIBLOGRAPHY
Kenneth J. Ayala
B. Ram
Electronic Components
D.V. Prasad
www.national.com
www.atmel.com
www.microsoftsearch.com
www.geocities.com