0:00
all right so we are live hi everyone welcome back to c-sharp corner live show i'm your host
0:11
stephan simon and i'm back with a new show i mean we had this show in the past we called it
0:18
ebook launch but we have now renamed it to product showcase uh this show would be dedicated where we
0:25
talk about a particular product. In today's episode, we're going to talk about a very interesting
0:31
product that comes from the IoT ecosystem and that is Arduino sensor gate based. So if you are
0:38
someone who are joining us for the very first time, we do C-sharponer live shows every day at 10 a.m
0:45
Eastern. On Mondays, we have Azure AI show where I myself talk about the entire ecosystem of Azure
0:52
related to data science, AI and ML. On Tuesday, we have Coffee with Pros
0:57
where we bring guests and do a little chit-chat about what they do in the field of IT industry
1:02
and maybe kind of technical and kind of non-technical. Then on Wednesday, we have C Sharp on our MEP show
1:09
where we feature one of our community leaders and talk about their journey in the field of community
1:15
followed by a technical session. Then on Thursday, we have Ask Me Anything show
1:20
followed by Friday Growth Mindset, Saturday Rocking the Code World and Sunday Sometimes
1:26
Video Virtual Conferences too. So if you're someone who's joining us right now, I see many
1:31
people joining. Welcome back everyone. Today we're gonna look at very interesting stuff and let me go
1:37
ahead and put it to the screen. This one, okay. So today we are going to talk about this kit and this
1:45
This kit was sent to me by Acid which partnered with Arduino to go ahead and create a really
1:52
amazing IoT sensor board that removes all the hassle of jumper wires and everything that
1:59
you usually do. So if you are someone who comes from the IoT background, let me know in the comment section
2:05
below and let me know what kind of IoT board do you use
2:09
and in this video let us go ahead and actually see what Arduino sensor kit is. Now think of it
2:16
in this way even before I go ahead and tell what is inside there. Usually what happens is if you
2:23
have an IoT board for instance if you have an Arduino or a Raspberry Pi what you do you go ahead
2:30
take a bunch of jumper wires then you have a breadboard then you connect everything to each
2:35
other then you plug it and then you start working on it so by the time you are with your projects
2:41
done you have your mini wires with you and things kind of may get very complicated okay so but what
2:48
happens in this really fascinating Arduino sensor kit base that you do not need even a single jumper
2:55
wire let me just go ahead and see see okay so this is the this is the box that that Arduino
3:03
with partnership with seed that they have sent us so you can see it says Arduino sensor kit
3:08
it is sent by c now if i check in the bank it says it is a plug and play system to get started
3:15
with electronics and programming build drilling projects and all that stuff so one thing that
3:21
uh i know you cannot read but it is written over here somewhere over here okay it is clearly
3:28
written over here that Arduino Uno is not included which means that this kit does not contain Arduino
3:38
Uno and it is just a sensor kit okay now in upset let's go ahead and open it and even before I go
3:46
ahead and look at this if you just go ahead they have given some of the resources and they have
3:51
said that share your experience using hashtag Arduino if you want you can go ahead and do that
3:57
plus you can find more about rdno that is arduino at arduino.cc that is their official website okay
4:03
so uh this is uh this is the iot code that we have now i'm going to remove it uh and see what else in
4:09
this box so we have some wires uh you are probably not going to need it because uh these wires you
4:15
see uh you can go ahead and connect more with them but i don't think so you're if you want to add any
4:22
more sensors only then you will need it but i think this this thing has pretty pretty good amount
4:28
of sensors okay let's go ahead and quickly see uh what are the sensors that we have over here
4:35
so uh if you if you think of this uh kit uh this it actually has 10 sensors okay but before i go
4:43
and talk about sensors one thing that i really like is if you go ahead and actually see a little
4:48
carefully this side they have all the uh scale okay over here they have a scale in centimeter
4:55
and in the background they have a scale that is in in the inches so that that is something that
5:01
really took my intention that this is something very cool and maybe handy if you go ahead
5:07
and use it and everyone who's joining uh drop your location for where you're joining in the comments
5:13
and join the conversation with other guys let me know which location you're in joining and it will
5:19
be pretty interesting if you have any question related to arduino or the sensor kit base i'll
5:23
be more than happy to answer so uh this is the audio sensitive base you can see the first sensor
5:30
that you have is the led sensor that is over here now this led sensor is a light emitting diode
5:36
very simple now this is actually connected to d6 now what you see actually over here this is
5:42
your grove sensor kit okay we have some comments coming in okay uh hi pascal uh thank you so much
5:49
for joining are you joining from noida uh thank you so much and uh this is this is the uh led
5:56
kit that we have this is a simple light emitting tile that you would actually use it to next we have
6:03
this okay the next over here we have is the buzzer you know buzzer if you go ahead and give it some
6:11
values it's gonna make some sound and then uh the next one that you have over here is your oled screen
6:18
it is of 0.96 inch so you can go ahead and depending you can fix your uh starting axis
6:27
your ending axis you can invert your text and anything that you want to go ahead you can just
6:33
display anything over here okay apart from that you have the fourth sensor i won't say these are
6:38
actually sensor but i would say these are rather the components right uh this one is your
6:44
push button okay this is your push button and to the next you will find this is your potentiometer Now you can actually use potentiometer One of the benefits that I find is I going to use this wire
7:02
but I'm going to use this wire very soon and I'll tell you how you can take the benefit of these wires and connect to each other
7:09
On the right hand side, we have another sensor that is your light sensor
7:14
Now this actually detects the light intensity and gives you some values
7:19
And depending upon those values, you may trigger one of these sensors or any other thing that you want to do
7:25
Now over here, just like we have a light sensor over here, this is our sound sensor
7:30
This detects the noise in your environment. And again, you can go ahead and create some projects depending upon what kind of noises
7:40
are in your background, you want to trigger something and all. Now this, if you come from an IoT background, this is pretty self, you can definitely recognize this
7:50
This is your temperature and humidity sensor. This gives you the current temperature and humidity values in your current environment
7:59
Very useful, very handy. you can always go ahead and use this one. Apart from that the last two sensors that we have
8:07
the first one is the second last is the air pressure sensor and the last one is the
8:13
acceleration. Now this actually tells how fast your device is moving. So this is a pretty cool
8:23
sensor. These are all 10 sensors that we have but the question is how do you go ahead and use it
8:31
because if you look at the background behind the IOT board there is no Arduino
8:37
right you just cannot find any Arduino so what you need to do is I have this
8:42
Arduino Uno with me over here okay what I'll do these pins okay these all these
8:48
places right all digital og pins they actually go over here now I just
8:54
place it simply and press it perfect so you now see your arduino uno is connected to the sensor board
9:07
uh pretty fancy right that's it so now your arduino is actually connected to all the sensors
9:13
that you have in the board so no jumper wise needed no breadboard needed no hassle and your
9:20
one Arduino is now connected to all the 10 components that Arduino sensor kit has
9:27
Now you might know since this Arduino is connected to this Arduino sensor kit
9:31
all those pins, digital pins and og pins, they can now be accessed using these
9:38
Right? They can now be accessed using these. You also have A3, A2, A1 and A0. You also have one I2C
9:45
I think you have how many one two three four five six seven seven a digital one
9:52
UART pin and pretty and very handy this switch that allows you to change
9:59
between three volts and five volts. Now before I go ahead I did tell you that
10:05
these wires can come a little handy for instance if you ever work in the in the
10:12
sound with the sound sensor you might know that there is a potentiometer that
10:18
allows you to go ahead and manage the sensitivity of a sound sensor but here
10:22
there are no potentiometers what you can do is you can take the advantage of
10:28
existing potentiometer that we have over here and connect this so how I can do
10:33
that I'll simply go ahead and take this cable that I got it from the box I'm
10:38
gonna put it over here and then i will plug this like this over over oops over here okay
10:50
so you now see your potentiometer is connected to sound sensor and you can now change the sensitivity
10:59
sensitivity with this potentiometer it's pretty handy right i really love this so what i'm gonna
11:06
do now so i'm gonna take the arduino cable that is connected to my system and this one okay and
11:17
i'm going to power my arduino i'm going to connect it okay voila you see uh the moment i connected
11:29
I have Arduino. Okay, so it has already some things running up. Okay, so it already had some
11:38
program running up. Okay, so you can already see the moment I connected Arduino with the power
11:44
there's a small green LED that grows, that glows. Okay, and there's already a program running
11:49
That's why you can also see the LCD is displaying some value. Now, let's move it and see how you
11:55
actually go ahead and set up so for that instance i'm going to share my screen
12:04
okay so you can see right now let me add it perfect so right now i am at arduino.cc
12:10
slash en slash software i'm gonna drop it into the comments so you guys can go ahead and download it
12:17
now over here i'm going to download the windows zip since i'm on windows i need to go ahead and
12:24
download the Arduino software that is needed. As you can see over here it's getting downloaded
12:33
It might take a little while and by the time it downloads what we will do is we will go ahead
12:40
and look at one of the projects that I'm going to do
12:44
we will stop the mic you will hear you with echo okay i mean i don't get it if i stop one of the
12:54
mic okay you guys are hearing the echo okay that's sad okay thank you so much i hope i mean let me
13:02
know if this solves the purpose okay i just muted one of the mic thank you so much for the feedback
13:07
okay so you can now see the arduino is downloaded over here i'm going to right click showing folder
13:14
and I'm gonna unzip it actually it's on my other okay you can see it over here
13:21
let me bring it over here so I'm gonna extract it again it's gonna take some time hopefully okay okay let's let's wait if you guys if you guys you
13:37
have to have any questions related to Arduino IoT and and in fact you know we have a one of the AMA that we doing with Microsoft Azure SQL team that is an Azure IoT SQL Edge a modern database that you can use for your IoT products
13:55
That we're going to do on 4th of February, 10 a.m. Pacific
14:00
We will have the products team from Microsoft to talk about their latest product
14:06
So that would be pretty interesting. so by the time it it extracts it what i'm gonna do is uh i'll go to c-sharp corner okay and uh
14:18
look at look at one of the article that i wrote so uh this is this is a project where we uh you
14:26
know detect the thunderstorm or using this same rdno sensor kit or sensor kit base so what are
14:33
the requirements so so what actually happens in this project is if the light if the light
14:42
crosses a certain threshold value then the led starts glowing and the buzzer starts glowing and
14:48
it starts giving and giving some values on the led okay so uh in this project you need the hardware
14:57
components is arduino uno with cable and arduino sensor kit base we which we already have it i have
15:02
seen you can see also over here this is the uh this over here we have it on my other camera and
15:13
now to go ahead and use the software we need rduno ide which we have actually downloaded and
15:18
now we're installing it and you definitely need an active internet connection because we need to go
15:24
ahead and download some packages then later on i go ahead and explain the different sensors that
15:33
we have you can definitely use it you can definitely refer this article it is a really
15:39
nice one and here is when we go ahead and start setting up our environment so i'm just waiting i
15:45
think we are almost done it's 85 percent so uh just let me know by the time happens let me know
15:54
what different kind of iot devices you use have you used raspberry pi have you used onion or art
16:00
you know there are different type of uh are you available out there uno micro nano uh there are
16:05
different li pads available so uh i think the iot space is uh really increasing a lot and people are
16:14
working on it a lot these days just waiting for this to go ahead and get extracted i think i should
16:20
have done it earlier but never mind okay so before that uh once that happens right so if you
16:30
want to go ahead and you can also go to this platform where you can get this iot kit right
16:36
you can also go ahead and do that and let's wait i hope this get installed it's gonna take just
16:46
less than a minute or so apart from that you know i have pretty interesting thing to go ahead and
16:54
share with you that is a long long time back may 2016 may 26 2020 i wrote an article that has
17:02
reached close to 32 000 views on c-sharp corner where i wrote about getting started with arduino
17:11
web editor then it was very new and now people use it a lot these days so you can go ahead and
17:16
refer rdunf web editor too if you don't want to download rdunf in your local system
17:22
now i think that this has been extracted okay i'll just pull it up over here so you can see
17:27
it has been extracted i'm going to double click it and over here you find a file that says
17:34
application just double click it can you not hear me we can't hear you oh is that so are you hello
17:46
check i think you can hear me allow access you cannot hear me that that's pretty interesting
17:55
anyone else who says you guys cannot hear me is that the case let me go ahead and check it
18:04
that would be pretty interesting if you guys cannot hear me anyone else who thinks you guys
18:10
cannot hear me because that would be pretty interesting if you guys want to hear me i have
18:16
to redo everything i i hope so this is not the case with everyone guys let me know if you cannot
18:23
hear me i i find all my mic system working perfectly fine okay so you see i now have
18:32
adenos started over here what i'll do now is i'll go to tools manage libraries because we definitely
18:38
need to go ahead and download some of the libraries right so i'm gonna go ahead and search for in the
18:44
top i'm going to search arduino and sir it
18:57
okay so okay i hope this is the one or what one which one did i okay let me refer
19:08
the article for the best example so i need to go ahead and search for
19:13
arduino sensor kit library that is what i need to go ahead and search it you can see
19:18
i'm getting all the details from this article um perfect so this is the one so i'll go ahead and install this one now you can see it says in
19:33
library arduino since he needs some other libraries so definitely these are the sensors
19:36
that are available on the sensor kit board so definitely i want everything to be downloaded so
19:42
i'll click on install all this should not take a lot of time and
19:51
hope it gets done updating list of install libraries and that's it it's all installed
19:57
so once it is installed if you go to file examples come down and you can see an option
20:05
that says Arduino sensor kit if I do zoom it make sense now okay didn't help
20:14
whoo no that didn't help I need to fix it I hope I think that didn't help but
20:25
anyway if you go to file examples and come down and search for Arduino sensor
20:32
it you can see there are different examples already available to you so what I do to do now i going to click on a simple temperature and there should have been something more easy one but plug sketch play i
20:48
i think yeah this is pretty easy one okay oops you can see this is the one that we have i'm gonna
20:55
maybe increase the font to maybe 25 25 25 to do perfect so i think you can see it
21:06
i can see in the beginning for uh for this program we are going to import the header file that is
21:11
arduino sensor kit dot hb which we just installed it and then we are going to initialize our
21:18
components button at four and led at six this is how we do it now why did we write six and four
21:25
because if you go ahead and check over here in the top the number is for led is d6 and the number
21:36
for buzzer is d5 that is why we have given the numbers over here okay i hope that helps us to
21:44
understand then over here inside the for loop we write the serial begin that is our board rate
21:50
right and then we say until this serial is true pin mode of button is input pin mode of led is
21:59
output which is definitely true right or we want the led to go ahead and glow and we are doing at
22:06
the moment this code gets run uh we want the digital right to be low it means we want our
22:14
led to glow off okay now inside the follow if we say if the digital with button it means if the
22:21
button is pressed right we want the led to glow else we want the led to be switched off pretty
22:31
simple what i'm going to do is i'm going to click on this arrow button and click on upload i hope
22:36
it runs if it gives error i'll let you know most probably it is it is going to give you an error
22:41
for port number but I hope this works fine now it's compiling sketch it's
22:52
compiling sketch is compiling compiling three two one point seven five point five point four
23:08
point three point two point one okay serial port not selected right so we try upload see it is the
23:20
that is the exactly same problem that i said that we may face is because we didn't select the port
23:24
because our arduino is connected to our system and this ide must know to which port arduino is
23:30
selected so it says compo3 i click on ok and i'll see if that works fine or not
23:37
now it says uploading you can see it has now changed to uploading and see it now it is uploaded so what i'm going to do now is
23:45
interesting okay this is good so now if I go ahead and press the push button that is on default I
23:59
think I said wrong right I did the buzzer it is actually the button now if I go ahead and press
24:04
this you can see the LED will glow you see that now if I remove my hand it will go away again if
24:13
go ahead and press it the led will go if i stop it it's gone so you can see i have not used even
24:20
a single jumper wire right i have not used any breadboard i have just connected arduino to this
24:26
arduino sensor kit base uh installed the arduino then i downloaded only one single library went to
24:34
the file checked for the examples and just uploaded my code and how easy it was in the same way you
24:42
can go ahead and access uh all different sensors in your sensor kit on your sensor kit base and build
24:50
some of the really amazing projects for reference you can you should definitely go ahead and check
24:54
it out one of the article that i project that i made that is thunderstorm alert with rd unit
25:00
sensor kit base this is the link you should go ahead and check it uh sure i cannot understand
25:06
what you're actually writing i don't understand your language so if you want to go ahead
25:11
and write in English that would be very helpful to me. I think that's it if you have any other
25:18
questions please go ahead and drop into the comments and let me go ahead and add again
25:26
my screen so this is actually the article that gives you the entire explanation line by line
25:32
of the project it gives you code what happens what when and towards the end it also shows you how
25:39
how this actually works you see so this is a different project that i made you can also go
25:44
ahead and refer it and tweet me at code with simon that that's my username on twitter you
25:51
can go ahead and make this project let me know on twitter and i'll be very happy to go ahead
25:56
and see what you have made and don't forget us to tag at c sharp corner apart from that quick
26:09
quick update is please go ahead and and follow our new Twitter handle that is
26:17
C sharp live show please don't show us some your love over there right this is
26:24
a new Twitter handle that we have made and that is dedicatedly only for C sharp
26:30
corner live shows so go ahead and please follow us and if you are a C sharp
26:36
on that mvp we are giving follow backs too so that should be pretty exciting stuff and and we
26:41
the the quick update is that we have a new member joining us this uh this week we are really excited
26:48
to have for this really nadine was going to take the responsibility for c shop live as the program
26:53
manager so uh welcome to our team really excited and looking forward to our new year and if you
26:59
guys have any questions i'm gonna wrap the show now thank you everyone who have joined us today
27:05
thank you so much for tuning in uh we will join you back in some another episode of
27:13
product showcase stay tuned on my twitter handle at code with salmon and i'll keep on updating and
27:18
also c sharp corner live thank you so much for everyone who has joined today and have a good day
27:23
and i'll see you in the next episode of some other show