1
00:00:05,000 --> 00:00:06,000
Hello, friends.

2
00:00:06,000 --> 00:00:11,000
Today I just discussed about two sensors.

3
00:00:11,000 --> 00:00:17,000
One is HDR and one is touch sensor.

4
00:00:17,000 --> 00:00:24,000
So both the sensors will generate analog signal as well as digital signal.

5
00:00:25,000 --> 00:00:30,000
In the case of analog signal, it will generate when we just go with the LDR, it will generate around

6
00:00:30,000 --> 00:00:36,000
4.8V and the same way 4.7V touch sensor generate.

7
00:00:36,000 --> 00:00:43,000
If we go with the digital signal, it will generate a high when we touch it or when we place my hand

8
00:00:43,000 --> 00:00:44,000
over the LDR.

9
00:00:44,000 --> 00:00:52,000
As you see over here on the port A over here, I just made the connection for LDR and made the connection

10
00:00:52,000 --> 00:00:55,000
for this touch sensor over the port, see?

11
00:00:56,000 --> 00:01:00,000
So right now I just show you the.

12
00:01:02,000 --> 00:01:05,000
Programming part of these particular cases.

13
00:01:05,000 --> 00:01:10,000
So first I just use digital input signal.

14
00:01:11,000 --> 00:01:11,000
Well.

15
00:01:12,000 --> 00:01:17,000
In this case I just use for Port A.

16
00:01:19,000 --> 00:01:22,000
This will show me the output of Port A.

17
00:01:25,000 --> 00:01:30,000
I just select the PIN number ten over here because I just connect it to PIN number 13.

18
00:01:30,000 --> 00:01:32,000
The output of LDR.

19
00:01:34,000 --> 00:01:41,000
Now I just use another Express VI for the touch sensor also.

20
00:01:42,000 --> 00:01:44,000
Just go to the Mario.

21
00:01:46,000 --> 00:01:48,000
Digital input.

22
00:01:53,000 --> 00:01:58,000
And over here, I just need to select the port.

23
00:01:58,000 --> 00:01:59,000
See?

24
00:02:00,000 --> 00:02:02,000
Digital pin zero.

25
00:02:06,000 --> 00:02:07,000
Or see discipline.

26
00:02:07,000 --> 00:02:07,000
Zero.

27
00:02:07,000 --> 00:02:09,000
I have selected over here.

28
00:02:10,000 --> 00:02:14,000
Touch sensor and IR sensor both are interfaced.

29
00:02:16,000 --> 00:02:18,000
With my radio.

30
00:02:18,000 --> 00:02:23,000
Now I just want to show the output of these two.

31
00:02:26,000 --> 00:02:28,000
Signals over the.

32
00:02:29,000 --> 00:02:30,000
LEDs.

33
00:02:30,000 --> 00:02:32,000
So I just use this particular.

34
00:02:34,000 --> 00:02:34,000
A lady.

35
00:02:35,000 --> 00:02:40,000
I want to show the output over the software as well, over the hardware.

36
00:02:40,000 --> 00:02:41,000
So I just.

37
00:02:43,000 --> 00:02:45,000
Select two LEDs.

38
00:02:45,000 --> 00:02:50,000
I just use PIN number zero for LDR and three for.

39
00:02:51,000 --> 00:02:52,000
That census.

40
00:02:56,000 --> 00:03:05,000
So right now I also want to use the button to stop the code that is on board.

41
00:03:05,000 --> 00:03:05,000
Board.

42
00:03:06,000 --> 00:03:07,000
On board button.

43
00:03:08,000 --> 00:03:13,000
I'm not using any stop button in this case.

44
00:03:14,000 --> 00:03:16,000
I just want to stop the.

45
00:03:18,000 --> 00:03:21,000
My area code using hardware.

46
00:03:24,000 --> 00:03:25,000
Button only.

47
00:03:26,000 --> 00:03:31,000
So as you see over here, this is my signal.

48
00:03:31,000 --> 00:03:34,000
This is my touch sensor signal.

49
00:03:35,000 --> 00:03:40,000
I just create a while loop over here to continue.

50
00:03:42,000 --> 00:03:43,000
Reading and writing.

51
00:03:44,000 --> 00:03:45,000
Just stopping.

52
00:03:46,000 --> 00:03:49,000
I just connect this button to the while loop.

53
00:03:49,000 --> 00:03:51,000
Now I just save it.

54
00:03:54,000 --> 00:03:57,000
You just need to run the code.

55
00:04:01,000 --> 00:04:02,000
In this case.

56
00:04:03,000 --> 00:04:05,000
I'm just forget to.

57
00:04:07,000 --> 00:04:10,000
Create control indicator over the software.

58
00:04:11,000 --> 00:04:14,000
In this case, we just check the output or the hardware only.

59
00:04:15,000 --> 00:04:24,000
So when I just put my hand over the as you see, zero goes high on board and when I just touch it will

60
00:04:24,000 --> 00:04:26,000
turn on the Led three.

61
00:04:26,000 --> 00:04:29,000
So now I just stop this.

62
00:04:30,000 --> 00:04:32,000
So I just press the button.

63
00:04:32,000 --> 00:04:33,000
It will stop my code.

64
00:04:33,000 --> 00:04:35,000
Now also.

65
00:04:37,000 --> 00:04:38,000
Check the output.

66
00:04:40,000 --> 00:04:44,000
Let us say this is my elder.

67
00:04:49,000 --> 00:04:51,000
Another button I want to use.

68
00:04:53,000 --> 00:04:56,000
Let's say this is my touch sensor.

69
00:05:02,000 --> 00:05:05,000
I just change the color of this particular.

70
00:05:06,000 --> 00:05:09,000
You just go to the properties.

71
00:05:10,000 --> 00:05:11,000
In the properties.

72
00:05:11,000 --> 00:05:13,000
You just set the turn on color.

73
00:05:13,000 --> 00:05:16,000
Right now the color is yellow.

74
00:05:17,000 --> 00:05:24,000
I just use another led to check the button status that is on board button.

75
00:05:25,000 --> 00:05:26,000
It is my button.

76
00:05:29,000 --> 00:05:29,000
To stop.

77
00:05:31,000 --> 00:05:35,000
So over here again, I just change the color.

78
00:05:36,000 --> 00:05:38,000
Let's say it is red.

79
00:05:42,000 --> 00:05:45,000
So just need to connect these.

80
00:05:46,000 --> 00:05:47,000
Elder.

81
00:05:49,000 --> 00:05:50,000
That sensor.

82
00:05:54,000 --> 00:05:56,000
And this is my button.

83
00:05:58,000 --> 00:06:01,000
So you need to save it again.

84
00:06:01,000 --> 00:06:02,000
Run this code.

85
00:06:02,000 --> 00:06:05,000
You can also create this code using low level coding.

86
00:06:17,000 --> 00:06:18,000
So now.

87
00:06:19,000 --> 00:06:21,000
As you see when I just put my hand.

88
00:06:22,000 --> 00:06:23,000
Led on board.

89
00:06:24,000 --> 00:06:28,000
Led zero goes high, goes high on the software part.

90
00:06:28,000 --> 00:06:29,000
Touch Sensor.

91
00:06:31,000 --> 00:06:32,000
As you see.

92
00:06:32,000 --> 00:06:34,000
And now just press the button.

93
00:06:34,000 --> 00:06:36,000
It will stop my loop.

94
00:06:37,000 --> 00:06:46,000
So this is how you can create your own codes using Miro application.

95
00:06:46,000 --> 00:06:48,000
Miro Educational Board.

96
00:06:49,000 --> 00:06:51,000
So this is all about today's lecture.

97
00:06:51,000 --> 00:06:52,000
Thank you.

