Unit 5
Unit 5
Unit 5
UNIT V
APPLICATIONS DEVELOPMENT
• Home Automation
• Smart Agriculture
• Smart Cities
• Smart Healthcare.
1|Page
lOMoARcPSD|26885763
2|Page
lOMoARcPSD|26885763
Modular Design
Separate module designs must be made so that they can be used later on when required.
3|Page
lOMoARcPSD|26885763
Mapping
Based on software mapping is done. For example, data flow and program flow are mapped
into one.
User Interface Design
In user interface design it depends on user requirements, environment analysis and function
of the system. For example, on a mobile phone if we want to reduce the power consumption
of mobile phones we take care of other parameters, so that power consumption can be
reduced.
Refinement
Every component and module must be refined appropriately so that the software team can
understand.
Architectural description language is used to describe the software design.
• Control Hierarchy
• Partition of structure
• Data structure and hierarchy
• Software Procedure.
Specifications
Proper specifications are to be made so that the customer who uses the product can go
through the specification of the product and use it without any confusion. Designers mainly
focus on specifications like hardware, design constraints, life cycle period, resultant system
behavior.
Architecture
Hardware and Software architecture layers are specified.
Components
In this layer, components design is done. Components like single process processor,
memories- RAM/ROM, peripheral devices, buses..etc.
System Integration
In this layer, all the components are integrated into the system and tested whether its meeting
designers, expectations.
4|Page
lOMoARcPSD|26885763
• Environment adaptability
• Power consumption
• Area occupied
• Packaging and integration
• Updating in hardware and software
• Security
• There are various challenges the designers face while testing the design like Embedded
hardware testing, Verification stage, Validation Maintainability.
Design Steps
The design steps mainly include the following.
1. Requirements
2. Specifications
3. Hardware and software functioning.
Requirements
When a child inserts a coin into the machine and selects the particular chocolate that he
wants to purchase.
Inputs
• Coins, user selection.
• An interrupt is generated at each port whenever a coin is inserted.
• A separate notification is sent to each port.
Outputs
• Chocolate
• Refund
• A message is displayed on LCD like date, time, welcome message.
5|Page
lOMoARcPSD|26885763
System Function
• Using a graphical user interface, the child commands to the system which chocolate the
child wants to purchase.
• Where the graphical user interface has an LCD, keypad, touch screen.
• The machine delivers the chocolate when the child inserts the coin if the coins inserted are
excess than the actual cost of selected chocolate. The ACVM machine refunds the money
back.
• Using a Universal synchronous bus, the owner of the ACVM can keep track of client
location.
Let's see the block diagram shows the basic structure of an embedded system.
o Sensor: Sensor used for sensing the change in environment condition and it generate
the electric signal on the basis of change in environment condition. Therefore it is
also called as transducers for providing electric input signal on the basis of change in
environment condition.
o A-D Converter: An analog-to-digital converter is a device that converts analog
electric input signal into its equivalent digital signal for further processing in an
embedded system.
o Processor & ASICs: Processor used for processing the signal and data to execute
desired set of instructions with high-speed of operation.
6|Page
lOMoARcPSD|26885763
o Actuators: Actuators is a comparator used for comparing the analog input signal level
to desired output signal level for providing the error free output from the system.
Designing steps required for embedded system are different from the design process of
another electronic system.
Let's see a flow chart represent the design steps required in the development of an embedded
system:
Processors are the major part in embedded systems that take response from sensors in digital
form and processing of this response to produce output in real-time processing environment
is performed using processors.
7|Page
lOMoARcPSD|26885763
o Control unit: This unit in processors performed the program flow control operation
inside an embedded system. The control unit also acts as a fetching unit for fetching
the set of instructions stored inside a memory.
o Execution unit: This unit is used for execution the various tasks inside a processors. It
mainly comprises of arithmetic and logical unit (ALU) and it also include a circuit
that executes the instruction sets used to perform program control operation inside
processors.
Types of processors:
Processors inside an embedded system are of the following categories:
o Application Specific System Processor(ASSP): ASSP is application dependent
system processor used for processing signal of embedded system. Therefore for
different application performing task a unique set of system processors is required.
o Application Specific Instruction Processor(ASIP): ASIP is application dependent
instruction processors. It is used for processing the various instruction set inside a
combinational circuit of an embedded system.
o General Purpose Processor (GPP): GPP is used for processing signal from input to
output by controlling the operation of system bus, address bus and data bus inside an
embedded system.
o Microprocessor
o Microcontroller
o Digital signal processor
o Analog signal processor
Embedded Systems
Before going to the overview of Embedded Systems, Let’s first know the two basic
things i.e embedded and system, and what actually do they mean.
System is a set of interrelated parts/components which are designed/developed to perform
common tasks or to do some specific work for which it has been created.
8|Page
lOMoARcPSD|26885763
Embedded means including something with anything for a reason. Or simply we can say
something which is integrated or attached to another thing. Now after getting what actual
systems and embedded mean we can easily understand what are Embedded Systems.
Embedded System is an integrated system that is formed as a combination of computer
hardware and software for a specific function. It can be said as a dedicated computer system
has been developed for some particular reason. But it is not our traditional computer system
or general-purpose computers, these are the Embedded systems that may work independently
or attached to a larger system to work on a few specific functions. These embedded systems
can work without human intervention or with little human intervention.
9|Page
lOMoARcPSD|26885763
10 | P a g e
lOMoARcPSD|26885763
• Small size.
• Enhanced real-time performance.
• Easily customizable for a specific application.
11 | P a g e
lOMoARcPSD|26885763
For example, the municipal corporation has decided to repair a road that is connected to the
national highway. It may cause traffic congestion to the national highway. The insight is sent
to the traffic monitoring system.
The intelligent system analyzes the situation, estimate their impact, and relay information to
other cities connected to the same highway. It generates live instructions to drivers by smart
devices and radio channels.
12 | P a g e
lOMoARcPSD|26885763
What is IoT?
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.
5.3.1. Wearable
Wearable technology is the hallmark of IoT applications and one of the earliest industries to
deploy IoT. We have fit bits, heart rate monitors and smartwatches these days.
Guardian glucose monitoring device has been developed to help people with diabetes. It
detects glucose levels in our body, uses a small electrode called the glucose sensor under the
skin, and relates it to a radiofrequency monitoring device.
13 | P a g e
lOMoARcPSD|26885763
The smart home is probably the first thing when we talk about the IoT application. The
example we see the AI home automation is employed by Mark Zuckerberg. Alan
Pan's home automation system, where a string of musical notes uses in-house functions.
The problems faced by Mumbai are very different from Delhi. Even global issues, such as
clean drinking water, declining air quality, and increasing urban density, occur in varying
intensity cities. Therefore, they affect every city.
14 | P a g e
lOMoARcPSD|26885763
Governments and engineers use the Internet of Things to analyze the complex factors of
town and each city. IoT applications help in the area of water management, waste control and
emergencies.
5.3.5. Agriculture
By the year 2050, the world's growing population is estimated to have reached about 10
billion. To feed such a large population, agriculture needs to marry technology and get the
best results. There are many possibilities in this area. One of them is Smart Greenhouse.
15 | P a g e
lOMoARcPSD|26885763
A connected car is a technology-driven car with Internet access and a WAN network. The
technology offers the user some benefits such as in-car infotainment, advanced navigation
and fuel efficiency.
5.3.8. Healthcare
Healthcare do real-time monitoring with the help of smart devices. It gathers and transfers
health data such as blood pressure, blood sugar levels, weight, oxygen, and ECG. The patient
can contact the doctor by the smart mobile application in case of any emergency.
16 | P a g e
lOMoARcPSD|26885763
Farmers can minimize waste and increase productivity. The system allows the monitoring of
fields with the help of sensors. Farmers can monitor the status of the area.
Internet-connected devices go from 5 million to billions in just one year. Business Insider
Intelligence estimates 24 billion IoT devices will install and generate more than 300 billion
in revenue in the future.
17 | P a g e
lOMoARcPSD|26885763
IoT based Web controlled Home Automation using PIC Microcontroller and Adafruit IO
IoT based Web controlled Home Automation using PIC Microcontroller and Adafruit IO
18 | P a g e
lOMoARcPSD|26885763
Home Automation has always been inspiring projects for most of us. Toggling an AC
load from the comfort of our chairs or bed of any room without reaching for the switch in
another room sounds cool doesn’t it!!. And now in the era of IoT, thanks to the ESP8266
module which made it easy to control anything from anywhere in the world.
In this IoT based project, we will use Adafuit IO to control Home appliaces from a webpage
using ESP8266 and PIC microcontroller. We have connected three AC light as loads and
they can be controlled remotely using either your phone or computer. Here ESP8266 is used
with PIC microcontroller.
Component Required
ESP8266
PIC microcontroller(PIC16f877A)
12V 5A Electromagnetic Relay Module -1
12v Power supply (12V/1A or above) -1
LM7805 Voltage Regulator -1
LM317 Regulator -1
10k ohm Resistor -1
1k Resistor – 3
10k Pot – 1
1k Pot -1
16x2 LCD
1000uF capacitor -1
10uF capacitor -2
Wires for connection
18.432 MHz Crystal oscillator -1
LED -2
22pF capacitor -2
BreadBoard or PCB (optional)
Circuit Diagram
In Web controlled Home Automation project, we have used PIC microcontroller
PIC16F877A for performing all the operations. It will communicate with ESP8266 Wi-Fi
module to send and receive data from the Adafruit server and take action accordingly to turn
ON/OFF relay or load and displaying the status of loads over LCD. We have used 16x2 LCD
display for displaying the status of connected AC appliances.
In this project we have three power supplies:
As we have used a 12v relay module we need 12v so we have used a 12v adaptor to power
the relay.
We needed 5v for powering the PIC microcontroller, LCD and some of the relay module
circuit. So we have used a 7805 voltage regulator connected with a 12v supply. This voltage
regulator provides 5v output.
19 | P a g e
lOMoARcPSD|26885763
A 3.3v power supply is used for powering the ESP8266 as it works on 3.3v. This supply is
made by using LM317 voltage regulator which can be configurable to 3.3v by using some
voltage divider circuitry with this. Learn more about creating a LM317 based variable power
supply.
All the connections for this project have been shown in the circuit diagram. The final setup
will look like this:
In this project, we are going to control some home AC appliance via a web page crated using
Adafruit IO. Adafruit IO is a simple to use internet service that easily enables IoT devices to
GET and POST data. Additionally, it can be used to create GUI interfaces for viewing data,
controlling devices, and triggers for alerts/warnings.
20 | P a g e
lOMoARcPSD|26885763
21 | P a g e
lOMoARcPSD|26885763
Step 2: Create a dashboard by clicking on ‘Dashboards’ at the left side of the page and then
click on ‘Action’ and then on ‘Create a New Dashboard’.
22 | P a g e
lOMoARcPSD|26885763
Now a pop-up window form will open, fill in any name like Home Automation and click
on Create. You can also add some description related to project.
23 | P a g e
lOMoARcPSD|26885763
Now we need to click on + size at the right side of the page under blue squire and red circle.
Now another pop-up window open to select desired new block item like ON/OFF switch.
After selecting the Block (On/Off button) a new pop-up window will open. Enter here the
name of your new feed like Light1 or and click on create.
24 | P a g e
lOMoARcPSD|26885763
Now click on a newly created feed and fill some details and click over create a block.
You can create more feeds and blocks according to requirement. Here we have created three
for controlling three lights from this web interface
25 | P a g e
lOMoARcPSD|26885763
Step 4: Now click on ‘KEY’ symbol on the same page and copy username and the active
key given there.
Step 5: Now open the code and replace the username with your username everywhere in the
code, also replace the MQTTPassword with the active key in the code. Complete code is
given at the end of this project.
const char MQTTHost[] = "io.adafruit.com";
const char MQTTPort[] = "1883";
const char MQTTClientID[] = "ABCDEF";
const char MQTTTopicRelay1[] = "saddam4201/feeds/Light1";
const char MQTTTopicRelay2[] = "saddam4201/feeds/Light2";
const char MQTTTopicRelay3[] = "saddam4201/feeds/Light3";
26 | P a g e
lOMoARcPSD|26885763
MQTT Protocol
This IoT based Home Automation Project uses MQTT protocol for exchanging data between
server and client. This protocol is very fast compared to the TCP/IP protocol. And the
27 | P a g e
lOMoARcPSD|26885763
working concept is also different from the TCP/IP protocol. This protocol has three main
components.
Publish
Broker
Subscriber
According to MQTT.org (official website), “MQTT stands for MQ Telemetry Transport. It is
a publish/subscribe, extremely simple and lightweight messaging protocol, designed for
constrained devices and low-bandwidth, high-latency or unreliable networks. The design
principles are to minimize network bandwidth and device resource requirements whilst also
attempting to ensure reliability and some degree of assurance of delivery. These principles
also turn out to make the protocol ideal of the emerging “machine-to-machine” (M2M) or
“Internet of Things” world of connected devices, and for mobile applications where
bandwidth and battery power are at a premium.”
Programming Explanation
Programming part of this Adafruit.io Home Automation is a little bit difficult because of
MQTT protocol and its frame format. But if you don’t want to go into this then you can
directly try the code given at the end. Here we have explained few parts of code below:
First of all, include all the required libraries and set configuration bits for PIC
Microcontroller.
#define _XTAL_FREQ 18432000
#include <xc.h>
#include<pic.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// BEGIN CONFIG
#pragma config FOSC = HS // Oscillator Selection bits (HS oscillator)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT enabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config BOREN = ON // Brown-out Reset Enable bit (BOR enabled)
#pragma config LVP = OFF // Low-Voltage (Single-Supply) In-Circuit Serial Programming
Enable bit (RB3 is digital I/O, HV on MCLR must be used for programming)
#pragma config CPD = OFF // Data EEPROM Memory Code Protection bit (Data EEPROM
code protection off)
#pragma config WRT = OFF // Flash Program Memory Write Enable bits (Write protection
off; all program memory may be written to by EECON control)
#pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection
off)
//END CONFIG
28 | P a g e
lOMoARcPSD|26885763
After this, we have defined some macros that are used to declare pins for LCD and other
GPIOs.
#define uchar unsigned char
#define uint unsigned int
29 | P a g e
lOMoARcPSD|26885763
Below function is used for Wi-Fi initialization which is responsible for initializing wifi
module and connect ESP8266 with Wi-Fi hotspot or Wi-Fi router.
void espInitize()
{
lcdwrite(0x01, CMD);
lcdprint("ESP Initilizing");
serialprintln("AT+RST");
__delay_ms(5000);
espInit("AT","OK",2);
espInit("ATE1","OK",2);
espInit("AT+CWMODE=3","OK",2);
espInit("AT+CWQAP","OK",2);
espInit("AT+CWJAP=\"wifi_name\",\"password\"","OK",3);
serialprintln("AT+CIFSR");
serialFlush();
__delay_ms(500);
}
Below code is used to configure MQTT and adafrut.io.
const char MQTTHost[] = "io.adafruit.com";
const char MQTTPort[] = "1883";
const char MQTTClientID[] = "ABCDEF";
const char MQTTTopicRelay1[] = "saddam4201/feeds/Light1";
const char MQTTTopicRelay2[] = "saddam4201/feeds/Light2";
const char MQTTTopicRelay3[] = "saddam4201/feeds/Light3";
const char MQTTTopicRelay4[] = "saddam4201/feeds/Light4";
const char MQTTProtocolName[] = "MQTT";
const char MQTTLVL = 0x03;
const char MQTTFlags = 0xC2;
const unsigned int MQTTKeepAlive = 60;
const char MQTTUsername[] = "saddam4201"; // put your Username
const char MQTTPassword[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // Put Your
Password
const char MQTTQOS = 0x00;
const char MQTTPacketID = 0x0001;
Given function is used to connect with Adafruit IO broker and subscribing the topics that we
have used in this project.
void restartESP()
{
espInitize();
espInit("AT+CIPSTART=\"TCP\",\"io.adafruit.com\",1883","CONNECT",5)
30 | P a g e
lOMoARcPSD|26885763
SendConnectPacket()
SendSubscribePacket(&MQTTTopicRelay1[0],strlen(MQTTTopicRelay1))
SendSubscribePacket(&MQTTTopicRelay2[0],strlen(MQTTTopicRelay2))
SendSubscribePacket(&MQTTTopicRelay3[0],strlen(MQTTTopicRelay3))
lcdwrite(1,CMD);
led=1;
}
Given function is for connecting with Adafruit IO MQTT broker
int SendConnectPacket(void)
{
int txIndex=0;
unsigned int MQTTProtocolNameLength = strlen(MQTTProtocolName);
unsigned int MQTTClientIDLength = strlen(MQTTClientID);
unsigned int MQTTUsernameLength = strlen(MQTTUsername);
unsigned int MQTTPasswordLength = strlen(MQTTPassword);
X = MQTTProtocolNameLength + 2 + 4 + MQTTClientIDLength + 2 +
MQTTUsernameLength + 2 + MQTTPasswordLength + 2;
do
{
encodedByte = X % 128;
X = X / 128;
if ( X > 0 )
{
encodedByte |= 128;
}
} while ( X > 0 );
buf1[txIndex++]=0x10;
buf1[txIndex++]=encodedByte;
buf1[txIndex++]=MQTTProtocolNameLength<<8;
buf1[txIndex++]=MQTTProtocolNameLength;
memcpy((unsigned char *)&buf1[txIndex],(unsigned char
*)&MQTTProtocolName,MQTTProtocolNameLength);
Given function is used to send subscribe packet to MQTT broker
int SendSubscribePacket(char topic[], int topiclength)
{
X = 2 + 2 + topiclength + 1;
31 | P a g e
lOMoARcPSD|26885763
do
{
encodedByte = X % 128;
X = X / 128;
if ( X > 0 )
{
encodedByte |= 128;
}
//serialwrite(encodedByte);
} while ( X > 0 );
int txIndex=0;
buf1[txIndex++]=0x82;
buf1[txIndex++]=encodedByte;
buf1[txIndex++]=MQTTPacketID<<8;
buf1[txIndex++]=MQTTPacketID;
buf1[txIndex++]=topiclength<<8;
buf1[txIndex++]=topiclength;
memcpy(&buf1[txIndex],(char *)&topic[0],topiclength);
txIndex+=topiclength;
32 | P a g e
lOMoARcPSD|26885763
Here, you need a circuit diagram, code, and thingspeak instruction. so we are going to give
you all the things below. follow all the steps and make your circuit as we have given.
Components Required:-
• NodeMcu-2
• General-purpose PCB
• 4 channel ADC multiplexer
• 5 soil moisture sensor
• DHT11
• Breadboard
• Jumper wires
33 | P a g e
lOMoARcPSD|26885763
• connecting cables
• Smart farming using IoT Circuit Diagram (1st nodemcu)
Connection Diagram
Nodemcu esp8266 4 Channel ADC
G, GND GND
Soil 1 Sensor Soil 2 Sensor Soil 3 Sensor Soil 4 Sensor 4 Channel ADC
A0 A0
A0 A1
A0 A2
A0 A3
After making all the connections You need to upload the Code.
Connect all the Soil moisture sensor Vcc to the Nodemcu Vin
Connect Multiplexer Vcc to the Nodemcu Vin
Connect all the Soil moisture sensor Gnd to the Nodemcuo Gnd
Connect Multiplexer Gnd to the Nodemcu Gnd
Soil moisture sensor Output connects to the Multiplexer as given in the above image
After complete, the connection Upload the given code to the Nodemcu. This code is for the
First nodemcu.
Smart farming using IoT Code( first nodemcu)
// TECHATRONIC.COM
// library
// https://github.com/adafruit/Adafruit_ADS1X15
// https://github.com/manrueda/ESP8266HttpClient
// https://github.com/ekstrand/ESP8266wifi
#include <ESP8266WiFi.h>
34 | P a g e
lOMoARcPSD|26885763
#include <ESP8266HTTPClient.h>
#include <Adafruit_ADS1015.h>
WiFiClient client;
String thingSpeakAddress= "http://api.thingspeak.com/update?";
String writeAPIKey;
String tsfield1Name;
String request_string;
HTTPClient http;
Adafruit_ADS1115 ads;
void setup()
{
Serial.begin(115200);
delay(3000);
WiFi.disconnect();
Serial.println("START");
WiFi.begin("DESKTOP","asdfghjkl"); // Wifi ("ID","Password")
while ((!(WiFi.status() == WL_CONNECTED))){
delay(300);
Serial.println("...");
}
Serial.println("I AM CONNECTED");
Serial.println("Hello!");
Serial.println("Getting single-ended readings from AIN0..3");
Serial.println("ADC Range: +/- 6.144V (1 bit = 3mV/ADS1015, 0.1875mV/ADS1115)");
ads.begin();
}
void loop()
{
int16_t adc0, adc1, adc2, adc3;
Serial.println(" ");
adc0 = ads.readADC_SingleEnded(0);
adc0 = adc0 / 25;
adc1 = ads.readADC_SingleEnded(1);
adc1 = adc1 / 25;
adc2 = ads.readADC_SingleEnded(2);
adc2 = adc2 / 25;
adc3 = ads.readADC_SingleEnded(3);
adc3 = adc3 / 25;
Serial.print("SOIL MOISTURE in persent 1% : "); Serial.println(adc0);
Serial.print("SOIL MOISTURE in persent 2% : "); Serial.println(adc1);
35 | P a g e
lOMoARcPSD|26885763
36 | P a g e
lOMoARcPSD|26885763
http.begin(request_string);
http.GET();
http.end();
}
delay(10);
if (client.connect("api.thingspeak.com",80))
{
request_string = thingSpeakAddress;
request_string += "key=";
request_string += "2YGO2FHN3XI3GFE7";
request_string += "&";
request_string += "field4";
request_string += "=";
request_string += adc3;
http.begin(request_string);
http.GET();
http.end();
}
delay(10);
}
For the second NodMCU
37 | P a g e
lOMoARcPSD|26885763
Connection table 2
Nodemcu esp8266 Dht11 Sensor
G, GND ( G ) GND
G, GND GND
38 | P a g e
lOMoARcPSD|26885763
39 | P a g e
lOMoARcPSD|26885763
}
if (client.connect(server,80)) // "184.106.153.149" or api.thingspeak.com
{
String postStr = apiKey;
postStr +="&field1=";
postStr += String(t);
postStr +="&field2=";
postStr += String(h);
postStr += "\r\n\r\n";
client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: "+apiKey+"\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);
Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" degrees Celcius, Humidity: ");
Serial.print(h);
Serial.print(" Soil Sensor ");
Serial.print(A0);
Serial.println("%. Send to Thingspeak.");
}
client.stop();
Serial.println("Waiting...");
// thingspeak needs minimum 15 sec delay between updates
delay(10);
}
So, here we have given data for both setups now follow the given instruction to make the
thingspeak server.
Thingspeak Setup
Step 1
Open Thingspeak website
Step 2
Register or login on the website
Login in Thingspeak
40 | P a g e
lOMoARcPSD|26885763
Step 3
Create a new channel here
Step 4
Tick mark in front of the channel and rename as you want
41 | P a g e
lOMoARcPSD|26885763
Step 6
Save this Channel
Step 7
Now, you can see your channel here
42 | P a g e
lOMoARcPSD|26885763
Step 8
Add Api
Copy your api key from here and paste in your code.
Step 9
Now you can see my channel
43 | P a g e
lOMoARcPSD|26885763
Now you can See your project data on the server. All the best for your project. and if you are
unable to make this you can buy this project from us. link is given here.
Introduction
The Internet of Things (IoT) is a fresh perspective on computerized connectivity that envisions
a not-too-distant future in which everyday things will be fitted with microcontrollers and
smartphones. Intelligent display stacks will equip them to communicate with one another and
the clients, evolving into an essential component of the Internet. Smart, self-designing
44 | P a g e
lOMoARcPSD|26885763
objects that are connected to one another through a global organizational framework are
anticipated to be produced under the IoT model. IoT is typically thought about as real,
widely distributed, low capacity, and managing products with the aim of advancing
the unwavering quality,
performance, and security of the brilliant city and its frameworks. Due to the ongoing
population growth, development is necessary. The Internet of Things (IoT) is a novel
approach to computerized networking that predicts the fitting of everyday objects with
microcontrollers and smartphones in the not-too-distant future. Intelligent display stacks will
enable them to interact with clients and one another, developing into a crucial element of the
Internet. Under the IoT concept, it is envisaged that intelligent, self-designing items would be
created and connected to one another through a global organizational framework. IoT is often
viewed as actual, widely dispersed, low capacity, and controlling items with the objective of
enhancing the bright city's and its systems' unwavering quality, performance, and security.
Development is required because of the population expansion that is happening. The Internet
of Things (IoT) is a novel approach to computerized networking that predicts the fitting of
everyday objects with microcontrollers and smartphones in the not-too-distant future.
Intelligent display stacks will enable them to interact with clients and one another,
developing into a crucial element of the Internet. Under the IoT concept, it is envisaged that
intelligent, self-designing items would be created and connected to one another through a
global organizational framework. IoT is often viewed as actual, widely dispersed, low
capacity, and controlling items with the objective of enhancing the bright city's and its
systems' unwavering quality, performance, and security. Development is required because of
the population expansion that is happening. These are some challenges of a smart city are
following:
Lack of funds: As urban communities try to work on their foundation with brilliant
innovations, paying for such undertakings presents a significant test while presenting savvy
advancements for an enormous scope.
Lack of infrastructure and labor: Metropolitan foundation assumes an essential part in savvy
city projects. Contingent upon the current foundation in energy, water, and transportation
frameworks, among others, a task might be figured out requiring pretty much speculation
time.
Digital Security: In intelligent cities, the interrelationship between public and private is
possible thanks to the flow of data.
Infrastructure and services are needed to meet the needs of city dwellers due to the rapid
increase in population density in metropolitan areas. Due to the ability of all devices to
connect to the Internet and communicate with one another, there has been considerable
growth in the use of digital devices, such as sensors, actuators, and smartphones.
45 | P a g e
lOMoARcPSD|26885763
The IR sensors, LDR, PIC16F877A microcontroller, relay, UART, and Wi-Fi module make
up the ingenious street lamp's construction. LDRs are light-dependent devices, and their
blockage grows in the dark and shrinks when exposed to light. A light-dependent resistor has
a high resistance when maintained dull. The vehicle that is passing the streetlight is
recognized by an IR sensor. The streetlight bulb can be turned on and off during the transfer.
46 | P a g e
lOMoARcPSD|26885763
It is divided into three areas. The parking area is the first, and it includes an IR sensor and
Arduino devices. With the aid of these devices, the client establishes a connection with the
halting location. Without the aid of an RFID card, the user is unable to enter the parking
space. The cloud-based web administrations, which serve as a go-between for the client and
the stopping region, are covered in the following section. Depending on whether a parking
space is available, the cloud is updated. The user can view the admin to see if the cloud
services are available, and the admin manages the cloud services. The user side is the third
section.
47 | P a g e
lOMoARcPSD|26885763
A few administrations that work with the climate may emerge as a result of the IoT's successful
implementation. It can then open up a variety of contextualization and geo-mindfulness
options. Heterogeneous hardware permits the mechanization of comparative and customary
workouts using the IoT stage in homes and buildings. The execution of administrations via
web interfaces is undoubtedly possible when transforming items into the information of
apparatuses that are completely connected via the Internet. Huge numbers of sophisticated
home applications use sensor networks [9]. The government (at the municipal, state, and
federal levels) should deploy IoT services in all crucial issue areas to enhance government
information systems and administration.
The latest developments in computerized innovations have made shrewd urban regions even
more shrewd than previously. A smart city has sensors for transportation systems, road
cameras for perception systems, and other electronic components that are used in numerous
applications. Additionally, this may increase the use of personal cell phones. This way,
different concepts like article highlights, givers, inspirations, and security standards should
be investigated while accounting for the diverse climate.
48 | P a g e
lOMoARcPSD|26885763
IoT Architecture
We need to create a schematic architecture that allows us to quickly and easily depict the
complete process in order to demonstrate the plausibility and suitability of this framework, as
illustrated in fig. We can infer from the architecture that the system as a whole is a
combination of essentially just two different components. The first is a traffic control system,
while the second is a street lighting operation
The parking devices and sensors are then installed in their parking zones by a team of parking
installation workers who then travel to the parking place. Things and personality-specific
gadgets were where the Internet of Things (IoT) concept first emerged.
The devices might be monitored, controlled, or tested using distant Internet-connected PCs.
49 | P a g e
lOMoARcPSD|26885763
WSNs make diverse genuine information available and can be used for many things,
including government and natural administrations, healthcare, and many other things.
Additionally, WSNs and RFIDs can be combined to achieve a variety of goals, such as
gathering data about the whereabouts of people and objects, developments, temperatures, and
other things. A WSN is made up of distant sensor hubs that have a radio point of contact, an
analogue to digital converter (ADC), a number of sensors, memory, and a power source. .
The IoT-based smart technologies are integrated for city data creation for developing the next-
generation Super City, as depicted in Figure. Data from those smart systems are kept in big
50 | P a g e
lOMoARcPSD|26885763
storage facilities so that they may be later examined for Super City planning. Government
officials can assess last year's electricity consumption and estimate the demand for electricity
in the upcoming year using data supplied by smart homes. Municipalities can therefore
implement the required action to meet future needs and develop a long-term plan for creating
new dams to increase energy production.
Conceptual representation of an urban IoT network based on the web service approach
We briefly go over the connection layer innovations that can be used to connect the various
components of the IoT before we start outlining the web administration approach for the
design of IoT administrations, which requires the organization of reasonable convention
layers in the various components of the organization, as displayed in the convention stacks
portrayed in Fig. Last but not least, we show the varied configuration of devices that consent
to an urban IoT.
51 | P a g e
lOMoARcPSD|26885763
Proposed flow of energy efficient smart and intelligent street road lighting system
The information and energy flow of the proposed sustainable energy efficient smart street
road lighting system (EESSRLS) is depicted in Figure 1. It consists of a smart electric pole
that transmits light and motion information via sensors and actuators to the Master control
unit (MCU), which computes intensity based on this information and tunes the LED lamps
using a PWM-based dimming system via a smart electric pole-mounted LED light controller
(LLC). We utilize a separate sustainable power system for energy made up of a PV solar
panel, battery storage system, and intelligent electric utility grid.
The following table shows the comparative study of the different methods used for IoT-based
smart cities:
52 | P a g e
lOMoARcPSD|26885763
Availability of the
Smart parking system Arduino Nano, IR space could be found
7. Cost and time
using IoT technology. Senso.rs, LED, Parking only after the car
efficient solution.
Slots. enters the parking slot.
Aggregator, Water
Sensor's deployment System, Vehicular
Creation of
and smart systems Traffic,
9. safer Significant
data Front
communication. capital investment in
generation Screen, Sensors,
technology is required.
Temperature.
Conceptual
WAN, Control
representation of an Automatic and
10. urban IoT network Center, Gateway, Web Considerable increase
efficient urban
Fronted, Database in electronic waste.
based on the web management.
Manager.
service approach
The method of IoT based smart cities are displayed in the above table. In smart street
lightning system using IoT streetlights are automatic switching of. More energy consumption
in this method. An illustration of an IoT based smart city method help for less crime. To
decreased management costs and reduced pollution system architecture of smart parking
system using IoT method developed. There are several applications of an IoT based smart
city that are explained in IoT potential applications for smart cities.
IoT based interconnections minimize human work and effort. Internet of things schematic
showing of the system architecture method are technology driven and most decision making.
To reduce the cost of in-house IT management the architecture of a wireless sensor node
method is used. Smart parking systems using IoT technology method is solution to reduce
time and humans’ effort as well as the overall cost of the fuel burnt in search of the parking
space. The main idea is the creation of smart parking using the internet of things and
ultrasonic sensors, where available parking places display in web application.
53 | P a g e
lOMoARcPSD|26885763
hospitalized or at home using an IoT based integrated healthcare system with the view of
ensuring patients are cared for better. A mobile device based wireless healthcare monitoring
system was developed which can provide real time online information about physiological
conditions of a patient mainly consists of sensors, the data acquisition unit, microcontroller
(i.e., Arduino), and programmed with a software (i.e., JAVA). The patient’s temperature,
heart beat rate, EEG data are monitored, displayed and stored by the system and sent to the
doctor’s mobile containing the application. Thus, IoT based patient monitoring system
effectively monitor patient’s health status and save life on time.
INTRODUCTION
The increased use of mobile technologies and smart devices in the area of health has caused
great impact on the world. Health experts are increasingly taking advantage of the
benefits these technologies bring, thus generating a significant improvement in health care in
clinical settings. Likewise, countless ordinary users are being served from the advantages of
the M-Health (Mobile Health) applications and E-Health (health care supported by ICT) to
improve, help and assist their health.
According to the constitutions of World Health Organization (WHO) the highest attainable
standard of health is a fundamental right for an individual. As we are truly inspired by this,
we attempt to propose an innovative system that puts forward a smart patient health tracking
system that uses sensors to track patient vital parameters and uses internet to update the
doctors so that they can help in case of any issues at the earliest preventing death rates.
54 | P a g e
lOMoARcPSD|26885763
Block Diagram
55 | P a g e
lOMoARcPSD|26885763
Operating Mechanism
STEP 1: The Heartbeat sensor is fixed to the patient’s finger. This contains an IR sensor in it
.Every pumping we get pulse from that sensor. This sensor output is given to the arduino via
Signal conditioning unit for amplification
NTC type thermistor is used as a temperature sensor. This temperature sensor output varies
based on the temperature, this output is also given to arduino.
56 | P a g e
lOMoARcPSD|26885763
Temperature sensor
STEP 3
EEG sensor is a cost-effective board used to measure the electrical activity of the heart. This
electrical activity can be charted as an ECG or Electrocardiogram output as an analog
reading. ECGs can be extremely noisy, the AD8232 Single Lead Heart Rate Monitor acts as
an op-amp to help obtain a clear signal from the PR and QT Intervals easily and connected
to arduino.
EEG sensor
STEP 4
All these values are transferred to PC via RS 232 and by using the URL,it is transferred to
the mobile app created.
Output in LCD
Output in the Mobile Application:
The output is displayed in the form of string in a particular interval of time. The application
is very simple as it just displays the analog values followed by a statement describing the
kind of value displayed.
57 | P a g e
lOMoARcPSD|26885763
Temperature Findings
The NC type thermistor used is programmed to display the value at room temperature for
demo purposes with minimal error of + or – 5.
temperature sensor
Person 1 24 28 +4
Person 2 24 30 +6
Observed temperature readings
ECG Findings
The IR sensor is used to measure the pulse rate in the error range of + or – 6.
58 | P a g e
lOMoARcPSD|26885763
Person 1 74-78 72 -2
Person 2 74-78 84 +6
ECG values observed from different person
EEG Findings
The EEG sensor is used with electrodes with error rate indicating the status as active or
inactive.
59 | P a g e
lOMoARcPSD|26885763
60 | P a g e