Skip to content

Week 6: Electronics Design

group assignment: • use the test equipment in your lab to observe the operation of an embedded microcontroller

This week as a group, we learned how to use the power supply, the oscilliscope, and the multimeter. This equipment let us know how our circuits are operating on a granular level.

Quick Start Resources: For a basic primer on how electricity functions in the context of a circuit, we first watched a short video on How Electricity Works by the Engineering Mindset page on Youtube. The website Spark Fun Electronics and the Arduino Documentation online page both provided additional resources for learning about our equipment.

POWER SUPPLY

We have the KORAD KD3005D Digital Control DC Power Supply in our fab lab.Link to general power supply manual

power supply in our lab

Our Power Supply equipment. It has display of the voltage and current. You can also toggle between Constant Current Mode (C.C) and Constant Voltage Mode (C.V). The machine has a voltage adjustment knob the left and a current adjustment knob to the right. At the bottom is the power switch, the positive (red) output terminal, the negative (black) output terminal, and the earth ground (green) terminal.

The power supply outputs voltage and can limit current that runs through. The earth ground terminal acts as a safety mechanism as a backup path for the current in case there is somehow a short circuit.

Things to note:

  • Be careful with the leads - keep them separate and not touching. You can plop them into the breadboard where nothing is connected.
  • Be careful not to put over 5V for the voltage when you supply power to the 5V voltage pin. It can caue damage.
  • You can supply over 5V when using the VIN pin because that pin has a built in regulator

To power our first board, we set the voltage to 5V and limitted the current to 30 milliamps. Then we hooked up to ground and to power (5V) on the Arduino pins.

power supply for our simple LED board circuit

Using our power supply to power the board. Our LED works!

When we removed the LED from the breadboard, the current dropped from about 30 milliamps to 17 milliamps, demonstrating that it takes some current to power the LED.

We also observed that pressing the button (wired on the board to switch the LED on and off) doesn’t change the current by a perceptible amount.

When we moved power from 5V pin to the VIN pin, it reduced the entire amperage from 17 to about 10 milliamps, demonstrating the VIN pin also takes current to regulate power.

OSCILLISCOPE

We have the SIGLENT SDS 1202X-E Digital Storage Oscilloscope (200MHz; 1GSa/s). We have a copy of this manual in the lab. And here is Spark Fun’s helpful page on the Oscilloscope.

our oscilloscope

Our oscilloscope!

The cool thing about an oscilloscope is that it allows us to graph how electrical signals change over time. The x-axis is the time and the y-axis is the voltage. This provides more info than a simple multimeter (see more on that below…)

manual pic 1 manual pic 2

Diagrams of features of our oscilliscope

As a group, we began by testing the equipment on our simple LED + push button circuit. Our oscilliscope has 2 channels. We set one channel (yellow) for the button and one channel (pink) for the LED. We hooked up the probe to ground and to the corresponding part of the circuit. We observed how the graph changed over time as we pushed the button on off. We learned that you can use the Run/Stop button to take a snapshot on the machine and zoom into really small timescales (like microseconds and nanoseconds) to detect voltage changes.

Readouts on screen tell us that within ~5 microseconds the voltage changes as indicated. We can see this is a process happening in time in which the voltage transitions from 0 to 5 V

Then, we hooked up the pink channel to ground and clipped to the LED.

Measuring voltage of LED and button over time as we pushed button on and off

zoomed in on oscilliscope

Zooming in allows you to see differences across time

Things to note:

  • Ensure that ground is connected. Do not just start probing things without connecting to ground
  • “Bouncing” refers to when instead of a clean jump from on to off when the button is pressed there are multiple electrical signals bouncing around. It doesn’t always happen, but if it does it can be an issue for the microcontroller.
  • To actually register something being a voltage it hsa to ramp up and take time. We noticed it took about 20 microseconds for our circuit to get from 0 V to 5 V. Using the oscilloscope we can observe a visual graph to detect the change in voltage over this brief period of time

Here we observe the phenomenon of “bouncing”

MULTIMETER

We each received the Klein Tools MM325 multimeter. Here is the online manual for this multimeter. As stated in the manual, this is a “manual-ranging multimeter that measures AC/DC voltage, DC current, and resistance ” and also tests batteries, diodes, and continuity. The black probe is ground and the red is positive.

multimeter manual 1

A chart from the manual showing the range, resolution, and accuracy for each function of the multimeter

multimeter manual 2

Features of the MM325 Multimeter

We begain by doing a continuity check with our simple LED pushbutton circuit. While doing continuity checks, we must ensure there is no power supplied to the board because you don’t test for continuity in a powered circuit. We switched the multimeter to the icon on the right that looks like a speaker and now we can probe around the circuit and whenever the multimeter beeps, this indicates a closed, continuous, conductive circuit between the probes. Continuity means there is a wire between things.

Next, we practiced measuring resistance, clicking the device over a notch to the 2K icon....

We measured the voltage drop on our LED. Things didn’t add up perfectly to 5V, but it was within our tolerance. We learned it is a feauture of an LED to drop a voltage. The multimeter measured the drop in voltage at about 2V.