1
00:00:05,000 --> 00:00:05,000
Purpose.

2
00:00:05,000 --> 00:00:12,000
I just download the code from GitHub that is available over here.

3
00:00:12,000 --> 00:00:14,000
I expect this inside the.

4
00:00:15,000 --> 00:00:16,000
I cannot afford.

5
00:00:17,000 --> 00:00:20,000
This is my sketch.

6
00:00:21,000 --> 00:00:25,000
This is available in this zip file is downloaded from GitHub.

7
00:00:26,000 --> 00:00:27,000
Open it.

8
00:00:27,000 --> 00:00:30,000
Open the sketches over here.

9
00:00:30,000 --> 00:00:32,000
You just find out over time.

10
00:00:33,000 --> 00:00:34,000
Just open it.

11
00:00:40,000 --> 00:00:43,000
Just connect your Arduino with your PC.

12
00:00:45,000 --> 00:00:50,000
To find out that on board the device manager.

13
00:00:52,000 --> 00:00:55,000
Open it in the device manager.

14
00:00:56,000 --> 00:01:00,000
You just find out your home port inside the ports.

15
00:01:01,000 --> 00:01:06,000
And you see here, I'm using Windows 10 inside the ports over here.

16
00:01:07,000 --> 00:01:10,000
This is my home port that is on it.

17
00:01:11,000 --> 00:01:12,000
Just it.

18
00:01:13,000 --> 00:01:16,000
So this is the code you have to first.

19
00:01:17,000 --> 00:01:21,000
Line to your Arduino before Python programming.

20
00:01:21,000 --> 00:01:28,000
So setup in the tools, just click the board, the Arduino AVR boards I just use.

21
00:01:28,000 --> 00:01:31,000
Arduino, Uno and the foam board.

22
00:01:31,000 --> 00:01:37,000
It is already in just 60s after this.

23
00:01:37,000 --> 00:01:39,000
Upload your code over here.

24
00:01:39,000 --> 00:01:41,000
This is your verify.

25
00:01:42,000 --> 00:01:43,000
Over here it is.

26
00:01:44,000 --> 00:01:45,000
Just upload it.

27
00:01:45,000 --> 00:01:46,000
It will take only.

28
00:01:48,000 --> 00:01:49,000
3 to 4 seconds.

29
00:01:53,000 --> 00:01:55,000
After verifying.

30
00:01:56,000 --> 00:01:57,000
Right now, as you see.

31
00:01:59,000 --> 00:01:59,000
Okay.

32
00:02:00,000 --> 00:02:01,000
Compiling the sketch.

33
00:02:05,000 --> 00:02:06,000
When?

34
00:02:07,000 --> 00:02:15,000
The code is uploaded to your Arduino over here, and we'll both blink and check.

35
00:02:17,000 --> 00:02:21,000
So right now, loading is in the process.

36
00:02:21,000 --> 00:02:26,000
So as you see uploading this, then you just close this.

37
00:02:26,000 --> 00:02:28,000
You just go to your.

38
00:02:32,000 --> 00:02:32,000
Over here.

39
00:02:32,000 --> 00:02:33,000
This is my python.

40
00:02:34,000 --> 00:02:36,000
Three point 11.4.

41
00:02:36,000 --> 00:02:38,000
It is 64 bit.

42
00:02:38,000 --> 00:02:41,000
So I will tell you how to.

43
00:02:44,000 --> 00:02:45,000
Hello, friends.

44
00:02:45,000 --> 00:02:54,000
Today I will tell you how to acquire multiple digital signals with the help of Arduino using Python

45
00:02:54,000 --> 00:02:54,000
programming.

46
00:02:55,000 --> 00:03:04,000
So in earlier video, I just use this code for acquiring digital signal with a single line.

47
00:03:04,000 --> 00:03:09,000
So we first import your Arduino library.

48
00:03:09,000 --> 00:03:10,000
Import time.

49
00:03:11,000 --> 00:03:14,000
Then you just set a variable.

50
00:03:15,000 --> 00:03:16,000
Inside.

51
00:03:16,000 --> 00:03:20,000
He just set the poor rate and comfort.

52
00:03:20,000 --> 00:03:22,000
That is your.

53
00:03:23,000 --> 00:03:25,000
Arduino connected to your PC.

54
00:03:27,000 --> 00:03:28,000
Then you just mode.

55
00:03:29,000 --> 00:03:30,000
Set the mode for single pin.

56
00:03:31,000 --> 00:03:34,000
In this case, I'm just using three.

57
00:03:35,000 --> 00:03:36,000
Mr. Signal.

58
00:03:37,000 --> 00:03:38,000
Three pins.

59
00:03:38,000 --> 00:03:43,000
So over here, I just focused on the hardware part.

60
00:03:43,000 --> 00:03:46,000
I just connect the plus five volt.

61
00:03:47,000 --> 00:03:51,000
As you see over here, this is my plus five volt pin.

62
00:03:52,000 --> 00:03:55,000
And this one is my ground pin.

63
00:03:56,000 --> 00:03:59,000
I just connect this to over here.

64
00:03:59,000 --> 00:04:02,000
So this is my this lane is my ground lane.

65
00:04:02,000 --> 00:04:05,000
And this lane is my.

66
00:04:06,000 --> 00:04:07,000
Plus five.

67
00:04:07,000 --> 00:04:08,000
So I just put over here.

68
00:04:08,000 --> 00:04:11,000
This is my plus five over here.

69
00:04:11,000 --> 00:04:12,000
This is my plus five.

70
00:04:12,000 --> 00:04:14,000
So I just use.

71
00:04:15,000 --> 00:04:16,000
Different pins.

72
00:04:16,000 --> 00:04:20,000
So I just connect PIN number 12 and 11.

73
00:04:21,000 --> 00:04:21,000
So.

74
00:04:23,000 --> 00:04:23,000
Green one.

75
00:04:25,000 --> 00:04:29,000
Is my PIN number 12 and Blue one is my PIN number 11.

76
00:04:29,000 --> 00:04:33,000
And I also use seventh and sixth pin.

77
00:04:35,000 --> 00:04:42,000
So I am just using four digital pens to read the signal.

78
00:04:43,000 --> 00:04:44,000
So let's check.

79
00:04:45,000 --> 00:04:55,000
So in the software part, I just copy this and copy it four times because.

80
00:04:56,000 --> 00:04:58,000
Total number of pins are four.

81
00:04:58,000 --> 00:05:03,000
So now pins are connected to PIN number 1112.

82
00:05:03,000 --> 00:05:04,000
Set up.

83
00:05:05,000 --> 00:05:08,000
Okay, so seven and six.

84
00:05:10,000 --> 00:05:11,000
So now.

85
00:05:12,000 --> 00:05:16,000
Ben More and Vince are ready.

86
00:05:16,000 --> 00:05:19,000
Now you have to write the signal.

87
00:05:19,000 --> 00:05:23,000
So over here, let's another variable.

88
00:05:23,000 --> 00:05:24,000
Set another variable.

89
00:05:24,000 --> 00:05:28,000
That is, we just copy it again.

90
00:05:29,000 --> 00:05:30,000
Write it multiple times.

91
00:05:34,000 --> 00:05:37,000
Now the variable should be defined.

92
00:05:37,000 --> 00:05:43,000
So it is, let's say the variable and the pin number is or here it is, 12.

93
00:05:45,000 --> 00:05:46,000
And here it is.

94
00:05:46,000 --> 00:05:47,000
11.

95
00:05:47,000 --> 00:05:56,000
Then over here I have another variable that is C for the number seven and D.

96
00:05:57,000 --> 00:05:58,000
For the PIN number.

97
00:05:59,000 --> 00:05:59,000
Six.

98
00:06:00,000 --> 00:06:07,000
So let's in the first case, connect all the pins to the high signal.

99
00:06:09,000 --> 00:06:12,000
So over here, this is my high signal.

100
00:06:13,000 --> 00:06:15,000
Or you can say plus five volt.

101
00:06:19,000 --> 00:06:22,000
So now you have to just print it.

102
00:06:31,000 --> 00:06:32,000
Just change the variable name.

103
00:06:35,000 --> 00:06:35,000
The.

104
00:06:36,000 --> 00:06:41,000
Fee and fee and just change the sleep time.

105
00:06:41,000 --> 00:06:45,000
Let's say it will read after one second.

106
00:06:45,000 --> 00:06:47,000
So save it.

107
00:06:47,000 --> 00:06:48,000
Run it.

108
00:06:50,000 --> 00:06:51,000
So when you run it.

109
00:06:53,000 --> 00:06:57,000
You can check the signal 1114 times one.

110
00:06:58,000 --> 00:07:01,000
In here if you want to change the signal.

111
00:07:01,000 --> 00:07:07,000
Let's say I'm just changing pin number six and seven to the ground.

112
00:07:07,000 --> 00:07:13,000
In that case, you just check 110110.

113
00:07:14,000 --> 00:07:14,000
India.

114
00:07:23,000 --> 00:07:24,000
110.

115
00:07:24,000 --> 00:07:30,000
Because if the connections are loose, in that case, the signal.

116
00:07:33,000 --> 00:07:35,000
We will provide caucusing.

117
00:07:35,000 --> 00:07:39,000
So I just connect all the signals to the zero.

118
00:07:39,000 --> 00:07:40,000
So let's check.

119
00:07:43,000 --> 00:07:43,000
I take one it.

120
00:07:57,000 --> 00:08:00,000
As you see over here, all the signals are zero.

121
00:08:00,000 --> 00:08:05,000
So this is how you can generate a four bit signal.

122
00:08:06,000 --> 00:08:08,000
Or how not generate four bit.

123
00:08:09,000 --> 00:08:14,000
Read how to read four bit signal with the help of Arduino.

124
00:08:14,000 --> 00:08:18,000
If the connections are loose, it will generate faulty signal.

125
00:08:18,000 --> 00:08:26,000
So this is all about how to read multiple digital signals with the help of Arduino.

126
00:08:26,000 --> 00:08:28,000
As you see all the pins.

127
00:08:28,000 --> 00:08:33,000
PIN number six, seven, 11 and 12 all are connected to my.

128
00:08:35,000 --> 00:08:35,000
Count.

129
00:08:36,000 --> 00:08:38,000
So that's why it will generate ground.

130
00:08:38,000 --> 00:08:45,000
And when I just connect it to the signal, you can check what happened to it.

131
00:08:48,000 --> 00:08:52,000
So the rate of signal is very high.

132
00:08:52,000 --> 00:08:57,000
So it will generate signal after some time.

133
00:08:57,000 --> 00:08:58,000
After some time.

134
00:08:59,000 --> 00:09:01,000
So I just close it.

135
00:09:04,000 --> 00:09:04,000
Again.

136
00:09:04,000 --> 00:09:05,000
Run it.

137
00:09:09,000 --> 00:09:10,000
So you just.

138
00:09:12,000 --> 00:09:12,000
James.

139
00:09:13,000 --> 00:09:14,000
Your code.

140
00:09:15,000 --> 00:09:18,000
Do not change your hardware connections in between.

141
00:09:19,000 --> 00:09:21,000
It will create some error.

142
00:09:21,000 --> 00:09:23,000
So let's check over here.

143
00:09:23,000 --> 00:09:26,000
When I just change this to the brown.

144
00:09:28,000 --> 00:09:32,000
Surgery generating error for me right now.

145
00:09:32,000 --> 00:09:33,000
It is.

146
00:09:34,000 --> 00:09:37,000
Okay, so this is how you can read.

147
00:09:39,000 --> 00:09:43,000
All digital signals with the help of Python program.

148
00:09:43,000 --> 00:09:44,000
Thank you.

