﻿1
00:00:04,990 --> 00:00:12,390
‫Welcome to the potentiometer interface labs set up lecture we're going to show you how we set up for

2
00:00:12,400 --> 00:00:14,680
‫the potentiometer interface lab.

3
00:00:14,890 --> 00:00:21,700
‫If you're using an already or the RTC 7 where there is no 7st segment display located on the board you

4
00:00:21,700 --> 00:00:27,810
‫will need to have the external 7st display on the breadboard over.

5
00:00:27,850 --> 00:00:33,730
‫Or if you're using the bases three bases two or any other board that has a 7 segment display located

6
00:00:33,730 --> 00:00:37,440
‫on it you won't have to worry about this portion of the setup.

7
00:00:37,570 --> 00:00:41,510
‫And so what we have here is a 7 segment display.

8
00:00:41,560 --> 00:00:46,900
‫We have the four different segments and they're all multiplex together.

9
00:00:47,020 --> 00:00:51,000
‫So we have a total of 8 outputs that we're using.

10
00:00:51,010 --> 00:00:58,290
‫We tie the decimal place output to too high which will make it so it doesn't show up.

11
00:00:58,420 --> 00:01:05,230
‫And then the rest of them we tie through a 56 ohm resistor and take all of these outputs and feed them

12
00:01:05,230 --> 00:01:08,590
‫back into our FPGA development board.

13
00:01:08,590 --> 00:01:15,820
‫We also have since we're using four different digits we're using for two and thirty nine or four and

14
00:01:15,840 --> 00:01:23,470
‫transistors with a 470 ohm resistor connected to the base of that transistor that we use to select the

15
00:01:23,470 --> 00:01:24,430
‫different digits.

16
00:01:24,580 --> 00:01:30,820
‫So in order to select a digit you'll want to turn that one the one segment you want to have it as a

17
00:01:30,830 --> 00:01:36,530
‫one value of 1 which will select that segment and then the other three you'll give them a value of zero.

18
00:01:36,730 --> 00:01:43,370
‫And so whatever value you then use by turning your individual segments on and off through these 56 some

19
00:01:43,390 --> 00:01:49,150
‫resistors will then correspond to the value that shown up on the 7 segment display.

20
00:01:49,150 --> 00:01:52,820
‫We also then have the potentiometer for a potentiometer.

21
00:01:52,870 --> 00:01:58,870
‫We're actually you don't want to connect the one into the ground or your 0 volts the other and you'll

22
00:01:58,870 --> 00:02:02,460
‫connect to your positive or 3.3 volts.

23
00:02:02,740 --> 00:02:03,640
‫And it really doesn't matter.

24
00:02:03,640 --> 00:02:05,740
‫You could switch these around.

25
00:02:05,740 --> 00:02:10,660
‫You have you could take this positive and make it to the ground and take your other your ground and

26
00:02:10,660 --> 00:02:11,830
‫make it to the positive.

27
00:02:12,070 --> 00:02:14,950
‫Then you have the output which is important.

28
00:02:14,950 --> 00:02:15,820
‫That needs to go.

29
00:02:15,820 --> 00:02:20,860
‫That ties directly into your analog input on your FPGA development board.

30
00:02:20,980 --> 00:02:27,130
‫And so as we turn the potentiometer we're going to vary the resistance value which will then vary the

31
00:02:27,130 --> 00:02:33,380
‫amount of voltage we send back to the FPGA to then display our analog to digital reading on the 7st

32
00:02:33,460 --> 00:02:34,420
‫display.

33
00:02:34,420 --> 00:02:37,690
‫And so that is the lab set up for the potentiometer interface.

