In today's lecture, I will just show you how to control a DC motor using National instruments.
Dec 6001 with the help of Matlab.
So first how to interface this Dec card.
I already told you in my previous videos in today's lecture I just use as you see analog output pin
A0 to control the motor.
So right now one is ground, one is positive signal that is A0 zero.
So Now I just go to the software part over here.
I just drag analog output, double click over here.
I just select analog output zero and apply it.
Okay.
Now I just need a constant value.
How much value I need to send to the outer world through this analog output.
So just connect it.
Let's check what happened to it.
Right now it is in infinite running phase.
As you see over here time goes.
But motor is not running.
So let's say I just put over here three ply still.
Now I just put five five volt signal to the outer world.
It is not running.
Let's say six.
Still, it is not running.
This is the problem because in the datasheet of this DAC card, it is not providing sufficient current
to run this motor.
Okay.
Or you can say minimum torque is not provided by the current.
So minimum current requirement to provide to fill up the minimum current requirement.
We just use Darlington pair over here.
I just use a transistor.
Step.
This is where I just tell you the number.
It is Bc547.
It is bc547.
As you see over here, I just use two transistors.
These are connected in Darlington pair.
So to run this particular motor I just use this ground.
Ground is over here.
Now I just put VCC to the collector.
As you see over here collector is given.
Now I just need to put value zero over here initially in the software part.
So this is the output signal I just give it to the base.
And over here this is my signal for the motor I just connect It to the over here.
Let's check what happened now.
I just put three.
As you see, motor is running in this case because using this we just amplify the current.
And this current goes to the motor which will provide sufficient torque to the motor.
So let's say I just put over here two.
Right now it is running in less speed.
As you see.
Let's say I just put 1.5 over here.
Now it is stopped okay.
So again I just put let's say 2.5.
It is running.
1.9 let's check.
Still it is running with very less speed.
As you see I just show you over here.
Running speed of this motor.
Now it is stopped.
Maybe lose connections.
So let's say it is.
I put three over here.
Right now it is running.
When you put four over here, basically when you put three over here, you provide three volt signal.
Now I just put four.
Speed is high in this case.
Again I just put let's say.
Five over here.
More speed is there.
Okay.
So this is how you can control the speed of this DC motor using any USB 6001 deck card.
Thank you