1
00:00:07,000 --> 00:00:08,000
Good morning friends.

2
00:00:08,000 --> 00:00:23,000
Today I just show you how to use analog input pin of this new USB DAC card to acquire signals from different

3
00:00:23,000 --> 00:00:24,000
sensors.

4
00:00:25,000 --> 00:00:29,000
So first of all, I just use this one.

5
00:00:29,000 --> 00:00:32,000
I stands for analog input.

6
00:00:32,000 --> 00:00:35,000
So in this case I'm using differential pins.

7
00:00:35,000 --> 00:00:44,000
So as you see first I'm using this potentiometer in using this potentiometer because this potentiometer

8
00:00:44,000 --> 00:00:52,000
will generate zero volt signal one volt signal two volt signal in between like 1.5 1.7V.

9
00:00:52,000 --> 00:00:58,000
Also I'm using this five volt to power up this potentiometer.

10
00:00:58,000 --> 00:01:03,000
Okay, so first of all I just connect five volt.

11
00:01:03,000 --> 00:01:05,000
So this is yellow.

12
00:01:05,000 --> 00:01:07,000
One is my five volt.

13
00:01:07,000 --> 00:01:12,000
Over here I just use this potentiometer.

14
00:01:12,000 --> 00:01:21,000
So one end is connected to the five volt and the middle one that is your wiper.

15
00:01:21,000 --> 00:01:25,000
This is connected to this red one is my signal.

16
00:01:25,000 --> 00:01:28,000
This is connected to pin number zero.

17
00:01:29,000 --> 00:01:32,000
As you see of analog input port.

18
00:01:32,000 --> 00:01:43,000
And now I just connect ground to the another pin of potentiometer because potentiometer have total three

19
00:01:43,000 --> 00:01:49,000
pins, one is positive, one is signal and one is ground.

20
00:01:49,000 --> 00:01:58,000
Now the trick over here is you just need to in the case of differential E, because pin zero and pin

21
00:01:58,000 --> 00:02:01,000
four these are used as a differential mode.

22
00:02:01,000 --> 00:02:09,000
You just need to ground this pin number four also okay Okay so these are the hardware connection.

23
00:02:09,000 --> 00:02:13,000
Now I just go to the software part.

24
00:02:13,000 --> 00:02:18,000
In the software part you just need to drag analog input sample.

25
00:02:18,000 --> 00:02:22,000
And this input sample you just need to set the pin.

26
00:02:23,000 --> 00:02:31,000
Because over here I am just using analog input pin I zero because signal is available over here, as

27
00:02:31,000 --> 00:02:35,000
you see over here, you can set it mode.

28
00:02:35,000 --> 00:02:37,000
It is in differential mode.

29
00:02:38,000 --> 00:02:43,000
Measurement type is voltage range is minus five to plus ten.

30
00:02:43,000 --> 00:02:49,000
You can change it also and it is DC coupling over here okay.

31
00:02:49,000 --> 00:02:53,000
So just put apply over here.

32
00:02:53,000 --> 00:02:58,000
Now you just need again a scope and a display.

33
00:02:59,000 --> 00:03:09,000
So I just click over here display to know the exact value of the output voltage.

34
00:03:10,000 --> 00:03:17,000
Just connect this and one scope I need to display.

35
00:03:19,000 --> 00:03:21,000
The value in the form of graph.

36
00:03:21,000 --> 00:03:24,000
So you just need to connect this one.

37
00:03:27,000 --> 00:03:34,000
Because in the case of this case the maximum value is five volt.

38
00:03:34,000 --> 00:03:43,000
So I just set the scope over here you can set the value.

39
00:03:43,000 --> 00:03:44,000
Why?

40
00:03:44,000 --> 00:03:47,000
Maximum value and minimum value.

41
00:03:48,000 --> 00:03:52,000
So maximum value is five and the minimum value is zero.

42
00:03:52,000 --> 00:03:54,000
You just need to apply.

43
00:03:55,000 --> 00:03:56,000
Okay.

44
00:03:56,000 --> 00:03:58,000
As you see scale changed.

45
00:03:59,000 --> 00:04:04,000
Just minimize the scope.

46
00:04:05,000 --> 00:04:07,000
I just put.

47
00:04:09,000 --> 00:04:11,000
This one over here.

48
00:04:12,000 --> 00:04:14,000
Now I need the scope.

49
00:04:15,000 --> 00:04:18,000
And over here, this is the scope.

50
00:04:19,000 --> 00:04:21,000
I just run it.

51
00:04:22,000 --> 00:04:24,000
Let's check what happened to it.

52
00:04:25,000 --> 00:04:30,000
So as you see, the value is 2.266.

53
00:04:30,000 --> 00:04:31,000
As you see over here.

54
00:04:31,000 --> 00:04:33,000
Also 2.266.

55
00:04:33,000 --> 00:04:37,000
Now I just changed the value.

56
00:04:37,000 --> 00:04:43,000
As you see right now it is maximum 5.018.

57
00:04:44,000 --> 00:04:50,000
Again, in the real time I'm just changing the value of potentiometer.

58
00:04:50,000 --> 00:04:50,000
Right now.

59
00:04:50,000 --> 00:04:51,000
It is ground.

60
00:04:53,000 --> 00:04:57,000
I am changing very fast as you see.

61
00:04:57,000 --> 00:05:01,000
How you can.

62
00:05:03,000 --> 00:05:07,000
How the value changes using the potentiometer.

63
00:05:08,000 --> 00:05:11,000
Okay, so this is the single case.

64
00:05:14,000 --> 00:05:19,000
If you want to apply multiple sensors in that case.

65
00:05:19,000 --> 00:05:26,000
Also, it will generate some values according to the sensor value.

66
00:05:26,000 --> 00:05:29,000
You can use potentiometer.

67
00:05:29,000 --> 00:05:30,000
You can use air sensor.

68
00:05:30,000 --> 00:05:32,000
You can use the air sensor.

69
00:05:32,000 --> 00:05:36,000
You can use fire detection sensor.

70
00:05:36,000 --> 00:05:38,000
You can use LDR sensor.

71
00:05:38,000 --> 00:05:39,000
It is up to you.

72
00:05:39,000 --> 00:05:52,000
Okay so this is how you can acquire analog signal using any USB 6001 or 6000 8 or 6009 device with the

73
00:05:52,000 --> 00:05:54,000
help of Matlab.

74
00:05:54,000 --> 00:06:00,000
And we just also visualize this data in Matlab.

75
00:06:00,000 --> 00:06:02,000
So this is all about today's lecture.

76
00:06:03,000 --> 00:06:04,000
Thank you.

