Lab2 - bhimebau/sice-courses GitHub Wiki
Resistor Networks/Multimeter
Overview
In this lab, you will:
- Learn to measure resistance, voltage, and current with a Fluke 87V multimeter.
- Utilize your understanding of circuit analysis to compute voltages, currents, and resistances in a circuit.
Preparation for Lab
Resources
Setup
- Collect the following parts from the course instructors
- Fluke 87V Multimeter
- Breadboard
- Resistor Kit
- Nucleo-F303RE Board
Building a Programmable Voltage Source
In this section you will be using the Digital to Analog Converter on the STM32F303 to generate a programmable voltage. At this point, it is not essential that you have a complete understanding of Digital-to-Analog conversion. It will suffice for you to understand that the CPU can write 12-bit value to D2A peripheral.
To determine the voltage that will be written, you can use the following relationship.
Vout = (register value/4096)*Vreference
The default value for Vreference on the nucleo boards is 3.3V. The register value is the 12-bit number that you are trying to write out.
Starting with an example.
When you create a new project, there is an option to use a template. Use the template to "Output a sinewave using DAC". Experiment with this example until you understand how to create a DC voltage of a value that you choose. In this example, the voltage will be presented the pin labled A2 on the 6 pin arduino connector. This is connected to pin PA_4 on the STM32F303 processor.
Creating a command to control the voltage.
Augment your LED command program from lab 1 to include the following new command:
- DC Voltage: The command DC takes one argument - the desired voltage. Voltage can range from 0.50V-3.00V. Your program should convert this number into a voltage. Utilize the multimeter to calibrate your solution.
Resistor Networks
Circuit 1
- V1 = 2.5V
- R1 = 1k
- R2 = 2.2k
Circuit 2
- V1 = 2.1V
- R1 = 1k
- R2 = 2.2k
- R3 = 10k
- R4 = 470
- R5 = 1.5k
Scoring
The submission deadline is before your lab on Friday. "Publish" your team's "Lab2" program to the CPS-Labs team.
-
Lab Report (report.txt) [Create one report for your team as a file in your Lab1 program]
- Results [5]
- Difficulties [5]
- How closely did your analysis match your measurements. What were the reasons for the differences? [30]
- SUB-TOTAL [40]
-
Control Program
- DC Command [20]
- SUB-TOTAL [20]:
-
Resistor Networks
- Circuit 1 Ideal Analysis [10]
- Circuit 1 Measurements [10]
- Circuit 2 Ideal Analysis [10]
- Circuit 2 Measurements [10]
- SUB-TOTAL [40]:
-
TOTAL [100]: