Intro To 4IR, IoT, and Embedded Systems
Intro To 4IR, IoT, and Embedded Systems
● Blockchain
PIAIC will Apply 4IR Technologies on Pakistani
Industry Verticals
To further transform its economy, PIAIC will also adopt Andrew Ng’s second
strategy which is to develop it’s industries by applying 4IR technologies on
industry verticals in they already have a competitive advantage.
For example, if a developing economy like Pakistan has a strong and thriving
cotton spinning industry, then it has an advantage in applying AI, IoT, Blockchain
and Cloud Technologies to cotton spinning industry.
PIAIC will target the top industries of Pakistan for adoption and
implementation of 4IR technologies.
Fifteen Guiding Principles of PIAIC
Identify. Identify key areas where Pakistan can focus.
a. Cloud Native and Mobile Computing
b. Data Science and Artificial Intelligence
c. Blockchain and Decentralized Applications
d. Internet of Things
Target Student Body. The target student body of the PIAIC program includes students,
professionals, and under-employed/unemployed individuals with any background.
Selectivity. Students are selected into the program after passing an English and Math
based aptitude test where they compete with thousands of applicants for a limited number
of seats.
Fifteen Guiding Principles of PIAIC - 2
Meritocracy. After selection, students are introduced to a completely merit based system
in which any student that does not perform up to the mark is immediately removed from
the system.
Continuous Quality Monitoring. We have prepared a series of internal exams, which
students must attempt every 30-45 days, over the course of the program, that measure the
students performance while also simultaneously preparing students for internationally
recognized skill based certifications.
Funnel Management. Due to a lower quality of early childhood and general education, a
wide array of socio-economic issues, and the difficulty of the PIAIC curriculum, it is
estimated that about 10% of the students will complete the program successfully.
Fifteen Guiding Principles of PIAIC - 3
External Validation. After successfully completing the PIAIC program and earning the
PIAIC certification, each graduating student will also be capable of passing the
international certification exams that are required qualifications for PIAIC faculty.
Homegrown Faculty. The biggest challenge is in recruiting faculty for these latest state-
of-the-art technology programs. There is already an extreme shortage of even the most
basic CS subject matter experts. Recruiting international trainers is not feasible because of
the difficulty of foreign faculty in communicating with the local students. After earning
the international certifications required to become PIAIC Faculty and also familiarity with
the PIAIC curriculum, having gone thru it themselves, the best PIAIC graduates who
possess both the technical and communication skills required to become instructors are
then be offered teaching positions at PIAIC.
Fifteen Guiding Principles of PIAIC - 4
Hybrid Delivery. PIAIC classes are offered as a hybrid of both online and onsite
programs. Though online delivery of education may deliver significant outcomes in some
parts of the world, online education systems have always resulted in failure in Pakistan.
Because of low energy and a lack of drive, the majority of students require continuous
motivation from faculty and peers to complete the trainings. All students are required to
take the proctored exams onsite.
Large Class Size. PIAIC classes, like most state run universities in the United States, will
have a large number of students. Because of the shortage of quality faculty, large class
sizes means the possibility for a maximum number of students to participate in the
programs. This also reduces the cost of the program because the cost of teaching is
divided among the larger class. To facilitate students, teacher assistants (TA) are assigned
to each class and are also available to students during clearly defined office hours.
Fifteen Guiding Principles of PIAIC - 5
Affordability & Flexibility. PIAIC course fees are extremely low. In just 1,000 per
month, a student can participate in training programs that cost thousands of dollars in the
global market. The fee for online students is Rs 500 per month. Most PIAIC classes are
held either on the weekends or in the evenings, allowing almost anyone to participate.
Lean Startup. The PIAIC is a lean startup in every essence of the term. Our management
follows the principles of the lean startup methodology to its core. Thru a validated
learning and a continuous improvement iteration cycle, the PIAIC process delivers results
quickly and is also quick to adapt & improve. PIAIC is operating as startups operate in
Silicon Valley, USA. The program is totally privately financed.
Fifteen Guiding Principles of PIAIC - 6
Freelancing & Services will boast Software Exports. PIAIC graduates will have the
option to join the technology industry as international freelancers or employees in
technology services companies. They may also create new startups. This will boost the
Pakistan software exports because these developers will be skilled in the latest, most in-
demand technologies, earning a hourly rate above $30 USD.
Boost Domestic Industry Verticals. PIAIC will conduct research to determine how to
implement 4IR technologies in domestic industry verticals to boost productivity and GDP.
Entrepreneurship. The PIAIC programs are geared towards producing graduates that can
work in the global markets. Instead of waiting for job offers, students will be trained to
create startups and generate revenue in freelancing.
The Internet of Things (IoT) will power the Fourth
Industrial Revolution
● The Fourth Industrial Revolution is changing the very software-defined
automation allows manufacturers to link all stages of the value chain, rapidly
adapt to changing markets, and create highly personalised products on a
mass scale.
● The opportunities presented by this revolution are incredible. According to
McKinsey, the economic impact of smart factories could reach up to $2.3
trillion per year by 2025.
● At the heart of the Fourth Industrial Revolution is the Internet of Things
(IoT), which uses digital technology to connect sensors, actuators, and
machines to each other and to factory workers.
What is IoT?
● The Internet of Things, or IoT, refers to the billions of
physical devices around the world that are now connected
to the internet, collecting, sharing and analyses of data.
● Thanks to cheap processors and wireless networks, it's
possible to turn anything, from a pill to an aeroplane to a
self-driving car into part of the IoT
Definition
The Internet of Things is the network of physical devices that combine IP
connectivity with software, sensors, actuators, and other electronics to directly
integrate the physical world into our computer-based systems, resulting in
efficiency improvements and economic benefits.
Simpler Definition:
● In 2015, the global wearables market had already increased 223% from the
previous year (and data on Statista shows it increasing by another 243%
between 2015 and 2022)
● By 2020, 250 million vehicles will be connected to the Internet
● IoT will add 15 trillion dollars to the global economy over the next 20 years
● There will be 50 billion Internet-connected devices by the year 2020.
Benefits of IoT
The interconnection of these multiple embedded devices will be resulting in
automation in nearly all fields and also enabling advanced applications. This is
resulting in improved accuracy, efficiency and economic benefit with reduced
human intervention. The major benefits of IoT are:
30
Introduction to IoT
31
Where we started
32
Value Proposition
33
Layers of IoT
34
Challenges to IoT
35
Past, Present and
Future of IoT
36
IoT Example: The Refrigerator
A refrigerator is just a thing, so it can be anything besides a computer.
If it's a computer, we're not calling that a thing, but anything besides a computer.
Now the next thing you do is you add to that some type of computational
intelligence (Micro controller).
So that's intelligent refrigerator. But maybe you wouldn't call that Internet of
Things, cuz it's not actually networked yet. Then, to top it off, you add Internet
connectivity.
It's got some kind of computation inside and it's got a network connection which
means it can use all sorts of other resources that are not local.
IoT Example: What the IoT Refrigerator can do
You can have IoT fridge detect that you are low on butter and then just order that,
and then the next morning, butter will appear on your doorstep.
Give you a good idea for food for you tomorrow is this type of meal that you've had
in the past.
IoT device should have a simple interface, have computational intelligence and be
connected to the internet.
IoT Devices vs Computers
IoT Device has a main function separate from Computation
IoT Devices are Special Purpose Devices, software and hardware are efficient for
the task - but inefficient for other tasks
Technological Trends that lead to IoT
● Cost of hardware has decreased allowing to be added to devices
● Smaller size and lesser weight needed to incorporate computation into
devices
● Computation ability has increased tremendously
● Internet is available everywhere
● Wireless Access (4G, Wi-Fi) has become cheap and ubiquitous, 5G on the
way (No physical cables required)
● Data transmission cost is fairly low, internet bandwidth is high
● Cloud computing is being used extensively (IoT devices are a window to
these cloud services)
● Rise of Open Source Software (Rust, Web Assembly, Docker, Kubernetes,
etc.)
What are Embedded Systems?
● IoT devices are embedded systems
● Computer based Systems that do not appear to be computers - complexity is
hidden from the users
● The complexity is embedded inside the device (that is where the name came
from)
● IoT devices are always connected to the internet
● Embedded systems may have computational complexity but may or may not be
connected to a network
● Things are moving from Embedded to IoT, a lot of thing were Embedded but are
now IoT
● Sometime an Embedded System does not interact with the user but with another
system, invisible to the user (Disk drive, anti lock braking system)
Efficiency Rules in Embedded Systems
● Most embedded systems are in cost-critical markets (e.g.
consumer products)
● Other Applications are in performance or power critical
markets (e.g. military, medical)
● It not that we just want it to work but we want it to work
under tight constraints
● Cannot depend on Moore’s Law to save you in the long
run, it has to perform from day one
Embedded Systems vs Regular Platform Design
● Embedded devices are generally application specific. Embedded systems are
made to do one thing or one related set of things.
● Unlike desktop, laptop computers which can run any type of program or pretty
good doing any type of program.
● When you know that the device is gonna do one thing, you design it for the
one thing, you don't design it for everything.
● A general purpose machine is overpowered.
● But embedded systems are designed specifically and they let you change the
way you do design, you can just put in the things that you need to put in.
Spend money on what you need to put in. So, higher design efficiency is
possible in Embedded System.
● In embedded system you have understand both the software and hardware,
which makes it more difficult.
Embedded Systems Structure
Receives
data from
the outside
world
Microcontrollers
Integrated circuits that executes a program
Microcontrollers vs Microprocessors
Much cheaper
You write your program on computer, compile it and upload it to the flash memory
of the microcontroller. As soon as there is power it runs the program.
Input/Output pins
Performance
Netflix (Movie is not sitting on your phone but are in the cloud)
IoT devices give access to huge databases and computation resources on the
cloud
IoT involves two essential components
A device-side (made up of individual devices) A cloud-side that gathers data and provides
that acts as a data source resources for analyzing it
Example: Water Pricing During Summer
Categories of IoT devices and services: Maker IoT
The term "maker" has come to be equated with “hobbyist” and refers to those who
like to build things to experiment or for personal use out of electronic components.
When it comes to IoT, the idea of building unpolished but functional devices that
collect data, using cloud services to gather and store that data, and maybe even
doing analytics on the data collected all is a part of what is included in this
category. But a commercial business may employ a maker's approach to
experiment with ideas, create proof-of-concept devices, do costing, and other
planning exercises. So "maker" need not be limited to hobbyists but describes an
approach to development.
Consumer IOT
It largely consists of commercial devices and associated services that are geared
towards home or personal use such as connected thermostats or appliances.
While the basic IoT concepts apply, the scope of what the devices collect, how
they manage and store data, and how the data is used may be much more limited
than what you'd find in an enterprise environment.
Enterprise IoT
Whereas Consumer IoT is focused on “turnkey” device solutions that solve
specific problems or enable new scenarios for individuals or homes, enterprise-
class IoT is focused on solving specific business problems like efficiency, reducing
waste, increasing speed to market or of production, and providing intelligence on
how business systems are running. A single enterprise may deploy dozens of
devices that work in concert to give a business a single view of a factory or fleet of
planes or gas pipeline. Enterprises also may require real-time data and real-time
analysis of those data in order to make just-in-time adjustments or prevent
disastrous consequences from a failed system. Consumer-grade IoT products
rarely require this so the type of architecture needed in an enterprise will be more
involved and require more services than a consumer solution requires.
IoT for Manufacturing
Microsoft highlights the following benefits for implementing IoT solutions in a
manufacturing scenario:
In a way, business goals for IoT are simple compared with consumer goals.
Businesses tend to implement IoT solutions in order to be more profitable, to increase
safety for their work force, and to more easily comply with government regulations in
order to create a better business environment. Profitability can be realized either
directly through cost reductions or indirectly through competitive advantage. A business
could use IoT to provide customers with improved service, resulting in increased
market share (and overall profits). In most cases both the business and their customer
benefit.
IoT Consumer Space Examples
● Connected Refrigerators
● Connected Doorbells and Cameras
● Connected Thermostats
Business goals for IoT, improving:
Gateways in this context may assist in device provisioning, data filtering, batching
and aggregation, buffering of data, protocol translation, and event rules
processing.
Edge Computing
● Edge computing is a distributed computing paradigm which brings computer
data processing and storage closer to the location where it is needed. So,
instead of having a centralized, remote cloud to do all the work, the data is
handled and stored locally, i.e. on the IoT device itself or at the nearest
network node.
● Computation is largely or completely performed on distributed device nodes.
● Edge computing pushes applications, data and computing power (services)
away from centralized points to locations closer to the user.
● Edge computing does not need contact with any centralized cloud, although it
may interact with one.
● Edge application services reduce the volumes of data that must be moved,
the consequent traffic, and the distance the data must travel. That provides
lower latency and reduces transmission costs.
Why pure cloud computing isn’t the best option for IoT
Traditional cloud computing has a number of drawbacks when it comes to IoT:
● Data security threats. Data is constantly being transmitted back and forth
between the cloud and a device, and as such, the risk of privacy violation is
heightened.
● Performance issues. IoT applications rely heavily on real-time actions. Yet,
the processing speed of your cloud-based app often depends on the actual
distance between the device itself and the server location.
● Operational costs coincidentally grow as the amount of data produced and
shared increases.
On top of that, most data sourced to the cloud often bears no practical value and
is never used.
How does edge computing work?
● Every IoT sensor produces tons of data every second. In the case of cloud
computing, the data is instantly transferred to the central, unified cloud database
where it’s processed and stored.
● If there’s any action required, the central server will send its response back to the
device upon receiving and analyzing the acquired data.
● While the whole process typically takes less than a second to complete, there
might be situations when the response may be delayed or interrupted. This can
happen due to a network glitch, weak internet connection, or simply because the
data center is located too far from the device.
● Now, in case of edge computing, you don’t need to send the data acquired by the
IoT sensors anywhere. The device itself or the nearest network node (e.g. the
router) is responsible for data processing and can respond in a proper manner if
action is required.
Edge Computing makes it possible that
the IoT device is no longer dependent on
the internet connection and can function
as a standalone network node.
The benefits for edge computing in IoT
Imagine a future in which every command is at the tip of your tongue. When you
wake up. your bathroom mirror can report your schedule for the day. During
breakfast, you can ask the coffee machine for a latte, extra foam. On the train,
your watch will tell you just how late you’ll be to work. In the office, your printer will
pipe up, asking for more ink, please.
Entry point into the IoT’s has been Amazon and
Google’s smart speakers
For many consumers, the entry point into the Internet of Things has been Amazon
and Google’s smart speakers.
Voice control is one of the primary drivers of smart home market growth with the
number of home voice devices projected to reach 275 million by 2023 in USA
alone.
Visions of dialogue from science fiction
● Hal “2001: A Space Odyssey” (1968)
○ Naturally conversing computer
● Her (2013)
○ A virtual partner with natural dialogue capabilities
A NEW KIND OF UI: VUI
Technology revolutions
Thermostat Etc.
Dialogs are for bots like screens are for apps
They separate concerns and organize flows, exactly the same way:
Main Root
Screen Dialog
Product Product
New Order New Order
Search Search
Screen Dialog
Screen Dialog
Google Assistant coming soon to
more speakers, appliances and
other devices
● Google is putting its Assistant on a wide range of third-party hardware.
Google has announced that it’s going to be putting the Assistant on partner
speakers, appliances, connected cameras, and much more.
● It is already on the iPhone.
Google wants to ‘see’ as well as
‘hear’ your surroundings
How to develop for the
Google Assistant platform
Actions on Google
https://developers.google.com/actions/
Actions on Google is a developer platform that lets you create software to extend
the functionality of the Google Assistant, Google’s virtual personal assistant,
across more than 500 million devices, including smart speakers, phones, cars,
TVs, headphones, watches, and more.
You can build smart home Actions that let users control Internet of Things (IoT)
devices through the Google Assistant. Building smart home Actions lets you
connect, query, and control devices through your existing cloud infrastructure.
Our Voice Platform
IoT Open Source Software which we will use
Traditional methods of analysing structured data and creating action are not
designed to efficiently process the vast amounts of real-time data that stream from
IoT devices. This is where AI-based analysis and response becomes critical for
extracting optimal value from that data.
Blockchain in the Internet of Things?
● Traditional IoT systems are dependent on a centralized architecture. Information is sent from the
device to the cloud where the data is processed using analytics and then sent back to the IoT
devices.
● With billions of devices set to join IoT networks in the coming years, this type of centralized system
has very limited scalability, exposes billions of weak points that compromise network security and
will become incredibly expensive and slow if third-parties have to constantly check and authenticate
each and every micro-transaction between devices.
● Smart contracts in blockchain networks will allow devices to function securely and autonomously
by creating agreements that are only executed upon completion of specific requirements. It not only
allows for greater automation, scalability and cheaper transfers (no third-party needed to oversee
transactions).
● With traditional centralized networks, the risk of a single point of failure disabling an entire network
is a very real possibility. A decentralized blockchain network mitigates this risk with millions of
individual nodes that transfer data on a peer-to-peer (p2p) basis to keep the rest of the IoT network
running smoothly.
IoT and Blockchain Complement Each Other
e term "metaverse" originated in the 1992 science fiction novel Snow Crash as a
portmanteau of "meta" and "universe." Metaverse development is often linked to
advancing virtual reality technology due to increasing demands for immersion. Recent
interest in metaverse development is influenced by Web3, a concept for a decentralized
iteration of the internet
How is IoT Empowering Metaverse
While the metaverse will blur the line between reality and virtual in the future
through XR, it will need to leverage IoT devices such as sensors and wearables
(sensor gloves, head-mounted devices, glasses, etc.).
- Example of digital twin implementation across the automotive value chain with
realtime on road field insights.
- Smart Cities and the metaverse Example.
- Farming and the digital twins example.
Metaverse
The convergence of AI, AR/VR, IoT and real-world data means the metaverse can be a strong
enabler of what businesses are already trying to achieve – better customer outcomes and
experiences,” says Harvey Lewis, Associate Partner, Client Technology and Innovation at EY.
Matter, which began as Project CHIP (Connected Home over IP) started in December 2019. The starting
companies were Amazon, Apple, Google, and others including Nordic Semiconductor. The goal is to agree
on a unified application layer standard for connected things at home. Matter aims to make it easy for
manufacturers to create secure and reliable solutions. These solutions will be interoperable with the major
smart home ecosystems like Apple's Siri, Google's Assistant, and Amazon's Alexa.
At its most basic, Matter is a global and open-source standard that promises to allow internet-connected
devices from different manufacturers to simply and securely communicate.
Matter Google Architecture
Our Programming Languages
Installing C on WIndows Systems:
- Search for MingW C compiler
- Install the exe file in the default directory.
- When it's done click on continue.
- On the next window right click on all the packages and mark for Installation.
- Click on Installation tab on the top left and click on apply changes.
- When it's done close it and open MinGW folder.
- Inside the folder open bin folder and select its path.
- Now add it to your ENV variable.
- To Check if its Correctly installed: gcc –version
Installing C in Mac OS
- Type gcc in the terminal if command line tools are already installed it will
some text or otherwise prompt you to install.
- Follow the installation commands it will install the C compiler.
- To Check if its Correctly installed: gcc –version
Let's take a MCQ covering this Presentation:
Total Questions: 46, Total Time: 60 minutes
Let Us Do Some Rust and IoT Coding
Follow IoT
on :-
https://www.facebook.com/groups/aiot.edu/