Skip to content

Commit

Permalink
updated to include more steps
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjridley committed Feb 2, 2024
1 parent c326b74 commit fd2e052
Showing 1 changed file with 63 additions and 27 deletions.
90 changes: 63 additions & 27 deletions labs/lab-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ latex: true

- [ ] 1 Arduino Nano
- [ ] 1 Breadboard
- [ ] 5.0V LDO
- [ ] 3.3V LDO
- [ ] 1 Programming Cable (and adapters if necessary)
- [ ] A computer with the Arduino IDE [installed](/tutorials#arduino-ide-install) and [setup](/tutorials#arduino-library).
- [ ] ENGR100-950 Arduino Library
Expand All @@ -31,20 +33,6 @@ latex: true

This lab involves working with a power supply which can provide higher voltages/currents than the Arduinos! Read the following sections carefully to maintain your safety and the safety of the components we are using.

### Power Supply

The figure below shows a lab **power supply.** This is a device we frequently use in labs to power circuits: sometimes to avoid using the USB cable and a computer for power, and sometimes when we need a higher voltage than can be provided by the Arduino. There are multiple channels on the power supply, to allow for powering more than one device or produce more than one voltage at the same time.

![Power Supply](/media/power-supply.png)

You will be using the power supply on your workbenches today to power portions on your circuit. Please do **NOT** connect the power supply to the board until looked at by one of the instructors. The power supply has been current-limited at 500 mA and can cause some serious damage if used improperly. Please call the instructor to have them examine the breadboard before connecting to power. Also, do not increase the power supply voltage above 7.4V.

The wires to the power supply should already be connected (Red = positive and Black = negative). Connect the red wire to the positive rail located at the top of the breadboard, and the black wire to the blue rail located adjacent to it. Do not connect them in holes adjacent to one another; we want to remove any possibility of the two wires accidentally coming in contact and shorting the circuit. **Please do not turn on the power supply until your connections have been verified by an instructor.** Please do not adjust the wires connected to the power supply unless the supply is turned off. You can use this rail to power the components of your circuit as illustrated in Part 1 below.

<div class="primer-spec-callout danger" markdown="1">
Do not turn on the power supply until your connections have been verified by an instructor!
</div>

### Electrostatic Discharge

In this lab we will start taking precautions when dealing with electronics as there is possibly of ESDs damaging components. When you eventually start soldering your PCB’s, you will be dealing with much smaller components and will thus absolutely need to take ESD precautions. For the subteam that will be working with the power portion of the lab: whoever is touching and interacting with the circuit will be needing to wear an ESD bracelet at all times.
Expand All @@ -63,41 +51,89 @@ One type of voltage regulator is one we’ve discussed: the voltage divider. Pre

Zener diodes have a characteristic property wherein they allow current flow in the same direction as standard diodes (from anode to cathode) but they also allow current opposite direction once a “Zener Voltage” is reached. Once this voltage is reached, they operate reliably at the same voltage for increasing current levels. The I-V curve for a zener diode with a zener voltage of 17.1V is below. Notice how once the Zener Voltage is reached the voltage level is nearly constant for increasing current. The zener diodes used on voltage regulators have their zener voltages at the specified output voltage to ensure constant voltage at the output.

## Procedure
![Zener Diode IV](/media/zenerchar.png)

This lab will involve building a circuit to test the behavior of two low-dropout (LDO) regulators, consolidating your sensors and GPS in to the first version of your final breadboard, and integrating the LDOs on to the breadboard to supply your Arduino with onboard power. To do this most efficiently, we recommend two team members work on the LDO testing circuit with the GPS (part 1) and two team members work on breadboard consolidation with the SD card (part 2). Your team will work together to integrate the LDOs and GPS to your sensor board (part 3). Members are welcome to work on what they’re most interested in, but no one team member should be assigned a task to work on alone. If you don’t have enough team members (due to solder challenge), consolidate teams and have two teams work together on both the boards.
## Procedure

![Zener Diode IV](/media/zener-diode-IV.png)
This lab will involve building a circuit to test the behavior of two low-dropout (LDO) regulators, consolidating your sensors and GPS in to the first version of your final breadboard, and integrating the LDOs on to the breadboard to supply your Arduino with onboard power. To do this most efficiently, we recommend two to three team members work on the LDO testing circuit and the rest of the team members work on breadboard consolidation with the SD card and calibrating (completing lab 3). Your team will work together to integrate the LDOs to your sensor board (part 2). Members are welcome to work on what they’re most interested in, but no one team member should be assigned a task to work on alone. If you don’t have enough team members, consolidate teams and have two teams work together on both the boards.

### Power Management

Make the circuit below on an (initially) empty breadboard. The power connection is coming from the power supply.
Make the circuit below on an (initially) empty breadboard. The power connection is coming from a 9V battery.

NOTE: The longer lead of the capacitor is the positive end. This means you should connect the longer lead to the side with a non-zero (non-ground) voltage, and the shorter lead to the ground line.
![Power Circuit](/media/power-circuit.jpg)

NOTE: Your system and your power supply need to share a common ground for you to get correct voltage measurements. Electrically connect all GND pins together to the power supply’s negative terminal.
NOTE 1: We have a variety of through-hole LDOs. They may not match exactly what is specified in the diagram above. **Google search for the LDOs that you have and verify their voltages and pin out configurations. It is up to you to get these right!**

NOTE 2: **The longer lead of the capacitor is the positive end.** This means you should connect the longer lead to the side with a non-zero (non-ground) voltage, and the shorter lead to the ground line.

NOTE 3: Your system and your battery eventually need to share a common ground for you to get correct voltage measurements. **Electrically connect all GND pins together to the battery’s negative terminal.**

NOTE 4: **We are now going to disconnect power whenever we rewire components on our breadboard!**

**Have a staff member check your circuit before you proceed.**
Use a multimeter to measure the actual outputs of the 5V and 3.3V LDO lines. If the 5V line is not exactly 5V, it can cause errors on the conversions of the sensor data from voltage into actual ”geophysical” units (C, %, g, etc.) You may want to use the reading from the 5V LDO in your calibration calculations.

Slowly reduce the voltage on the power supply (you can use the “Coarse” knob but rotate it slowly). Reduce it to 0V in increments of 1V, using a multimeter to record the voltage on the 5V line. **Note the power supply voltage at which the 5V line no longer reads 5V.**
**Have a staff member check your circuit before you proceed.**

A staff member will work with you on replacing the battery with a power supply.

### Power Supply

The figure below shows a lab **power supply.** This is a device we frequently use in labs to power circuits: sometimes to avoid using the USB cable and a computer for power, and sometimes when we need a higher voltage than can be provided by the Arduino. There are multiple channels on the power supply, to allow for powering more than one device or produce more than one voltage at the same time.

![Power Supply](/media/power_supply.jpeg)

You will be using the power supply on your workbenches today to power portions on your circuit. Please do **NOT** connect the power supply to the board until looked at by one of the instructors. The power supply has been current-limited at 500 mA and can cause some serious damage if used improperly. Please call the instructor to have them examine the breadboard before connecting to power. Also, do not increase the power supply voltage above 7.4V.

The wires to the power supply should already be connected (Red = positive and Black = negative). Connect the red wire to the positive rail located at the top of the breadboard, and the black wire to the blue rail located adjacent to it. Do not connect them in holes adjacent to one another; we want to remove any possibility of the two wires accidentally coming in contact and shorting the circuit. **Please do not turn on the power supply until your connections have been verified by an instructor.** Please do not adjust the wires connected to the power supply unless the supply is turned off. You can use this rail to power the components of your circuit as illustrated in Part 1 below.

<div class="primer-spec-callout danger" markdown="1">
Do not turn on the power supply until your connections have been verified by an instructor!
</div>

![Power Circuit](/media/power-circuit.png)
Slowly reduce the voltage on the power supply (you can use the “Coarse” knob but rotate it slowly). Reduce it to 0V in increments of 1V, using a multimeter to record the voltage on the 5V and the 3.3V lines. **Note the power supply voltage at which the 5V line no longer reads 5V and the voltage at which the 3.3V line no longer reads 3.3V.**

**Turn the power supply off!**
Add the Arduino and GPS to the circuit, with the Arduino (power goes into 5V pin), GPS (5V), and level shifter (3.3V and 5.0V) all getting power from the LDOs. Make sure everything is connected to the GND and the GND is connected to the ground on the power supply. When you turn the power supply on, your GPS and Arduino should turn on. In theory, your Arduino should be taking data, but streaming it to the serial monitor, which is not hooked up, since your computer is not hooked up.

### Battery Power

Disconnect the power supply, and add a 7.4V, 500mA battery to the top rail of your bread- board to power your Arduino. Your Arduino requires a steady 5V supply so we will route the battery power through a 5V LDO to ensure the supply voltage is properly regulated. Positive (red) lead to the positive rail and negative (black) to the negative rail. You are now free of the tyrannous USB cable.
Disconnect the power supply, and add an Arduino to your power board. Make two voltage divider circuits, one hooked up to the Vin pin of the 5V LDO (i.e., this one will measure (half) the battery voltage) and one hooked up to the Vout pin of the 5V LDO (i.e., this should measure (half) 5V). Attach the output pin of the 3.3V LDO to an analog pin on the Arduino also. You should now be able to make a program that will measure the battery voltage, the 5V line voltage, and the 3.3V line voltage.

** Remember to use color coding for your power lines and data lines. This will dramatically assist you in the debugging of your system if things don't work.**

<div class="primer-spec-callout danger" markdown="1">
Note that the output lines of the 5V and 3.3V lines are now your main power rails. The 5V LDO output line should be connected directly to the 5V line on the Arduino and there should be NO connections to the Vin pin on the Arduino. The 3.3V line does NOT get connected to the 3.3V line on the Arduino!
</div>

Once you have verified that everything it hooked up as it should be, add a 7.4V, 500mA battery to the top rail of your bread-board to power your LDO circuit and power on your Arduino. When you connect your battery, everything should turn on and start reporting data (although you can’t see it, since your computer is not hooked up yet). Hook up the USB to the Arduio and measure the battery voltage, 5V line voltage, and 3.3V line voltage using a program. **Take a screenshot that shows that you are measuring the proper voltages on the different lines!**

**Take some pictures of this beautiful power board!**


## Consolidation

NOTE: **We are now going to disconnect power whenever we rewire components on our breadboard!**

Once you have all of your sensors working and saving data to the SD card on one breadboard, and your power system working on another breadboard, consolidate the breadboards. You should then have battery supplied 5V and 3.3V rails (with grounds), a single Arduino, an SD Card writer, and a bunch of sensors. You can have all of these systems across multiple breadboards.

**Take some pictures of your (nearly) complete system board!**

Verify that your board runs and records data properly (including the battery voltage, but doesn't have to include the 5V or 3.3V lines).

When you connect your battery, everything should turn on and start reporting data (although you can’t see it, since your computer is not hooked up yet).
Put your completed board into the cold chamber for at least 5 minutes, recording data the entire time. Make plots of the data using Matlab or some other software.

## Submission

On Canvas, you will submit ***ONE PDF*** that will include all of the following:

- [ ]
- [ ] A short description of your power supply tests with the cutoff voltages that you found.
- [ ] A picture of your completed power board.
- [ ] A picture of your completed consolidated board.
- [ ] A (complete) system-level block diagram of your completed system. The color coding on your system-level block diagram should match the color coding on your board. You should be able to look at your picture of your board and your system-level block diagram and understand what is going on with your board. Not every line need to be drawn though (like ground lines should NOT be on the block diagram).
- [ ] A (complete) schematic of your completed system.
- [ ] A screenshot of your (battery, 5V, and 3.3V) voltage readings from your Arduino (serial monitor) on your power board.
- [ ] Matlab (or Python or whatever) plots that show data from your completed board going into the cold chamber for at least 5 minutes.
- [ ] Discuss whether the battery voltaged changed as it got colder. Is there any relationship between temperature and battery voltage?

To put said content into a PDF, it is suggested you create a new Google Doc ([docs.new](https://docs.new)) and paste your images and write any text in the document. Export/Download this document as a PDF and upload it. **DO NOT SUBMIT A GOOGLE DOC FILE OR SPREADSHEET FILES.**

Expand Down

0 comments on commit fd2e052

Please sign in to comment.