﻿1
00:00:04,790 --> 00:00:11,450
‫Welcome to the potentiometer interface demonstration with the Arti board for the set up we have the

2
00:00:11,450 --> 00:00:16,850
‫Arti board which is connected to a four digit seven segment display.

3
00:00:16,850 --> 00:00:25,040
‫We are controlling each individual segment with the port J coming out of the p mod on the already and

4
00:00:25,040 --> 00:00:28,200
‫then we're doing the digits select through the port.

5
00:00:28,220 --> 00:00:38,090
‫J.B. Pieman can do the different digits select and we also have the potentiometer which is out here

6
00:00:38,090 --> 00:00:46,970
‫on its own but we're taking the output of the potentiometer and feeding it into the zero pen on the

7
00:00:46,970 --> 00:00:55,300
‫chip kit or Adreno headers on the Ardie board and with the lab to do is as we're changing the potentiometer

8
00:00:55,430 --> 00:01:02,630
‫as we move this we want to display the analog to digital converter reading on the 7 segment display.

9
00:01:02,860 --> 00:01:08,690
‫And we're going to be displaying this value in binary code decimal so it will be a decimal value we

10
00:01:08,690 --> 00:01:17,910
‫see with the the internal X A.D.C. on the Arctic's the chip located on the Ardie board is it.

11
00:01:17,970 --> 00:01:25,400
‫It uses a 12 bit Ayittey converter so the maximum value we can see is four thousand ninety six and the

12
00:01:25,400 --> 00:01:31,160
‫minimum value would be zero which is what's displayed right now being that the potentiometer is turned

13
00:01:31,220 --> 00:01:32,840
‫all the way to the left.

14
00:01:32,840 --> 00:01:41,030
‫Now if I go ahead and start rotating the potentiometer you'll see the value increment on the 7 segment

15
00:01:41,030 --> 00:01:42,200
‫display.

16
00:01:42,200 --> 00:01:50,050
‫So as I increase or decrease the resistance of this potentiometer you can see the HD reading changes

17
00:01:51,170 --> 00:01:52,220
‫and it keeps going up.

18
00:01:52,220 --> 00:01:56,310
‫We're at four hundred twenty three 450.

19
00:01:56,600 --> 00:01:57,710
‫Another thing to know.

20
00:01:57,710 --> 00:02:03,540
‫The very last digit the value that appears to constantly be an 8.

21
00:02:03,770 --> 00:02:10,130
‫This is because we're sampling at such a high rate we're currently sampling it approximately two hundred

22
00:02:10,400 --> 00:02:12,910
‫thousand samples per second.

23
00:02:13,190 --> 00:02:18,500
‫And so that last digit is going to constantly change it's probably anywhere from zero all the way up

24
00:02:18,500 --> 00:02:19,100
‫to 9.

25
00:02:19,100 --> 00:02:21,070
‫And so that's why it appears to be an eight.

26
00:02:21,110 --> 00:02:27,350
‫All the segments appear to be valid because we're constantly sampling so says it's changing so fast

27
00:02:27,350 --> 00:02:29,380
‫it appears to be stuck 8.

28
00:02:29,820 --> 00:02:32,660
‫If you'd have it so you can stop the sampling.

29
00:02:32,780 --> 00:02:36,700
‫Then you would see that you'd have a different value other than eight.

30
00:02:36,860 --> 00:02:44,070
‫But in order to continue the display as we rotate the Pentium we have to be in a continuous sample mode.

31
00:02:44,180 --> 00:02:45,530
‫So if we keep going.

32
00:02:45,530 --> 00:02:47,540
‫We'll see if we go all the way to the right.

33
00:02:47,540 --> 00:02:50,640
‫We should get up to 4000.

34
00:02:50,690 --> 00:02:56,540
‫Now what we'll know is we can't quite reach 4000 Exactly.

35
00:02:56,540 --> 00:03:01,800
‫And if I go all right you can see we get to three thousand nine hundred eighty eight.

36
00:03:01,850 --> 00:03:06,180
‫And the reason we can't get to the 4000 96 is because there are several things going on.

37
00:03:06,200 --> 00:03:11,030
‫If you look in the schematic of the Arti you'll see that there are several resistors and a capacitor

38
00:03:11,030 --> 00:03:19,190
‫there that's feeding in the positive and negative of the analog signal and due to that we're losing

39
00:03:19,190 --> 00:03:19,690
‫some voltage.

40
00:03:19,700 --> 00:03:25,170
‫So we're not able to feed directly 3.3 volts into the ADC.

41
00:03:25,280 --> 00:03:31,380
‫And so if I go all the way back to the left you'll notice that the value starts to decrease the 80s

42
00:03:31,530 --> 00:03:36,440
‫eight to de-value and I can go all the way back to the left and get it back down to zero.

43
00:03:37,070 --> 00:03:41,090
‫And that is so that's telling us that the potentiometers all the way to the left wing.

44
00:03:41,100 --> 00:03:44,180
‫All the right end get almost up to 4000.

45
00:03:44,270 --> 00:03:51,110
‫And so this is just to show you that you can read analog signals on your FPGA board using the X DC internal

46
00:03:51,110 --> 00:03:55,720
‫IP core and so that is the potentiometer interface demonstration with the keyboard.

