Transcripts
1. Trailer: Hi. Okay.
2. What is an Arduino ? Part 1: Hey everyone, let's understand what is a already know. So this is a credit card size device. It's name is already know, it's already know uno. And right now you can see that this is how it looks like. There are many different pins are given over here. These are the digital pins. And here the power pins are also given over there. And these are the analog pins. And what you can do, you can insert the wire and this pins. And you can control many different type of devices like LEDs. And we can also say that some sensors, not some, a lot of sensors, some actuators, more does motor driver and wireless communication modules also, you can connect it with the Arduino. So basically it's a very powerful device. Let's talk about some of the components of the already know. So you here you can see that this is a board. So basically this sport is used to provide power source and to upload code inside the Arduino. Here you can see our button is also given over there. The name of this button is a reset button. So basically when you press this button, so your code starts from the initial point. And there are some crystals are also there. And here you can see this is a voltage regulator. So basically it converts the higher voltage into the, whatever the appropriate amount of voltage required for this Arduino. And this is the main thing of the already know, that is the IC. So this digital pins that are programmable pins, you can write a code and you can control those pins. I that you can send that data, or you can receive the data using this digital pins and the power base. So usually this power pins are used to give power to the sensors, are different actuators, whatever you'll be connecting it to the audio, no. Do you know you can connect many different types of sensors that this already know. Let me show you some of the sensors. Right now you can see that there are different types of sensors out there, which you can connect it with the Arduino. And you can create very interesting projects. Let me tell you what are the different sensors we are having here. This is M q2. So basically it says smoke sensor.
3. What is an Arduino ? Part 2: This is an LDR. It's a light sensor, IR sensor. This is a sound sensor, DHT 11 in short, I can see that it is a temperature and humidity sensor, ultrasonic sensor, which is used for measuring the distance. This is a PIR sensor, motion sensor, and this is RFID reader. So this all type of sensors. You can attach it with the RD. And oh, one more thing. Let me tell you here, this is the RD and it is not having any wireless modules. So wireless module, that means I'm talking about the Bluetooth and Wi-Fi. So you can connect the Bluetooth modules and the wifi module with the RD. No. Let me show you this is a Bluetooth module and this is a wifi module. You can connect it with the Arduino. And then you can make many wireless projects like Bluetooth controlled robot. And we can also say that IoT home automation based system, sending the sensor's data to the Cloud. So this all the interesting and cool stuffs you can do with the help of wireless communication module. So you can connect those modules with the Arduino and then you can send the data over the Internet. Now you might be wondering that how I can upload the code inside already know. So for that, we are having one already know cabled. You just have to insert the cable in the already know this say, and the other part of the cable, you can connect it with your laptop.
4. What is Resistor ? : Hey everyone, I hope you all are doing absolutely fine. Today we are going to talk about a very important electronic component. Its name is a resistor. So here you can see there this is a resistor. And basically it is used to reduce the amount of current. Two resistors are there and their values will be different. The unit of resistance is on. So here you can see this is the one of their type and we are having another type of resistor also. So the potentiometer, it is a second kind of resistor. So basically it's a variable resistor. Now let me tell you what is a variable resistor. So here what happened in the potentiometer, its value, you can vary again. So just by rotating it, you can read the value of resistance in now potentiometer, but in the other resistor, what happened? The value of resistance is fixed. You cannot change the value of resistance in this resistors. But you can see the value of resistance in potentiometer as you make your weight in kilograms. And you are measuring the water in liter in the same way for measuring the value of resistance, we are having a unit, the name of that unit is ohm. So basically in some of the videos, we are going to use the resistance, okay? First of all, the LEDs, insect ID, and we are going to connect the resistor with LED. So what is the need of resistor with LED? So what happened when excess amount of current is going inside the LED? So chances of damaging the LED out there. Okay? So that's why to reduce the value of current, we insert the resistor metallic D. In this way.
5. How to use multimeter : Hello everyone. Today we are going to learn how to use multi-meter. Here we have a multi-meter and probes, these are known as probes. The red one is the positive probe and the black one is the negative four. Let's open it. You can see that this is how the probes looks like. You can measure DC voltage using my estimator. Resistance using multimeter, continuity, using multimeter current, using multimeter and AC voltage using multimeter. Let's explore the multi-meter little bit. Here you can see that this is the pointer. So wherever you will point, you will be able to measure that by particular thing. Suppose here, voltages, they're DC voltage. So if you, it'll be pointing this pointer towards the DC voltage. So you will be able to measure the DC voltage you've pointed towards the AC voltage. So you will be able to measure the AC voltage. Right now you can see there are three holes are given in the multi-meter. You have to insert the probes in that. So the common is there in the corpsman, you have to insert the black color probe. Common stands for ground. And the red color probe. You can insert it for measuring the voltage, resistance and milliampere. So in this way, we have inserted the probe inside the multi-meter. Now let's test it that how it is working. Now, we are checking the five volt DC already know. So let's check it. Before that, you can set your multi-meter to 20 volts. And now you can see multi-meter is turned on 000 is return on display. And the positive probe, you can just connect it like this way. And the negative probe, you can connect it like this way. So you can just see what values you are getting on the multi-meter that is 5.22 voltage. So right now we have seen that how to measure the voltage, that is a DC voltage using a multimeter. Now let's do, and we will change the polarity, okay? So wherever I have connected the positive, so I am going to connect the negative 2 that, and wherever I have connected the negative, I'm going to bend the positive to that. So the negative symbol will be appear in front of multi-meter. Let's check the continued using my Demeter. So you can just say pointer towards continue d. So this is the symbol of continuous D. And now I am using one male to male wire for checking the continuum. So you can just keep the positive terminal of the probe towards the male point of the wire. And in the same way, the negative terminal of the probe you have to touch to the mail via and you can see when sound is coming out. So that sound is telling us that there is no break in the vial. It is continuous. Let's check the value of new resistor. You have to insert it in the breadboard. And now let's test it. Here you can see that the pointer is pointing towards 200 ohm. And that's their terminals. And this way. So it is showing us that the value of this resistor is n, o. If you want to measure the current, which is greater than 200 milliampere. So you just have to remove the positive growth from middle hole and you have to insert it here. Because this terminal, if you will be inserting the positive probe to that top-down middle. So you will be able to measure the gut end up to 10 mpr. So here you can see that max current is 10 MPA. So if you want to measure the current, which is greater than 200 milli amps here. So you can use this dominant. And the common should be connected here only. And one more thing you have to keep in your mind that you have to move the pointers, the words, then a, and don't forget to turn off the multi-meter, then you are not using it.
6. LED blinking Part 1 : Hey everyone, Today we are going to make our first project that is LED blinking code. So in short, I can say that that is the helloworld code of the electronics and robotics. So the material required for making that project is bread board. Led are 10 ohm resistor, Arduino, arduino cable, meal to meal virus. And you need to download Arduino IDE in your computer. Okay? Now, before making the connections of blinking of LED, let's understand what is a backbone. So right now I'm not talking about the bread which you are eating in your breakfast. But this is a board in which you are going to do your electronics connection again. So this type of board it is having, you can see it is having too many holes. Are there any, okay. So basically you can insert the components in the holes and you can create some temporary connections. For example, I'm having a LED and I want to grow this LEDs so I can do one thing. I can create a temporary connections. So I can just insert the terminals of the LED in the holes. So you can insert the terminals of the LED and the holes in this way. So they'd know I have inserted the LED in D, bad books. So you can see there are some numbers are also written over here. That is column number 23, column number 22, column number 21. Okay? So you can see I have inserted one terminal of the LED in column number 23, and another terminal, I inserted it in column number 21. Okay? Okay, so now all the holes of column number 23, they are interconnected with each other, okay? That means if I connect one of the wire to this particular hole, right? That means I am providing some signal in column number 23, okay? If l connect the wire over here in the whole of column number two entity, that is also meaning the same thing. I am providing some signal in column number 23, right? That means all the holes of column number 23, they are interconnected with each other. If I give a signal to any of the whole column number 23, then the remaining holes, they will get the same signals because they are interconnected. Now, let's understand. What is this plus n? What is this minus? This plus is indicating that you can connect to the positive over here. Now what will happen? The remaining holes of the same row, the positive signal will be provided to them because they are interconnected with each other. In the same way, if I connect the negative signal to one hold of row number 2, then the negative signal will flow in the row number two because they all are interconnected with each other. Eight. So now if I show you the backside of the breadboard, that things will become more clear. Okay? So right now I'm just removing this double-sided a. And you can see, you can see basically when metallic strip is that okay, so this metallic strip is connected in the row 1 and row 2 form. Okay? So if you'll be connecting the wire in any of the whole of the breadboard. Now what will happen as the oldest trip? It's interconnected with the holes. So the signal, the same signal will flow. And if you see the column thing, so you can see here what is happening here. Columns are interconnected with each other. So that is the reason. Okay. Now, let's a bit again. I hope you understood the bed bug. Now we'll be creating a small circuit so that actually we understand that how to create some circuit and the breadboard. Now what do you have to do here? You can see that this is the LED. Now, it's very important to know the LED. Basically most of the student fees, difficulties in finding out what is the positive of the LED and which terminal is the negative of the LED. Now, let me tell you. One small trick is there to know which terminal is the positive and which terminal is the negative. So whatever the longer terminal, you can see that now this is considered as the positive of NAD and the shorter terminal is considered as negative of NAD. Now I hope you understood. Now what do you have to do? You just have to insert the LED in the bread board and make sure that you should remember that, which is the positive dominant and which is the negative dominant. I'm connecting the negative terminal to column number 23 of the breadboard. And positive of the LED. I'm connecting it to column number 21 of the breadboard. So let's insert the LED. Okay? Now the NAD is inserted. Now what I have to do, I have to insert one resistor. So the resistor, you have to insert in the resistor. You can see there are two terminals are given, so one other dominant. You have to attach it to the positive of the IUD. So the positive of the LED is connected to column number 21. So let's insert one of the terminal of the resistor in column number 21 and the other terminal of the resistor. You can adapt to any of the column, ok, so I'm using it column number 16, okay? Okay, So right now I have inserted the LED and a resistor in the bread board. That's it. Now, I have to connect the dominance of gay. So now in the RD, No, I'll be using some of the pens. Meal to meal by LSR. That type of IS in both side of the wire having pointed ends. Okay, before inserting it into a breadboard, you should know, despite all the LED, this part of the LED is ground and this part of the resistor is positive of the LED. Okay? Now I'm inserting var1 part of the wire in the bread board. So I'm inserting in column number 23, date. And the other terminal of the same bias. You have to insert it in the ground of the RD. No. Okay. Okay. So I have inserted it. Now. You can see the other dominant. So let's insert the wire. And the other terminal of the buyer. You can insert it in any other digital pen. So I'm using digital pin number nine. Okay. So that's it. These are the conditions. Now what do you have to Luna? You have to attach the Arduino cable over here. It's connected. And the other part, you have to insert it in the laptop and the computer. Okay, so you can see that the cable is connected with the laptop. And you can see as you're going to get the cable to the laptop the NAD started doing in the RNA genome again. And now it's time to start writing the code. So far I'm writing the Gordy after download been software that is already know IID. So let us follow the steps and I let you know how good our Lord darting are IID and blinking LED. So you can follow the steps.
7. LED blinking Part 2: Okay, Now you can see that the Arduino IDE is downloaded and this is how it looks like. Right now you can see there that are due functions are already there in front of you. That are the predefined functions are, that are the predefined functions of Arduino. That name is white setup and y. Now let me tell you what is a white setup. So why it's set up is a function which is called, then a sketch starts. It is used to initialize a variable. Pinmode, start using the liabilities and many more. This set of function runs only one time. And now let's talk about the wide loop. So the void loop, whenever you want any instruction to perform again and again, repeatedly, you can put that instruction inside the while loop. These are the predefined function which are given by the Arduino. And now we'll start writing the code. So it start writing the code. So inside the white side up, we have to start it with the pinMode. So pinMode is the first instruction which we are going to use. So basically pinMode is made with the help of two things that spin and more. That means which bin number you are using an Arduino. And actually what is the moral of that pin? So in the RD, No, You might have seen that we are using digital pin number 98 and the mode of that number is output. Now let me tell you what is output and input. When digital pin, you can use in two different ways. First is you can use that as input. Input means the signal is coming inside the already know. Or you can also use that pin as output. Output means that signal is coming out of the Arduino. So basically when you are creating a LED blinking project, so at that time, the signal is coming out of the Arduino. So that's why the mode of the pin, it will be out port, not input. Okay, now let's start writing the code. So you have to write like that. Sorry, p i, n. So here is the pin. So you can see the pin is written in small letters, okay? Then yeah, right, mode. So in the mod m should be capital and the Arkwright Paul the II, even more. So this is the first instruction which we are using. Then you have to open the parentheses. Inside the parentheses you have grade up in number. So the positive of the LED is connected to pin number name, that is digital pin number 9 of the Arduino. Then you have to give one comma. Then you have to write out port and make sure that output should written in capital letters, all capital gain. If you are doing leg there, you are writing for you. Be small, NTU be in capital, it is wrong. So all the things should be in capital. Now after I'd been this construction makes sure that Yaffe grade semicolon. Okay, So that is the first instruction which you have to give insight the white setup. Now let's move on towards the while loop. The while loop, what I want, I want that my LED should blow or not glow. I want my LED should blink again and again. Repeat ugly. So for the debt, I will write them. Okay, and make sure that digital should be written in all small. And then you have to, i, w, w should be in capital than WR, be fake. This is the instruction for providing the signal from the digital paint. Open the parentheses, which been no, maria using, so I'm using the number name. And then here you have to write either high and low. So high means LED will on. A low means LED is off. Okay? So after writing this instruction, make sure that you have to write the semicolon and high should be written in all capitals. Then for how many durations I want the LED should be on. So here you have to provide the label and make sure we believe should be provided in milliseconds. So I'm writing 1000 and a semicolon. So 1000 means I'm providing delay of five seconds. And then WMAP. Now what I want, I want my LED should be off. Okay? So let's write the pin number of ADD their desk and then you operate below. So high and low is used for cough. Now for how many seconds I want the enemy should be off. So let's write that. Believe can make sure that whenever you are writing, the delay instruction should be written in small letters. And then open the parenthesis right there. Delay, amount goes up parenthesis then semicolon. So this is the symbol of LED blinking. Now what do you have to do? You have to upload the code inside Arduino. Before uploading it, you can just click on Verify. So your code will verify. Okay. So the court verification process is completed. Now, what do you have to do? You have to upload the code inside the Arduino. So here you can see the upload button is there, click on the Upload button. And now the court will start uploading inside your RD. No. Okay. So the code is uploaded. Now it's time to see the output. Okay, So right now you can see the output is the in front of you. So those are created their first project using already know. So congratulations and celebrations to them. So you can see that this is the LED and it started going. It is turning on for 1 second and it is turning off for one seconds. So I hope you enjoyed the video. Now, let's move on to the next part.
8. How to control LED using push button: Hey everyone, I hope you all are doing absolutely fine. Today we are going to learn about the push button. So you can see there this is how a push button looks like. And when you will press the button, you can hear some sound is also coming from it. And basically, we'll be learning about the push button there at how you can control LED using a push button. So basically what will happen? Then you will press the button. So LED will turn on and when you will release your finger from the button, so I will turn off. So that is the project we are going to make. Let's talk about some of the applications of the push button. So basically when you press the push button, some action performs. Let's take an example of mobile phone. Mobile phone, you have seen we are having a power button and the volume by volume up and volume down button. So that is nothing but it is also up small sized push button. And if I talk about a very simple example of a push button, so right now you can see this is the Arduino. And the Arduino also, we are having a push button. So you can see that this is a push button. So basically the functionality of this push button is to reset the Arduino. So you can see that push button is used in many different places. Now the material required for creating the project, our breadboard, a push button, LED one, 10 ohm resistor. Some connecting wires. Already know, gibbon. And I already know. Let's start creating the connection. So here I am holding a breadboard in my hand and I'm having one LED. So in the LED you can see that there are two terminals are given. So the longer terminal is the positive and the shorter terminal is the negative of the LED. And now what do you have to do? You have to insert the LED in the bread port? So I'm inserting the positive of the LED in column number 20. And the negative of the LED is inserting it in column number 22. So you can see how I have inserted the LED in the bread board. Now it's time to insert the resistor in the breadboard. So one terminal of the resistor, I'm going to attach it to the positive of the LED. So I have inserted one terminal of the resistor, and this is the other terminal, so you can insert it anywhere in the breadboard. Okay? So you can see there resistor is inserted with the LED. Okay, after doing that can extend. Now what you have to do, you have to insert the push button in the breadboard. So let's insert the push button in the breadboard. Okay? So the push button is also inserted in the breadboard. Now it's time to connect the wires. So I'm using male to male IS so one terminal of the Via, you have to insert it. And this way, okay. And the other part of the same riot, you can insert it in one of their terminal of the resistor. Ok. So you can see that that is the connection. I'm using one more male to male via it. You have to insert one part of male-to-female wire in the ground of the LED and the other part, the after inserted to the ground off already know. I have is inserted in the ground off already know. Okay, Let's do the connection of five volt. So I am using one more male-to-female wire. So you have to insert one part of male to male riot in the push button. You can see that how I have inserted. And the other part, you can insert it in the five volt of already know. Okay, So you can see that all the connections are completed and the circuit diagram is already given. You can follow the circuit diagram so that connections are completed. Now it's time to connect to the Arduino cable that the Arduino, and you can provide the power supply. Here I'm using Arduino cable. So one part of the cable diopter inserted in the Arduino, and the other part of the cable. You can insert it in any power source. So either you can connect it to the power bank or you can also connect it to the laptop. And let me tell you, you don't have to upload any code in the Arduino. Right now you can see that I'm just using already know for the power source, okay? So I'm just using the five volt and ground of the Arduino and no digital pins are used. So as you can see, I have connected the other part of the cable to the laptop. And you can see the LED started glowing in the Arduino. That means the appropriate amount of power is supplied to the Arduino. Okay? As you can see, all the connections are completed. And it's time to do the testing. Eight. So you can see there the breadboard is there in my hand. And then I will press the push button. The LED started glowing. Okay. So you can see as I'm pressing the push button, then it is glowing. And when I release, you can see then it is off, on, off, on, off. So that is all about the project, that how you can control the LED using a push button. So that is a very small and a very basic circuit. And we have just implemented using Arduino.
9. How to control brightness of LED using LDR: Hey everyone, I hope you all are doing absolutely fine. Bolivia going to use LDR sensor. And we'll create a very interesting project with it. Before making the project, let me tell you what project actually we are willing to me. So basically we are going to control the LED using LDR sensor. So as you can see that this is the LDR sensor and it is having two terminals and there is no polarity in it. And it is also known as photoresistor censored. Basically, this sensor is sensitive to light. And according to the light, the resistance changes. And this particular sensor, the name of the sensor is LDR, and LDL stands for light dependent resistor. And this sensor is also having another name that is photo resister. So for those channels, for photon and resistor, you know, it's meaning is to oppose. Now, basically what this says is sensitive to light. So whenever the light falls on the sensor, the value of the resistance change. And according to that or VR going to control. The LED. Ldr sensor is made up of semiconductor material. And you can create many different types of interesting project with LDL. You can create automatic street light, light falling row board. Or you can create a very interesting project that is a sunflower project. Material required for creating the project. Our breadboard LED LDR 10 ohm resistor. Some connecting Laius already know. And RD naught k. Well, Let's start creating the connection. You can see there this is the LED I'm having. So the longer terminal is the positive of the NAD and the shorter dominant is the negative of the NAD. And make sure that whenever you're inserting the LED in the whole breadboard, you should remember that the longer dominant and which is the sharper dominant. So I'm inserting it directly in the bread board. Okay, so the LED is inserted in the breadboard. Now, I'm inserting the resistor to the positive of the LED. So I'm using column number 22 has positive of the LED. So they insert one terminal of the resistor and another terminal you can insert anywhere in the breadboard. So in this way, I have inserted the resistor bit LED. And now we are having the sensor that is ADR. So I'm inserting it over here. So you can see how I have inserted all the three components in the bread board. Okay, it's time to make the connection. So I'm using when male to male violence. So one part of the buyer and inserting it in one of the column of ADR and other part of the via the app inserted through the resistor. So in this way you have to meet the connection. You can see this is the VIA and how I density to the resistor. And I'm taking another male to male via. So let's insert it there and adapt part of the wire. I let you know via you have to connect. And in the same day, this is the violet. You have to insert it in the negative of the LED in this way. Okay? Now you can see this is the ground. So you have to connect it to the ground off already know. And this wire, you have to connect it to the five volt of the Arduino. Okay? So the connections of the already know and LDR, LED and a resistor are completed. All the connections are completed. Now it's time to use the Arduino cable. Cable is connected. Now the other part of the cable, you can insert it to any power source. Okay, So you can see that the light also started glowing in the Arduino. And here also the LED is glowing. And then I'll place my hand over the sensor. You can see the LED is off. And when I remove my hand, you can see the LED is on. So basically here what is happening when I'm keeping my finger over the sensor? So this answer is not able to sense the light. That's why the LED is off. And when I'll remove my finger, you can see that the LED is on.
10. How to control Brightness of LED using Potentiometer: Hey everyone. Today we are going to learn how to control the brightness of an LED is a variable resistor. Let's check it. This is dominant one. This is dominated to saying that one is viper abdominal. And you can insert this glute ever in it and you can rotate it in this way. Material required our bread board. Arduino male to male connecting my f's potentiometer resistor of n On the right coloured LED and Arduino cable. Know 4D is required for making this project. Gun Egbert inside the potentiometer in the breadboard. I have inserted it properly. We are using one red coloured LED. Longer terminal is the positive, is a negative inserted in the bread board. And this way, now I'm using a resistor of n or you can insert it to the positive terminal of the LED. And this layer connected the Viper of potentiometer to buy but is the metadata amino of potential meter. So you can see there, this is how the connections are done. Connected that terminal one of the potentiometer to the five volt of Arduino. Hi world of Arduino. Deportation may already know this black color is the ground. So you can insert insert data. Now we are left with one connection on. Lately I have to connect the ground of LED to the ground off. Already know. It's inserted. Now. The other male-dominant, you have to insert it to the ground off already know. Okay, So now the conditions are completed. Here you can see that we are not using any digital pins and quote is also not required. You can just connect Arduino cavemen. Here is the already know cable connected. And the other side of the cable, you can connect it with laptop or any other power source. Now it's time for S. We are using one screwdriver. And here you can see that you have to insert the screwdriver over there. And you can see as I'm rotating the screwdriver according to the brightness of LED is changing.
11. How to use IR sensor ? : Hey everyone, I hope you all are doing absolutely fine. Today we are going to learn about the IR sensor. So basically you can see their diets and says there in front of you, this is how IS answer looks like IR sensor stands for infrared sensor. And as you can see, that there are two different types of LEDs are there in the IR sensor. So let me tell you what are their names. So this is IR transmitter and the other LED, the black color one. It's name is photodiode. So photodiode is basically the IR receiver. Okay? So there it is all about the two LEDs of the IR sensor. And you can see in the IS and said, there are more different kinds of things are there. You can see when LED is there, when potentiometer is there. So basically you can insert the screwdriver in this way and you can increase and decrease the sensitivity of the IR sensor. And you can see there are three terminals are there in the IR sensor when its output. And other one is ground and VCC. And this is the backside of diets answer. This small piece of IS answer is very helpful and very interesting type of sensor. You can create many different type of project. Suppose a very common project with the help of IR sensor is line falling robot, which is also known as LFSR robot. And you can create smart lamp also. And many different kinds of things you can create with this particular IR sensor. So in today's lecture, we are going to learn how to use IR sensor with Arduino. Now material which we are using our Arduino IR sensor, male-to-female connecting layer. And when Arduino cable, Let's start doing the connection. So I'm using male-to-female wires. You have to insert the female part of the wire in the male headers or die or sensor. And the other part of the Via, you have to insert it in the already know. So here, the output wire, there, it is, blue-colored where I'm going to insert it in any of the digital pins. So I'm going to think that output pin number 8 of Arduino. And the remaining other two IS that is ground. So ground I'm connecting it to the ground of the already know. And the remaining wired is VCC. So you can connect the VCC to the five volt of protein. So you can see that all the connections are completed. Now it's time to use the Arduino IDE. So before using the Arduino IDE, make sure that you have to use already know cable. Insert one I know darling, no cable in the Arduino. And the other end you have to insert it and the laptop. Okay? And you can see that the light is glowing in the Arduino. That means the power supply is given to it. And in the iOS and settled so you can see the light is glowing and now it's time to start writing the code. So as you can see that I'm open the Arduino IDE, and now it's time to upload the code in the Arduino. Before uploading the core FASTA file, it is important to write down the cord. And here you can see there the void setup and void loop that are the predefined functions of the arduino already there. So let's start writing the code for the IR sensor. So first to fall, I'm creating a variable called before writing the name of the variable, I am writing data types. So here I'm using the data type is featured in the name of the variable m, viewing it as IQR equals 2. And output of iot sensor is connected to digital pin of the Arduino and then a semicolon. Okay, so here the name of my variable is IR. And now in the void setup, I'm going to write the code for the IR sensor. So basically what they want, I wanted that the IR sensor signal should be printed on serial monitor. So for that I'm writing when instruction, it's name is serial begin. So whenever you are writing the serial begin at bedtime. As should be in capital S, ERA L. You can see I wrote as in capital and remaining all the words are written in small letters. Serial, dark, GIN, begin. And when I'm writing the baud rate 9600, so barred rate is nothing but it is bedspread second, bed in 1 second. How many bits are transferred from Arduino to my computer? So basically this serial begin is nothing but it is, I can see that it is a communication between the Arduino and kombucha that the sensor value is sent to the computer and it is displayed on the serial monitor. So this line is just to use for the communication between Arduino and recompute. Okay, so here I wrote that thing. Now I have to write the pin mode. We IN cambodia print more. And here I'm writing the name of my variable. That is why I am writing the name of my variable, because this variable is already holding the value of gain that is it, in it. So in place of writing it over there, I wrote the name of the variable and then comma. Here, I have great input. And input because the object is sensed by the IRS and set the signal is sending inside the Arduino, okay? So there are never any signal is going inside the Arduino. I have great input. So that is all about the white setup. Now, it's time to write the code for the while loop. Okay, so now you can see that I wrote the code inside. Why it's set up now it's time to write the code inside white, blue. So basically what they want, I want to print the census data on. See you in a minute. Okay, so let's start writing the code. So here I'm creating a variable. Indeed, a better score. Okay? So this is the name of my variable and I'm giving equals 2. And here, basically what I want, I want to read the signal from the digital pen, okay? So am using digital pin number here. So basically what will happen whenever any object will be there in the range of IR sensor. So the output pin of the IR sensor, it will send one signal. Do the digital pen, okay? And what I have to do, I have to read the signal from that digital pen. So that's where I'm using when instruction, it's name is digital. Read it. So I want to read the signal from which digital paint. So I want to read the digital signal from pin number of party. So I am writing IN and then an Econ. Okay, so basically what is happening, this function is reading the signal of the IR sensor, and that signal is stored in this particular variable. Okay? Now it's time to print the value on the serial monitor. So far are printing the value. We are having a command. It's name is Dr. Ellen. Okay. Now in the parenthesis, this is the opening of parentheses. Inside the parentheses, you can write that name of a variable that is either close the parenthesis, then a semicolon, red segment. This is a very simple chord. And now it's time Doppler Duckworth in the Arduino. So before uploading the code, make sure that you have selected the correct board. So you have to click on Tools. And here you have to select the board as Arduino Uno. And also you have to select to 16. After selecting that thing, you can verify your code. So if any mistake will be there, that will be resolved. So here you can see you done compiling is repent. And now it's time to upload the code so you can click on Upload. And Accord will start uploading in your Arduino. Okay, so you can see there the code is uploaded in the Arduino. And now you have to open the serial monitor, click on the serial monitor. And here, whatever the baud rate that is 96 000, you have written in the code, the same baud rate you have to select. So here I've selected 11 50 000 bar. You have to select 900, 1100 only, okay. Then there is no object in the range of IR sensor. I'm getting the signal value as 0. And when our objectives there, I'm getting the value as one. Now I'm getting the signal value is 0. And when object is there, I'm getting the signal value as vine. So basically what is happening? The output pin of diets sensor is sending the signal to their digital pin number eight. Okay? And what we're doing from digital read instruction, we are reading the signal's value. So the signal value is a binary value. That's why we are getting the values in the form of 01. Okay, so now it's time to do the practical demonstration. Okay, so now it's time to change the sensitivity of diets answer. So just by inserting the screwdriver in the potentiometer, you can change the sensitivity of diocese. You can see now the sensitivity is set, okay? So you can see that here, then there is no object in the range of IS answer. We are getting 0, they lose on the serial monitor. But when there is object, my hand, you can consider as our object. So then object is there in the range of IR sensor. So in the serial monitor, you are getting the value as one. And then there is no object in the range of IR sensor. So in the serial monitor we are getting the value as 0. So this is all about the IR sensor. Hope you guys understood that how to use the IS answer. And we will be creating more fun to ejected with IR sensor.
12. Control buzzer using IR sensor: Hey everyone, I hope you all are doing absolutely fine. In today's video, we are going to learn how to control a buzzer using IR sensor. For making this project, we are using a peace officer. And you can see that in the Piazza was that there are two different terminals are there. So the longer terminal is the positive and the shorter term L is the negative. And you can see here the positive is also written on the top of bizarre. So you will understand which terminal is positive and which terminal is negative. So tough material required for making today's project are already, you know, buzzer. Breadboard IS answer. Some connecting wires in dead am using male to male and male to female virus also. And one already. No cable. Let's start making the connections. I'm having a buzzer. Insert the buzzer in the breadboard. So am using column number eight as positive and column number five as negative of bread board. It's time to use male to male bias. So I'm using yellow wire. And one end of the wire. You have to insert it in the positive column of the breadboard. And the other end of the wire, you have to insert it in digital pin number three, we already know. Now it's time to do the connection of ground. Foreground. I'm using column number 4 of breadboard. And the other part of the Via after inserted in ground off already know. So the connections of breadboard are completed. So the connection of buzzers with already know are completed. Now it's time to connect to the IRS and said that already know so far that I'm using male-to-female YS. Insert the female part of the wire. And the other part of the Via. You can insert it in the Arduino. So the output, you have to connect it to pin number 8 and digital pin a tough Arduino. So here blue is the output. And make sure that connected to digital pin eight of Arduino. Okay? Now the remaining two wires. So here you can see the purple wire is there and the purple wire is the ground. Okay, So it is inserted. Now it's time to connect to the VCC. So VCC, you have to insert it in the five volt of Ordinal. Okay, So you can see that all look in a sense, are completed of IR sensor and buzzer. Now it's time to start writing the code and upload the code inside the already know. For uploading the core VR using already know cable. That cable already know. And other part of the gable, you can attach it with a laptop so that you can upload the code in the already known. You can change the sensitivity of the IR sensor by inserting is skewed either in the potentiometer. Okay, so you can see the circuit diagram is already computed and now it's time to write the code. So basically what we have to do, we have to control that using IR sensor. So let's start writing the code for that. So starting I'm creating variable name of my video. And you add sensor, okay? So the output of sensor is connected to end on, but it basically what I did over here. And using our due date, the name of the data type is integer. And here is an EM off my video, but, okay, so basically what is happening this video, but it is not tuned, but it is acting as a container. And inside that container and distorting the value it again. And I'm creating an either video buzzer. So as you can see, the positive of the buzzer is connected to pin number 3, visit element number 3. So at district under data type, then. So that is a variable which is available and is equals to e by that is connected to physical print three. That's why I wrote three. Now. And now it's time to write the code in the white set up. Totaling start with the serial. Begin. Whenever you are writing the serial begin, the S should be capital, the world S should be capital S. Brand remaining all the letters should be smart. Din, Yaffe, great, barred rate minus six. And the semicolon. I expand rain the pinMode for iOS answer. And so let's start writing the pinMode for iOS answer. Yeah, yeah, and m should be capital or the opening of parentheses. Inside the parentheses here you can write the name of your variable. That is, I'm not a score. And drama. And basically IR sensor pin, okay, that is spin number. It, it is acting as input. By it is input records. That signal is going inside the Arduino. That's where it is acting as input. Now it's time to write anymore. For buzzer. Buzzer is acting as output, okay, So there are more of then number three is output. So here you have to read BU buzzer for your review and make sure that whenever you are writing input and output, this should be in capital, okay? So this is all about divide setup. Now it's time to write the code while loop. So in the void loop, again, I'm creating a variable. Is a variable and it is equals to our Yvonne. I want to read the signals value from visitors and number eight, okay, that is from the output of IR sensor. So here I'll be writing for parallel. Okay, Before coming off parentheses. And the idea that a score close the parenthesis semicolon. So this particular instruction is reading the signal's value. Okay? Output signal suddenly off IR sensor. And whatever the value is there, it is stored inside a variable. Okay? And after that, it's write the code for printing the value on the senior dog. Think I landed. And then you can write me to basically is a variable and it is holding the signal's value. So that is the printing statement. Now, the main thing which we have to do that is we have to write the logic. Okay? So for writing the logic, I'm going to use the if-else condition. Okay? So here how the if-else, if e is greater than 0, again, opening off because it's here, you can see that this is an opening of parentheses, and this is the closing of parentheses. And inside that I wrote the condition. And here you don't have great any semicolon, open the flower. This flower bracket is also known as colleagues posed a problem. Now. So basically what Yvonne and the value of a is greater than 0. Greater than 0 means it can be a value like one. So one is definitely a value greater than 0. So what should happen? There means if I'm getting the signal value as one, that means some object is there in front of IS answer. So then the object is there in front of IS answer. My buzzer should be on. So how I can turn on the buzzer? Simply, I can write the IUPAC WMAP and make sure that w should be capital in digital, right? Opening of parenthesis. And here you have to write three, you would say it's a high, high means. I'm turning on the read set, okay? So then the signal value is greater than 0. But there should be pond as it should be off. So for turning of the buzzer, is it fell right? Because that comma low. That's it. Says the court for turning on the buzzer, turning off the buzzer using IR sensor. And here we are using the if else. You can also do one thing. You can also add a print statement in the if else. So let's dive in. Here you can see the PR AMP and then an opening of parentheses and then double quotes. So inside the double quotes, I'm writing a message reservoir we use at our browser. And after opening a parenthesis, you have to close, sorry, after opening the double cords, close the double-quotes, and then you have to close the parenthesis, then semicolon, in the same way in the else part also, you have to write the seal prints too. Dark. I am a be an n. And then it stands for newline. Opening of parentheses, opening double-quotes. And in the double quotes you can write new density advisor off posing or double-quotes, closing of parentheses, then semicolon. I have added a print statement also in the events. And now you can upload the code in the Arduino. Basically now what will happen? You're going to get the printing statement on. So let's click on this. You don't want. So then you don't make this data set is off. And when von vendors dead, that means by that is on. So now it's time to see the fact that our demonstration of distinct. So now we are demonstrating the project. So basically you can see that die yes and says that in front of you, but that is also dead. And all of the conditions are completed. And 89 does, he doesn't want it. W can see that then that IS null object. And that angel, if I get a sense of 0 that is dead. And buzz that off is done on the serial monitor. And you can see then the object is dead, then the acetyl is not written, one is written and buzz that on. Isn't it done? So that is all about Dar demonstration off. Yet assigned set.
13. How to use Ultrasonic sensor: Hey everyone. Today we are going to learn how to interface ultrasonic sensor that is at CSR 0, for which party? No, this sense that is used for measuring the distance. And you can see that there are four terminals are given over here. First terminal is VCC, and after that, big Ben is there, then eco, then ground. Big N, a copy of the ultrasonic sensor. You can connect it with any of the digital pen. And you can see E is written and odd, isn't it? And E stands for tasks. Meta r stands for receiver. This part of the ultrasonic sensor is used to transmit the ultrasonic sound waves. And this part of the ultrasonic sensor is used to receive the ultrasonic sound waves. Material required are ultrasonic sensor, Arduino Uno, breadboard, some connecting wires that are male to male wires and already know cable. Insert the ultrasonic sensor in the breadboard in this way. So you can see that I have inserted the ultrasonic sensor and a breadboard. So I'm using column number 17, 18, 19, and 20. You can see that in this way I have inserted the sensor inside the breadboard. You can see here first bin is ground. So let's connect the dots ground of the ultrasonic sensor with Arduino. So for that I'm using male to male bias. Here is the ground. So I've inserted the male part of the wire in the ground, the bread board. And the same year local level or I mean, sorry, taking it in the ground of the Arduino. So one of the virus inserted. Now it's time to do that. The nations of the VCC, the VCC of the ultrasonic sensor. You have to insert it and this way inside the breadboard. And other part of the veil to me like this one, you have to insert it. The five volt on the Arduino. So you can see that we have inserted into five volt of the Arduino. Now it's time to use the digital pins. That means we have to connect that trig and a coping. So the Ecofin pins are connected. So let me tell you the purple color wire. This purple color wire, this is the ICO. Ico, I'm using the number nine digital pin 94 trig. I am using digital pin it. So this is how I have done declinations. After completing the clinicians, it's time to use the Arduino cable. So you have to insert one off the end of the cable in the already know. And that end of the cable, you have to insert it in the laptop. Keyboard is connected to the laptop. Now it's time to understand the code and upload the code inside already know. So right now you again see that the Court of Auditors sonic sensor is already there in front of you. And here we are using two variables. One variable and another variable is due-date, okay? And here we are using two more variables, their district pin and the Ecofin. So basically, you can see that while doing the connections, we have connected the trigger pin of the ultrasonic sensor to pin number 8 off, already known. In the same way we have connected the equipping of the ultrasonic sensor to pin number 9 of Arduino. So here we created a variable and we are assigning a value inside a variable. So that will use our digital pin of Cardinal. And here you can see there the white setup is there. So in the wide setup, via writing the trigger pin as the output and a coping as input. And if you will see that the more clearly, you will be able to see that the serial begin is also written over there and the Board value is 50 000. Now let's move towards the wild loop. So in the wide loop, what we are doing over here, and this particular line, of course, we are creating a pulse. And after that we are just applying the formula that is distance equals to speed into time. So here we are using the pulse in function. So basically policing function is used to calculate the time. Or we can also say that this function is acting as their dimer. So whatever their time value, calculating that value is stored inside the variable that is DUI, ATP. And then we have just applied the formula, distance equals speed into time that cert. And here you can see that this is the full chord. Now it's time to upload the code inside already know. So for that you have to click on Tools and you have to select that board that is already know. So that particular board is already selected and it is also selected. So now you can verify your code runs. So the court is verified. Now you can try to upload the code inside. The Arduino. Code is uploading inside the Arduino code is uploaded. Click on serial monitor and you're barred value. Yeah, So right now you can see that you are getting the values that is 48 and 49. So let's try to vary the venue so you can see their values are changing. So let's click on the tools and see the values on the Florida. So you can see how the values are varying. Now it's time to do the practical demonstration. So you can see there delta sonic sensor is there. And in front of ultrasonic sensor, we are having the amazing scale kind of thing. So you can see that each and every centimeters or written over there, 0 centimeter, 12345 like that, 15 centimeters are there. So now let's check the values. So right now you can see that as I'm moving the card towards the sensor, you can see that the values are varying on the serial monitor.