1
00:00:05,000 --> 00:00:06,000
Hello, parents.

2
00:00:06,000 --> 00:00:15,000
Today I will tell you how to generate digital signal using Arduino with the help of Python program.

3
00:00:15,000 --> 00:00:23,000
For that purpose, I just download the code from GitHub that is available over here.

4
00:00:23,000 --> 00:00:25,000
I expect this inside the.

5
00:00:27,000 --> 00:00:29,000
My python Arduino code over here.

6
00:00:29,000 --> 00:00:30,000
This is my.

7
00:00:33,000 --> 00:00:35,000
This is available in this file.

8
00:00:36,000 --> 00:00:38,000
You just download it from GitHub.

9
00:00:39,000 --> 00:00:40,000
Open it.

10
00:00:40,000 --> 00:00:43,000
Go to the sketches over here.

11
00:00:43,000 --> 00:00:44,000
You just find out.

12
00:00:45,000 --> 00:00:45,000
Prototype.

13
00:00:47,000 --> 00:00:48,000
Just open it.

14
00:00:55,000 --> 00:00:58,000
Just connect your Arduino with your PC.

15
00:01:00,000 --> 00:01:03,000
To find out the comport.

16
00:01:03,000 --> 00:01:05,000
Just go to the device manager.

17
00:01:08,000 --> 00:01:08,000
Open it.

18
00:01:09,000 --> 00:01:11,000
In the device manager.

19
00:01:12,000 --> 00:01:17,000
You just find out your home port inside the ports.

20
00:01:17,000 --> 00:01:23,000
As you see over here, I'm using Windows 10 inside the ports over here.

21
00:01:23,000 --> 00:01:26,000
This is my Arduino home port.

22
00:01:26,000 --> 00:01:28,000
That is home eight.

23
00:01:29,000 --> 00:01:30,000
Just close it.

24
00:01:30,000 --> 00:01:34,000
So this is the code you have to first.

25
00:01:35,000 --> 00:01:39,000
Bind to your Arduino before Python programming.

26
00:01:39,000 --> 00:01:42,000
So set up in the tools.

27
00:01:42,000 --> 00:01:47,000
Just set the board and the Arduino boards.

28
00:01:47,000 --> 00:01:52,000
I just use Arduino Uno and the com port eight is already selected.

29
00:01:53,000 --> 00:01:57,000
You just need to set these settings after this.

30
00:01:57,000 --> 00:01:59,000
Upload your code over here.

31
00:01:59,000 --> 00:02:04,000
This is your verify over here it is your upload.

32
00:02:04,000 --> 00:02:06,000
Just upload it.

33
00:02:06,000 --> 00:02:07,000
It will take hardly.

34
00:02:09,000 --> 00:02:10,000
3 to 4 seconds.

35
00:02:14,000 --> 00:02:16,000
After verifying.

36
00:02:18,000 --> 00:02:19,000
Right now, as you see.

37
00:02:21,000 --> 00:02:24,000
The case compiling the sketch.

38
00:02:28,000 --> 00:02:29,000
When?

39
00:02:30,000 --> 00:02:37,000
The code is uploaded to your Arduino over here, and both will blink.

40
00:02:38,000 --> 00:02:38,000
And check.

41
00:02:41,000 --> 00:02:44,000
So right now uploading is.

42
00:02:45,000 --> 00:02:46,000
In the process.

43
00:02:46,000 --> 00:02:47,000
So, as you see.

44
00:02:48,000 --> 00:02:49,000
Uploading is done.

45
00:02:49,000 --> 00:02:51,000
You just close this.

46
00:02:51,000 --> 00:02:54,000
You just go to your idle.

47
00:02:57,000 --> 00:02:58,000
Or here.

48
00:02:58,000 --> 00:02:59,000
This is my python.

49
00:02:59,000 --> 00:03:00,000
3.1.

50
00:03:00,000 --> 00:03:02,000
1.4.

51
00:03:02,000 --> 00:03:04,000
It is 64 bit.

52
00:03:04,000 --> 00:03:12,000
So today I will tell you how to generate a digital signal using python.

53
00:03:12,000 --> 00:03:14,000
For that purpose I just.

54
00:03:16,000 --> 00:03:16,000
Right.

55
00:03:16,000 --> 00:03:19,000
Or I just call the library.

56
00:03:19,000 --> 00:03:20,000
So from.

57
00:03:21,000 --> 00:03:22,000
Ardino.

58
00:03:26,000 --> 00:03:27,000
Import.

59
00:03:29,000 --> 00:03:29,000
Audi.

60
00:03:33,000 --> 00:03:36,000
You just need to write inside the.

61
00:03:39,000 --> 00:03:40,000
Skipped.

62
00:03:41,000 --> 00:03:46,000
So I just copy it and place it over here.

63
00:03:46,000 --> 00:03:52,000
So our dyno from our dyno import dyno.

64
00:03:52,000 --> 00:03:57,000
After this, we just need to import the time.

65
00:04:01,000 --> 00:04:03,000
Import time.

66
00:04:03,000 --> 00:04:07,000
If you want to play in this case.

67
00:04:08,000 --> 00:04:08,000
I just.

68
00:04:11,000 --> 00:04:13,000
Import it over here.

69
00:04:15,000 --> 00:04:20,000
So next you have to just set up the baud rate.

70
00:04:20,000 --> 00:04:28,000
And so for that purpose, baud is equal to Arduino.

71
00:04:31,000 --> 00:04:32,000
And over here.

72
00:04:32,000 --> 00:04:33,000
Parentheses.

73
00:04:33,000 --> 00:04:34,000
Inside the parentheses.

74
00:04:34,000 --> 00:04:36,000
You just set up the baud rate.

75
00:04:37,000 --> 00:04:40,000
That is in the case of Arduino Uno.

76
00:04:40,000 --> 00:04:42,000
That is 960.

77
00:04:43,000 --> 00:04:46,000
Then you have to set the port.

78
00:04:49,000 --> 00:04:50,000
This is the same X.

79
00:04:52,000 --> 00:04:52,000
Exd4.

80
00:04:54,000 --> 00:04:56,000
Orlando Arena.

81
00:04:58,000 --> 00:04:59,000
Over here.

82
00:04:59,000 --> 00:05:01,000
You just need to set the form.

83
00:05:02,000 --> 00:05:04,000
And in my case, it is form eight.

84
00:05:05,000 --> 00:05:07,000
So now you just.

85
00:05:08,000 --> 00:05:12,000
Need to set the pin and its mode.

86
00:05:12,000 --> 00:05:20,000
It is work in input mode or in work in output mode, because in the case of Arduino Uno, all the digital

87
00:05:20,000 --> 00:05:23,000
pins as you see over here, these are my digital pins.

88
00:05:23,000 --> 00:05:28,000
These digital pins works as input or output.

89
00:05:29,000 --> 00:05:29,000
Both.

90
00:05:30,000 --> 00:05:34,000
So just call the code.

91
00:05:36,000 --> 00:05:37,000
In more.

92
00:05:40,000 --> 00:05:42,000
It should be small in more.

93
00:05:45,000 --> 00:05:48,000
In number right now.

94
00:05:48,000 --> 00:05:50,000
This is the positive pin of my.

95
00:05:50,000 --> 00:05:51,000
This is the ground pin.

96
00:05:52,000 --> 00:05:56,000
Ground pin is connected to the ground and positive pin is connected to the PIN number 11.

97
00:05:56,000 --> 00:05:59,000
So set up over here.

98
00:05:59,000 --> 00:06:00,000
11.

99
00:06:02,000 --> 00:06:11,000
Then you have to set the mode that is output because in this case I'm just generating the signal.

100
00:06:12,000 --> 00:06:15,000
So over here you just need to.

101
00:06:16,000 --> 00:06:18,000
Sick note or.

102
00:06:18,000 --> 00:06:18,000
Right.

103
00:06:19,000 --> 00:06:21,000
So my things are digital.

104
00:06:23,000 --> 00:06:24,000
So these two.

105
00:06:24,000 --> 00:06:25,000
Right?

106
00:06:27,000 --> 00:06:28,000
Over here.

107
00:06:30,000 --> 00:06:30,000
Say the.

108
00:06:31,000 --> 00:06:32,000
PIN number is 11.

109
00:06:33,000 --> 00:06:38,000
Right now, the pin led is not glowing.

110
00:06:38,000 --> 00:06:45,000
So when I just said hi over here, it will generate a signal for me.

111
00:06:46,000 --> 00:06:49,000
The syntax is this one.

112
00:06:49,000 --> 00:06:53,000
So my code is ready, so just save it.

113
00:06:55,000 --> 00:06:59,000
I just say inside my already created folder.

114
00:07:01,000 --> 00:07:02,000
And the name is.

115
00:07:02,000 --> 00:07:02,000
Let's see.

116
00:07:03,000 --> 00:07:04,000
Okay.

117
00:07:05,000 --> 00:07:07,000
So is saved.

118
00:07:08,000 --> 00:07:09,000
Let's run it.

119
00:07:12,000 --> 00:07:15,000
When you run it as you see it.

120
00:07:17,000 --> 00:07:22,000
So this is how you can generate a signal if you want to generate a low signal.

121
00:07:24,000 --> 00:07:30,000
So just go to the code in the place of hi, you just put low.

122
00:07:32,000 --> 00:07:32,000
Okay.

123
00:07:33,000 --> 00:07:35,000
So again, save it.

124
00:07:36,000 --> 00:07:36,000
Run it.

125
00:07:37,000 --> 00:07:37,000
It will.

126
00:07:40,000 --> 00:07:40,000
Of your.

127
00:07:41,000 --> 00:07:43,000
So this is how you can generate.

128
00:07:45,000 --> 00:07:50,000
Install signal with the help of Python using Arduino.

129
00:07:50,000 --> 00:07:51,000
Thank you.

