1
00:00:17,000 --> 00:00:25,000
In today's lecture, I will just show you how to control a DC motor using National instruments.

2
00:00:26,000 --> 00:00:31,000
Dec 6001 with the help of Matlab.

3
00:00:32,000 --> 00:00:37,000
So first how to interface this Dec card.

4
00:00:38,000 --> 00:00:48,000
I already told you in my previous videos in today's lecture I just use as you see analog output pin

5
00:00:48,000 --> 00:00:52,000
A0 to control the motor.

6
00:00:52,000 --> 00:01:00,000
So right now one is ground, one is positive signal that is A0 zero.

7
00:01:00,000 --> 00:01:06,000
So Now I just go to the software part over here.

8
00:01:06,000 --> 00:01:13,000
I just drag analog output, double click over here.

9
00:01:14,000 --> 00:01:19,000
I just select analog output zero and apply it.

10
00:01:23,000 --> 00:01:23,000
Okay.

11
00:01:24,000 --> 00:01:27,000
Now I just need a constant value.

12
00:01:32,000 --> 00:01:40,000
How much value I need to send to the outer world through this analog output.

13
00:01:44,000 --> 00:01:46,000
So just connect it.

14
00:01:48,000 --> 00:01:51,000
Let's check what happened to it.

15
00:01:53,000 --> 00:02:00,000
Right now it is in infinite running phase.

16
00:02:00,000 --> 00:02:03,000
As you see over here time goes.

17
00:02:04,000 --> 00:02:09,000
But motor is not running.

18
00:02:10,000 --> 00:02:17,000
So let's say I just put over here three ply still.

19
00:02:20,000 --> 00:02:25,000
Now I just put five five volt signal to the outer world.

20
00:02:26,000 --> 00:02:27,000
It is not running.

21
00:02:28,000 --> 00:02:30,000
Let's say six.

22
00:02:32,000 --> 00:02:34,000
Still, it is not running.

23
00:02:34,000 --> 00:02:44,000
This is the problem because in the datasheet of this DAC card, it is not providing sufficient current

24
00:02:44,000 --> 00:02:46,000
to run this motor.

25
00:02:47,000 --> 00:02:47,000
Okay.

26
00:02:47,000 --> 00:02:52,000
Or you can say minimum torque is not provided by the current.

27
00:02:53,000 --> 00:02:59,000
So minimum current requirement to provide to fill up the minimum current requirement.

28
00:02:59,000 --> 00:03:03,000
We just use Darlington pair over here.

29
00:03:03,000 --> 00:03:04,000
I just use a transistor.

30
00:03:04,000 --> 00:03:04,000
Step.

31
00:03:05,000 --> 00:03:09,000
This is where I just tell you the number.

32
00:03:09,000 --> 00:03:12,000
It is Bc547.

33
00:03:13,000 --> 00:03:15,000
It is bc547.

34
00:03:15,000 --> 00:03:18,000
As you see over here, I just use two transistors.

35
00:03:19,000 --> 00:03:22,000
These are connected in Darlington pair.

36
00:03:22,000 --> 00:03:27,000
So to run this particular motor I just use this ground.

37
00:03:27,000 --> 00:03:29,000
Ground is over here.

38
00:03:29,000 --> 00:03:36,000
Now I just put VCC to the collector.

39
00:03:37,000 --> 00:03:40,000
As you see over here collector is given.

40
00:03:41,000 --> 00:03:50,000
Now I just need to put value zero over here initially in the software part.

41
00:03:50,000 --> 00:03:55,000
So this is the output signal I just give it to the base.

42
00:03:56,000 --> 00:04:09,000
And over here this is my signal for the motor I just connect It to the over here.

43
00:04:10,000 --> 00:04:13,000
Let's check what happened now.

44
00:04:13,000 --> 00:04:14,000
I just put three.

45
00:04:15,000 --> 00:04:22,000
As you see, motor is running in this case because using this we just amplify the current.

46
00:04:22,000 --> 00:04:29,000
And this current goes to the motor which will provide sufficient torque to the motor.

47
00:04:29,000 --> 00:04:32,000
So let's say I just put over here two.

48
00:04:33,000 --> 00:04:37,000
Right now it is running in less speed.

49
00:04:37,000 --> 00:04:38,000
As you see.

50
00:04:38,000 --> 00:04:42,000
Let's say I just put 1.5 over here.

51
00:04:43,000 --> 00:04:45,000
Now it is stopped okay.

52
00:04:45,000 --> 00:04:51,000
So again I just put let's say 2.5.

53
00:04:52,000 --> 00:04:53,000
It is running.

54
00:04:56,000 --> 00:04:59,000
1.9 let's check.

55
00:05:00,000 --> 00:05:03,000
Still it is running with very less speed.

56
00:05:03,000 --> 00:05:08,000
As you see I just show you over here.

57
00:05:08,000 --> 00:05:11,000
Running speed of this motor.

58
00:05:11,000 --> 00:05:13,000
Now it is stopped.

59
00:05:14,000 --> 00:05:16,000
Maybe lose connections.

60
00:05:18,000 --> 00:05:20,000
So let's say it is.

61
00:05:21,000 --> 00:05:22,000
I put three over here.

62
00:05:22,000 --> 00:05:23,000
Right now it is running.

63
00:05:24,000 --> 00:05:32,000
When you put four over here, basically when you put three over here, you provide three volt signal.

64
00:05:33,000 --> 00:05:35,000
Now I just put four.

65
00:05:35,000 --> 00:05:38,000
Speed is high in this case.

66
00:05:38,000 --> 00:05:41,000
Again I just put let's say.

67
00:05:43,000 --> 00:05:45,000
Five over here.

68
00:05:45,000 --> 00:05:47,000
More speed is there.

69
00:05:47,000 --> 00:05:48,000
Okay.

70
00:05:48,000 --> 00:05:59,000
So this is how you can control the speed of this DC motor using any USB 6001 deck card.

71
00:06:00,000 --> 00:06:01,000
Thank you

