Purpose.
I just download the code from GitHub that is available over here.
I expect this inside the.
I cannot afford.
This is my sketch.
This is available in this zip file is downloaded from GitHub.
Open it.
Open the sketches over here.
You just find out over time.
Just open it.
Just connect your Arduino with your PC.
To find out that on board the device manager.
Open it in the device manager.
You just find out your home port inside the ports.
And you see here, I'm using Windows 10 inside the ports over here.
This is my home port that is on it.
Just it.
So this is the code you have to first.
Line to your Arduino before Python programming.
So setup in the tools, just click the board, the Arduino AVR boards I just use.
Arduino, Uno and the foam board.
It is already in just 60s after this.
Upload your code over here.
This is your verify.
Over here it is.
Just upload it.
It will take only.
3 to 4 seconds.
After verifying.
Right now, as you see.
Okay.
Compiling the sketch.
When?
The code is uploaded to your Arduino over here, and we'll both blink and check.
So right now, loading is in the process.
So as you see uploading this, then you just close this.
You just go to your.
Over here.
This is my python.
Three point 11.4.
It is 64 bit.
So I will tell you how to.
Hello, friends.
Today I will tell you how to acquire multiple digital signals with the help of Arduino using Python
programming.
So in earlier video, I just use this code for acquiring digital signal with a single line.
So we first import your Arduino library.
Import time.
Then you just set a variable.
Inside.
He just set the poor rate and comfort.
That is your.
Arduino connected to your PC.
Then you just mode.
Set the mode for single pin.
In this case, I'm just using three.
Mr. Signal.
Three pins.
So over here, I just focused on the hardware part.
I just connect the plus five volt.
As you see over here, this is my plus five volt pin.
And this one is my ground pin.
I just connect this to over here.
So this is my this lane is my ground lane.
And this lane is my.
Plus five.
So I just put over here.
This is my plus five over here.
This is my plus five.
So I just use.
Different pins.
So I just connect PIN number 12 and 11.
So.
Green one.
Is my PIN number 12 and Blue one is my PIN number 11.
And I also use seventh and sixth pin.
So I am just using four digital pens to read the signal.
So let's check.
So in the software part, I just copy this and copy it four times because.
Total number of pins are four.
So now pins are connected to PIN number 1112.
Set up.
Okay, so seven and six.
So now.
Ben More and Vince are ready.
Now you have to write the signal.
So over here, let's another variable.
Set another variable.
That is, we just copy it again.
Write it multiple times.
Now the variable should be defined.
So it is, let's say the variable and the pin number is or here it is, 12.
And here it is.
11.
Then over here I have another variable that is C for the number seven and D.
For the PIN number.
Six.
So let's in the first case, connect all the pins to the high signal.
So over here, this is my high signal.
Or you can say plus five volt.
So now you have to just print it.
Just change the variable name.
The.
Fee and fee and just change the sleep time.
Let's say it will read after one second.
So save it.
Run it.
So when you run it.
You can check the signal 1114 times one.
In here if you want to change the signal.
Let's say I'm just changing pin number six and seven to the ground.
In that case, you just check 110110.
India.
110.
Because if the connections are loose, in that case, the signal.
We will provide caucusing.
So I just connect all the signals to the zero.
So let's check.
I take one it.
As you see over here, all the signals are zero.
So this is how you can generate a four bit signal.
Or how not generate four bit.
Read how to read four bit signal with the help of Arduino.
If the connections are loose, it will generate faulty signal.
So this is all about how to read multiple digital signals with the help of Arduino.
As you see all the pins.
PIN number six, seven, 11 and 12 all are connected to my.
Count.
So that's why it will generate ground.
And when I just connect it to the signal, you can check what happened to it.
So the rate of signal is very high.
So it will generate signal after some time.
After some time.
So I just close it.
Again.
Run it.
So you just.
James.
Your code.
Do not change your hardware connections in between.
It will create some error.
So let's check over here.
When I just change this to the brown.
Surgery generating error for me right now.
It is.
Okay, so this is how you can read.
All digital signals with the help of Python program.
Thank you.