EIOT Unit-5
EIOT Unit-5
An Embedded system is a controller, which controls many other electronic devices. It is a combination
of embedded hardware and software. There are two types of embedded systems microprocessors and
micro-controller. Micro-processor is based on von Neumann model/architecture (where program + data
resides in the same memory location), it is an important part of the computer system, where external
processors and peripherals are interfaced to it. It occupies more area and has more power consumption.
The application of the microprocessor is personal computers.
Definition: A system designed with the embedding of hardware and software together for a specific
function with a larger area is embedded system design. In embedded system design, a microcontroller
plays a vital role. Micro-controller is based on Harvard architecture, it is an important component of
an embedded system. External processor, internal memory and i/o components are interfaced with
the microcontroller. It occupies less area, less power consumption. The application of
microcontrollers is MP3, washing machines.
2. Software and hardware architecture: Before start of design, architecture must be understood.
4. System related family of design: Earlier version of system is also considered while designing.
5. Modular design: Modular design is a design approach that creates things out of independent parts
with standard interfaces. This allows designs to be customized, upgraded, repaired and for parts to be
reused.
7. User interface design: It is designed as per user requirement, environment analysis and system
functions. In automatic coffee vending machine, LCD display is the user interface.
1. Unit cost: The monetary cost of manufacturing each copy of the system, excluding NRE cost
5. Flexibility: The ability to change the functionality of the system without incurring heavy NRE
cost
6. Maintainability: The ability to modify the system after its initial release
7. Time-to-market: The time required to develop a system to the point that it can be released and
sold to customers
2. Allocating those partitions to microprocessors or other hardware units where the function may be
implemented directly in hardware or in software running on a microprocessor.
3. Scheduling the times at which functions are executed, which is important when several partitions
share one hardware unit?
Design flow of embedded system begins with design specification, its define system
constraint, both cost and processing time. System functionality is defined in behavioural
description, hardware software partitioning is done to optimize design result and still fit
requirement.
Hardware and software integration is done after hardware/software detail design. Register
transfer level design is carried out by means hardware programming language such as,
Verilog, VHDL and Esterel.
Verification and testing process is done to ensure embedded system design is fit to
specification. Fig. show the major steps in the embedded system design process.
1. Reactive systems: The system never stops and the system responds to signals produced by the
environment.
2. Real time systems: Timing constraints on task execution. Hard and soft constraints.
Difficult metric estimation on upper levels since layout is not known until the end.
Requirement
2. Explain in detail about functional and non-functional requirements.
Requirements are general parameters that the system must satisfy. Plain language description of what the
user wants and expects to get.
It may be developed in following ways:
1. Talking directly to customers;
There are different groups of people involved in the requirements engineering process. These are
users, application experts, customers, marketing experts, project managers, electrical engineers,
and hardware and software engineers.
Performance Major consideration for the usability of the system and its ultimate cost.
It may be a combination of soft performance metrics and hard deadlines.
Cost Manufacturing costs (e.g. components, assembly).
Nonrecurring engineering (NRE) costs (e.g. personnel, design in the
system).
Physical size and It depends on the application.
weight
Power consumption Important not only in battery-powered systems.
Specified in terms of battery life.
Functional requirements
Specification is contract between the customer and the architects. It is more precise description of
the system.
Specification must be carefully written so that it correctly reflects the customer's requirement.
Specification may include functional and non-functional elements. It may be "executable" or may
be in mathematical form for proofs. It provides input to the architecture design process.
Unified Modeling Language (UML) is a language used for describing specifications.
Architecture Design
The architecture is a plan for the overall structure of the system that will be used later to design the
components that make up the architecture.
Major components for satisfying the specification are hardware components (CPUs,peripherals) and
software components (Major programs and their operations).
Example: GPS moving map block diagram.
System Integration
System integration assembles the all components. It may possible, there are many bugs. Bugs
can be removed by good planning. Individual components should be tested first.
Debug method is used to remove the bugs. System integration is difficult because it usually
uncovers problems.
We must have a plan for integrating components to uncover bugs quickly, test as much
functionality as early as possible.
Debugging facilities for embedded systems are usually much more limited than desktop
systems.
Parameters Remarks
How much hardware do we need? Too little hardware and the system fails to meet its
deadlines.
Too much hardware and it becomes too expensive.
Requirement of CPU and memory capacity.
How do we meet our deadlines? Faster hardware or cleverer software.
Faster hardware makes the system more expensive.
Increasing the clock rate may not be the solution.
Memory access times may be the bottleneck.
How do we minimize power? Power consumption is extremely important, in battery-
powered applications.
3. Numerous constraints and design objectives; examples: Cost, power consumption, timing
constraints, dependability.
Design flow of embedded system begins with design specification, its define system constraint,
both cost and processing time. System functionality is defined in behavioral description,
hardware software partitioning is done to optimize design result and still fit the requirement.
Hardware and software integration is done after hardware/software detail design. Register
transfer level design is carried out by means hardware programming language such as, Verilog,
VHDL and Esterel.
Verification and testing process is done to ensure embedded system design is fit to specification.
1. Complex testing: It may have to run a real machine. It cannot separate the testing of an embedded
computer from the machine in which it is embedded.
2. Limited observability and controllability: Usually no keyboard or screen. It may have to watch
the electrical signals on the bus. In real time applications, we may not be able to stop the system.
3. Restricted development environments: The tools are more limited and not easy to debug code.
IoT is a platform where embedded devices are connected to the Internet to collect and
exchange data. It enables machines to interact, collaborate and learn from experiences like
humans. IoT applications equipped billions of objects with connectivity and intelligence An
Cloud: One of the most important elements of IoT, responsible for data processing and storage.
Hardware: Low-energy sensors or mobile devices that can be either custom-built or bought from
third-party vendors.
Network: It is responsible for two-way communication between all relevant IoT devices and properly
linking these devices with each other.
Software: Software is responsible for managing all devices within an IoT system. Whether we
choose to develop a mobile app or a web app, the software should be cloud-based. Additionally, users
should be able to check information collected from sensors and devices via one dashboard.
Steps:
1. Define the requirements for the application: An important step in developing an IoT application
is to define the goal and scope of the app.
3. Find the right connectivity protocols: There are several network protocols that we can use like
WiFi, 2G, 5G, Bluetooth, LoRa, NB-IoT, or Zigbee. Depending on devices and the availability of
resources, we need to pick the right channels for connectivity.
4. Ensure the firmware is well equipped: Firmware, or device-side software, are the technical terms
for the program that runs hardware.
5. Select the right cloud platform: The right IoT platform will hand the necessary tools to create an
application that serves our purpose.
5. Explain in detail about home automation with examples. Explain in detail about smart lighting,
smart appliances, intrusion detection and smoke for gas detection.
Home automation is the automatic control of electronic devices in your home. These devices are
connected to the Internet, which allows them to be controlled remotely.
Interconnected devices enable to intelligently monitor and control smart homes in a future
Internet of Things.
Energy saving applications, for example, control indoor climate and electricity usage by
employing context information to switch off appliances (e.g., lights, computers), reduce room
temperature, close windows, or stop warm water circulation.
1. Monitoring: Monitoring means that users can check in on their devices remotely through an app.
For example, someone could view their live feed from a smart security camera.
2. Control: Control means that the user can control these devices remotely, like planning a security
camera to see more of a living space.
3. Automation: Finally, automation means setting up devices to trigger one another, like having a
smart siren go off whenever an armed security camera detects motion.
Smart control the lights with automation signal system to save energy. Smart, connected lighting is
the next generation energy efficient LED products with additional sensors to sense things such as
occupancy and temperature.
The role and scope of smart appliances in the home (Washer, dryer, refrigerator, dishwasher,
fridge, freezer, air conditioner, vacuum cleaner and so on) is on the increase with the market being
estimated to have a year on year compound growth of slightly over 15 %.
Connecting everyday objects to the internet is an essential element of the IoT. Some appliance
suppliers use a low power wireless network to communicate over such as Bluetooth, whilst others
utilise the existing higher powered Wi-Fi network used for a tablet or computer wireless
connectivity. Once a network is in place objects can populate the home environment and
communicate with the user and each other.
The ability of an object to respond to remote commands and change its behaviour makes it an
active device, such as the new Hive heating thermostat or a Sky+ box.
Where the remote object has no ability to respond to remote control requests then it is considered
passive as with some fixed cameras, microphones or temperature sensors.
IR Sensor: It will be activated in the automated mode to detect person entering or coming out of
the room and set a counter based on that. If the counter show there is a person inside it will light
up the room automatically and turn on the AC depending upon the temperature reading.
Sensors provide data about motion, occupancy, glass breakage, door and window openings, water
leaks, light intensity, temperature, energy consumption, camera, and even appliance plug insertion
or removal.
Controllers turn power and off or adjust settings on appliances, furnaces, air conditioners, space
heaters, fans, pool pumps, water heaters, lighting, home theatres, music, motorized blinds, door
locks, and plug loads. To be deemed intelligent, an appliance's sensors and controllers should use
internet protocol communication.
Smart refrigerators can keep track of the items stored and send updates to the users when an item
is low on stock.
Smart TV allow user to search video and movies from the Internet on a local storage drive, search
TV schedule, fetch news and other things from the Internet.
Open Remote is the professional open-source middle-ware for an Internet of Things. Integrate any
device or protocol, and design your own user interface and automation. Use our online designer,
sync to the controller, and control with this app.
Open Remote is a state of the art open source software platform for building control and
automation.
Open Remote allows for designing a fully customizable building and home control solution
without the need to actually write code.
Intrusion Detection System (IDS) includes both hardware and software mechanisms and IDS
is responsible for identifying malicious activities by monitoring network environment and
system.
The purpose of home intrusion detection system is to detect intrusions using sensors and raise
alerts, if necessary.
With the help of Light dependent resistor and PIR motion sensor, it detect the motions in the
room. If a motion is detected, system capture the image with the help of a webcam and store
locally. Now the alerts are sent to the user with the captured image.
To detect any form of intrusion in restricted areas and report it immediately, following concept
is used.
Smoke or gas detector sensor which detects the smoke and turns on the buzzer alarm and all these
are update on the web page.
MQ2 is a semiconductor type sensor, which can appropriately sense the presence of smoke, LPG,
methane, butane, propane and other hydrocarbon.
When it comes in contact with the gas to be monitored, the electrical resistance of the sensor
decreases; enabling the microcontroller to respond to the situation.
When it detects the concentration of combustible gas in the air it outputs its reading as an analog
voltage. The sensor can measure concentrations of flammable gas of 300 to 10,000 ppm. The
sensor can operate at temperatures from 20 to 50° C and consumes less than 150 mA at 5 V.
The MQ-2 smoke sensor reports smoke by the voltage level as output. The more potentiometer to
adjust the sensitivity to smoke. smoke is there, the greater the voltage output. The MQ-2 also has
a built-in potentiometer to adjust the sensitivity to smoke.
By adjusting the potentiometer, one can change how sensitive it is to smoke, so there is a form of
calibrating it to adjust how much voltage it will give in relation to the smoke it is exposed to.
In our country, agriculture is major source of food production to the growing demand of human
population. In agriculture, irrigation is an essential process that influences crop production.
Generally, farmers visit their agriculture fields periodically to check soil moisture level and based on
requirement water is pumped by motors to irrigate respective fields.
In modern greenhouses, several measurement points are required to trace down the local climate
parameters in different parts of the big greenhouse to make the greenhouse automation system work
properly.
The most important factors for the quality and productivity of plant growth are temperature,
humidity, light and the level of the carbon dioxide.
Continuous monitoring of these environmental variables gives information to the grower to better
understand, how each factor affects growth and how to manage maximal crop productiveness.
Wireless Sensor Network (WSN) can form a useful part of the automation system architecture in
modern greenhouses.
Wireless communication can be used to collect the measurements communicate between the
centralized control and the actuators located to the different parts of the greenhouse.
7. Explain in detail about smart cities with examples. Explain in detail about smart parking ,smart
lighting and smart roads.
The number of urban residents is growing by nearly 60 million every year. In addition, more than
60 percent of the world's population will be living in cities by 2050.
As a result, people occupying just 2 percent of the world's land will consume about three-quarters
of its resources. Moreover, more than 100 cities of 1 million people will be built in the next 10
years.
Over the past decade, the city of Amsterdam, the Netherlands, has developed a vision for
collaborating, envisioning, developing, and testing numerous connected solutions that could pave
the way to a smarter, greener urban environment.
With smart city applications producing continuous large data from heterogeneous sources, existing
relational database technologies are inadequate to handle such huge amounts of data given the
limited processing speed and the significant storage expansion cost.
To address this problem, big data processing technologies, which are based on distributed data
management and parallel processing, have provided enabling platforms for data repositories,
distributed processing, and interactive data visualization.
Traffic congestion is major problem in big cities. Searching for a parking space is a routine (and
often frustrating) activity for many people in cities around the world.
After finding parking space to the driver, he parks the vehicle, it may be spend small amount of
time to looking for a city council parking attendant to pay the parking fees.
The smart parking system is designed by making use of some IOT supportable hardware's such as
raspberry pi, arduino boards etc.
Smart parking systems typically obtains information about available parking spaces in a particular
geographic area and process is real time to place vehicles at available positions.
It involves using low-cost sensors, real-time data collection, and mobile-phone-enabled automated
payment systems that allow people to reserve parking in advance or very accurately predict where
they will likely find a spot.
When deployed as a system, smart parking thus reduces car emissions in urban centers by reducing
the need for people to needlessly circle city blocks searching for parking.
It also permits cities to carefully manage their parking supply smart parking helps one of the biggest
problems on driving in urban areas; finding empty parking spaces and controlling illegal parking.
Smart parking application can be accessed by drivers from smart phones, tables. Sensor is used for
each parking slot, to detect whether the slot is empty or occupied.
Local controller collects the information and send to server using Internet. Fig. shows process
specification for smart parking IoT system.
Each parking slot contains the sensor and it reads at regular intervals. Sensor sends the status
information to local processing centre.
Sensing layer defines a platform where sensor devices are embedded into the parking lot to detect
car presence/absence, and RFID devices located at the parking gates and strategic points of the
parking are used to identify cars based on a unique mapping between RFID tags and car.
Networking Layer TCP/IP over Ethernet for connecting the gateway to the parking server and
database and Internet access for remote access to the smart parking system from outside.
Middleware layer hosts different databases and associated servers and manages all of the software
intelligence provided by the smart parking system to provide smart services to users by enabling
communication between the application layer where services are requested and the lower layers
where smart devices are embedded into the parking lot to provide smart services.
The application layer is the layer where the different services are defined and provided to different
users. Client devices have been connected via the TCP/IP protocol to a parking database.
Parking availability status by integrating into the car detection system sources of light on parking
spots, which are controlled by actuators to inform of the status of a parking spot: e.g., red for
occupied, green for empty, yellow for reserved and blue for out of service.
Remote availability checking using the internet and the GSM network to check in real time the
availability of the smart parking system.
The data of smart parking lots are able to provide profits for both customers and merchant's daily
lives in the smart cities. This service works based on road sensors and intelligent displays which
lead drivers to the best path for parking in the city.
The street lighting is one of the largest energy expenses for a city. The street light section comprises
of all the light lamps in an area with current sensors and RF module. 'N' street lights of this section
Sensor is installed on road to provides road traffic condition, travel time estimation, congestion
and accident.
Sensor collects this information and stored on the central database using cloud. This information
helps for solving traffic congestion, making safe driving, keeping road condition upto date.
User can access the information from the cloud. User also get real time information.
Real time traffic maps can be obtained to enable smooth flow. Traffic can be reduced with systems
that detect alternate routes. User get timely information so they can locate a traffic free road, saving
time and fuel. This information can reduce traffic jams and pollution improves the quality of life.
8. Explain in detail about smart healthcare with examples. Explain in detail about health & fitness
monitoring and wearable electronic.
20
Smart health can be defined as medical and public health practice supported by smart devices. The
IoT devices will help to test the different parameters so as to facilitate for proper diagnosis. Based
on the diagnosis the treatment is monitored.
IoT devices can be used to enable remote health monitoring and emergency notification systems.
These health monitoring devices can range from blood specialized implants.
Smart health systems provide health related services using a network?, some kind of connection
between intelligent agents. These intelligent agents could be computing devices, mobile phones,
sensors, Fitbit smart bands, surgical devices, devices that measure your blood chemistry, or
devices that measure your brainwaves. Any of these things could be intelligent agents.
The human actors, patients or healthcare providers for example, could be intelligent agents in this
system. The sensors, devices, computers, applications, and system. The sensors, devices,
computers, applications and human actors are all intelligent agents that might be connected in the
smart health system.
Smart healthcare is an important research area for Internet of Things, which employs sensors and
other information identifying technologies, wireless and wired networks to realize large-scale,
multi-layer interaction between patients and medical equipment’s, medical staff and healthcare
institutions.
3. Medical resource shortness: There are not enough medical resources for the population. For
example, there are fewer doctors and high-level healthcare institutions but more patients.
4. "Low" usage of community health service centers. In contrast with community health service
centers, people prefer the high-level healthcare institutions. This results in the low usage of
community service centers.
5. Bad health habits. The citizens have some bad health habits that contribute to poor health, for
instance, smoking and no sport.
4. Applications have in-use requirements such as low power, robustness, durability, accuracy and
reliability.
Connected medical devices and associated IoT technologies will primarily be used to achieve the
following capabilities:
1. Access real time visibility of the patient's condition, his/her activities, context and physiological
parameters.
3. Provide feedback and cues to patients, family members, doctors and caregivers in order to
implement corrective action.
4. Leverage high performance computing for real time feedback and use evidence-based medicine
for better patient outcome.
Smart glasses help us enjoy more of the media and services we value and when part of an IoT
system, they allow a new approach to productivity.
Smart watches not only help us stay connected, but as a part of an IoT system, they allow access
needed for improved productivity.
A system designed with the embedding of hardware and software together for a specific function
with a larger area is embedded system design. In embedded system design, a microcontroller
plays a vital role. Micro-controller is based on Harvard architecture, it is an important component
of an embedded system. External processor, internal memory and i/o components are interfaced
with the microcontroller. It occupies less area, less power consumption. The application of
microcontrollers is MP3, washing machines.
4. What are the steps involved in the Embedded System Design Process?
Abstraction.
Software and hardware architecture.
Additional functional properties.
System related family of design.
Modular design.
Mapping.
User interface design.
Microprocessor
Microcontroller
10. List the typical nonfunctional requirement for embedded system design.
Typical nonfunctional requirements includes: Performance, cost, physical size and weight, power
consumption.
Design metrics are unit cost, size, performance, power and time to market.
Smart parking systems typically obtains information about available parking spaces in a particular
geographic area and process is real-time to place vehicles at available positions. The smart parking
system is designed by making use of some IOT supportable hardware's such as raspberry pi, aurdino
boards etc.
Urban centers are labeled as smart when they leverage technologies to improve the management of
common resources, such as street space or waste collection and improve the quality of urban life for
citizens.
The smart irrigation system was developed to optimize water use for agricultural crops. The system
has a distributed wireless network of soil-moisture and temperature sensors placed in the root zone
of the plants. Wireless Transmitter Unit (WTU) is comprised of a soil moisture sensor, a temperature
sensor, a microcontroller, a distributed network of sensors. A RF transceiver and power source.
Several WTUs can be incorporated in field to form an up-thrust for knowledge.