Escolar Documentos
Profissional Documentos
Cultura Documentos
INTRODUCTION
EMBEDDED SYSTEMS
1. Power Supply
2. Memory
3. Processor
4. Timers
5. Output/Output circuits
6. Serial communication ports
7. SASC (System application specific circuits)
Internal RAM at RAM at SOC or Internal catches External Flash/ ROM/ Memory
at Micro address at
Micro controller External RAM RAM chip EEPROM PROM system port
processor
All the computing systems have limitations on design metrics, but those can be
especially tight. Design metric is a measure of an execution features like size,
power, cost and also performance.
It must perform fast enough and consume less power to increase battery life.
It must be based on a microcontroller or microprocessor based.
It must require a memory, as its software generally inserts in ROM. It does not
require any secondary memories in the PC.
It must need connected peripherals to attach input & output devices.
LITERATURE SURVEY
The Internet of things is the future for the coming decades which helps in
developing the Smart World where everything is connected to one network. As
security is always a big problem across every system but in IoT it is the most
important area in which we need to work to secure data or information which is on
one connected network. One of the fundamental elements in securing an IoT
infrastructure is around device identity and mechanisms to authenticate. So to
overcome on these securities of IoT devices strong encryption and authentication
schemes are based on cryptographic need to design and new security protocols are
required. In this paper, we explained the security issues in each layer and its
measures which help us to understand and to improve security in IoT architecture.
Smarter security systems that include managed threat detection, anomaly detection,
and predictive analysis need to evolve. All the above discussed issues will be
research opportunities in IoT security.
2. A SMART HOME SYSTEM BASED ON SENSOR TECHNOLOGY
Boban Davidovic , Aleksandra Labus
This study focused on developing a smart home system with multi-sensor data
fusion technology that can control household appliances remotely, position the user
in the indoor environment, and determine the status of the living spaces to achieve
smart entertainment, smart energy management, and home security.
The system includes two wearable inertial sensor devices worn on the hand and
foot, respectively, and a multi-sensor circuit comprising temperature and CO
concentration sensors.
4. THE RESEARCH AND IMPLEMENT OF SMART HOME SYSTEM
BASED ON INTERNET OF THINGS
Gao Chong, Ling Zhihao, Yuan Yifeng
In this paper, the characteristics and disadvantages of smart home system are
analyzed. Then a smart home system based on B/S(Browse/Server) module is
introduced. Through publishing the household wireless sensor network data to the
web page of a remote server, users can control the household devices conveniently
and remotely. Its system architecture, hardware design and implementation approach
are given. This system provides a more flexible and more convenient control for
smart home system and is beneficial for the popularity and promotion of smart home
system.
5. SMART HOME CONTROL SYSTEM BY INTERNET OF THINGS
BASED ON WIFI MODULE
M.Sangeetha, C.Udhayanila, G.Gayathri, N.Rakshana
In this paper we proposed system that allows to monitor and control various
home appliances through this concept. We can control various appliances from
anywhere through internet in case of any emergency situation so that we will be able
to control the appliances safely from remote area through internet of things.
6. Energy efficient Smart home based on Wireless Sensor Network
using LabVIEW
The main objective of this Paper is to design and implement a control and
monitor system for smart home. Smart home system consists of many systems that
can be controlled by LabVIEW software with the help of wireless sensor network
starter kit. Wireless connectivity is the main advantage of the developed system.
Similar type of systems can be designed for various applications. However,
LabVIEW software run on host PC, so as long as the host PC is plugged in to a
power source and the sensor nodes have adequate battery power, the software can
be run.
7. EFFICIENT POWER MANAGEMENT IN HOME USING
WIRELESS SENSOR NETWORKS
Gayathri.M , Harish.I
METHODOLOGY
PROPOSED SYSTEM
The model consists of several sensors like Temparature, Humidity, and Light,
also contains relay to control home appliances like fan and light. Initially the
Arduino controller connects to the internet through Wi-Fi module ESP8266 using
AT COMMANDS. All the components communicate with each other using the
wireless protocol When the connection established it will start reading the
parameters of sensors. The threshold value for different sensor is set. The sensor data
are sent to the web server and stored in cloud. The data can be analyzed anywhere
at any time. The motion detection is stored in cloud for analysis. The required lights
are turned on/off automatically by detecting the light outside the house. the user can
also monitor the electric appliances through the internet via web server. If the light
or electrical appliances are left on can be turned off remotely Through simply
clicking the button on web server.
BLOBK DIAGRAM
Power supply
LOAD1 RELAY
IoT CLOUD
module
LOAD2 RELAY
Temparatur
ARDUINO webpage
e
Humidity
PIR
Light
HARDWARE SECTION
A regular circuit removes the ripples and also remains the same dc wave even
if the input dc voltage varies, or the load connected to the output dc voltage changes.
This voltage regulation is usually obtained using one of the popular voltage regulator
IC units.
7812
12v DC output
Voltage regulator
WORKING PRINCIPLE
TRANSFORMER
Transformer is a static piece of device which transfer power from one circuit
to another circuit with out any connection and no change in frequency. Here the 12v
step down transformer is used to step down 230v AC supply voltage to 12v AC
voltage. Then the secondary of the step-down transformer will be connected to the
bridge rectifier.
BRIDGE RECTIFIER
From fig-3, during the Positive half cycle of the input AC waveform diodes
D2 and D4 are forward biased and D1 and D3 are reverse biased. When the voltage,
more than the threshold level of the diodes D2 and D4, starts conducting. During the
Negative half cycle of the input AC waveform diodes D1 and D3 are forward biased
and D2 and D4 are reverse biased. When the voltage, more than the threshold level
of the diodes D1 and D3, starts conducting. Thus, by the usage of a bridge rectifier,
the input AC current is converted into a DC current. Output is filtered by 1000uF
capacitor then it is passed to regulator section.
VOLTAGE REGULATOR
SPECIFICATION
Microcontroller ATmega328
Operating Voltage 5V
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MH
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.
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. The regulated power supply used to power the microcontroller and other
components on the board. This can come either from Vin via an on-board
regulator, or be supplied by USB or another regulated 5V supply.
3V3. A 3.3volt supply generated by the on-board regulator. Maximum current
draw is 50 mA.
GND. Ground pins.
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).
Each of the 14 digital pins on the Uno can be used as an input or output,
using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5
volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-
up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have
specialized functions:
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.
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add
a reset button to shields which block the one on the board.
See also the mapping between Arduino pins and ATmega328 ports. The mapping
for the Atmega8, 168, and 328 is identical.
COMMUNICATION
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
Rather than requiring a physical press of the reset button before an upload, the
Arduino Uno is designed in a way that allows it to be reset by software running on
a connected computer. One of the hardware flow control lines (DTR) of
theATmega8U2/16U2 is connected to the reset line of the ATmega328 via a 100
nanofarad capacitor. When this line is asserted (taken low), the reset line drops long
enough to reset the chip.
The Arduino software uses this capability to allow you to upload code by
simply pressing the upload button in the Arduino environment. This means that the
bootloader can have a shorter timeout, as the lowering of DTR can be well-
coordinated with the start of the upload.
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
TEMPARATURE SENSOR
Thermistors are easy to use, inexpensive, sturdy, and respond predictably to changes
in temperature. While they do not work well with excessively hot or cold
temperatures, they are the sensor of choice for applications that measure temperature
at a desired base point. They are ideal when very precise temperatures are required.
Some of the most common uses of thermistors are in digital thermometers, in cars
to measure oil and coolant temperatures, and in household appliances such as ovens
and refrigerators, but they are also found in almost any application that requires
heating or cooling protection circuits for safe operation. For more sophisticated
applications, such as laser stabilization detectors, optical blocks, and charge coupled
devices, the thermistor is built in. For example, a 10 kΩ thermistor is the standard
that is built into laser packages.
HUMIDITY SENSOR
Humidity Sensor is one of the most important devices that has been widely in
consumer, industrial, biomedical, and environmental etc. applications for measuring
and monitoring Humidity.
LIGHT SENSOR
A relay is activated when a small current is passed through its coil. The small
current is capable of turning on a secondary circuit which works on much larger
current.
Fig 3.14 Relay
An ordinary relay has two contacts called Normally Open (NO) and Normally
Closed (NC) contacts. We can switch the common terminal to NC or NO. Driver
circuit is needed for the working of relay which is depicited in the below figure 3.15.
ESP8266
PINOUT OF ESP-01
The Arduino IDE supports the languages C and C++. User-written code only
requires two basic functions, for starting the sketch and the main program loop, that
are compiled and linked with a program sub main () into an executable cyclic
executive program with the GNU toolchain, also included with the IDE distribution.
The Arduino IDE employs the program to convert the executable code into a text
file in hexadecimal encoding that is loaded into the Arduino board by a loader
program in the board's firmware.
setup (): This function is called once when a sketch starts after power-up or reset.
It is used to initialize variables, input and output pin modes, and other libraries
needed in the sketch.
loop (): After setup () has been called, function loop () is executed repeatedly in
the main program. It controls the board until the board is powered off or is reset.
Fig 3.22 Program Structure
Arduino has been used in thousands of different projects and applications. The
Arduino software is easy-to-use for beginners, its simple and accessible user
experience, yet flexible enough for advanced users, it turns on Mac, Windows, and
Linux. Teachers and students use it to build low cost scientific instruments, to prove
chemistry and physics principles, or to get started with programming and robotics.
Designers and architects build interactive prototypes, musicians and instruments.
Makers, of course, use it to build many of the projects exhibited at the maker faire,
for example. Arduino is a key tool to learn new things. Anyone – children, hobbyists,
artists, programmers – can start tinkering just following the step by step instructions
of a kit, or sharing ideas online with other members of the Arduino community.
There are many other microcontrollers and microcontroller platforms
available for physical computing. Parallex Basic Stamp, Net media’s BX-24, Phi
gets, MIT’s handy board, and many others offer similar functionality. All of these
tools take the messy details of microcontroller programming and wrap it up in an
easy-to-use package. Arduino also simplifies the process of working with
microcontrollers, but it offers some advantage for teachers, students, and interested
amateurs over other systems.
INEXPENSIVE
CROSS-PLATFORM
The Arduino Software (IDE) runs on windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
The Arduino Software (IDE) is easy-to-use for beginners, yet flexible enough
for advanced users to take advantage of as well. For teachers, it’s conveniently based
on the processing programming environment, so students learning to program in that
environment will be familiar with how the Arduino IDE works.
The plan of the Arduino boards are published under a creative commons
license, so experienced circuit designers can make their own version of module,
extending it and improving it. Even relatively inexperienced users can build the
breadboard version of the module inorder to understand how it works and save
money.
The core set of development tools operate under the IDE umbrella, called. This
gives a consistent look and feel to all the development tools so that minimal learning
of the new tool interface is required. The IDE integrates all the following aspects of
development:
3.3.4 EMBEDDED C
Initially C was developed by Kernighan and Ritchie to fit into the space of 8K
and to write (portable) operating systems. Originally it was implemented on UNIX
operating systems. As it was intended for operating systems development, it can
manipulate memory address. Also, it allowed programmers to write very compact
codes. This has given it the reputation as the language of choices for hackers too.
3.3.5 EMBEDDED SYSTEM PROGRAMMING
Machine code.
Low level language, i.e., assembly
Application level language like visual basic, scripts, access, etc.
High level language like C, C++, Java, Ada, etc.
Assembly language maps mnemonic words with the binary machine codes that
the processor uses to code the instructions. Assembly language seems to be an
obvious choice for programming embedded devices. However, use of assembly
language is restricted to developing efficient codes in terms of size and speed. Also,
assembly codes lead to higher software development costs and code portability is
not there. Developing small codes are not much of a problem, but large
programs/projects become increasingly difficult to manage in assembly language.
Finding good assembly programmers has also become difficult nowadays. Hence
high level language are preferred for embedded system programming.
RESULT
CHAPTER 5
CONCLUSION
In this paper we proposed system that allows to monitor and control various
home appliances through this concept. We can control various appliances from
anywhere through internet in case of any emergency situation so that we will be able
to control the appliances safely from remote area through internet of things. Also we
can monitor the temperature, humidity and light intensity parameters of the
surrounding using respective sensors.