SlideShare a Scribd company logo
1 of 45
3/23/2023 1
Develop and Design an IoT Solution for
Real-World Problems
Lecture 3
INTERNET OF THINGS (IOT)(CSE334)
Head of Cyber Security and Data Analytics Engineering Program
Faculty of Electronic Engineering
Menoufia University
Menoufia University
Faculty of Electronic Engineering
Cyber Security and Data Analytics Engineering Program
Internet of Things (IoT)(CSE334)
Agenda
Processes in Controlled Systems
Summary
Steps to Create an IoT System
Engineering Design Process
3/23/2023 2
Microcontroller-Based Project Development Cycle
Microcontroller-based Control System
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 3
INTERNET OF THINGS (IOT)(CSE334)
EngineeringDesignProcess
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 4
◦ The engineering design process is a proven
method.
◦ The five steps are cyclical which means that
they can be repeated as many times as
needed to make improvements in the design
process.
◦ Inspire/Empathize
◦ Define/Ideate
◦ Prototype
◦ Test/Refine
◦ Present/Communicate.
Engineering Design Process
3/23/2023 5
INTERNET OF THINGS (IOT)(CSE334)
StepstoCreateanIoTSystem
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 6
Project Overview
◦ Identify a problem that can be solved by an IoT device.
◦ Example used: building a device that senses the amount of light
and determines sunrise and sunset.
The Circuit Layout
◦ Electronic components have specific power, polarity, and
connection requirements.
◦ The circuit layout identifies/describes these requirements.
◦ Sunrise/sunset example requires a voltage divider - produces an
output voltage that is a fraction of its input voltage by
distributing the input voltage among the components of the
divider.
StepstoCreateanIoTSystem
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 7
REST API in an IoT System
◦ REST APIs use HTTP methods to exchange data between systems or applications
◦ RESTful systems use Uniform Resource Identifiers (URIs) to represent their services to
external systems.
◦ Sample URIs:
◦ GET /people/michael to receive Michael's user profile dataset
◦ POST /people/michael to update Michael’s profile with new data.
◦ The IFTTT web service allows for special resource URIs to be created and mapped to
specific IFTTT actions.
◦ Example IFTTT URI - https://maker.ifttt.com/trigger/SunRise/with/key/
◦ The sunrise/sunset example uses both IFTTT and Google Calendar services
StepstoCreateanIoTSystem(Cont.)
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 8
Flowcharts, Electronic Schematics, and Sequence Diagrams
◦ Documenting project is very important for building the devices, testing,
troubleshooting, and creating a business model.
◦ Flowcharts use standardized symbols to represent the processes
and workflows.
◦ Electronic schematics is a graphical representation of a circuit
diagram using internationally standardized components.
◦ Sequence diagrams represent interactions between entities along a
timeline.
StepstoCreateanIoTSystem(Cont.)
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 9
The Code
• The sunrise/sunset example is written in Python using a Raspberry Pi
• The Arduino is connected to the Raspberry Pi.
• The programming is done on the Raspberry Pi to send the level of
voltage drop from the Arduino to the RaPi.
• Firmata, a generic protocol for communicating with microcontrollers,
is used to communicate between the Arduino firmware and the RaPi.
• The Python code used for the sunrise/sunset example is explained
line by line.
StepstoCreateanIoTSystem(Cont.)
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 10
Prototyping and testing System
◦ Create electronic schematic, flowchart, and sequence diagram
for prototype
◦ Packet Tracer 7 used to create and test the
prototype.
◦ Update documentation once prototype works
successfully.
◦ Documenting is important not only for future
reference but also for situations where
marketing material or patent applications are
to be created.
StepstoCreateanIoTSystem(Cont.)
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 11
ControlledSysteminIoT
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 12
ControlledSysteminIoT
Overview of a Controlled System
• Feedback loops are used to provide real-time information to its controller based on current behavior.
• In a closed loop, feedback is continuously being received by the controller from its sensors.
• The controller continuously analyzes and processes information, and use actuators to modify conditions.
Sensors
• A sensor is a device that can be used to measure a physical property by detecting some type of information
from the physical world.
• A sensor may be connected to a controller either directly or remotely.
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 13
Actuators
• An actuator is a basic motor that can be used to control a system.
• Can be hydraulic, electric or pneumatic.
• can be responsible for transforming an electrical signal into physical output.
Controllers
• Responsible for collecting data from sensors and providing network connectivity.
• Controllers may have the ability to make immediate decisions.
• May also send data to remote and more powerful computer for analysis.
IoT Process Flow
• A simple IoT system include sensors connecting, through a wireless
or wired connection, to actuators or controllers.
• Some devices can have more than one function.
ControlledSysteminIoT(Cont.)
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 14
ProcessesinControlledSystems
Processes
• A process is a series of steps or actions taken to
achieve a desired result by the consumer of the
process.
Feedback
• Feedback is when the output of a process affects the input.
• Feedback is often referred to as a feedback loop.
Control Systems
• Includes a controller that uses inputs and outputs to manage and regulate the behavior of the
system in an attempt to achieve a desired state.
• The controlled portion of the system is often called the plant.
• Choosing the adjustments to apply to a plant to achieve a desired output is called control
theory.
• Control theory is applied to many systems, including driving a car.
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 15
ProcessesinControlledSystems(Cont.)
Open-Loop Control Systems
• Open-loop control systems do not use feedback.
• The plant performs a predetermined action without any verification of the desired results.
• Open-loop control systems are often used for simple processes.
Closed-Loop Control Systems
• A closed-loop control system uses feedback to determine whether the collected output is the desired output.
• The result is then fed back into a controller to adjust the plant for the next iteration of output, and the
process repeats.
3/23/2023 16
INTERNET OF THINGS (IOT)(CSE334)
Microcontroller-basedControlSystem
Cloud Based Application ‘IoT’ using Microcontroller
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 17
3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 18
Microcontroller-BasedProjectDevelopmentCycle
Microcontroller-Based Project Development Cycle
 Microcontroller-based project development cycle has two stages:
 Program Development Cycle (PDC)
 Hardware Development Cycle (HDC)
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 19
Program Development Cycle (PDC)
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 20
Hardware Development Cycle (HDC)
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 21
Program Description Languages (PDLS)
BEGIN-END
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 22
Sequencing
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 23
IF-THEN-ELSE-ENDIF
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 24
IF-THEN-ELSE-ENDIF
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 25
IF-THEN-ELSE IF-ENDIF
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 26
DO-FOREVER-ENDDO statement
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 27
DO-ENDDO statement
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 28
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 29
REPEAT-UNTIL statement
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 30
Subprograms
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 31
Calling subprogram DISPLAY
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 32
It is required to write a program to convert hexadecimal
numbers “A” to “F” into decimals. Show the algorithm using a
PDL and also draw the equivalent flow chart. Assume that the
hexadecimal number to be converted is called HEX_NUM, and
the output decimal number is called DEC_NUM.
EXAMPLE 1
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 33
Solution 1
The required PDL is:
BEGIN
IFHEX_NUM = “A” THEN
DEC_NUM=10
ELSE IFHEX_NUM = “B” THEN
DEC_NUM=11
ELSE IFHEX_NUM = “C” THEN
DEC_NUM = 12
ELSE IFHEX_NUM = “D” THEN
DEC_NUM = 13
ELSE IFHEX_NUM= “E” THEN
DEC_NUM=14
ELSE IFHEX_NUM =“F” THEN
DEC_NUM=15
ENDIF
END
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 34
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 35
 It is required to write a program to calculate the sum of
integer numbers between 1 and 100. Show the required
algorithm using a PDL and also draw the equivalent flow
chart. Assume that the sum will be stored in variable
called SUM.
EXAMPLE 2
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 36
Solution 2
BEGIN
SUM=0
I=1
DO100 TIMES
SUM=SUM + I
Increment I
ENDDO
END
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 37
 An LED is connected to a microcontroller output port.
Additionally a button is connected to one of the input
ports. It is required to turn ON the LED when the button
is pressed, and otherwise to turn OFF the LED. Show the
required algorithm using a PDL and also draw the
equivalent flow chart.
EXAMPLE 3
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 38
BEGIN
DO FOREVER
IF Button is pressed THEN
Turn ON LED
ELSE
Turn OFF LED
ENDIF
ENDDO
END
Solution 3
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 39
 An analog temperature sensor is connected to one of the
analog-to-digital (ADC) input ports of a microcontroller.
Additionally, an LCD display is connected to the output
ports. It is required to read the temperature every second
and then display on the LCD. Show the required algorithm
using a PDL and also draw the equivalent flow chart.
Assume that the display routine is a subprogram called
DISPLAY.
EXAMPLE 4
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 40
BEGIN
DO FOREVER
Read Temperature from ADC port
CALL DISPLAY
Wait 1 second
ENDDO
END
BEGIN/DISPLAY
Display temperature on LCD
END/DISPLAY
Solution 4
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 41
3/23/2023 42
Summary
INTERNET OF THINGS (IOT)(CSE334)
 Engineering Design Process
In This presentation, we covered:
Summary
 Steps to Create an IoT System
 Processes in Controlled Systems
 Microcontroller-based Control System
 Microcontroller-Based Project Development Cycle
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 43
3/23/2023 44
INTERNET OF THINGS (IOT)(CSE334)
3/23/2023 45
INTERNET OF THINGS (IOT)(CSE334)

More Related Content

Similar to Lecture 3_IoT.pptx

Km60 3d printer base paper (wecompress)
Km60 3d printer base paper (wecompress)Km60 3d printer base paper (wecompress)
Km60 3d printer base paper (wecompress)1000kv technologies
 
Design and development of touch screen controlled stairs climbing robot
Design and development of touch screen controlled stairs climbing robotDesign and development of touch screen controlled stairs climbing robot
Design and development of touch screen controlled stairs climbing roboteSAT Journals
 
Modification of l3 learning switch code for firewall functionality in pox con...
Modification of l3 learning switch code for firewall functionality in pox con...Modification of l3 learning switch code for firewall functionality in pox con...
Modification of l3 learning switch code for firewall functionality in pox con...eSAT Journals
 
G code based data receiving and control system
G   code based data receiving and control systemG   code based data receiving and control system
G code based data receiving and control systemeSAT Journals
 
Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...IRJET Journal
 
The Design of Multi-Platforms Rail Intelligence Flatness Detection System
The Design of Multi-Platforms Rail Intelligence Flatness Detection SystemThe Design of Multi-Platforms Rail Intelligence Flatness Detection System
The Design of Multi-Platforms Rail Intelligence Flatness Detection SystemIJRESJOURNAL
 
CONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOT
CONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOTCONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOT
CONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOTShubhamArora175
 
IRJET- Solar Power Monitoring System using IoT
IRJET-  	  Solar Power Monitoring System using IoTIRJET-  	  Solar Power Monitoring System using IoT
IRJET- Solar Power Monitoring System using IoTIRJET Journal
 
PID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed ControlPID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed Controlrahulmonikasharma
 
IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...
IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...
IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...IRJET Journal
 
A microsystem design for controlling a DC motor by pulse width modulation us...
A microsystem design for controlling a DC motor by pulse  width modulation us...A microsystem design for controlling a DC motor by pulse  width modulation us...
A microsystem design for controlling a DC motor by pulse width modulation us...IJECEIAES
 
Low-cost real-time internet of things-based monitoring system for power grid ...
Low-cost real-time internet of things-based monitoring system for power grid ...Low-cost real-time internet of things-based monitoring system for power grid ...
Low-cost real-time internet of things-based monitoring system for power grid ...IJECEIAES
 
IRJET- Smart Energy Management System
IRJET-  	  Smart Energy Management SystemIRJET-  	  Smart Energy Management System
IRJET- Smart Energy Management SystemIRJET Journal
 
Real time approach of piezo actuated beam for wireless
Real time approach of piezo actuated beam for wirelessReal time approach of piezo actuated beam for wireless
Real time approach of piezo actuated beam for wirelesseSAT Publishing House
 
Using bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-REDUsing bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-REDLionel Mommeja
 
Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...
Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...
Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...IRJET Journal
 

Similar to Lecture 3_IoT.pptx (20)

Km60 3d printer base paper (wecompress)
Km60 3d printer base paper (wecompress)Km60 3d printer base paper (wecompress)
Km60 3d printer base paper (wecompress)
 
Design and development of touch screen controlled stairs climbing robot
Design and development of touch screen controlled stairs climbing robotDesign and development of touch screen controlled stairs climbing robot
Design and development of touch screen controlled stairs climbing robot
 
Modification of l3 learning switch code for firewall functionality in pox con...
Modification of l3 learning switch code for firewall functionality in pox con...Modification of l3 learning switch code for firewall functionality in pox con...
Modification of l3 learning switch code for firewall functionality in pox con...
 
Cn33543547
Cn33543547Cn33543547
Cn33543547
 
Cn33543547
Cn33543547Cn33543547
Cn33543547
 
G code based data receiving and control system
G   code based data receiving and control systemG   code based data receiving and control system
G code based data receiving and control system
 
Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...
 
The Design of Multi-Platforms Rail Intelligence Flatness Detection System
The Design of Multi-Platforms Rail Intelligence Flatness Detection SystemThe Design of Multi-Platforms Rail Intelligence Flatness Detection System
The Design of Multi-Platforms Rail Intelligence Flatness Detection System
 
CONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOT
CONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOTCONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOT
CONDITION BASED MONITORING AND CONTROL OF INDUCTION MOTOR USSING IOT
 
IRJET- Solar Power Monitoring System using IoT
IRJET-  	  Solar Power Monitoring System using IoTIRJET-  	  Solar Power Monitoring System using IoT
IRJET- Solar Power Monitoring System using IoT
 
PID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed ControlPID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed Control
 
Meet up#2v0.2
Meet up#2v0.2Meet up#2v0.2
Meet up#2v0.2
 
C5241719
C5241719C5241719
C5241719
 
IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...
IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...
IRJET- Solar Power Based Remote Monitoring and Control of Industrial Paramete...
 
A microsystem design for controlling a DC motor by pulse width modulation us...
A microsystem design for controlling a DC motor by pulse  width modulation us...A microsystem design for controlling a DC motor by pulse  width modulation us...
A microsystem design for controlling a DC motor by pulse width modulation us...
 
Low-cost real-time internet of things-based monitoring system for power grid ...
Low-cost real-time internet of things-based monitoring system for power grid ...Low-cost real-time internet of things-based monitoring system for power grid ...
Low-cost real-time internet of things-based monitoring system for power grid ...
 
IRJET- Smart Energy Management System
IRJET-  	  Smart Energy Management SystemIRJET-  	  Smart Energy Management System
IRJET- Smart Energy Management System
 
Real time approach of piezo actuated beam for wireless
Real time approach of piezo actuated beam for wirelessReal time approach of piezo actuated beam for wireless
Real time approach of piezo actuated beam for wireless
 
Using bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-REDUsing bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-RED
 
Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...
Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...
Design and Implementation of Multi-SCADA System for Drone-Based Reliability R...
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 

Recently uploaded (20)

DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 

Lecture 3_IoT.pptx

  • 1. 3/23/2023 1 Develop and Design an IoT Solution for Real-World Problems Lecture 3 INTERNET OF THINGS (IOT)(CSE334) Head of Cyber Security and Data Analytics Engineering Program Faculty of Electronic Engineering Menoufia University Menoufia University Faculty of Electronic Engineering Cyber Security and Data Analytics Engineering Program Internet of Things (IoT)(CSE334)
  • 2. Agenda Processes in Controlled Systems Summary Steps to Create an IoT System Engineering Design Process 3/23/2023 2 Microcontroller-Based Project Development Cycle Microcontroller-based Control System INTERNET OF THINGS (IOT)(CSE334)
  • 3. 3/23/2023 3 INTERNET OF THINGS (IOT)(CSE334) EngineeringDesignProcess
  • 4. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 4 ◦ The engineering design process is a proven method. ◦ The five steps are cyclical which means that they can be repeated as many times as needed to make improvements in the design process. ◦ Inspire/Empathize ◦ Define/Ideate ◦ Prototype ◦ Test/Refine ◦ Present/Communicate. Engineering Design Process
  • 5. 3/23/2023 5 INTERNET OF THINGS (IOT)(CSE334) StepstoCreateanIoTSystem
  • 6. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 6 Project Overview ◦ Identify a problem that can be solved by an IoT device. ◦ Example used: building a device that senses the amount of light and determines sunrise and sunset. The Circuit Layout ◦ Electronic components have specific power, polarity, and connection requirements. ◦ The circuit layout identifies/describes these requirements. ◦ Sunrise/sunset example requires a voltage divider - produces an output voltage that is a fraction of its input voltage by distributing the input voltage among the components of the divider. StepstoCreateanIoTSystem
  • 7. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 7 REST API in an IoT System ◦ REST APIs use HTTP methods to exchange data between systems or applications ◦ RESTful systems use Uniform Resource Identifiers (URIs) to represent their services to external systems. ◦ Sample URIs: ◦ GET /people/michael to receive Michael's user profile dataset ◦ POST /people/michael to update Michael’s profile with new data. ◦ The IFTTT web service allows for special resource URIs to be created and mapped to specific IFTTT actions. ◦ Example IFTTT URI - https://maker.ifttt.com/trigger/SunRise/with/key/ ◦ The sunrise/sunset example uses both IFTTT and Google Calendar services StepstoCreateanIoTSystem(Cont.)
  • 8. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 8 Flowcharts, Electronic Schematics, and Sequence Diagrams ◦ Documenting project is very important for building the devices, testing, troubleshooting, and creating a business model. ◦ Flowcharts use standardized symbols to represent the processes and workflows. ◦ Electronic schematics is a graphical representation of a circuit diagram using internationally standardized components. ◦ Sequence diagrams represent interactions between entities along a timeline. StepstoCreateanIoTSystem(Cont.)
  • 9. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 9 The Code • The sunrise/sunset example is written in Python using a Raspberry Pi • The Arduino is connected to the Raspberry Pi. • The programming is done on the Raspberry Pi to send the level of voltage drop from the Arduino to the RaPi. • Firmata, a generic protocol for communicating with microcontrollers, is used to communicate between the Arduino firmware and the RaPi. • The Python code used for the sunrise/sunset example is explained line by line. StepstoCreateanIoTSystem(Cont.)
  • 10. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 10 Prototyping and testing System ◦ Create electronic schematic, flowchart, and sequence diagram for prototype ◦ Packet Tracer 7 used to create and test the prototype. ◦ Update documentation once prototype works successfully. ◦ Documenting is important not only for future reference but also for situations where marketing material or patent applications are to be created. StepstoCreateanIoTSystem(Cont.)
  • 11. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 11 ControlledSysteminIoT
  • 12. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 12 ControlledSysteminIoT Overview of a Controlled System • Feedback loops are used to provide real-time information to its controller based on current behavior. • In a closed loop, feedback is continuously being received by the controller from its sensors. • The controller continuously analyzes and processes information, and use actuators to modify conditions. Sensors • A sensor is a device that can be used to measure a physical property by detecting some type of information from the physical world. • A sensor may be connected to a controller either directly or remotely.
  • 13. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 13 Actuators • An actuator is a basic motor that can be used to control a system. • Can be hydraulic, electric or pneumatic. • can be responsible for transforming an electrical signal into physical output. Controllers • Responsible for collecting data from sensors and providing network connectivity. • Controllers may have the ability to make immediate decisions. • May also send data to remote and more powerful computer for analysis. IoT Process Flow • A simple IoT system include sensors connecting, through a wireless or wired connection, to actuators or controllers. • Some devices can have more than one function. ControlledSysteminIoT(Cont.)
  • 14. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 14 ProcessesinControlledSystems Processes • A process is a series of steps or actions taken to achieve a desired result by the consumer of the process. Feedback • Feedback is when the output of a process affects the input. • Feedback is often referred to as a feedback loop. Control Systems • Includes a controller that uses inputs and outputs to manage and regulate the behavior of the system in an attempt to achieve a desired state. • The controlled portion of the system is often called the plant. • Choosing the adjustments to apply to a plant to achieve a desired output is called control theory. • Control theory is applied to many systems, including driving a car.
  • 15. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 15 ProcessesinControlledSystems(Cont.) Open-Loop Control Systems • Open-loop control systems do not use feedback. • The plant performs a predetermined action without any verification of the desired results. • Open-loop control systems are often used for simple processes. Closed-Loop Control Systems • A closed-loop control system uses feedback to determine whether the collected output is the desired output. • The result is then fed back into a controller to adjust the plant for the next iteration of output, and the process repeats.
  • 16. 3/23/2023 16 INTERNET OF THINGS (IOT)(CSE334) Microcontroller-basedControlSystem
  • 17. Cloud Based Application ‘IoT’ using Microcontroller INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 17
  • 18. 3/23/2023 INTERNET OF THINGS (IOT)(CSE334) 18 Microcontroller-BasedProjectDevelopmentCycle
  • 19. Microcontroller-Based Project Development Cycle  Microcontroller-based project development cycle has two stages:  Program Development Cycle (PDC)  Hardware Development Cycle (HDC) INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 19
  • 20. Program Development Cycle (PDC) INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 20
  • 21. Hardware Development Cycle (HDC) INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 21
  • 22. Program Description Languages (PDLS) BEGIN-END INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 22
  • 23. Sequencing INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 23
  • 24. IF-THEN-ELSE-ENDIF INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 24
  • 25. IF-THEN-ELSE-ENDIF INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 25
  • 26. IF-THEN-ELSE IF-ENDIF INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 26
  • 27. DO-FOREVER-ENDDO statement INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 27
  • 28. DO-ENDDO statement INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 28
  • 29. INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 29
  • 30. REPEAT-UNTIL statement INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 30
  • 31. Subprograms INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 31
  • 32. Calling subprogram DISPLAY INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 32
  • 33. It is required to write a program to convert hexadecimal numbers “A” to “F” into decimals. Show the algorithm using a PDL and also draw the equivalent flow chart. Assume that the hexadecimal number to be converted is called HEX_NUM, and the output decimal number is called DEC_NUM. EXAMPLE 1 INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 33
  • 34. Solution 1 The required PDL is: BEGIN IFHEX_NUM = “A” THEN DEC_NUM=10 ELSE IFHEX_NUM = “B” THEN DEC_NUM=11 ELSE IFHEX_NUM = “C” THEN DEC_NUM = 12 ELSE IFHEX_NUM = “D” THEN DEC_NUM = 13 ELSE IFHEX_NUM= “E” THEN DEC_NUM=14 ELSE IFHEX_NUM =“F” THEN DEC_NUM=15 ENDIF END INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 34
  • 35. INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 35
  • 36.  It is required to write a program to calculate the sum of integer numbers between 1 and 100. Show the required algorithm using a PDL and also draw the equivalent flow chart. Assume that the sum will be stored in variable called SUM. EXAMPLE 2 INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 36
  • 37. Solution 2 BEGIN SUM=0 I=1 DO100 TIMES SUM=SUM + I Increment I ENDDO END INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 37
  • 38.  An LED is connected to a microcontroller output port. Additionally a button is connected to one of the input ports. It is required to turn ON the LED when the button is pressed, and otherwise to turn OFF the LED. Show the required algorithm using a PDL and also draw the equivalent flow chart. EXAMPLE 3 INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 38
  • 39. BEGIN DO FOREVER IF Button is pressed THEN Turn ON LED ELSE Turn OFF LED ENDIF ENDDO END Solution 3 INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 39
  • 40.  An analog temperature sensor is connected to one of the analog-to-digital (ADC) input ports of a microcontroller. Additionally, an LCD display is connected to the output ports. It is required to read the temperature every second and then display on the LCD. Show the required algorithm using a PDL and also draw the equivalent flow chart. Assume that the display routine is a subprogram called DISPLAY. EXAMPLE 4 INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 40
  • 41. BEGIN DO FOREVER Read Temperature from ADC port CALL DISPLAY Wait 1 second ENDDO END BEGIN/DISPLAY Display temperature on LCD END/DISPLAY Solution 4 INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 41
  • 42. 3/23/2023 42 Summary INTERNET OF THINGS (IOT)(CSE334)
  • 43.  Engineering Design Process In This presentation, we covered: Summary  Steps to Create an IoT System  Processes in Controlled Systems  Microcontroller-based Control System  Microcontroller-Based Project Development Cycle INTERNET OF THINGS (IOT)(CSE334) 3/23/2023 43
  • 44. 3/23/2023 44 INTERNET OF THINGS (IOT)(CSE334)
  • 45. 3/23/2023 45 INTERNET OF THINGS (IOT)(CSE334)

Editor's Notes

  1. IFTTT derives its name from the programming conditional statement “if this, then that.” What the company provides is a software platform that connects apps, devices and services from different developers in order to trigger one or more automations involving those apps, devices and services.