UNIT V APPLICATIONS DEVELOPMENT
Complete Design of Embedded Systems – Development of IoT Applications – Home
Automation – Smart Agriculture – Smart Cities – Smart Healthcare
Complete design of embedded systems
Design process uses following concept:
1. Abstraction: problem component is abstracted list.
2. Software and hardware architecture: Before start of design, architecture must be
understood.
3. Additional functional properties: Developer should understand any additional
functionality is required or not.
4. System related family on 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 used.
6. Mapping: Mapping into different representations is done from software requirement.
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.
Design Metrics:
Design metrics for embedded systems are as follows:
1. Unit cost: The monetary cost of manufacturing each copy of the system, excluding
NRE cost.
2. Size: The physical space required by the system.
3. Performance: The execution time or throughput of the system.
4. Power: The amount of power consumed by the system.
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.
1. , power consumption, timing constraints, dependability.
2. Reduced and overlapping design cycles.
3. Design flow of embedded system begins with design specification, its define system
constraint, both cost and processing time.
4. Hardware and software integration is done after hardware/software detail design.
5. Verification and testing process is done to ensure embedded system design is fit to
specification.
***************
Complete design of embedded systems :
EMBEDDED SYSTEM DESIGN PROCESS:
A design Process is important for three reasons:
1. First, it allows us to keep a scorecard on a design to ensure that we have done
everything we need to do,
2. Second, it allows us to develop computer-aided design tools.
3. Third, a design process makes it much easier for members of a design team to
communicate.
Figure 2.1: Major Levels of Abstraction in the Design Process.
Figure 1.1 summarizes the major steps in the embedded system design process. In this
top-down view, start with the system requirements.
In the next step, specification, create a more detailed description of what we want. But
the specification states only how the system behaves, not how it is built.
(i) The Top Down: Begin with the most abstract description of the system and conclude
with concrete details.
(ii) The bottom-up: Start with components to build a system.
The steps in the design process are only one axis along which we can view embedded
system design. We also need to consider the major goals of the design:
Manufacturing Cost;
Performance (both overall speed and deadlines);
Power Consumption.
2.1 Requirements:
Clearly, before we design a system, we must know what we are designing.
The initial stages of the design process capture designing information for use in
creating the architecture and components.
System Designing is generally proceed in two phases:
1. First, we gather an informal description from the customers known as
requirements, and
2. Second, we refine the requirements into a specification that contains enough
information to begin designing the system architecture.
Requirements may be:
1. Functional Requirements or
2. Non-functional Requirements
We must of course capture the basic functions of the embedded system, but functional
description is often not sufficient.
Typical non-functional requirements include:
1. Performance: The speed of the system is often a major consideration both for the
usability of the system and for its ultimate cost. As we have noted, performance
may be a combination of,
a. Soft (Deadline) Performance Metrics: Such as approximate time to perform
a user-level function and
b. Hard Deadlines: By which a particular operation must be completed.
2. Cost: The target cost or purchase price for the system is almost always a
consideration. Cost typically has two major components:
a. Manufacturing Cost: Includes the cost of components and assembly;
b. Non-recurring Engineering (NRE) Costs: Include the personnel and other
costs of designing the system.
3. Physical Size and Weight: The physical aspects of the final system can vary
greatly depending upon the application.
4. Power Consumption: Power, of course, is important in battery-powered systems
and is often important in other applications as well.
2.2 Simple Requirements Form:
Requirements analysis for big systems can be complex and time consuming.
However, capturing a relatively small amount of information in a clear, simple format
is a good start toward understanding system requirements.
Figure 2.2.3 shows a sample requirements form that can be filled out at the start of the
project.
Figure 2.2.3: Sample Requirements Form.
2.3 Specification:
The specification is more precise, it serves as the bond between the customer and the
architects.
As such, the specification must be carefully written so that it accurately reflects the
customer’s requirements and does so in a way that can be clearly followed during
design.
Specification is probably the least familiar phase of this methodology for neophyte
designers, but it is essential to creating working systems with a minimum of designer
effort.
The specification should be understandable enough so that someone can verify that it
meets system requirements and overall expectations of the customer.
It specification should also be clear enough that designers know what they need to
build.
If global characteristics of the specification are wrong or incomplete, the overall
system architecture derived from the specification may be inadequate to meet the
needs of implementation.
2.4 Architecture Design:
Describing how the system implements those functions is the purpose of the
architecture.
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.
The creation of the architecture is the first phase of what many designers think of as
design.
To understand what an architectural description is, let’s look at sample architecture
for the moving map Figure 2.3.
Figure 2.3 shows a sample system architecture in the form of a block diagram that
shows major operations and data flows among them.
This block diagram is still quite abstract, we haven’t yet specified which operations
will be performed by software running on a CPU, what will be done by special-
purpose hardware, and so on.
Figure 2.3.1: Block Diagram for the Moving Map.
Only after we have designed an initial architecture that is not biased toward too many
implementation details should we refine that system block diagram into two block
diagrams: one for hardware and another for software.
These two more refined block diagrams are shown in Figure 2.3.2.
The hardware block diagram clearly shows that we have one central CPU surrounded
by memory and I/O devices.
Figure 2.3.2: Hardware and Software Architectures for the Moving Map.
2.5 Designing Hardware and Software Components:
The architectural description tells us what components we need.
The component design effort builds those components in conformance to the
architecture and specification.
The components will in general include both hardware field-programmable gate
arrays (FPGAs), boards, and so on and software modules.
Some of the components will be ready-made. the CPU
In the moving map, the GPS receiver is a good example of a specialized component
that will nonetheless be a predesigned, standard component.
Some components are ready-made, some can be modified from existing designs,
others must be designed from scratch( that is new design).
2.5 System Integration:
System integration is Putting together the components.
o Many bugs appear only at this stage.
Bugs are typically found during system integration, and good planning can help us
find the bugs quickly.
System integration is difficult because it usually uncovers problems. It is often hard to
observe in the system, to determine exactly what is wrong—the debugging facilities
for embedded systems are usually much more limited than what you.
Inserting appropriate debugging facilities during design can help ease system
integration problems would find on desktop systems.
System integration is difficult because it usually uncovers problems.
Careful attention to inserting appropriate debugging facilities during design can help
ease system integration problems, but the nature of embedded computing means that
this phase will always be a challenge.
**************
Development of IoT Applications:
• An IoT application can help us to monitor our business, improve efficiency and make
better decisions based on device data that it collects and analyzes.
• The internet of things means physical devices (or group of devices) equipped with
sensors, software and other technologies and the ability to connect and exchange data
with other devices and systems via the internet or other networks ( Wi-Fi or
Bluetooth).
• Every internet of things application requires four elements:
1. Cloud Technology
2. Dedicated Hardware
3. Reliable Network
4. Intuitive software
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 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.
2. Choosing the Right Hardware: The type of hardware depends on project
requirements. It could be sensors, GPS trackers, or even wearable's. But it is
important to pick devices that are reliable and relevant to the project.
3. Find the right connectivity protocols: There are several network protocols that we
can use like WiFi, 2G, 5G, Bluetooth, 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 cloud platform will hand the necessary
tools to create an application that serves our purpose.
Home automations:
Home automation refers to the use of technology to automate and control household
appliances and systems. It encompasses a wide range of devices and applications that can
make your home smarter, more efficient, and more convenient. Here are some common types
of home automation:
• Smart Lighting
• Smart Appliances
• Intrusion Detection
• Smoke/ Gas Detectors
Smart Lighting
• Smart lighting for homes helps in saving energy by adapting the lighting to the
ambient conditions and switching on/off or dimming the lights when needed.
• Key enabling technologies for smart lighting include solid state lighting (such as LED
lights) and IP-enabled lights.
• For solid state lighting solutions both spectral and temporal characteristics can be
configured to adapt illumination to various needs.
• Smart lighting solutions for home achieve savings by sensing the human movements
and their environments and controlling the lights accordingly.
• Wireless enabled and internet connected lights can be controlled remotely from IoT
applications such as a mobile or web application.
• Smart lights with sensors for occupancy, temperature, lux level, etc., can be
configured to adapt the lighting(by changing the light intensity, colour, etc.) based on
the ambient conditions sensed, in order to provide a good ambiance.
• In controllable LED lighting system is presented that is embedded with ambient
intelligence gathered from a distributed smart wireless sensor network to optimize and
control the lighting system to be more efficient and user oriented.
• A solid state lighting model is described and implemented on a wireless sensor
network that provides services for sensing illumination changes and dynamically
adjusting luminary brightness according to user preferences.
Smart Appliances
Modern homes have a number of appliances such as
TV
Refrigerators
Music systems
Washer/dryers, etc.
• Managing and controlling these appliances can be cumbersome, with each appliance
having its own controls are remote controls.
• Smart appliances make the management easier and also provide status information to
the users remotely.
Example
• Smart washer/dryers that can be controlled remotely and notify when the
washing/drying cycle is complete.
• Smart thermostats allow controlling the temperature remotely and can learn the user
preferences
• Smart refrigerators can keep track of the items stored(using RFID tags) and send
updates to the users when an item is low on stock.
• Smart TVs allows users to search and stream videos and movies from the internet on a
local storage drive, search TV channel schedules and fetch news, weather updates and
other content from the internet.
• Open remote is an open source automation platform for homes and buildings.
• Open remote is platform agnostic and works with standard hardware.
• With open remote users can control various appliances using mobile or web
applications.
• Open remote comprises of three components – a controller that manages scheduling
and runtime integration between devices, a designer that allows you to create both
configurations for the controller and create user interface designs and control panels
that allow you to interact with devices and control them.
Intrusion Detection system:
• Home intrusion detection systems use security cameras and sensors(such as PIR
sensors and door sensors) to detect intrusion and raise alerts.
• Alerts can be in the form of an SMS or an email sent to the user.
• Advanced systems can even send detailed alerts such as an image grab or a short
video clip sent as an email attachment.
• A cloud controlled intrusion detection system is described that uses location aware
services, where the geo-location of each node of a home automation system is
independently detected and stored in the cloud.
• In the event of intrusions, the cloud services alert the accurate neighbors ( who are
using the home automation system) or local police.
• In an intrusion detection system based on UPnP technology is described.
• The system uses image processing to recognize the intrusion and extract the intrusion
subject and generate universal plug and play(UPnP-based) instant messaging for
alerts.
Smoke/Gas Detectors
• Smoke detectors are installed in homes and buildings to detect smoke that is typically
an early sign of fire.
• Smoke detectors use optical detection, ionization or air sampling techniques to detect
smoke.
• Alerts raised by smoke detectors can be in the form of signals to a fire alarm system.
• Gas detectors can detect the presence of harmful gases such as carbon monoxide(CO),
liquid petroleum gas (LPG), etc.
• A smart smoke/gas detector can raise alerts in human voice describing where the
problem is, send or an SMS or email to the user or the local fire safety department and
provide visual feedback on its status(healthy, battery-low, etc.)
Smart cities
Smart cities leverage technology and data to improve the efficiency, sustainability, and
livability of urban environments. Here are some key aspects and initiatives commonly found
in smart cities:
Smart Parking
Smart Lighting
Smart Roads
Structural Health Monitoring
Surveillance
Emergency Response
Smart Parking
• Finding a parking space during rush hours in crowded cities can be time consuming
and frustrating.
• Furthermore, derivers blindly searching for parking spaces create additional traffic
congestion.
• Smart Parking make the search for parking space easier and convenient for drivers.
• Smart parking are powered by IoT systems that detect the number of empty parking
slots and send the information over the internet to smart parking application back-
ends.
• These applications can be accessed by the drivers from smart-phones, tablets and in
car navigation systems.
• In smart parking, sensors (Infrared Sensors:) are used for each parking slot, to detect
whether slot is empty or occupied.
Architecture of Smart Parking Systems
• Smart parking solution architecture is majorly represented by four components: the
application layer, network layer, transaction layer, and physical layer. An illustration
of the layered architecture is provided in Figure.
• A smart parking system is an architectural framework that comprises different
application platforms integrated into embedded systems.
• For instance, reserved parking spaces allow users to request the application layer,
wherein the request will immediately be processed through a network layer
Smart Lighting
• Smart Lighting systems for roads, parks and buildings can help in saving energy.
• According to an IEA report, lighting is responsible for 19% of global electricity use
and around 6% of global greenhouse gas emissions.
• Smart lighting allows lighting to be dynamically controlled and also adaptive to the
ambient conditions.
• Smart lights connected to the internet can be controlled remotely to configure lighting
schedules and lighting intensity.
• Custom lighting configurations can be set for different situations such as foggy day, a
festival, etc.
• Smart lights equipped with sensors (Light Sensors) can communicate with other
lights and exchange information on the sensed ambient conditions to adapt the
lighting.
Smart Roads
• Smart roads equipped with sensors (Vehicle Detection Sensors, Traffic Cameras,
Road Surface Condition Sensors:) can provide information on driving conditions,
travel time estimates and alerts in case of poor driving conditions, traffic congestions
and accidents.
• Such information can help in making the roads safer and help in reducing traffic jams.
• Information sensed from the roads can be communicated via Internet to cloud based
applications and social media and disseminated to the drivers who subscribe to such
applications.
Structural Health Monitoring
• Structural Health Monitoring systems use a network of sensors (Acoustic Emission
Sensors) to monitor the vibration levels in the structures such as bridges and
buildings.
• The data collected from these sensors is analyzed to assess the health of the structures.
• By analyzing the data it is possible to detect cracks and mechanical breakdowns,
locate the damages to a structure and also calculate the remaining life of the structure.
• Using such systems, advance warnings can be given in the case of imminent failure of
the structure.
Surveillance
• Surveillance of infrastructure, public transport and events in cities is required to
ensure safety and security.
• City wide surveillance infrastructure comprising of large number of distributed and
Internet connected video surveillance cameras can be created.
• The video feeds from surveillance cameras can be aggregated in cloud based scalable
storage solutions.
• Cloud based video analytics applications can be developed to search for patterns or
specific events from the video feeds.
Emergency Response:
• IoT systems can be used for monitoring the critical infrastructure in cities such as
buildings, gas and water pipelines, public transport and power substations.
• IoT systems for fire detection, gas and water leakage detection can help in generating
alerts and minimizing their effects on the critical infrastructure.
• IoT systems for critical infrastructure monitoring enable aggregation and sharing of
information collected from large number of sensors.
• Using cloud based architectures, multi model information such as sensor data, audio,
video feeds can be analyzed in near real time to detect adverse events.
• Response to alerts generated by such systems can be in the form of alerts sent to the
public, re-routing of traffic, evacuations of the affected areas, etc.
Smart Agriculture
Smart agriculture, also known as precision agriculture or digital farming, involves the use of
technology to improve the efficiency, productivity, and sustainability of agricultural
practices. Here are some key aspects and technologies commonly associated with smart
agriculture:
Smart Irrigation
Green House Control
Smart agriculture, also known as precision agriculture, harnesses technology like
sensors, IoT devices, and data analytics to revolutionize farming practices. By
collecting real-time data on soil conditions, crop health, and weather patterns, farmers
can make informed decisions about irrigation, fertilization, pest control, and
harvesting.
Precision farming equipment, including GPS-guided machinery, maximizes efficiency
and reduces resource wastage, while robotics and automation streamline labor-
intensive tasks. Vertical farming and hydroponics optimize space and water usage,
particularly in urban areas.
Block chain technology ensures transparency and traceability throughout the supply
chain, enhancing food safety and authenticity.
Smart greenhouses and predictive analytics further enhance productivity by creating
optimal growing conditions and forecasting yields and market trends. Ultimately,
smart agriculture aims to increase food production sustainably, mitigate
environmental impacts, and ensure food security for a growing global population.
Smart Irrigation
• Smart irrigation systems can improve crop yields while saving water.
• Smart Irrigation systems use IoT devices with soil moisture sensors to determine the
amount of moisture in the release the flow of water through the irrigation pipes only
when the moisture levels go below a predefined threshold.
• Smart irrigation systems also collect moisture level measurements on a server or in
the cloud where the collected data can be analyzed to plan watering schedules.
Figure: Smart Irrigation
Green House Control
• Green houses are structures with glass or plastic roofs that provide conductive
environment for growth of plants.
• The climatological conditions inside a greenhouse can be monitored and controlled to
provide the best conditions for growth of plants.
• The temperature, humidity, soil moisture, light and carbon dioxide levels are
monitored using sensors and the climatological conditions are controlled
automatically using actuation devices (such as valves for releasing water and switches
for controlling fans).
• IoT systems play an important role in green house control and help improve
productivity.
• The data collected from various sensors is stored centralized servers or in the cloud
where analysis is performed to optimize the control strategies and also correlate the
productivity with different control strategies.
In order to monitor the complete greenhouse system environment different type
sensors such as temperature sensor, humidity sensor, light sensor and soil moisture
sensor are employed for designing hardware system for greenhouse.
An Arduino Uno R3 has been used as a central device to store and process data. An
LCD (Liquid Crystal Display) Module has been used to display the parameters to the
user. Besides, a GSM (Global System for Mobile Communication) Module has been
used to update user through SMS.
Moreover, some Relays, converters (analog to digital and digital to analog), solar
power system including rechargeable Battery have been used in this greenhouse
monitoring and controlling system
Temperature Sensor
The LM35 series consist of precision integrated circuit temperature devices with an
output voltage linearly proportional to the Centigrade temperature. The LM35 device is
operating over a −55°C to 150°C temperature range and the operating voltage is from 4V
to 30V.
Humidity Sensor and Soil Moisture Sensor
A Humidity Sensor Unit known as HSU-07 Series has been used to implement the
proposed greenhouse system. Its operating voltage is 0-7 Volt, operating temperature
range is -20~+60 ℃, and operating humidity range is 20-90% RH.
Soil moisture plays an important role for growing good plants. A soil moisture sensor
has been used to determine the moisture of the soil. By placing two probes of soil
moisture sensors inside the soil, value of moisture in the soil can be measured and the
outcome is send to the owner of the greenhouse system using GSM via SMS. D.
Light Sensor Module
Light intensity also plays an important role in greenhouse system. Proper light
intensity is essential for growth of the plants. Varying light intensity may result severe
affect in plant growing and hence loss of productivity. There is a LDR in light sensor
module which can help to detect light intensity.
Liquid Crystal Display
A liquid crystal display (LCD) is a flat panel display or other electronically modulated
optical device that uses the light modulating properties of liquid crystals. Liquid crystals
do not emit light directly, instead using a backlight or reflector to produce images in
colour or monochrome.
GSM
Global System for Mobile Communication (GSM) is communication modem which is
an open and digital cellular technology responsible for transmitting mobile voice and data
services operated at the 850MHz, 900MHz, 1800MHz and 1900MHz frequency bands.
Solar Panel
In this system, we have used a 12V (10Watt) solar panel for charging the battery for
the purpose of uninterrupted monitoring and controlling of greenhouse system. The
battery will be directly charged from the solar panel and that can be support continuous
power supply to the system.
Relay
A relay is an electrically operated switch that are used to control a circuit by a
separate low-power signal or where several circuits must be controlled by one signal.
Smart Healthcare
Health and Fitness Monitoring
Wearable Electronics
Smart healthcare leverages IoT applications to revolutionize medical services,
enhance patient care, and optimize healthcare delivery. Through interconnected
devices and sensors, patient monitoring becomes continuous and remote, allowing
healthcare providers to monitor vital signs, medication adherence, and disease
progression in real-time.
Wearable devices, such as smart watches and fitness trackers, track activity levels,
heart rate, and sleep patterns, empowering individuals to take proactive steps
towards better health. IoT-enabled medical equipment, like smart infusion pumps
and connected imaging devices, streamline clinical workflows, improve accuracy,
and reduce errors.
Telemedicine platforms facilitate virtual consultations and remote diagnostics,
increasing access to healthcare services, especially in underserved areas. Data
analytics and AI algorithms analyse vast amounts of patient data to detect
patterns, predict health risks, and personalize treatment plans.
Secure communication protocols and block chain technology ensure the privacy
and integrity of sensitive medical information. Overall, smart healthcare in IoT
applications enhances efficiency, accessibility, and quality of care while driving
innovation and improving health outcomes.
Health and Fitness Monitoring
• Wearable IoT devices that allow non-invasive and continuous monitoring of
physiological parameters can help in continuous health and fitness monitoring.
• These wearable devices may can be in various forms such as belts and wrist-bands.
• The wearable devices form a type of wireless sensor networks called body are
networks in which the measurements form a number of wearable devices are
continuous sent a master node (such as a smart phones) which then sends the data to a
server or a cloud based back end for analysis and archiving.
• Health care providers can analyse the collected health care data to determine any
health conditions or anomalies.
• Commonly uses body sensors include: body temperature, heart rate pulse oximeter
oxygen saturation (SPo2), blood pressure, electrocardiogram(ECG), movement (with
accelerometers), and electroencephalogram(EEG).
Figure: Health monitoring system
In the first phase, the ECG sensor, the temperature sensor and the SPO2 sensor
begin data collection and transmit it to the Healthy Pi controller.
The controller performs the configured digital signal processing in its
programming code on the raw input data and provides a clear, understandable
output that is transmitted to the Raspberry Pi.
In the second phase, the Raspberry Pi immediately begins transmission of the
output data to the selected IoT dashboard using the MQTT protocol.
In the third phase, we use the provided output data to perform further analysis and
enable detection of physical and health states of the patient/athlete.
Wearable Electronics
• Wearable electronics such as wearable gadgets (smart watches, smart glasses,
wristbands, etc.) and fashion electronics ( with electronics integrated in clothing and
accessories,(eg. Google Glass or Moto 360 smart watch) provide various functions
and features to assist us in our daily activities and making us lead healthy lifestyles.
• Smart watches that run mobile operating systems (such as Android) provide enhanced
functionality beyond just timekeeping.
• With smart watches, the users can search the Internet, play audio/video files, make
calls (with or without paired mobile phones), play games and use various kinds of
mobile applications.
• Smart glasses allow users to take photos and record videos, get map directions, check
flight status, and search the Internet by using voice commands.
• Smart shoes monitor walking or running speeds and jumps with the help of embedded
sensors and be paired with smart phones to visualize the data.
• Smart wristbands can track the daily exercise and calories burnt.
Figure 1: Wearable Technologies
Types of wearables include smart watches, fitness bands, glasses, smart clothing, smart
shoes, and hear ables. While some can tell you how fit you are, others can help you with
navigation or tracking on the go.
Wearables are not just about being portable, however; they are also about the cloud-based
services that take the data from the devices and return insights and analytics to benefit the
user.