1
00:00:04,000 --> 00:00:18,000
And today, I will tell you how to interface Ardino Mega two five six zero that led you two thousand

2
00:00:18,000 --> 00:00:23,000
twenty twenty or you can say 2020.

3
00:00:25,000 --> 00:00:30,000
So over here, I have a DOT center.

4
00:00:30,000 --> 00:00:35,000
As you see that that sensor has a signal.

5
00:00:36,000 --> 00:00:38,000
This one is my say no red.

6
00:00:38,000 --> 00:00:42,000
One is my boxy and black one is my ground.

7
00:00:42,000 --> 00:00:46,000
And it is connected to the irony.

8
00:00:46,000 --> 00:00:47,000
No makeup, makeup.

9
00:00:47,000 --> 00:00:58,000
And over here I have a buzzer whose positive spin is connected to the Titan laser beam.

10
00:00:58,000 --> 00:01:02,000
Thirteen and the negative is.

11
00:01:03,000 --> 00:01:06,000
So this is the hard connection.

12
00:01:06,000 --> 00:01:09,000
So just go to the software part.

13
00:01:10,000 --> 00:01:16,000
So first we have to interface our already know mega.

14
00:01:17,000 --> 00:01:19,000
Just click over here.

15
00:01:19,000 --> 00:01:29,000
As you see, I already told you how to install this line from where we are.

16
00:01:29,000 --> 00:01:33,000
So over here we just select the device family.

17
00:01:33,000 --> 00:01:39,000
Right now, the device family is already know then our bodies already know.

18
00:01:39,000 --> 00:01:41,000
Mega two five six zero.

19
00:01:41,000 --> 00:01:45,000
Next over here we have to select dot com.

20
00:01:46,000 --> 00:01:50,000
Right now my USB port is connected to seven.

21
00:01:51,000 --> 00:01:57,000
Then just go next next door.

22
00:01:57,000 --> 00:02:12,000
Right now, the program is Hulu in the mega, as you see there, and our expense blinks continuously.

23
00:02:13,000 --> 00:02:26,000
So right now, the program or you can say the interfacing file is rooted in the Ardino makeup.

24
00:02:27,000 --> 00:02:34,000
So over here, we just go to make our hub locate.

25
00:02:36,000 --> 00:02:37,000
Make the hub.

26
00:02:41,000 --> 00:02:49,000
And just like it so fast, we have to open our hair, we got on board.

27
00:02:52,000 --> 00:02:55,000
So right now the Concorde is on seven.

28
00:02:56,000 --> 00:03:07,000
Then we have to close and in between very close, we have to deal with these dolphins.

29
00:03:08,000 --> 00:03:12,000
So, one, we have to read the signal.

30
00:03:13,000 --> 00:03:18,000
They still signal and then we have to write the signal.

31
00:03:18,000 --> 00:03:28,000
So over here, we have to just connect this line and so close to an exit of sorts at an bladder out.

32
00:03:30,000 --> 00:03:38,000
And as you see, then we have to just select the PIN number, the PIN number nine.

33
00:03:38,000 --> 00:03:47,000
Putin is seven because that sensor is connected to the spinning pin number seven.

34
00:03:47,000 --> 00:03:50,000
And over here, we go to the venue.

35
00:03:51,000 --> 00:04:00,000
And for displaying the value, I just use a lady over here.

36
00:04:00,000 --> 00:04:04,000
As you see, this is my that sensor.

37
00:04:09,000 --> 00:04:23,000
Then we just connect this over here right now, it demands the PIN number for the buzzer, so the PIN

38
00:04:23,000 --> 00:04:30,000
number for the buzzer is PIN number eight and the output value is this.

39
00:04:31,000 --> 00:04:43,000
OK, so when I touch that that sensor, the buzzer in middle school over here, I just played by Lou

40
00:04:44,000 --> 00:04:53,000
and this is my button and I just make a simple error handler if there is some error.

41
00:04:54,000 --> 00:04:58,000
So I just run it as you see.

42
00:04:59,000 --> 00:05:03,000
So when I touch that, that sends the buzzer will blow.

43
00:05:06,000 --> 00:05:08,000
LLB, that center on.

44
00:05:12,000 --> 00:05:19,000
There is some at the PIN number is not a PIN number is 13.

45
00:05:19,000 --> 00:05:23,000
That's why the buzzer is not blocked.

46
00:05:25,000 --> 00:05:27,000
So just change the PIN number.

47
00:05:31,000 --> 00:05:33,000
So then I again run this.

48
00:05:34,000 --> 00:05:35,000
So then I touch

49
00:05:39,000 --> 00:05:41,000
as you see, the buzzer will blow.

50
00:05:43,000 --> 00:05:55,000
By the way, look, so you have to take care of these problems while creating a hardware project, so

51
00:05:55,000 --> 00:05:59,000
you have to knock down your bins carefully.

52
00:05:59,000 --> 00:06:11,000
So this is how you can acquire the signal and then read this digital signal and how you can interface

53
00:06:11,000 --> 00:06:15,000
a buzzer and a sensor using Ardino Nagar.

54
00:06:16,000 --> 00:06:17,000
Thank you.

