1
00:00:12,300 --> 00:00:12,700
Hello.

2
00:00:12,720 --> 00:00:21,390
In this tutorial Vivillon, learn how can we use that force of encoder and how can we calculate r.p.m.

3
00:00:21,390 --> 00:00:22,200
of the motor?

4
00:00:22,980 --> 00:00:28,020
I will create a new project and this device type.

5
00:00:28,200 --> 00:00:30,750
This tool is OK for me, for the simulator.

6
00:00:31,020 --> 00:00:32,550
And let's create any program.

7
00:00:33,860 --> 00:00:37,610
And there's going to be little diagram is OK for me.

8
00:00:40,270 --> 00:00:44,740
Then firstly, we need to define our counter.

9
00:00:45,010 --> 00:00:53,470
Let's start with the L.D and one thousand and I will reset em one thousand two hundred thirty five.

10
00:00:54,370 --> 00:00:58,120
Why this is counter 235.

11
00:00:58,150 --> 00:01:01,720
This is the high speed counter count on or.

12
00:01:03,020 --> 00:01:13,670
Up and down what I mean, if this is on, if I said this and 1235, it will count down or if I resisted

13
00:01:13,850 --> 00:01:16,850
or if it is off, it will count up.

14
00:01:16,880 --> 00:01:17,930
This is the first thing.

15
00:01:18,200 --> 00:01:22,700
And another thing I will write my coat to here, double counter.

16
00:01:22,850 --> 00:01:28,070
Then that means I spit counter as you know that counter 235.

17
00:01:28,370 --> 00:01:31,490
And let's skew it data to here.

18
00:01:31,490 --> 00:01:35,720
For example, randomly this one, this is the first thing.

19
00:01:35,930 --> 00:01:39,830
And the second thing we need to calculate and r.p.m..

20
00:01:40,010 --> 00:01:42,350
What is r.p.m. revolution?

21
00:01:44,000 --> 00:01:45,260
Per minute.

22
00:01:45,650 --> 00:01:50,420
And each time this input is connected to, for example, it's zero.

23
00:01:50,450 --> 00:01:52,310
This is my sensor.

24
00:01:53,560 --> 00:01:54,010
Input.

25
00:01:54,220 --> 00:01:54,640
OK.

26
00:01:54,940 --> 00:02:00,730
And then if I use normally normal input to zero.

27
00:02:00,820 --> 00:02:06,700
What will happen because of the very high speed, for example, your motor is turning one thousand four

28
00:02:06,700 --> 00:02:07,540
hundred r.p.m..

29
00:02:07,840 --> 00:02:14,590
It is not going to be count or it may gear and not a correct result.

30
00:02:14,770 --> 00:02:17,200
So we need to use double counter.

31
00:02:17,500 --> 00:02:19,000
That means high speed counter.

32
00:02:19,240 --> 00:02:22,950
Then we will catch each pulse from zero.

33
00:02:23,140 --> 00:02:27,700
The sensor input, OK, and each one minute.

34
00:02:27,910 --> 00:02:29,020
So this is a minute.

35
00:02:29,030 --> 00:02:42,400
So each pulse, for example, one pulse and how many time and for example, in minute 60 seconds each

36
00:02:42,400 --> 00:02:50,440
second or in one one minute how many pulses came to us, then that will be resolved and that will be

37
00:02:50,440 --> 00:02:51,850
our r.p.m..

38
00:02:52,120 --> 00:02:54,310
So let's start with the gain.

39
00:02:54,460 --> 00:03:01,090
LDM one thousand, OK, and let's define the timer and this timer is going to count.

40
00:03:02,100 --> 00:03:04,470
One minute, OK, this is the first thing.

41
00:03:04,790 --> 00:03:12,990
And each time I will move a double move, we start to counter that talked to, for example, the five

42
00:03:12,990 --> 00:03:13,810
hundred and five.

43
00:03:13,910 --> 00:03:16,470
OK, this is my roommate area.

44
00:03:16,710 --> 00:03:25,530
And also, let's continue with the LDP or against start with and one thousand each.

45
00:03:26,640 --> 00:03:29,130
One minute, OK, one minute is done.

46
00:03:29,460 --> 00:03:30,450
What will happen?

47
00:03:30,750 --> 00:03:39,300
I will reset timer first, the reset timer zero because of why the second one minute time is going to

48
00:03:39,300 --> 00:03:40,140
be count again.

49
00:03:40,290 --> 00:03:44,670
This is the first thing and I will reset my counter also.

50
00:03:44,910 --> 00:03:55,020
And also, I will move my five hundred and five data to, for example, randomly this data.

51
00:03:55,440 --> 00:03:57,420
So what is that means?

52
00:03:58,770 --> 00:04:01,130
We are counting, OK?

53
00:04:01,320 --> 00:04:03,810
And each this is that fast.

54
00:04:06,350 --> 00:04:14,090
Is connected through, for example, to zero what we hear A and B and Z for us right into encoder,

55
00:04:14,480 --> 00:04:16,730
then Z Force is going to give.

56
00:04:18,530 --> 00:04:19,280
One term.

57
00:04:21,550 --> 00:04:30,240
And one pulse and one pulse is going to be counted by counter two hundred and thirty five and one.

58
00:04:30,280 --> 00:04:31,780
This is counting.

59
00:04:31,960 --> 00:04:42,760
It is moving with the W instruction to the 505 in one second and timer is done when the time when it's

60
00:04:42,760 --> 00:04:45,880
done, just that condition in just one pulse.

61
00:04:46,300 --> 00:04:49,390
We are resetting timer, we are resetting countdown.

62
00:04:49,390 --> 00:04:53,920
Also, we are moving the 505 to the 510.

63
00:04:54,070 --> 00:04:57,910
And this is our r.p.m. of motor.

64
00:04:58,240 --> 00:05:04,660
I will try once to simulator and there is no high speed pulse input from the sensor, but I will try

65
00:05:04,660 --> 00:05:05,940
once to created.

66
00:05:05,950 --> 00:05:06,430
OK.

67
00:05:08,050 --> 00:05:11,890
And now it's stop, and I will say run.

68
00:05:13,120 --> 00:05:19,330
And this is running and the timer is counting and how we can activate this one.

69
00:05:19,630 --> 00:05:20,140
OK.

70
00:05:20,350 --> 00:05:21,190
And maybe.

71
00:05:22,460 --> 00:05:32,330
It's zero we can create into device winter table, and it's put here, it's zero.

72
00:05:32,720 --> 00:05:39,350
And I will try to enable or sit on and set of and sit on and set of.

73
00:05:40,260 --> 00:05:41,610
Can we see it in here?

74
00:05:43,670 --> 00:05:46,770
No, for example, I will change this data.

75
00:05:46,790 --> 00:05:49,700
Imagine this is just.

76
00:05:50,870 --> 00:06:00,710
Counted and 50 times, OK, and you will see this is now moving to here, but r.p.m. data is zero.

77
00:06:00,890 --> 00:06:02,300
After one minute.

78
00:06:03,470 --> 00:06:05,610
It is counting and counting and counting.

79
00:06:05,630 --> 00:06:08,030
Imagine this is 50 times it's counted.

80
00:06:09,740 --> 00:06:13,790
And then you will see my r.p.m. is 50.

81
00:06:13,940 --> 00:06:19,100
And this is again, it's counting the motor speed is increased by you, by the operator.

82
00:06:19,730 --> 00:06:24,740
For example, this is now one hundredth and I will change it to like that.

83
00:06:24,950 --> 00:06:32,960
And that r.p.m. is then imagine again, somebody is increasing the speed of the motor and then after

84
00:06:33,110 --> 00:06:34,520
one minute later.

85
00:06:35,480 --> 00:06:39,170
What will happen to our data is going to be changed like that, OK?

86
00:06:39,410 --> 00:06:40,450
This is the easiest way.

87
00:06:40,460 --> 00:06:44,240
How come use that force of the encoder and just the high speed control?

88
00:06:44,240 --> 00:06:44,840
We need to use that.

89
00:06:44,840 --> 00:06:46,370
And how can we calculate r.p.m.?

90
00:06:46,550 --> 00:06:52,790
They can calculate and r.p.m. of the motor according to sensor or according to our encoder or according

91
00:06:52,790 --> 00:06:54,080
to our pulse input.

92
00:06:54,080 --> 00:06:56,110
OK for Estoril and finished.

93
00:06:56,120 --> 00:06:57,980
You see your next tutorial.
