Speeches and Presentations
English Learning Tips
Movies & TV
Cartoons & Animation
Howto & Style
People & Blogs
Autos & Vehicles
Pets & Animals
News & Politics
Travel & Events
Science & Technology
Film & Animation
Nonprofits & Activism
Howto & Style
People & Blogs
Autos & Vehicles
Pets & Animals
News & Politics
Travel & Events
Science & Technology
Film & Animation
Nonprofits & Activism
Howto & Style
People & Blogs
Autos & Vehicles
Pets & Animals
News & Politics
Travel & Events
Science & Technology
Film & Animation
Nonprofits & Activism
Howto & Style
People & Blogs
Autos & Vehicles
Pets & Animals
News & Politics
Travel & Events
Science & Technology
Film & Animation
Nonprofits & Activism
Howto & Style
People & Blogs
Autos & Vehicles
Pets & Animals
News & Politics
Travel & Events
Science & Technology
Film & Animation
Nonprofits & Activism
Howto & Style
People & Blogs
Pets & Animals
News & Politics
Travel & Events
Science & Technology
Film & Animation
Nonprofits & Activism
Today's Pronunciation Challenge
After playing the video, you can click or select the word to look it up in the dictionary.
7000 Vocabulary words for High School
Searched Words in the video
Report Subtitle Errors
The Internet of Things is the giant network
of interconnected devices
from these devices are capable of making decisions
without any human intervention.
Edureka welcome you
to the full course session on the internet of things
and what follows is a series
of fundamental concepts on the internet of things
which will help you get started with IoT.
But before we begin let's look
at our agenda for today. so we can start out
with introducing you to the concept of iot.
We are going to discuss.
Why do you need I will take
what is iot of you benefits of iot for biofuel features
and finally the very
important five layer architecture of authority.
Then you're going to discuss Raspberry Pi in this section.
We are going to talk about why you need Raspberry Pi
what does Raspberry Pi of you Hardware specifications
and the installation of Rosman fire also,
We have a few demos including the Raspberry Pi
a few cents hats and Raspberry Pi camera module.
We are going to discuss the top seven projects
in iot in this section.
We're going to talk about the best projects
that we found in Rog next.
We will talk about iot devices
are going to talk about various devices
which came into Inception
after the concept of iot was introduced
then we want to talk about iot applications
in this Section we are going to discuss
practical applications of iot
in various domains
such as Healthcare security traffic governance.
So on and so forth and finally we are going to discuss
all things career in Ironton.
They're going to talk about the job market
the opportunity the salary in different geographies
and experience so on and so forth,
but that we come to the end
of our agenda also going to take up this time to subscribe to us
and don't forget to hit that Bell icon to double missile.
Update from The Edge Arabia YouTube channel.
So without Much Ado,
let's get started what is internet of things
now to help you understand what is internet of things?
Let's look at an example of a mobile phones Forest.
Our mobile phones has GPS tracking.
It also has mobile gyroscope you have adaptive brightness,
which gets adjusted
based on the light falling on it you have voice recognition.
And you also have face detection
which identifies who is the user now again iPhone x
is coming with face detection.
So again, these are a lot of features
that are coming pre-built
on the mobile asset
and most of these have a common interaction between them
because let's say one application can use all
of these features.
I can also have these features
in itself being interacting with each other.
Let's say based on a GPS location.
My brightness could be adjusted or based on the direction.
My phone is being held the brightness in itself
can also The adjusted as well.
So there are a lot of features
but when they interact with each other these features
come together to bring in a better system
that they can provide individually
as such that's what internet
of things is it basically is a platform
where we can connect every day things
which are embedded with either Electronics software
or sensors to the internet
and this in turn enables us to collect as well as exchange
between these things.
Now when I say things it can be anything and Nothing,
let's say I have an internet platform where
and I can connect these things
if I take the example of my house,
I can connect my lock.
I can connect my AC.
I can connect my light
and all this can be managed on the same platform
since I have a platform
so I can also connect my car to this.
I can keep a track of my fuel meter.
I can keep a track of my speed limit.
I can also keep track of the location
of the car as well.
Now if there is a collective platform
where all of these are connected wouldn't it be great
because I would love
to Of the AC on and set a cool temperature
at my home by the time I reach back from office
if I have a platform
that knows my preference and that keeps track of where I am
and where I'm going to then it can also identify
that I'm going
from work back to Hope and my preference suggest
that it would be best
if there was an easy temperature of about
22 or 23 degree centigrade and this is something
that is definitely possible through internet of things.
Now, this is just one of the examples now,
let's say tomorrow you come back.
Home, it would be great.
If I wouldn't even need a key to unlock my door
my home system should be aware
that I have come home and should unlock all the doors
that are needed.
And now this can be done
if my mobile and my home devices are connected
onto the same platform based on the location of my mobile.
It can identify
that I am at my hope so it will automatically
unlock the door and let me come in as well.
These are some of the real world implications
of Internet of Things.
These are something that are already happening
but going forward
what Need to understand is
that when I have a specific component with me,
which can do a lot individually wouldn't it be great
if I can collaborate this complaint with my system
of different components and build up at a system.
This is what internet of things is helping us to okay,
you provide a platform to which all these things are connected
through the internet.
So internet becomes the medium through which you're connecting
all these components were things to a platform.
Moving forward let's try to understand.
Why do we need internet
of things now to help you understand why let's look
at an example.
This is a patient at home.
Okay, he's on constant life-support wearing.
His status is being checked
to a health monitoring system present on the cloud.
Let's say at a point there is certain issue
with respect to his health.
Let's say there's some irregularity with his heartbeat
or his blood pressure is low.
There's some fluid being developed or so far now what?
Offenses since the system on the cloud is connected
to a hospital as well.
This information would get passed on
to the hospital as well.
They're in what would happen is
that they would get the complete details
with respect to the patient
and the important information with respect
to the current situation of the patient as well.
We made it aware with respect to what issue exactly is
the patient facing as well as enable
them to dispatch an ambulance
immediately to bring the patient back to the hospital as well.
once the patient has been picked up
and brought back to the hospital there could be prescriptions.
There could be medicine.
They could also be an operating theater made ready
in case of an emergency situation as well.
There'd be doctors on standby
who have the complete history of the patient
who have the complete details
of the present condition of the patient as well.
So this in turn brings in a lot of transparency
and reduces a lot of effort
and time involved with respect to this same thing.
Let's take in today's scenario.
There has to be someone wandering this patient's health.
If there's a fluctuation they need to call the hospital they
need to call request for an ambulance.
And meanwhile, once the ambulance is here.
They take the patient and their back into the hospital
then again there needs to be a lot of checkups
that need to be done
because the doctors are not fully aware again.
There is a lot of tests that need to be run
and this in turn leads a lot of delay as well
in certain emergency cases
as such if a system can do this then this is exactly
where our future lies in and
what we have to definitely move forward to to now Internet
of Things basically is expanding the interdependence
of humans to interact contribute
and collaborate with things around us.
What do I mean by interdependence of human see
how we depend on each other like
how I'm explaining this concept to do
if you're not clear you would reach back to me.
You would request me for help.
Okay, this becomes an interdependence between us
when I'm giving you knowledge
when you're not here you're coming back to me
and you're helping similarly tomorrow
if there's something that you can do for me,
I would reach out to you.
We all are interdependent on each other for something
or the other
if we can expand
this interdependence to interact collaborate
and contribute with respect to the different things around us.
Then we would be building a proper Internet
of Things environment.
This would be a much more safer secure effortless
and time-saving environment into existence moving forward.
Let's Talk about the various benefits of Internet of things.
The first thing
that would be as a benefit
of having an Internet of Things platform would
that you could efficiently utilize the resources
that are available
if I have a smart system which can interact
with everything if it has enough computational power
if it has enough understanding
of how things work between each other.
I'm quite sure the usage
of the resources available will be more efficient as well.
This resource could be in terms of monetary.
It could be in terms of natural resource it.
Also be an input taken
up by the thing as an input and so far.
So all this can be more efficient
if I have a platform
which is more smarter and interconnected as well apart
from this it minimizes the human effort involved
if my system is smart enough to interact it to filter smart
enough to do things
that I do need to get involved
with then my interaction is always going to be minimum.
This is same with everyone and that's one of the major reasons
why Internet of Things has become popular today.
The and the concept
of smart home is always growing as well in the same perspective
because if the system in itself is able to do most of my work
at hope then I don't need to put in much effort.
I can relax at home without having to worry about anything.
Okay, the next benefit would be it saves time.
If it rains my human effort definitely it is going
to save my time.
Okay apart from that
if the resources are utilized more efficiently then again,
it is going to save a lot more time as well.
All-in-all any benefit of Internet of things
will in turn help you save a lot of time as well.
So time is one of the major factor
that can be saved on an Internet of Things platform.
Now if I have an artificial intelligence platform
through which all of this is managed
and maintained then the personalization
and the human touch also comes into the picture.
Now today most of us
have had a level of interaction with an artificial intelligence
or a virtual intelligence as well.
This could be a personal assistant
like see Hurry,
or it could be an assistance application
like Google assist now
if I have system
where all these components
and things are interconnected
then in turn all the security present
on each of these things is going to get multiplied
and it's going to build a much more secure system apart
from that the level of security
that we would be integrating
to the platform in itself is going to be quite huge.
So the overall security booth respect to everything
is going to increase multiple times as well.
Now let's look at some of the major features
of Internet of things.
Now any technology
that is available today has not reached
its hundred percent capabilities and it always has
that Gap to grow Internet of Things is one
of the major Technologies in the world today
that can help any other technology reach its true
and complete potential as well.
Now there are mainly three aspects to Internet of Things.
Things as to how it works first is the connect aspect here.
Basically, what you need to work on is you need to ensure
that there is a connectivity between all the things
around you all the necessary things to The Internet
of Things platform.
Okay, then comes analyze now, I have my things around me.
They each are going to generate some amount
of data now this data needs to be collected
and it needs to be analyzed to build
a business intelligence solution
if I have a good insight,
The data that is gathered from all of this then
definitely I can call my system as a smart system.
Finally what happens is in order to improvise
and improve your system.
You need to integrate it
with various models to improve the users experience as well.
Let's say there's a personalization module
that is there or let's say there's going to be an aspect
when I can directly connect to my providers.
This provider could be Amazon.
It could be Flipkart.
It could also be my retail store that is next to me.
Let's say I'm out of milk
to retail store will get a notification
and he would send milk right away
and the same thing can be done.
Let's say I have my coffee machine requires special beans
and this be isn't is almost complete then
what my system could do is it could go online
to Amazon and purchase these beans for me as well.
So there are a lot of things that I can do
when I integrate this with respect to various models
and improve the overall experience to a single user
or a group of users on the world itself such.
Now, let's talk about each one of One
by one let's start with connect.
The first stage of connect is device virtualization
because what you need to First do is
that you need to standardize the integration of the device
to the Enterprise platform,
which is present on the flower.
Now, it could be present on a cloud it could be present
on a so, but again,
it's all going to be connected through the internet.
So what I need to do is that I need to ensure
that certain level of standard is present on the device
so that it can go on
and connect to my Internet of Things platform.
Now to help you understand this better,
there could be a standard power plug and there could be
a power block which has an inbuilt Wi-Fi support
so that it can connect to my lap.
No to build a smart home system.
I need the second power point
because there only I would have the access to control it
over the internet
and my system could integrate with respect to the same.
Now if I take the first standard PowerPoint then
what would happen is
that I need to manually switch it on and switch it
on how in the second case I could send a signal to it
and In don't we'll switch it on and switch it off.
So there's supposed to be a level of standardization
through which I can integrate all of these devices
to my platform.
Next comes high-speed messaging.
So now what I have done is
that I have connected all these devices to my platform
but these devices in turn generate a lot of data
and this data is
what is going to help us understand better
on how we can improve the overall system
and help and provide the user with better experience.
So for that we need to To have high-speed messaging.
This basically means
that there needs to be a reliable secure
and a bidirectional communication Channel
between the devices
and the platform not the purpose of it being bidirectional is
because you need to control each one of them as well.
Let's say I want to switch on the AC then the signal
would be going on from the cloud platform
to the device.
So this is how it works on.
So every communication
needs to be reliable it needs to be secure
and it needs to be bi-directional as well.
Moving on to the third point
of connect you need to have endpoint management.
If I don't have an endpoint manager,
I have established a way
through which all my devices can connect to my platform.
I also ensured
that the data is going to be sent
from the device to the cloud
and the cloud can send back to the device as well
through a secure Channel,
but if I don't actually identify
from which device which data is coming
and how this data has to be processed.
Then it becomes a failure of the system.
This is where Management comes
into picture endpoint management basically helps you
in managing the devices endpoint identity the metadata
and the overall life cycle involved with respect
to these things are such.
Okay, so to put it quite simply it basically helps you identify
from which device which data is coming
and what needs to be done with this data as well.
Now coming on to the next feature is analyzed
and the first thing that you need to do for analysis,
is this reprocessing now
if the data coming from the device Not on a real-time basis,
then my system is often Williams.
There's no use
if I tell my system to switch on the AC at my home.
And by the time I reach there
if the AC is not even turned on then it's
a failure on my system.
Okay, so real-time analysis
of the incoming and outgoing data and must be done.
I have with respect to different aggregations
it filtering correlations processing and so far.
Okay now apart from this what you need to do is
that this is raw data
that is being streamed from all the things you need.
Need to identify
which is contextually important information
which is going to be taken forward.
So once I have the irrelevant information,
then I can even generate composite streams of information
which can be taken ahead for future analysis
and understanding as well.
This is what your data enrichment process does.
Then you have events to now in events
to basically any information
that you want can be queried
and visualized from the vast amount of data
which is present on my cloud.
Now this in turn can also help me get
a better insight and Analysis
if I have all the enriched data present on my cloud platform.
I have a tool
which helps me identify what is needed help me analyze.
This data helps me visualize it then definitely it becomes
more useful as well.
And when I have data coming
from different things as such this in turn can also lead
to being a collection of big data now
when I talk about Big Data,
it's not just a few GB of data
as it's going to be terabytes of data because
because the data generated from the things around us is
that was and if you doing it over a period of time then
definitely it is going to grow into a big data domain as well.
Now coming to the third feature
of Internet of Things comes Enterprise connectivity.
So this is what I was basically telling you about.
Let's say I have a requirement
from my retailer or even an Enterprise organization
which is present.
It could be Amazon.
It could be flipcard anything as as any Enterprise organization
which provides me a service.
If I can connect to them through this platform,
then definitely My overall process also
becomes easier as well.
Let's say this is service provider.
Okay, let's say there is a leakage in my Plumbing
or let's say there's some issue with respect to my electricity.
Then it can contact to the corresponding service provider.
It can send them a detail
and corresponding they would be dispatched.
This would in turn reduce my effort
of having to check the problem having to call someone wait
for them to come back all
that gets reduced to minimum required effort as well.
Well, now how does this communication happen?
So for that we have rest API.
Once I've integrated my rest API with respect
to the cloud application
and my internet of things then communication between
the Enterprise communication between the platform
and the communication between the things around us
can be made more efficient
and can be more easy as
per the third aspect is command and control
if I don't have command
and control on my platform then it's awful noise.
Yes, I built a very great.
Table something that's quite extraordinary.
But if you cannot command it
if I cannot control it as per my requirement,
then the system in itself is not useful
if I cannot tell my door in a smart home to unlock
when I want it then it becomes failure on my part.
If I cannot control the AC on my horse motto then again,
it's a failure.
So always the major aspect
when you integrate with respect to these things.
The major thing is
that you need to ensure there's a huge control on system
and you're able to Um
and it as per your requirement now this command could either be
through a voice based recognition.
It could also be a message
that you can send through your mobile application
and so forth as well
when we come down to the iot ecosystem.
There's no single consensus or again.
There's no singles architectural design
that's out there which is agreed universally
because each company each organization each user
for that matter has different requirements
and We look down to it.
We can break it down to a simple three level architecture
where and we have a perception layer
where centers actually gather the information
from the environment around it.
Once this is done I'm going to use I'm going
to pass this information to the network layer
the network layer in itself takes up the responsibility
of transferring this data
from the sensors to the next layer,
which is the application layer now here the main objective
of the responsibility is the application
in itself delivers this information to the end user
or the When platform for that matter this architecture
can also be expanded to a five layer architecture.
Now when I talk about a five layer architecture,
it's quite similar here.
It's a the difference mostly comes around with respect
to the transport layer the processing layer
and the business layer mostly here
when we had three layers doing the earlier task.
We've just broken this down
so that we have an easier operation
or a smoother system for that matter.
Now again, the perception layer remains same
when it gathers the information from the sensors,
but the transport layer actually Transports the data
between the sensor to the processing center.
Now, this could be through a wireless system.
It could be through Bluetooth.
It could be two RFID 3G NFC or any medium
that I choose to once.
The information has been transmitted the processing layer
comes into picture
which actually stores the relevant information analyzes
this and again processes it as per the users requirement.
Now again, this could employ various databases
Cloud Computing Services as
well as big data processing modules
to store this information
as as well as process it for that matter.
Once this is done.
I give the information to the application layer,
which is actually responsible
for delivering Superior Services to the end user for that matter
on top of all of this
stands your business lamp now any device for that matter
when it is working on a large-scale environment
a business layer is usually used here.
Now, let's say I'm working in an organization
where we using multiple pumps
for different views features in different locations
for that matter a business layer here actually monitors
the complete functioning of these parts.
You can also have these in various cars as well.
So what do I would note here is
if a car is going to break down then I also get
an awareness with respect to that individual car
and it also helps me enable
or help me reach out to the closest customer care center
so that it can assist the user coming down
to how I can process it again.
This can be divided into two segments.
I have my cloud computing based processing.
We're in here.
It's quite simple once I have the information.
I pass it on to the cloud platform
which then in turn also.
Processes it and also has various applications to deal
with this process information for that matter.
Now again, this is something that I can do on a system
which does not require any immediate action
and requires a large amount of processing for that segment.
But let's say I am in a system
where I need immediate response in those cases,
I can go with my
for computing now again for computing is something
that represents a layered approach wherein we actually
insert monitoring pre processing
and storage with the security layer.
Between the physical and the transport lab.
Let me just go back a few slides here to help
you understand this.
If you actually look my
for composedly comes between these two layers
when I add four new layers for that matter.
Now again, this is used in order to make a system quite smarter
or effective with respect to it now between my physical layer
and my transport lab,
I have a monitoring layer.
I have a pre-processing layer a storage layer and
a security line now to help you understand this.
Let's take in real-world example out them.
Let's say I have a complete traffic system.
Which is built on my internet of things.
Now, let's say at one point.
There is an ambulance
that has come to a first signal I detect this and what I do is
that I allow the ambulance to move from this traffic signal
by giving it a green line,
but what you need to understand is
if I'm using a cloud
computing this message has to be passed on to the cloud.
This information has to be then process
and then correspondingly a map has all stood to be created
at the same time
when I use a fog approach what happens is
that all the pre-processing
and the storage happens on the Gateway level itself.
The information from the sensor goes all the way
to the Gateway there
and it actually processes this stores the relevant information
and sends this back
to the discourage ponding sensors as well.
So let's say if there's an immediate track
that I can create to the closest hospital.
I would highlight all the traffic signals to be green
so that the ambulance can move smoothly as well now security
here is very essential
because if I implement this tomorrow anyone can
actually try to manipulate this for their requirements as well.
Imagine there is a high High Speed police chase happening
and the culprit uses this
in order to move fast from the traffic signal.
So this is something that is really Ascension.
Although there is a pro to this.
There's also a con and this is
how we try to overcome this issue now talking
about each one of these new layers
when I come to the monitoring layer.
What it actually does is it monitors the power consumption
it monitors each
of these resources as well as their response
and the services
that are running on these resources.
Now this in turn helps me monitor
or gives me a complete idea.
Of which other services are
which are the sensors which are working?
Where are the challenges?
What is the power consumption and how it works with respect
to that same now
once I have information from these sensors
what you need to understand is
that usually you work
with thousands of sensors in a real-world environment.
Now, I need to understand which are the necessary information.
So I'm going to do a level
of filtering I'm going to do a level of processing
and then I'm going to apply a level
of analytics to understand
what is needed
and what is not from these information as well now.
Now the temporary storage area is something that I use
in case I want to store any relevant information.
Let's say I'm creating a route today for an ambulance as well.
And this is going to be stored in my temporary storage area.
But this also needs to be used in future scenarios.
So once I am done with this usage,
I can also push it onto the next transport layer
which can send it to any other storage system
that has part of my environment.
Now as I said security plays a very important role,
although my for computing is something
that makes my system faster.
It should not be easily.
Inaudible now in a cloud-based system.
I have the assurance
that it's not really easy to break down the security.
It's quite hard where there are various layers of security
which are part of the system.
But when I have a fork system,
it's essential that this factor or the security
which deals with the encryption
which deals with the privacy of the information.
The Integrity of this information is maintained.
Now, there's also a very interesting variation of this
which is called an edge Computing system wherein
rather than doing all these operations are
After I have gathered this on the Gateway,
I can do it on the individual notes
or individual sensors as well with respect to it.
So where I have edges these becomes point
for me to perform operations on the data
that is being collected.
So that's the slide variation
of our for computing system is such next let's talk
about the various taxonomy associated
with internet of the X.
These are the key Concepts or these are the key layers
which are present with respect to most architectures.
That's out there.
As I said,
this is a general guide ER e Person
on each system that's out.
There requires its own level of customization requires
its own level of approach to solve that problem.
But these always remain the fundamental layers
which are included
in all the architectures out there first.
We have the perception layer,
which is usually the layer
where we gather the information from the various sensors
that's out there or we use the various sensors
which are required as part of our system.
Then we have the processing layer
where in we perform filtration.
We summarize the data we again do a level
of analytics on This data
before we decide to send this relevant data to the system
that's above this.
Then I have a communication line
of communications layer is very simple
as in here will Define the protocols
and standards as well as the medium
through which the information has to be passed from my sensors
to my main system
as well middleware is something that's quite essential here.
What it does is
that it creates an abstraction as well
as it makes my system work much more smoother.
Now what you need to understand is
that there are various components in what hear me?
That really helps
me integrate the information coming out from each
of these sensors or each of these individual systems.
Once it's present
that I can pass it on to my application layer where
and I have various applications
which help to improve the overall experience
of the user as well as
provide much more accuracy and efficiency to the information
that's present now coming down.
Let's talk about each layer one by one now
before I talk about the perception layer
what you need to understand is
that one of the most important aspects of Annette
of things is context awareness.
That is what you need to understand with respect
to the change of environment is very important.
And this is extremely impossible without the usage of sensors
as such now sensors
in themselves are very small in size.
They again cost you very little
and at the same time they consume very little power again.
There are various constraints
with respect to the factors as the battery capacity
and the ease of deployment as well,
but let's not go into them as such.
Now when I talk about sensors again,
we have various types
of sensors as such one of the easiest example of sensors
that can be seen on a daily basis is the sensors
which are part of your mobile.
You have a location sensor you have movement sensor camera
in itself is actually
another sensor your microphone your light sensor.
These are all various important aspects of your mobile
that we use on a daily basis
apart from this neural sensors medical sensors,
like the fitness bands that we use Healthcare bands,
which are used for heart patients.
In environmental sensors,
which check the temperatures around the environment make
you aware of the changes chemical or biosensors
which are very useful on a daily basis
as 12 again infrared sensors are something
that's quite common as well.
When we talk about RFID.
This is something that's really important or not.
This is something
that really gathers a lot of attention with respect
to it RFID stands
for radio frequency identification now
unlike a traditional barcode.
It does not actually require a line of sight of communication
between the tags.
And the reader and can identify itself
from a distance without even a human intervention
or a human operation
for that matter RFID is are technically
of two types you have active and passive active tags actually
have some amount of power source associated with it
and passive sources do not have anything related to it.
And when we talk about the RFID Technologies as well,
there's near and far
and near RFID reader uses a coil through which we
actually pass AC current and Create a magnetic field.
Now when we generate a magnetic field anything
that comes in its vicinity it registers with respect to it.
Now when I talk about afar RFID it basically is
a dipole antenna in a reader.
Now this again propagates an electromagnetic waves and tax
themselves also have a dipole antenna now again,
these are something that's used in various applications.
That's out there.
Now one key factor,
which is associated
with the perception layer is an actuator now
when I talk about an actual It actually is a device
which can affect a change in the environment
by converting any sort of energy into another now.
This could be a motor which is generating electricity.
This could be a windmill
which is converting the wind outside to you
to of electric form as well in these are just some
of the examples
that's out there
and actuators themselves play a very essential role
in the perception lab now,
the next layer that we have is the pre-processing layer.
But before I really talk about the pre-processing layer,
let's actually try to
And the limitations of trying it to process everything
that we have on the cloud system,
which is part of our ecosystem.
Now when I talk about this one of the key
or one of the biggest challenges for me is mobility.
Let's say my sensors are
on devices which are in constant motion.
Then it becomes a really high challenge
for me to pass
this information continuously to my cloud environment again,
this could be true the challenge of Transport layer.
This could also be due to the challenge
of power consumption associated with it
when my Smart device
or when my sensors for that matter are
in constant motion run constant Mobility.
Then it cannot completely pass all the relevant information
on to the cloud.
This intern actually causes a challenge
for me to have some latency.
This could also lead to early 10 C with respect
to real time processing of the information
that it gets as well.
Now if I'm working on a critical system,
then real-time information is something that I will highly
depend on and that becomes a challenge as well now.
Now if I really want to scale up
if I want to use a lot of devices then
my cloud computing system also needs to scale
but there's always a chance to increase the latency
because I'm working with multiple sensors
or multiple devices.
That's out there.
I have a system with just includes thousands answers,
but let's say in a smart home system There is close
to about 10 to 20 thousand sensors associated with it.
So this is just one small system.
Imagine if I'm trying to build a smart city in that case.
Is going to be hundreds of thousands millions of sensors
that's out there
if my cloud computing system cannot process this
on a real-time.
Then there's going to be a high challenge
with respect to that sick.
And this is exactly
where the usage of smart gateways comes into a picture.
This layer actually helps me process my data on real type.
It also helps me filter the data on based on the priority
or the requirement
and creates a local copy of whatever is needed
or whatever needs to be taken forward.
Word now when I come to the pre-processing layer
or when I come to the features
of for computing for this matter,
there's a very low latency
because the information does not have to go
to the cloud system
wherein the processing needs to be taken up.
It always is done on the Gateway level itself.
This information really is faster as we've seen
in the previous example about the ambulance now,
I can also use distributed nodes
where in the information does not have to be
other processing has to be
on one single node for that matter
when I'm using Distributed notes then I can also distribute
the effort or the work
that is needed as well
when I'm on a mobile environment as well.
These Smart Systems can communicate with
the gateways present in its closest proximity.
It does not have to connect to just one single Gateway.
If I'm setting up gateways across multiple points
in my city,
then it makes it quite faster and more efficient
and this in turn can also lead to a real-time response
from the Gateway for that matter.
Once I have a real-time response,
then it is big.
Taking my system faster and as
in the previous example rather than just clearing one signal.
I can clear an entire path for the ambulance as such now
once I have relevant information those
which are necessary or those which are really something
that I need to ponder
or I need to analyze can be sent to the cloud system as
and when as it's needed as such so this is something
that really makes
my pre-processing layer important and efficient
and effective coming to the next layer,
which is the most important layer.
It's out that which is my communication lab now
as your Internet of Things environment actually grows.
This is a compromise
or this is a combination of various heterogeneous devices
which are connected to the internet.
What you need to understand is
that these devices in then self need
to pass these informations and some of the challenges
that the communication layer should actually address is
with respect to let's say first start off with addressing
and identifying of each
of these informations wherein I know
which Each device is sending me the information.
What is that device
if I want to communicate back to that device as well.
How do I do that again?
When it comes down to the communication in itself?
This should also not cost me a huge amount of consumption
with respect to power because
if I save up a lot
of energy with respect to how the information is gathered,
but I waste a lot of energy in transmitting this information
then I don't have a smart system again information itself,
which comes should use various route.
Protocols which actually require very low memory
and should be very efficient for that matter.
If the information itself needs to be bounced
around different layers going from different segments
of your Echo System,
then it needs to use very less memory
and this itself should be very fast as well as seamless
for that matter.
Now when I come down to each
of these components for that segment,
let's talk about NFC or the near field communication.
Now NFC is actually
a very short-range Wireless communication.
Technology through which usually mobiles interact with each other
or a distance of a few centimeters for that matter.
Now all the type of data can actually be transmitted
between two NFC enabled devices
in seconds by bringing them close to each other.
Now this in turn is actually based on the RFID concept
and it uses a variation
of the magnetic field to communicate data
between two NFC enabled devices.
If again, we go down
into slide specifications and FC usually works The frequency band
of Thirteen point five six megahertz.
But again, this is very similar to high frequency RF.
Id I'm not going to bore you more with respect
to the technical details will talk about the next segment,
which is your RFID and wsn integration for smart objects.
Now again, many a times
what you need to understand is the data
from one single sensor is
actually not useful for monitoring large areas
and complex activities now here
what you're going to use is
that you're going to use various sensor nodes to it.
Interact with each other in this also has to happen wirelessly.
Now the disadvantage
of a non IP technology such as RFID NFC or Bluetooth is
that it's range is very small,
so they cannot be used
in many applications wherein large area needs to be monitored
through many sensor nodes deployed in various locations
for that matter a wsn
or a wireless sensor Network consists of 10.
Mm sensor nodes connected using a wireless technology.
They collect the data about the environment
and communicated to the Gateway to Ice
and relay the information
to the cloud infrastructure over the internet as such now
when I come down
to the iot network protocol for that matter,
usually what you need to understand is
that the IP for protocols themselves can only
be used for communication of close to 20,000 device.
Now again, the internet protocols used by
these devices is something
that's quite a challenge as well because when you look at it,
the predicted amount of devices
that's going to be available by 2020 in The Internet
of Things domain is Close to 40 billion imagine
40 billion devices communicating with each other.
Now if I don't have a smart system or
if I don't have an effective low power system,
then I cannot communicate
or I cannot gather the information from this now
usually are low-power IPv6 is used for these Network
on these communication
which helps you in passing of information from these sensors
onto your processing
or onto your Cloud infrastructure now again,
when I come down to the low energy technology my main,
With respect to communication is always to ensure
that low energy technology is most probably used
in this segment.
We have your Bluetooth low energy,
which is usually referred to as a ble
and this was actually
developed by the Bluetooth special interest group.
Now what you need to understand is
that it actually has a shorter range for communication
and consumes lower energy
as compared to its Computing protocol.
Now the BL a protocol stack is actually quite similar
to the stack used in classic Bluetooth technology,
however it As two parts,
it has a controller and it has a host as well.
Now the physical
and the link layer are implemented in the controller
and the controller is typically an SOC
or a system on chip with a radio for communication.
Now the functionality
of the upper layers again are included in the host and BLS
actually not compatible with classic Bluetooth.
Now, the next is a low-power.
Again, the Wi-Fi Alliance has recently developed a Wi-Fi Halo,
which is based on your IEEE 802.11.
It had standards this in turn consumes,
very less power than compared to your standard.
Wi-Fi devices also has a longer range.
Now this exactly is why it is most suitable for The Internet
of Things applications for that segment.
Now any device
that supports Wi-Fi also supports IP connectivity,
which is very important for an iot application
for that matter now.
The last is ZB ZB
is also based on the IEEE 802.15.4 Station protocol
and is used mostly in personal area networks or pan.
Now again, the range
for zigbee devices
to communicate is very small usually between 10 200 meters
and the details of the network and the application layers
are also specified by zigbee standards
as such unlike the ble the network layer which is part
of the zigbee provides for multi hopping routing the
when I come down to more details about this agree Network.
I have three tabs
which is an ffd full functional device and RF.
Reduce function device and one zigbee coordinator as well.
Now with this.
I just hope you have a simple understanding
of how communication is essential for The Internet
of Things architecture
and the various ways
that you can implement the communication
between the devices as well.
Now the next concept or the next layer with respect
to the iot architecture is the middleware segment.
Now when I come down to the Middle where one
of the key challenges and one of the key issues
that comes into the picture is the interoperability.
Operate ability as well as the program abstraction imagine.
I have 40,000 devices communicating with each other
40,000 devices may not all use the same programming language
or may not pass the information in the same way as well.
I need to build or I need to have something that ensures
that these devices communicate with each other
and there is an abstraction maintained
between the information pass from these as well.
Now if I have multiple devices also
what I need to ensure is
that these devices Independently discoverable
and I can manage each of them today.
I need to be aware.
If one single sensor also breaks down
because the information coming from the sensor is
extremely important as well
when it comes down to scalability.
It is extremely useful
because when I need to grow my ecosystem this middleware
really comes into picture
if I can replace an existing middleware
with something I can help me scale up,
then I don't have to completely V8 my entire ecosystem as well
with respect to it usually When I use
a highly capable middleware,
then it also lets me perform big data analytics
and Implement security and privacy as well
and this in turn usually helps me communicate
with my cloud computing
and also context detection the again
when you come down to the middleware segment,
you need to understand
with respect to the various specifications
of the application.
Which kind of database is it oriented.
What is the semantics it's based on what kind
of events can process
and what kind of service can it process or White ass
but these are some aspects
that you need to keep in mind
while you're selecting your middleware for
Now the last layer is your application lab Now
application is something that really is
what your end user gets or is
what usually maintains
or helps process your information to the best
that's out there.
Now this in turn can be used in different domains.
It can help you achieve different things.
It can help you have a smarter lifestyle it can help
you have a smarter environment your entire home system
can be Managed
with respect to an application your car management
can be done using application.
You can build an entire social life
and entertainment system based on a smart application now,
although the end user usually only looks
at the application layer.
This actually is the front face of your entire architecture.
Now with this.
I hope you at least have gotten an idea
of what the entire skeleton
of your iot architecture comprises of now
what we have discussed here is just the skeleton.
It's always up to the user to add.
Muscles to it and complete it with a skin as
per your requirement Raspberry Pi today has become so common
that you can find it across most households as well today.
It has become one of the most cheapest
and common Computing device
that can be found almost everywhere,
but let's actually go back to understand the ideology
which bought Raspberry Pi into development itself.
Now Raspberry Pi basically
was bought by the Raspberry Pi Foundation to Introduced
or to bring in the information technology back to the schools
where in students can learn
how to program from scratch the growth
of technology today has grown to such a level
that everyone today
has ease of access to do anything on a computer
but back in the early
and late 90s and 2000 for using a computer you needed to know
how to program and
how to work around with respect to it.
So this in turn have to build
a very strong foundation for programming knowledge
And with the growth of UI everything has become so easy
that today you don't need to learn programming to do much.
But at the same time this has made it harder
for people to identify
and understand good programmers from those who are not.
So in order to build a generation
which starts with a very strong programming foundation
The main ideology was to introduce
or take back it to the basics
and make it accessible across every school as well.
Again, as I said,
it was introduced by the Raspberry Pi foundation
in 2012 as watching.
The moving forward what exactly is Raspberry Pi now.
This is one of the questions most of you would have a cross
your mind as well because you might have heard
about Raspberry Pi body might still not have a Clarity.
So let me help you clarify that right away.
Now as per the definition Raspberry Pi basically
is a series of very small single board computers,
which actually have additional features as
Bluetooth Wi-Fi USB capabilities General input Output ports
and so forth now it
basically is a very small low-cost credit card computer
which has actually can be plugged
into any monitor as well as you can include a keyboard
and mouse and it increases the opportunity
for people to explore learn and understand
how to program as well.
Now the latest version
of Raspberry Pi is Raspberry Pi 3,
which was released in February 2016 as well.
Now Raspberry Pi basically is a combination
of raspberry operating And Pike
which basically stands for Python programming language.
But before we move forward,
let me just show you a very simple video
which Raspberry Pi has put out
so that you can understand
the ideology of Raspberry Pi Foundation as well.
This is a Raspberry Pi it's a credit card sized computer
that costs around 25 pounds
designed to teach young people's program
and is capable of doing all kinds
of wonderful things back in the 80s kids
had to learn how to code computer too.
You use them and as a result these kids grew up
with an inbuilt understanding of how computers work.
Now, we need more programmers
than ever before so to deal with this problem.
Some clever people came up
with the Raspberry Pi to reignite the spark.
It runs minutes a free operating system
from an SD card just like the one in your digital camera
and it's powered by USB phone charger.
You just plug in a mouse and the keyboard.
To a TV or Monitor
and you're ready to go in schools.
Not only is best berry pie
a great way to learn programming skills as part of ICT.
There are also dozens
of cross-curricular applications next science and music
and all over the world.
People are experimenting
with Raspberry Pi's and attending raspberry jam events
where people of all ages are learning
what can be done with a Raspberry Pi
since the first Raspberry Pi was ship.
We've seen examples of people using the pipe in a variety
of amazing interesting projects
taking advantage of its size portability cost programmability
and connect ability.
And whether you want to learn to make games build robot
or even teach a bath parachute
with Raspberry Pi the sky's the limit.
So I hope you guys had a great learning experience
with respect to that.
That was basically the ideology of the Raspberry Pi foundation
on introducing Raspberry Pi into the market
as well moving on some of the capabilities
that Raspberry Pi enables you to do is
that it helps you to browse the internet as well as
what complete HD videos on the same device as well.
So all you need to have is a HD supported display
as such now apart
from that even basic operations like making spreadsheets.
Creating words presentation all these can be done
on Raspberry Pi and you have a huge set of games
that are available
which can be played on Raspberry Pi making
it quite interesting
and easy as well for people to enjoy the component as well.
Then you have various add-on capabilities,
like infrared cameras and security system,
which can be built keeping Raspberry Pi
as the core Hardware as well.
Then you can also use many music machines
as well as detection of weather stations,
which we actually had done in our previous session.
On as well.
These are just some of the top capabilities
that I have picked up from the list Raspberry Pi
today has become one of the biggest component
that has enabled users to achieve
and create a lot as well today.
The capability of Raspberry Pi is restricted just
to your imagination whatever you can imagine can be done using
Raspberry Pi given the amount of effort put into that.
Mmm now moving on let's look The Raspberry Pi Hardware
as well before that.
Let me show you
how I would be using a Raspberry Pi as part
of this tutorial session.
So let me just give you a simple overview
of the component as such now what you basically see is
that the Raspberry Pi Hardware.
So let me just switch
over the camera and let me show you the Raspberry Pi now here
what you're seeing is the Raspberry Pi 3 Hardware as such
and this is your processor and system on chip,
which is an adrenal a few P3 processor.
Now two important ports here is the CSI.
Which is the camera serial interface
where you can connect camera directly to the Raspberry Pi
and the DSi Port which is the display serial input Port.
Now, let me just flip this over slightly.
And if you see this is a 2.5 M. M--
micro USB connector.
So your standard mobile charger can be used to charge
the Raspberry Pi
and this is a standard HDMI port for display.
So your standard TVs and monitors
which have an HDMI support can be used to become
a video interface for that.
Then you have an audio jack,
which is used to connect your audio input now,
let me just flip the slightly over and let me zoom out a bit.
Now if you see we have an Ethernet connector
following which there are four USB slots as well.
So when you see here,
there's a 40 pin General input output pin present here.
So this is something
that's quite interesting
and configurable from your Raspberry Pi a software
where you can configure for what each purpose pins can be used
which will be silly little head.
Now the final thing that I want to show you is behind here
when you flip backside,
so there is a micro USB slot present here.
This is mainly to insert your memory card.
And when I say memory card,
I would generally recommend at least a 16 GB memory card.
This is mainly
because the Operating system and itself is about 4 GB
and if you use an AGP,
then what happens is there is very Less storage space
for your operating system to work on as well.
So 16 GB memory card would be really helpful.
And one thing
that you want to see is this is an Evo class,
which is something similar to a class 10 memory card.
So if you get a memory card,
make sure it's at least a Class A Door class 10 memory card
so that you can have high disk read
and write processing now coming back.
Now bow your head let's just skim through the various changes
that has happened over the hardware
of Raspberry Pi now.
We are not going to devote too much time into this
because this is a completely in detail session
how I would be stopping at these slides for 10 seconds.
So if you wish to know more you can pause the video and get
a complete look as well.
talking about the processor the first generation
of Raspberry Pi initially
came with a broad Camby CM 2 8 3 5 SOC
and it basically
was similar to the first generation smartphone chips
and the architecture
that was used also was an armv6 architecture now
the over the years Raspberry Pi 3 has grown a lot
and today it has a capability of 1.2 gigahertz
which basically is because of the a arm cortex a53
64-bit processor it is considered to be 10 times faster
in comparison to Raspberry Pi
wow now I'm talking about the change
in raspberry pi over the years
as you can see here the various models have been listed
and the architecture change
has also been mentioned here as well so in case
if you are interested in Rome or you can pause the video
and take a look at this now
when you come to the memory the first model of Raspberry Pi
came with a 256 MB RAM
and which basically were shared by the GPU
but today with Raspberry Pi Version 2 and 3
you have four times
that you have about 1GB of ram
which again is shared by the GPU as well.
Now the default split was
at hundred and ninety-two MB RAM for the CPU basically,
which was more than enough to play a full HD
that is 1080p video or perform simple 3D operations,
but again, not too complicated operations as well.
Now moving forward
when you look at the networking capabilities in terms
of networking capabilities,
the Model A of Raspberry Pi did not have any such features,
but from model B of version 1 itself,
you had an ethernet port
which was introduced here and from version 3.
You also have Wi-Fi
and Bluetooth capabilities introduced here as well.
Now talking about the peripherals in Raspberry Pi
there are basically four USB ports.
Now, this has been introduced in model B version 1 plus onwards
and today you have a lot more
that you can do with respect to that even audio input ports
and audio output ports have not Over the years
but the on-board storage
has changed a lot with respect director.
when you look at the video capabilities video controllers,
basically here you can watch complete HD videos
but Raspberry Pi does not have a hatch 256 decoding Harbor
but the CPU in itself is way more capable
and helps you in decoding the h26 included videos
through software operations now
in terms of GPU the GPU
in Raspberry Pi 3 runs at a higher clock frequency,
which is about 300
or 400 in comparison to the previous versions
which is at about 250 six megahertz.
Now in terms of video input you have a 15 put CSI connector
that has always been present with the Raspberry Pi
and we output has changed over the years.
You have a HDMI port you have a DSi port
and now you also have a 3.5 mmm trrs Jack as well.
Now in terms of the connector capabilities.
There are 17 pins
of the gpio port switch can be configured as
per your requirements as well.
No, moving forward.
These are the various details with respect
to the general input output pin.
This data has been taken from Wikipedia.
So in case if you're looking for more information,
you can definitely check out wiki space
or the official Raspberry Pi documentation as
well now coming down.
Let's begin the Raspberry Pi installation process here.
let me help you understand the different operating systems
that are available at present.
Okay Raspberry Pi in itself supports.
Has multiple operating systems as such but we will mainly
be working on raspbian.
So these are some of the most popular operating systems
supported on Raspberry Pi
so you have risc OS you have FreeBSD operating system.
You have net BSD operating system Plan 9 is again
from Bell Labs as well as Windows has its own Windows
10 of iot version.
So for this session,
we're not going to go into the Windows 10 will stick
to the core Raspberry Pi operating system
now for downloading the operating system.
You can go on to the original site.
That is Raspberry Pi Dot o-- r--
And there in the downloads tab,
you can download the operating system.
Let me just show it to you.
So this is the Raspberry Pi home page and here if you go on
to the download section,
you can download the operating system.
Now if you are starting off with Raspberry Pi an Internet
of Things trust me.
This is the best place that you can find
a lot of informations with respect to it.
Okay, most people actually
published their details with respect to the projects
that they're working many popular projects
are also available.
You can find a lot of help as well as good information here.
So this is definitely the place to go to if you go on
to the download section here, okay this
I'll show you 2 options you have nodes or you have raspbian.
I would recommend that you go with notes
because this is a complete package with respect
to the different operating systems as such so here again,
you have noobs and Loops like so my recommendation would be
you download notes
and make sure you using
a 32 GB memory card with this would be really helpful
because it gives a lot of memory for your operating system.
So in case if you're going
for a 16gb or below I would recommend you go
with the nope slide,
but make sure you keep the bare minimum of 16 GB in case
if you working with Raspberry Pi but do not mistake me.
When I say use a 16 GB memory card.
You can install it on an 8GB as well.
But again, the operating system has less memory to work.
So at least go
for 16 or higher 32 is what I would recommend.
So once you download this ZIP file,
or you can even download it by a torrent.
Okay, but I would recommend download it as a zip file.
Let me show you the file.
So this is the noobs file.
Let me extract this.
Okay, it may take some time.
It's about a 1.5 GB file.
Okay, the lights were seen as slightly lower in comparison,
but this is something that I would recommend in case
if you're working with Raspberry Pi.
Okay, so I have my noobs folder here.
So what you need to do is
that you need to copy everything inside the nude photos
and then paste it inside the SD card.
Okay, make sure you are not directly copy
pasting the folder that you have extract.
So what happens is if you do that,
it does not actually recognize the operating system as part
of the Raspberry Pi so copy everything
that you've extracted and then directly paste it
inside the SD card.
Now again, this is why I recommend
that you use a high speed memory card
because in case
if you are not using it then
what happens is But it takes a lot
of time with respect to fetching the data.
Now as I had mentioned
if you're going
for a memory card for your Raspberry Pi
you can use something like a 16gb at least
and make sure it has a high transfer speed.
So this in turn will give you a lot of memory area to work
around with as well.
As I would recommend you take something
like a class 10 memory card
that is available in the market today.
So these have a very good read and write speed ratio.
So definitely this is something that you should consider
while you're getting a memory card for your operating system.
Okay now Once you're done copying with this,
let's go on to install this memory card
onto a Raspberry Pi and let's begin the installation process.
Okay, so now we've successfully copied all
that is needed for our operating system.
So safely remove this make sure you rejecting it safely
because sometimes what happens is
if you do not see
if rejected the files get corrupted
before you load it into your Raspberry Pi this
is certain issue with respect to the memory cards.
So just eject this.
So this is my Raspberry Pi and if you actually flip it over.
This is the slot where you have to insert the memory card.
Now, we've copied the noobs folder
into this memory card.
Okay, let me just insert this into this and let's begin
with respect to the installation process.
Let's begin installing this memory card
onto my Raspberry Pi and start with the setup.
So, let me just turn the on my Raspberry Pi.
Okay, so this is a screen.
I'm getting by default.
Now what happens is the installation steps initializes.
So the Raspberry Pi is getting loaded.
Now there are two operating systems
that are present here by default and we want raspbian.
So let me just select raspbian and click
on install option present here.
If you see here it basically is telling me
that it requires 4.5 GPA.
So this is why I
was recommending you to get at least 16 GB
or more because
if I have an 8 GB memory card
if 4.5 GB goes off with the operating system itself,
then there's not much memory left
for me to work around with now.
Let me just click on install.
Just before I do that in case
if you are using a different language,
or if you want to use a different keyboard as well,
you make sure you're specifying that okay.
So there are written language is present here.
So choose the corresponding language as
per your requirement.
Once you selected that description install
and this is just basically going to ask you
whether you want to format your data
and install the operating system on top of this.
So click on yes,
and the installation process has begun now it may take some time.
So I request you to be a bit patient
because this is an Operating system installation process,
so please be a bit patient and hope you have fun mean wire.
So now as you can see the operating system installation
has completed successfully once you hit on okay,
it's going to ask me
whether I want to reboot or it automatically reboot as well.
So yeah, it's automatically rebooting at this point.
Now as you can see the Raspberry Pi operating system
has successfully been installed.
So this is what your Raspberry Pi operating system
would be looking like okay.
So this is raspbian as such so there are
different operating systems that are available today
for you to install that we have discussed already now
that we've installed raspbian on our system.
Let's look at some of the accessories
which can be used with Raspberry Pi now one
of the most popular
and interesting accessory to Raspberry Pi is the sense hat.
Okay, so that basically is a hardware attached on top.
There are various hearts
that are available but censored is the most popular
because you have various onboard sensors present here.
You have a temperature humidity
and pressure sensor present here as well as a gyroscope
and a joystick also present here apart from this.
The reason that it is quite popular is
because it has an 8 cross 8 LED Matrix display
that is present to him.
So let me just switch over
and show you the sense hat component as well.
So here you can see the sensor know how it is
slightly different from the the other accessories is
because it's got an 8 cross Aid LED Matrix present here,
which can be used for displaying various things
and we will also be seeing how you can display this
as well now coming on to the other components here.
Now if you see here,
it's already got multiple sensors here.
It's got an accelerometer
and the gyroscope meter present here.
It's also got we just this part the axe low
and gyrometer present here.
So you can see it's got labeling as well.
Then you have a humidity pressure
and temperature sensor on board with respect to this
and it's quite interesting and useful as well.
Now one of the easiest things with respect to this is
that it can directly be placed on top
of the Raspberry Pi's gpio pins
and thereby making it quite easy to assemble it as well.
So it directly sits on top of the gpio pins as well.
So this is something
which makes the entire Raspberry Pi ecosystem quite easy
and effective one other interesting key point or factor
that makes the sensor quite interesting is
that it's gotten on board joystick as well.
So in case if you are a gamer and you want to try out
the games on Raspberry Pi you can use this choice to catch.
As such now another additional component that most people use
with Raspberry Pi is the camera now in 2013 itself one year
after Raspberry Pi 1 was launched.
It had introduced the Raspberry Pi camera
along with the firmware update as well.
Now the r a spy cam is basically an 8 megapixel camera
and can directly be connected
to the Cs airport present on the Raspberry Pi itself.
Now, it's also very interesting
and can record up to thousand ATP videos as well.
So moving forward.
Let's also look at the infrared camera.
So this is a very interesting thing.
So this was something
that helps you capture video in infrared mode
and is called pine oil.
So again, these components can be bought online
and is one of the most easily
by now the final accessori announce the most interesting
and essential accessory to the Raspberry Pi is
the Gert board.
Basically it is used for educational purposes
and it helps you expand the operations done
using the general input output pins here,
so, Using this you can connect to various LEDs
which is Analog Devices sensors and much more.
This also helps you connect
to Audrey know which is also another DYI Hardware device
which has gained a lot of popularity but in comparison
to Raspberry Pi order,
no is still growing Stitch moving on.
Let's begin with our sensor tutorial
and what we'll be doing is
we'll be exploring five different demos to understand
how the sense had component can be used effectively.
Now the first thing that we'll be doing
is we'll Implementing a very simple code
and we'll be trying to display a certain letter
on top of the sensor.
Okay, so I'm going to display p&d but the value
of that color is going to be generated by random.
Okay, so let me just run you through the code
that's present here.
So the first line is from censored import sense.
So what it basically is doing is
that it's helping you import sense
at and establish a connection to the censored component.
We're going to use time for mainly sleeve function.
Oh and random for generating a random integer.
What I'm doing is
that I'm initializing the censored which is
sense equal to sense
at basically initializes it then what I'm doing is
that I'm generating a random integer
between the range of 0 to 255 now for those of you
who would have guessed why I'm doing this.
Definitely this is
because the RGB value lies in this range,
so it's somewhere between 0 to 255 then
what I'm using is that I'm using a censored function
which is show later
and then I'm specifying which It means to show
and I'm going to specify the color combination.
So this is the RGB values present here.
Okay, so it's going to show the letter e and it's going
to create a random input with respect to that same.
Okay, then it's going to sleep
for one second again generate a new random integer
and then it is going to show D.
So again, it will sleep and then it's going to clear.
So let me just show you this to you practically.
So now what I'm going to do is
that I'm going to connect to my Raspberry Pi.
Using VNC Network.
So it's virtual Network,
which I'm connecting it to because it's not quite easy
for me to record the video
on the Raspberry Pi so I'm going to use VNC server for that
and I'll just give you a simple idea of how you
can connect to VNC server to your Raspberry Pi as well.
Now one essential thing
that if you are connecting to the VNC server,
then you both need to be on the same network.
So what I've done is I have used a hotspot
connected both my Raspberry Pi and my laptop to the Network
so in case you are wondering
how to connect to your Raspberry Pi y remote server,
this is how you do it.
Just go to your settings go to preferences.
You have Raspberry Pi configuration here.
Now in your interfaces make sure that VNC is enable.
Once you've done this then VNC server gets enabled
and onto your system just download VNC server
and VNC viewer and you can connect
your Raspberry Pi quite easily.
So let me just show you the code
which we're going to be executing now,
it's the same that we have seen earlier.
So, let me just make a small modification to this.
So this is awkward again
as we have seen we are first initializing the censored
with sense equal to censored
then we're generating a random integer
and then we showing a letter
e on that so let me just change this.
Let me just set it to 0 and let me just copy this once more
and I'll also show a third combination here as well.
So I'm just generating a random value between 0 to 255
and I'm displaying based on that color.
Letter e d and f okay,
so let me just save this once so let me show you the output
that is going to be displayed on the sense
that as well.
So so let me just execute the program.
Now let me just switch over to the censored
so that you can see the output.
It's a ready green d and a blue f as well.
So this is what So based
on the inputs that I have given it has displayed
a certain letter on the censored LED display as well.
So let's go back to our presentation
and look at the next program that is involved here.
So the next program basically is going to display an image.
Now what it does here is
that it basically is going to display an image
that Gives you a complete idea
of the various color combinations possible
on the sense at as well.
So what I have basically done is
that I have identified
the RGB colors red orange yellow green blue indigo violet
and E stands for empty,
which is null.
Okay and based on this.
I've created a random Matrix here,
but each of these values defines for a pixel of the sensor now
as I have mentioned to you earlier,
this is an Eight cross it led Matrix.
So each of these values
is for one of the individual pixels themself
and with respect to how they start the numbering starts
from left top position.
So accordingly it goes in a row by row, man.
Okay, so let me just show you the output for this as well.
So this is our program and let me execute this
and show it to you.
And now let me just switch over to the Raspberry Pi.
To here you can see the different color combinations
that are present on the Raspberry Pi sensor.
The first row was left completely empty.
The next row has to our values present here.
So this is how it has been defined.
If you notice the code here,
there are two are following by three empty spaces.
And before that.
Also, if you can consider three empty spaces
that is one rule.
So every specific value is pertaining
to one specific row as such now coming back to our presentation.
And so the third one is quite interesting.
What we're basically going to do here is
that we're going to rotate
a letter based on the different orientation of the screen.
So let me show you
how this is done rather than just tell it to you.
So what we basically going to do here is
that we're going to rotate a letter
J on different angles as well.
So we've defined the different angle 0
90 180 270 and these are the various angles
which is going to rotate for.
I'm going to run a for Loop
where it rotates the same on different.
Angles as well.
So let me just show you that so just let me add
since dot here here.
The reason I'm doing that is mainly to ensure
that the sense that is cleared after the rotation process.
So let's execute this.
Let me switch over to the Raspberry Pi
and if you see here A Jay has been displayed
and it's rotating.
Okay, it has stopped.
So let me just rerun this once again.
So what is happening here is
that I'm rotating the letter J by 90 degrees
and it's completing to complete circles on the Raspberry Pi.
Okay, so it's a very simple thing but it's important
that you understand how this is done
because what we're basically doing is
that we are setting the rotation using the sensor.
Okay, and then we're sleeping
at point zero five milliseconds as well.
Again, you can increase the delay here.
You can change the letter here.
You can even change the angle to understand
how it works as well.
So this is something that you should definitely explore
about and get a better understanding with coming down
the next and most basic thing
that you can do.
Using sensor is that you
can measure the temperature pressure and humidity.
So we've already tried to do this
in our previous session as well
where we've measured the temperature the pressure
and the humidity now here I'm just rounding it off
and based on a specific value.
I'm going to ensure
whether the display is going to be red
or green as well.
So let me come back to my senses at let me just open the code
and we will modify this
on the go to get a better understanding.
Let me explain.
In the code once again,
so first I'm establishing a connection to the censored
then I'm running an infinite Loop
where I'm getting
the temperature the pressure the humidity.
I'm rounding it off and if the temperature is about 36,
so this is just a value
that I have set then the background color
should be green
and the color of the text should be complete wide.
So this is a simple modification I have made else
in normal situation
if it is less than 36 degrees then what it should be.
Is that it should have a background color of blue
and the text color should be yellow.
So this is basically to help me identify the different ranges.
Then I am creating a message variable
which is storing the following format
where temperature is equal
to temperature value pressure is equal to pressure value
and humidity is equal to the humidity values.
I'm going to show this message on my sense
at LED display screen.
So let's just see how this works and execute the program.
So let me just execute the program and let
me also switch over to the Raspberry Pi.
So here let's begin with the execution of the code.
So now you can see by default.
It is having a blue background
and the text is actually in yellow.
Okay, so if you would have noticed the temperature is
about 34 degrees Centigrade.
So to this letter
or Scroll once more let's just validate
the value of temperature.
You can also print this into the screen.
You can also send it via an API and much more.
So if you can see,
it's thirty four point two degree Centigrade now
to this what I'm going to do basically is
that I'm just going to introduce a hot water source.
Okay, so I'm just trying to raise the temperature here.
So let me just shift a little bit
and please keep a note on the temperature value.
So the temperature has started Rising.
So it is taking some time.
I think the water has cooled down a bit.
All right, so it's started now the color background color
has changed from blue to green
and the text color has changed from yellow to white as one now.
These can be used in critical measure environments as well.
So let's say you are in a situation or an environment
where you need to have a constant Monitor
and constantly be aware
with respect to the environment change in example,
like space or
any other environment that you're working with.
These are certain things that can really be important
and helpful as well.
So Coming back.
Look at the last program of the sensors tutorial,
which is basically detecting the motion of the sense
that now what I'm basically going to do here is
that I am going to rotate my science at and I'm going
to identify the value of pitch roll and yaw on basically,
these are the orientation with respect to the x
axis y axis and Z axis
and this is just from the orientation of the sense
that as well.
Now this is mainly done using the gyroscope
but to get a better understanding and more precise.
Value will also try
to include and incorporate the accelerometer as well.
So let me come here.
Let me just show you the program.
So this is the program as well.
So let me just stop the execution here.
So as I had mentioned
this is going to run infinite number of times
because the while statement here is indefinite.
So let me just stop this and let me just run
the orientation program
and Let's just see the default values
of pitch yarn and roll first.
So now by default
if you see pictures about zero role is about
96 and Ian is about 0 itself.
Now, let me just switch over to the sense
at and what I'm going to do parallely is
that let me try radiating the value of the sensor as well
or let me try rotating the sensor to give you
a better understanding of how it works simultaneously.
You can also see the change in Pitch Ian and road.
So if you see Here I'm slightly lifting it
and the value of which has risen from zero
to six role also has changed Ian also has changed.
I'm going to try tilting it same pitch roll and yaw
on also has changed.
So I'm just filling it
with respect to various accesses and you can see the change here.
You notice the changes I definitely hope you do.
So now let us actually stop the execution of this program
because this is also an infinite Loop
and to same orientation program.
Let us actually try to incorporate
the accelerometer and understand
how more precise we
can make now instead of just taking the pitch roll and yaw
on I'm here going to directly take the value
of acceleration here.
We have taken the value of orientation and here
we're going to take the Of Aksum duration,
okay how basically
the first is with respect to the gravitational force
that acts on this.
So now let me just show you the code here.
Now again, what you need to understand the difference
between gyro measure and Axle row measure is just
that its senses both the static as
well as Dynamic change with respect to that
but your gyroscope many measures the rotation
of a specific device as such.
Okay, so let me just execute this program as well.
so let me just first begin by clearing the screen
and then we'll execute the code once again,
so let's just execute the acceleration code to get
a better understanding and simultaneously
what I'll do is
that I'll just show you how the change with respect
to the axis is or how you
if you change the Raspberry Pi
how the value will also change so by default
if you can see the value of x is 0
the value of y is also 0 and Z is 1 so now
what To do is
that let me Begin by slightly rotating the Raspberry Pi now
if I change the Raspberry Pi
into a vertical position like this.
Okay, so it's a perfectly vertical position.
But if you notice the value of x it is become minus 1,
okay, why has become 0 and Z has become 0 same time.
If I rotate it in such a manner.
I'm just keeping it on different axis the value of x
becomes plus 1 instead of minus 1 same with respect to Y
if I change it in such a horizontal way it
is minus 1 and if I change it
in such a manner then it becomes plus one.
If you flip it completely over then the value
of Z becomes minus one as well.
So if this is the vertical position then the value
of Z remains one,
I hope this is clear for you guys.
So again, these are all different parameters today
what I have done as part of this is
that I've just help you understand
how you can explore the various parameters
and various components
that are associated
to the Raspberry Pi censored as well.
Now what how you use it
and what you use it for is completely left
you these are just some of the basic things
that you can do using Raspberry Pi
the limitation of Raspberry Pi stops
where your imagination stops.
Okay, now that we've installed raspbian on Raspberry Pi it's
time we begin with the demo for this session.
Now, what we're trying to do is
that we're trying to build a weather detection system
to get the real time weather analysis
when we talked with real term analysis.
It basically is the pressure temperature and humidity.
And what we want to do is
that we want to get a live mobile notification for this.
So for that will be first using censored board
which will help us measure the various metrics
like temperature humidity and pressure.
Iran to a Raspberry Pi then we'll use Raspberry Pi
to transfer this data and display it on the sense
that as well.
So we'll just be displaying the temperature as
of now on the set.
And finally we'll be using insta push API
and Python program through which we can send this notification
across the Internet to our mobile application.
So let's begin this demo part first.
Let me show you what's and satis
and how you can assemble sense at on Raspberry Pi.
So this is my Raspberry Pi unit
and this is That's what I was referring to.
This is sunset boat.
Now if you see this is a simple additional board
that you can add on top of your Raspberry Pi.
Now it's quite simple,
but how it's different is
that in comparison to your Raspberry Pi
there is a neat cross 8 digital LED display present here.
So you can use this
for various different purposes as per your requirement.
Now, it's simply sits on top of the Raspberry Pi.
Okay, just make sure the alignment is correct.
And once you've done with that just push it on top.
And the pins would merge accordingly.
Once you do that you can just place the four screws
across the different ends and tighten it up.
And once you're done with this,
you can integrate and use the censored
for various different purposes.
We will use sensor to measure the temperature the pressure as
well as the humidity across in this room
that is present.
Okay, so this has different sensors present on it
and we'll be using them for today's demo.
So let me just put this up and once it's all set up.
Let's go back
to our demo and let's begin with understanding the programs
before we begin the execution.
So moving on now
that you've understood about Raspberry Pi's
and Saturn V.
We also install raspbian on our Bye,
let's move forward
and start with respect to today's demo part.
So again going back just to remind you.
We trying to create a better control system
wherein we try to measure the temperature the pressure
and the humidity around the sensor as such.
So the first thing we're going to do is I let me just connect
to my Raspberry Pi.
So this is my Raspberry Pi interface.
Let me just show you the program as well.
So I've divided the actual program into three parts
so that it's easier
for you to understand
how this program works as such now,
the first program
that we are going to execute is the sensing environment.
So this is a simple program
that's going to sense the environment variables.
That is the temperature pressure and humidity.
And then it's going to correspondingly display
these values on the censored LED display panel.
Now, let me explain this program to you one by one now firstly we
need to import the He boosts the values on the censored.
So for that we're going to use this line from sense
underscore hat import sense at so this will give me
the corresponding values
from the sensor to my Raspberry Pi interface.
Then I'm also importing type.
The main objective
of time is to help me keep a log of all the values
that are measuring.
Okay, so that will be seeing little ahead.
I'm going to assign the censored values
to a variable known as sense.
Okay, so through this variable.
I'm going to correspondingly relate to all the values coming.
From the sense at okay moving forward we
have written a while loop and this is an infinite
while it's going to continuously
measure the temperature pressure and humidity
and is going to correspondingly be displayed on the sense
that as well.
So let me help you understand
how the temperature humidity and pressure are measured.
So what you need to do to measure the temperature
is used the function sense dot get underscore temperature.
So this function
that is get underscore temperature will give me
the temperature value
measured by the sensor in degree centigrade.
It and hear what I'm basically doing is
that I'm just converting it into fahrenheit.
Okay, so the value
in degree Centigrade into 1 Point 8 plus 32 is just
a Fahrenheit representation of the current temperature.
I'm using a round function to round
of the corresponding value.
I don't need any decimal point values here.
I want a whole number.
So what I'm doing is
that I'm using a round function and once I have the temperature
then I'm going to be storing it inside a temp variable.
We are going to use sense not get humidity
and sense dot get pressure to get both.
The humidity as well as pressure
and store it in humidity and pressure variables are such.
So basically I have all my three variables
that are needed now.
What I'll do is I'll create a string called message.
Okay into which I'm going to store the temperature humidity
and pressure with a specific notation.
So T is going to be equal
to the temperature H is going to be equal to the humidity
and P is going to be equal to the pressure.
Now comes the part
where have to display this value onto my sensor display screen.
Okay, so here I'm going to use the function.
Sense dot show underscore message.
So this is basically a call through which
I can send any message to my sensor display screen.
Now here I am just passing the message with respect
to the temperature humidity
and pressure variable
and then I'm also defining a scroll speed.
This is something that you can play around with
if you want to have a fastest-growing you
can modify it.
I have chosen a 0.08 scroll speed then the other two factors
are the font color and the background color.
Another text color I have set as 200 240.
Tea and 200 now if you can guess these are
basically the RGB values for the corresponding text color.
So this is something that I have said as
per my requirement you can play around as well
as background color is something
that I have set to 0 0 and 0.
So you have complete freedom
to modify this as per your interest.
I would definitely recommend that you try playing around
with this to get a better feel of how it works.
Now what I'm doing is
that I'm putting my system to sleep for four seconds.
This is basically to introduce
a delay between the measurement carried out.
On the sensor now,
if I don't do this
since it's a continuously running infinite loop
it's going to keep measuring at one after the other.
So I want a simple delay between the measurement.
So I'm putting the system to sleep for four seconds.
What I'm doing is that I'm opening a file
called weather dot txt now here.
I am going to create the log into this file.
I'll take the present time and then pass the message as well.
So these both with respect to the present time as
well as the message are going to be stored in form of a law.
Okay, so in case in future
if I want Want to refer to the measurement,
this is something that will be really helpful.
I'm also going to print message on my console.
This is something just for our understanding as well.
We'll be seeing it on different places will see it
on the console will see it
on the sensor as well as we will be seeing it
inside the log file as well.
I'm closing the log
and then I'm putting my system to sleep for 5 seconds.
So these sleep delays are just to ensure
that the consistent values are being measured
in regular interval
and there is no hindrance with respect to Okay.
I hope you guys are clear with this
because I'm going to go on to execute this program.
So let me open my console.
Okay here let me write the command for executing
a Python program and it's very simple.
It's just python followed by the filename.
Now in our case it's sensing environment.
Okay, so let me execute this.
And now if you see the values are being computed
and on the sense
that the values are being shown
as well so you can see here the change with respect to that.
Okay, firstly it showed me all the temperature humidity
and pressure and now it's already come
on the console as well.
Similarly the going to have a simple delay and then you
can Already it showing me the next values on my sensor
and it's going to be stored in a log file.
And then it's going to come onto my console.
So very interesting.
So definitely you can play around with respect to the font.
You can play around with respect to the background color as well
as if you are interested,
you can try bringing different temperature items
near the sensor to see the variation with respect
to that as well.
Let's say if you have a glass of hot water
and you bring it near the sensor
the temperature value will correspondingly change as well.
So this is something that you can really Experiment on
and have a good understanding of how things work.
So let me just close
this program and let's see the log file.
So this is my weather dot txt file.
So I have taken different temperature measure variables.
It's been log from a long time
that we've been trying this out on.
So definitely there are a lot of values here.
So let me just show you the latest value.
So this is a range of values
that I had just tried out some time back.
So all the log all the temperature
and pressure log are being stored here continuously.
Okay when you feel comfortable.
This is the latest log
that we have just created with respect to the three values.
This is the current status as such.
So again, this is something that you can experiment on.
I am just told it because of my future reference as well.
So I hope you guys have got a simple understanding of
how you can connect
to your sense at measure the temperature pressure
and humidity and also display it
on the console as well as on your sex act.
Now coming on
to the second part second part is the slightly Advanced version
of the same program here.
We're trying to do something a little more apart from just
seeing it on the screen.
Now I want to send an email with respect to all the logs
that I have or let us say at a regular interval.
I want to have an email
which notifies me with respect to the present temperature
and the current pressure and humidity.
Now, this is something that you can definitely use
while you're working on a social experiment
as such usually in the Laboratories.
It's important that you always keep Check
on the temperature pressure and humidity.
So this is something that you can try out.
So let me show you the code.
Alright, so here I am just
including something new as well apart from our previous code.
Now if you see our previous code is still present here.
I'm taking the temperature.
I'm taking the pressure humidity storing into a message
and then I'm also printing that message
but apart from that I'm using a few libraries
which are very essential for mailing me this detail.
So for that,
I'm going to use first SMTP Library.
Okay, because your I'm wailing Protocols are
SMTP based protocols.
So these are something that I will be using
in case I need to send a mail with respect to all the details
as such so these are standard protocols
through which I be communicated.
Now coming down with respect
to what Mi Ami is a Miami basically is
an extension or multi-purpose internet mail extension.
Okay through which I can send emails
which support text characters
non text characters audio video images and so forth.
So sending a mail.
Is an essential important Library as such?
Okay moving on forward.
Let me explain you
the code now here we are repeating the same thing.
We are also importing
the time function and then we are establishing a communication
between the sense at and the program.
So here first you need to specify the from address
that is from Coos mail ID you're sending this.
So I have created to test Melodies one is
a durocher test 11 at gmail.com.
So from this address the mail is going to be sent
and the address which is going to be receiving.
This is a deal-breaker.
A Raspberry Pi.
So from this email-id I'm going to send a log
with respect to the data
that is measured from I censored Raspberry Pi.
Okay, then I'm going to use
my Mi Ami multi-part function from here.
I'm going to distribute my mail into multiple parts.
So this is what your Mi
Ami multi-part function will help you to that.
So in my message part the from is going to be the from address
that is from whom it is going the two is going
to be the to address and the subject.
I am defining it as temperature Raspberry Pi so temperature
Then I'm measuring all the temperature as
well as the pressure
and humidity and storing it inside a message variable.
So here what I'm doing is
that I'm basically going to attach the message
in a plane format to my message variable,
which is going to be the details
of the temperature and pressure.
Now, let me come down
and help you understand this part of the code.
I'm going to establish a connection to my server.
So I'm going to use your server variable
where and I'm establishing an SMTP protocol do Google.
That is your or smtp.gmail.com sensor.
This is a standard mail protocol SMTP for Gmail.
It is smtp.gmail.com other meals you can just replace
the corresponding me and then you have the port number.
So again with respect to SMTP.
This is a standard Port
that you would be using for communication.
That is 25.
Okay, then I'm going to start my server.
So that is server dot start TLS.
Okay, once I start this
then I'm going to specify the login credentials.
This is basically for authentication Factor.
So server DOT log
in you have to provide the Username and password.
So my from address is my username and my editor
a kpi is the password for this email-id.
Okay once have specified this then what I'm doing is
that I'm converting the message as a string.
Okay, sometimes what happens is
while you are trying to send this.
It may not get sent
as such because it has values also associated
with it some directly converting it completely to a string.
Okay, and then storing it inside a variable known as text.
Then I'm calling the function sin.
Email through which I'm specifying from which address
is going to which address it should go and the text
which is part of it.
I'm quitting the connection between the server.
I hope you've understood till here with respect
to the program now,
it's time we execute this program.
Okay, so let me call python email dot p y
So now what it has done now, it's connecting to my server.
That's the delay here.
Okay, its measured the temperature its measured
the humidity as well as measured the pressure
and then it's going to send the mail.
So let me show you this meal ideas were so
as you can see here.
I've already received a mail
from anyway car test lab it's called temp rasp
that we had set
and it's given me the corresponding value
of temperature humidity and pressure.
Uh sure so this is what I was referring for
so you can do this across to let me show you my sent box as well.
Now if you see a new Sandbox,
I can actually see
that this male has been said so there are two ways
for me to verify this as well.
So this is something that is really helpful
for me now coming back
to my Raspberry Pi let us now see the final program
in which we want to incorporate this
and do a little more.
So let me explain you the code little more better here.
There are few things do here.
So first you have pikul
and Jason being imported now pikul, basically,
Is going to help you establish a connection between your API.
So we're going to use an API
through which I'm going to pass my data.
So for that I'm including bikers here apart
from that you have string IO,
which is a standard string input output management package
and you have your our PI dot gpio.
So that is Raspberry Pi's General input output.
I am just referring to it as gpio.
Okay, so moving forward whenever you see gpio it
is the general input output from the Raspberry Pi
and then you have the similar function you have sense.
Go hat from censored and time function
and I'm establishing a connection here
as we have done earlier between my sensor
and my application
and I am clearing the screen on sensor.
What happens is sometimes
if you've executed a program before
and you've stopped the execution of the program then
what happens is the display
will still have the remaining data present on it.
It stays stuck on the sensor.
So before we move on to with respect to our program,
we will clear the data out.
Okay, so that's what sense dot cleared us now here.
Two things that are present here hot and cold.
Okay now why they're being used I'll come back
to that a little ahead.
Okay apart from that.
There's also a new variable known as push message.
So we'll be talking about this also
when we come down later
and you'll understand what the push message is used for.
Let's try to understand the code
which will help me display numbers on my sensor.
Now, you might be wondering
if I have already displayed number and data on my sensor.
Why do I need a separate part of the score
because here we're trying to do something different.
And from what we have already done,
so here firstly what we're doing is that we're setting an offset
from the left and the top.
Let me go back to my presentation here.
Now here this is
the standard program that we are talking about.
But let's see.
This is what we need.
So this is what we're going to explode ahead.
This is my actual sense at okay.
This is a neat cross 8 LED display function.
So here what I'm going to do that I'm going to eliminate
the First Column
and the first two rows from the top.
Okay, so this We will give me
a 6 cross 7 Matrix area remaining with me.
Okay, this is
where I'm going to do all my operations from now onwards.
So this is something interesting and I'll help you understand why
I am taking this region.
Now before we move on let's take a simple look with respect
to the core present here.
Now before I do that,
let me try to help you understand why I have taken
a 6 cross 7 Matrix area.
This was the remaining area.
I have divided this remaining area into two parts.
Okay, I'm just going to give a gap of one column
between these two
and the left hand side is going to represent the temperature
or the value in tens place
and the right hand side segment is going to give me the value
in once place.
So this basically is a 3 cross 5 Matrix where
and I have 15 positions to play around with boom.
But this number again,
this is 15 areas that I can play around
with in a 3 cross Phi Matrix.
Now, let's go back to our code now.
Let me help you understand how it works now.
I have basically 10 numbers with me.
So each one is going to have a specific way of representing
in a 3 cross five Matrix.
So that's what I have written here
in this number Matrix as such.
So each of the line is a representation
of a corresponding number in a 3 cross 5 Matrix
and this one and zero basically is a configuration
for the LED to be either turned on or turned off.
So normally when we write 0 the first line
will always be full.
The first three numbers are one.
Okay, then you have 1 0 1.
Okay again 1 0
1 1 0 1 and my last three numbers will be again one so as
and when you represent zero in a normal form,
this is how you do that
so it may not be so clear to you right now.
So what I would recommend is
before you try to understand
how each of the numbers are displayed set an offset
on your sensor there try playing around
with respect to different values to understand
how you can represent each
of the numbers once Made two or three mistakes,
then you'll get a clear-cut understanding of how each
of the numbers can be displayed.
This is for a 3 cross Phi Matrix tomorrow.
You want to try it across the across it you can do
that as well.
So definitely make sure to try
out make mistakes only then will you learn?
So each of the line is a representation for a digit
in a 3 cross Phi Matrix.
Now, let's try to understand
how we can display a single digit for that.
I'm going to define a function called show digit, okay.
So this is the function it takes a value as an input.
It takes a value for x
d OK XD is the x-coordinate for where the digit
has to be present yd is the again the y-coordinate as
to where the digit has to be represented
and the last is a simple RGB value present here.
Now first thing what I'm going to understand is
that I'm going to compute the offset position.
Why do I need to compute an offset?
Because each of the numbers are present
in different rows of the call.
So I Need to understand which is the present number
and which value do I need so for that
what I'll do is the incoming value into 15 will always put me
at the start of that room.
Let's say the value is 3, okay.
So 3 into 15 tells me
that I need to move 45 positions.
So as I said each row has 15 so 15.
Okay, then I have 30 in the next row.
Okay, and once I'm done with the 45th transfer then I'm here.
This is the standard representation for three.
3 so I have this complete row at my disposal presently.
I am pointing to the start of three value.
So this is something important to remember.
So this is why we are Computing an offset
by multiplying the value in 250.
So I have the complete access to this row.
Okay now we'll try to execute a
for Loop through which I'll place these values
into the different parts of the LED display.
Now see I have three cross 15 area.
So I need to identify in which area should
which Look up that is which led should be turned on.
I have three rows and 5 columns.
So I need to identify this.
Let's go back.
The first thing
that I'm going to do is that I'm going to compute x
t OK XD basically is going to be the value of p modulo 3.
This basically is going to give me value of 0 1 or 2.
So if you go back to our presentation,
it's either going to start from this 0th position
or it is going to be
in the first position or in the second position.
Okay, similarly in the left hand side.
Also, it could be this 0th position first position
or second position.
So basically we are dividing this that's
what you need to understand.
Okay coming back.
Let me just remove this.
I'm going to compute my y
of T by have to basically is to help me understand
which value should I take from this complete row,
so this will basically start from zero and go all the way
till 14 as such.
Okay, so it will basically represent which column value
should I take So I hope you understand
from this which column value should I keep taking
for my next value.
Once I have this then
what I'll do is I am going to call
the sense dot set pixel Rumba how we had called sense -
roh message so there
and we had sent a complete message.
Now, what we're doing is that we just sent to
each of the pixels individually as such.
Okay, so we're going to use the x coordinate.
Okay, which is going to be my x t plus XD.
We'll Define X.
Still it'll add but just keep this in mind XT
plus XD is going to give me the x coordinate y t
+ yd is going to give me the y coordinate
and then basically my RGB number comes so here
I have just done a multiplication of P into R.
So whichever I want I'll just convert it accordingly.
Now comes the choice of
when you have to display two digit number.
So instead of going back to the same function.
F defined a new function,
which is called show number
now show number is The original function
that will be caught
because the temperature
measured is most often a two digit number.
So this is where the actual code was going to start from.
So number takes four values.
It takes a variable called
while which is the present temperature.
I have my RGB value as well as I'm going to begin the function
here firstly I'll begin
by taking the absolute value of the given input.
Okay, when I say absolute value,
I am basically trying to identify the number present
in the tens place.
So this is what absolute value
will be whatever the digit is present in the tens place.
I'm going to store it in my abs underscore value
so that I'm just providing it here
to the tens place then let me also identify
what is in units place and this is simple mathematical operation
where I divide the number by 10,
I'm going to get a remainder
and that's what I want.
So I'm going to use a modular douche.
So my absolute value divided
by 10 is going to give me the unit's place as well.
Now, what I'll do is I'll run.
If condition so here what I'm going to do
if the value is greater
than 9 then I'm going to call the show digit function
which I had defined earlier
and I'm going to pass the tents value.
Okay, the value present in the tens place.
So and then I'm going to also pass the XD n yd.
In this case x d + yd is going to be the offset left
and offset top why let me help you understand here.
My offset top is going to be with respect to this position.
It's going to start from here.
Okay, so it will point to the third row.
Okay my offset.
Left will point to Second column here.
So I know that this is where my tens place has to come.
So that's why I'm passing it here.
I also am going to pass the standard RGB value
that I have got input here then for a second time.
I'm going to call the show digit function where and I
will pass the unit's place,
but with an offset of additional four spaces.
So this coming back to our segmentation.
This is going to be four positions from our left.
So offset left is going to give me the first place but offset,
Plus four is going to be the start place
where I have defined for my units place
when I say from top it's worth going to be the same
because I'm not separating with respect to different levels.
So I'm just going to change with respect to my offset left.
So that's the only difference present here now coming down.
We are Computing the basic temperature the humidity
and pressure and then storing it
into a message string now comes the place
where I need to do my actual implementation now
if you remember our problem statement,
We have to send the pressure temperature
and humidity as a notification on our mobile device.
Okay, so for that I'm going to use in stop push
which is an application through which I can send
notifications across my mobile.
So my python application
that is the final application will communicate to install push
and that will in turn communicate
to my mobile application
that on which I have configured it.
So the notification will be received
on my mobile application now coming down.
Me remind you again why we are using this
in a real world scenario.
This is something that is being used by NASA.
Okay, they're they're using it to identify
if the exterior temperature is falling between a specific range
or even let's say
if there's a change in the pressure inside the cabin
or if the humidity is too high,
so all this can be measured
and you can get notified with respect to any change
that you want.
Okay now coming back to our program.
This is why I have defined a range of cold and hot
If it falls below 37 degrees,
I want a notification if it goes beyond 40,
I want a notification.
So this is my range by value.
It should either be only 38 or 39.
So this is why I am using cold and hot variables now.
Let me help you understand
how the in stock push application is working for that.
Let me open my browser and show you how you
can configure in stock push for your Raspberry Pi application.
So this is my insta push homepage.
Okay now first.
Seeing what you need to do is
that you need to begin by creating a user ID credential
here and it is very important.
When you logging into your application,
you use the same credentials.
So make sure you do not lose this
because it's very important only
if you use the same credential will you get
this notification so remember
that so you have an option to sign up for free as well?
All you need to do is provide your username provide
your email address and then specify a password now,
let me just log in.
Okay, so I'm just logged in.
Okay now here you can see there's already a timeline
because I have already configured this application.
Let me help you understand
how you can do this now in my application.
I already have a temp notify application.
Okay, which will be using as part of our understanding.
Okay, firstly let me click on ADD application now
once I do this I need to specify a name.
So let me just call it sample.
Once I click on Sample
once I press add application sample gets created
now it is asking me to add event here.
So click on add event.
So let me call this temp rasp.
Okay, and then tracker would be message.
Make sure you create a tab here after you specify whatever it is
that you specify and here push message will be message.
So make sure it's present inside curly braces.
What are we are specifying here.
Once this is done just click
on add event and this event is going to get added.
Okay, so the event has been added now it's time.
I helped you understand why I had specified message
there so rumor let me go back.
To my code.
Remember we had defined something known as push message.
So this is why I have defined message here.
So this is
what is going to be sent between my final program application
and my insta push application.
So this is why we had defined this variable earlier as well.
Okay now coming down with respect to this.
Let me go back to my insta push and let me help you understand.
What all do you need before you move ahead?
Okay, just go to the basic info
Tab and here there are two things that you need.
First you need your application ID
and then you need the application secret.
So this is very similar to how you have a user ID and password.
So this is what you're going to use in case you're working
with an application.
So make sure you note this application ID
and the corresponding application password.
Now if you come back to my program you can already
see I have mentioned the application ID as
well as the application secret
and here the push event is to my temp notify.
So this was the previous event that was already set.
So I will be reviewing.
Bring to that as well.
Now, what you need to do is
that you need to use Curl to post whatever data
that you have to the insta push API.
So for that you're going to use biker dot curl function.
Okay, and this in turn will help you communicate
between your application and insta Porsche.
So all the communication is going to be
through a variable called C. Now C dot set up.
Okay here what I am going to specify is
that I'm going to specify the URL first, okay.
The URL is going to be
HTTP colon slash slash a pi dot insta pushed IM /
version 1 / post.
There's also another alternative URL which is
HTTP colon slash slash a pi dot insta pushed IM /
post itself now in case
the other is not working you can use this or vice versa.
Okay, moving forward.
I need to set up the customer headers basically
for my authentication and content type specification.
So for that you're going to use the command C dot set of forward
by C dot HTTP header.
Then I'm going to specify x -
install push - a pi D plus my app ID,
which I have specified earlier.
So this will help me identify to which up.
This has to be pushed.
The next is going to be x - insta push - app secret.
So basically the app secret your your password in this case.
Okay, then comes the content type.
That is what What type of content I go to pass
so this is going to be application dot Json.
So I'm basically going to pass a Json file to my API.
So I hope you guys are clear till here.
Now what I'm going to do is
that I'm going to define the function
through which the message is going to be passed.
So here what I'm going to do first is
that I'm going to use a dictionary structure
for passing the data as Json in my post function.
So Jason -
field is going to create a dictionary
and in through that I'm going to send this data.
Now what I have to do is
that I have to specify the field values.
So first comes the event, okay,
which is basically what event I need to relate
to then comes my tracker.
I'm not specified any tracker as such then comes my message
where and I'm going to pass the push message push message
basically is the temperature the pressure
and the humidity as such now
if you want you can print this
but I am not going to print it here.
I'm going to use Json dot dump to make a Json file
and going to assign it to post Fields variable.
So post field is the variable
which I am going to pass to my APA.
Okay next to send your Json file
with post use the following command C dot set-top.
Okay inside which you're going to specify CDOT post field
and you're going to pass this post field,
which is the Json file
as such then if you wish to capture the response,
then you can capture it inside a buffer.
So for that I am also going to use a buffer to write operation
and this can Done with the following command C dot
set up inside which I'm going to write C dot right function
and buffer, right?
That is the right back has to be into my buffer.
Now if you want to be updated
whether the post has been sent then you
can use the following command
that is C dot set top followed by C of C were Burrows.
So this will make sure
that I am getting posted on my terminal with respect
to the communication finally comes our operation
of checking the temperature.
This is very similar to what we have.
I've done earlier
where we are running an infinite Loop.
I'm measuring my temperature in degree Centigrade.
I'm measuring my humidity measuring my pressure
storing this value inside a message variable
and then putting it to sleep simultaneously.
I am also writing into a log file
and this is going to be stored with respect
to the present time.
Okay, so till here I hope you guys are clear
now comes the part where I have identified my temperature.
I'm just making sure it's an integer
and then I'm going to call my show number function.
But if we had defined a function
based on which it is going to be displayed
on my Raspberry Pi so this is a call to that function.
Okay, once I have done with this,
I'm going to store it into temp 1 then I will make sure
that I am writing it into my file and then
comes the interesting part
if my present temperature is either greater than or equal
to the hot message
or if it is lesser than or equal to a cold temperature
that we have defined rumor the two variables.
We had defined earlier.
This is where they are being used.
Okay, the push message will start with either
if it's hot or if it's code
following that would be the present values.
Okay, the pressure the temperature and the humidity.
Okay, then what I'm doing is
that I'm going to pass this push message to my P function
that I have just defined.
So basically it will first convert the push message
into a Json data
and then it will pass it through the communication.
So this is what is happening here.
Same thing will happen in case it is the temperature Falls
below the cold rain.
Okay, then I'm going to create a Json file
and then call CDOT perform.
So this basically will initiate the curl operation
to start finally to capture the response from the server.
You can actually use the buffer rage.
So with this we have come to a conclusion.
Let me just show you the final part of this.
Okay, so make sure
that you're closing the communication through curl.
So you see door closed.
This will ensure
that the communication done through curl is closed as
well as you ensure
that the General purpose input output is cleaned up
so that new values are being taken.
So now let's execute the final program.
That's python final program dot P by okay.
Now as you see on the Raspberry Pi it showing me
that it's presently 35 degrees Centigrade, okay.
Okay, I've started getting notifications on my phone.
Let me just share this phone screen with you.
Okay, and you can see there's a variation with respect
to the temperature shown on the Raspberry Pi as well.
Okay, let me show you first my phone screen.
If you see here
it's actually showing multiple notifications being generated.
Okay, it's showing me that it's cold presently.
And here's the complete list of the temperature notifications.
So I'm getting a constant notification with respect
to the change in temperature.
So you can see it's continuously being Generated here as well.
So this is something that is really helpful
when you're working around with respect
to a real-time scenario.
So like I said NASA extensively uses this
for their own purposes
of measuring the temperature pressure both
in their scientific research area as well as the shuttles
and space stations that the user.
So with this we come to a conclusion
of our demo session Raspberry Pi has become the heart.
Of The Internet of Things domain
and camera is one of the most interesting modules
that you can add onto this interesting Hardware as well.
Now, let's begin by exploring the pie camera for that matter.
Now the pie camera was one
of the best additions to the Raspberry Pi component
because this module has helped the users to use the perspective
of camera into one of the smallest
and the most
effective combination of the internet of things.
Now the main objective
of the by camera module is to help you capture images.
It's capture videos time-lapses even slow motions as well.
Now apart from this the pie camera also helps
you capture videos in full HD at 30 frames HD at 60 frames
and even Vijay videos at 90 frames as well.
Now there are two versions of my camera that are out there.
Now the latest version being the camera module version 2,
which was introduced in 2060 now,
although there's not much of a difference
between both these cameras.
There has been a slight increase
in the resolution wherein you had five megapixels
for the first module you have a
It's not and even the sensor on board has been swapped out
where in there was omnivision for the first version now,
it has been replaced by a Sony sensor as well.
Now talking about the by camera.
You need to be quite careful
while you're working out with the by camera.
So let me help you understand
how you can set up by camera with your Raspberry Pi as well.
Now, there are five different stages on setting up by camera
will be looking at each one of them one by one first.
Let me help you understand how to connect your pie camera
to the Raspberry Pi now this Is very important
because we've used three camera modules
and we managed to burn out two of them.
So please be careful
because this is a very delicate ribbon
and this is also a very delicate module
as such so let me help you understand
how you can attach the CSI cable to the Raspberry Pi
and then I'll also help you understand.
Once you've done this
how to enable the camera as part of your Raspberry Pi as well.
So this is my Raspberry Pi camera,
and this is the version 2 of the camera now
if you notice this is the camera that you can see
and this is something that's really difficult.
It gets a piece be careful.
Now one thing
that I really want you to notice here is the connector here.
So this is called The Sunny Side Up and this is called the silver
and now you need to be really careful
when you're plugging this so,
let me just bring in my Raspberry Pi here as well.
So here we have our Raspberry Pi 3,
and I'll just show you how to connect this.
There are mainly two precautions that you really need to consider
while you're working with the Raspberry Pi camera.
One thing is just please ensure
that the Raspberry Pi is Switched Off or disconnected
before you connect the Raspberry Pi.
Camera as well.
The this actually leads
to a high chance of blowing up your camera.
We've already successfully managed to do that once so,
please ensure firstly
that the Raspberry Pi is Switched Off and also
that the connection is correct.
If you notice the silver side present here,
this should be facing the HDMI port
that is present here.
Now in order to connect this let me just slightly push it off
and this slot needs to be slightly raised up.
You insert it like this.
Please be very careful.
Once you've successfully inserted it then just push
down the hinge as well.
This will lock it.
So make sure the silver side is towards the HDMI
and the Sunnyside is to your 3.5.
Mm Jack side as well.
It's recommended that you get a case wherein you can also
support the camera
because it's slightly challenging because there are
rubber in itself is delicate.
So when you get a case,
which has the camera support, it will be really useful
to you as well.
So it is a very delicate items.
So please be careful while you're working.
Thing with the Raspberry Pi camera module moving on.
Let's look at how to go into the interface and enable
the Raspberry Pi camera module for your Raspberry Pi as well.
So now that we have successfully connected
to our Raspberry Pi let me show you
how to connect or enable the Raspberry Pi camera
on your Raspberry Pi as well.
Now, what I have done is
that I have established a remote connection
between my Raspberry Pi
and my system using VNC viewer as well.
So this makes it quite easy for me to show you
what I'm doing on my Raspberry Pi.
So once you have successfully connected and turn down
your Raspberry Pi you can go into the menu
and then go to the preference section here going.
To the Raspberry Pi configuration.
And what you need to do is go into the interface section here.
Once you're here make sure
that you have enabled the camera option as well by default.
This would be disabled.
I have any able most of these for different purposes
so you can just enable the camera option as well.
Once you're done with this then we'll go on to the next stage,
which is understanding
how you can capture images from the Raspberry Pi camera
and how to capture video from Raspberry Pi camera
as well now rasp eyes still is actually a shell command.
Which lets you Is the camera module
and capture an image now,
the command for capturing an image is rasp.
I still -
oh and name of the image that you want to store it as now -
oh is basically to open the camera
and capture the image and at the same time
if you want to rotate the image vertically or horizontally,
you just need to pass the parameter - VF or -
Hatcher now both of this will either flip it vertically
or flip it horizontally and when you pass both of them,
it will completely flip it around as
well now apart from this
if you wish to capture a video
from the Raspberry Pi you can use the command
r a spy with doing this will help you
again capture the video from the camera module.
Now, this is something that gets stored by default as
a h.264 video as well.
If you wish to convert this you can use the following command,
which is sudo apt-get install -
why g-pack now?
This video will actually help you install MP4 box
onto your machine
and help you convert your h.264 videos
into MP4 format as well.
Now once you have it in MP4 format then Quite
easy to play this video and check it out as well.
if you want to run it for a fixed duration,
then what you can do is that you can also pass
the duration as part of the parameters
while you're specifying a spy with as well.
Now one thing that you need to keep in mind
while you're doing this is
that the timeframe
that you're passing here is in milliseconds.
So please be careful while you're doing this now,
although I am specifying 10,000.
It's only for 10 seconds
that the video is going to be captured as well.
Now, let me help you understand how you can do all this.
By using a python function rather than a shell command
as well for that.
What you need to do is
that you need to install a package called by camera.
Once you've done this then you can easily access
or you can easily perform all the operations as part
of your Python program using the pike Ram module as well.
Now, what you need to do is
that first you need to update all the packages that you want.
Then you need to install