Assignment 4

Week 6 is on Electronics Design. There are 2 assignments; namely:

Group Assignment: Use the test equipment in the FabLab to observe the operation of a microcontroller circuit board

Individual Assignment: Redraw, modify, make and test an echo hello-world board. Modification to include (at least) a button and LED.

This website contains the documentation and write-up for the Group Assignment

(A) Using the Multimeter


Multimeter1.jpg

This handy piece of equipment is used for measuring voltage, current, resistance and continuity.

    To measure Voltage
  • Plug the black probe into COM and the red probe into μA.V.
  • Set the multimeter to "V/LOGIC".
  • Connect the black probe to the negative terminal or '-' and the red probe to the positive terminal or '+'.
4Volt.jpg
measure_voltage.jpg

Measuring voltage

    To measure Resistance
  • The black and red probes are plugged into COM and μA.V as in for voltage measurement.
  • Set the multimeter to .
  • Connect the 2 probes to the two ends of the resistor (polarity is not important here) and apply slight pressure. The resistance will be displayed
40Kohm.jpg
measure_resistance.jpg

Measuring a 1kΩ resistor

    To measure Current
    Current measurement for electronic circuit board is not common, even so for surface mount circuit boards. To measure current, the flow of current must be physically interrupted and the multimeter must be connected in-line. Hence to physically interrupt the circuit, trace must be broken so that jumper wires can be connected! Current measurement for SMD must hence be forward-planned (refer to image)
    jumper.jpg

  • Remove the solder from the jumper
  • Solder jumper wires to each end of the jumper
  • Plug a red crocodile clip to mA
  • Plug a black crocodile clip to COM
  • Set the dial of the multimeter to the milliampere current setting.
    Note: Overloading the current can result in a blown fuse rather than just an overload display
  • Connect the crocodile clips to the jumper wires
  • The current will be displayed
  • After measurement, the jumper wire must be removed and the jumper re-soldered closed
    To check Continuity
    Continuity testing is actually testing the resistance between two points. If the resistance is low (less than a few Ωs), then the two points are connected electrically (a tone is emitted). If resistance is high, the circuit is open, and no tone is emitted.

    This test helps ensure that connections are made correctly between two points. It also helps to detect if two points are shorted.
  • Set the multimeter to 'Continuity' mode. This is usually displayed as a diode symbol with propagation waves around it.
  • The black and red probes are plugged into COM and μA.V as in for voltage measurement.
  • Slightly press the 2 probes on the two points to be checked. Listen for any tone emitted
Diode_mode.jpg


(A) Using the Oscilloscope


OSC1.JPG

The oscilloscope is an instrument for graphing an electrical signal as it varies over time. Most scopes produce a two-dimensional graph with time on the x-axis and voltage on the y-axis. Although the panel is intimidating-looking, the operation is actually quite simple once the user is familiar with the knobs and buttons. The user notes on Sparkfun.com is especially useful in getting a head start with the oscilloscope.

Click Here for Sparkfun Tutorial on using an Oscilloscope

For this assignment, the oscilloscope is used to observe the signal from a Hello Board. A ATtiny45 Hello_World board was provided by our coach. This is the same board that we have to build for our individual assignment.

The program loaded in this board is a blinking program that allows the button as well as the LED to be tested. When powered, the LED will light up indefinitely when the button is pressed once. On pressing the button a second time, the LED will blink slowly, at an interval of 500 milliseconds. When pressed a third time, the LED will brink rapidly at an interval of 150 milliseconds.

To observe the operation, the board must first be powered before the signal output can be tapped to the oscilloscope. There are several ways to do this and the easiest is simply to draw current from the ISP programmer that is plugged into the computer USB port. The other way is to use connecting wires as shown in the image below:

Supply_cable.JPG

The more correct way is to use a DC power supply, where voltage and current can be adjusted

Supply1.JPG.JPG
Set_current.jpg
Set_voltage.jpg

Setting the current to 300mA and voltage to 5.0V

After powering up the Hello_board, the signal can be tapped from the LED by connecting the oscilloscope probe to the anode of the LED and GND trace.

Supply2.JPG

When the connections are done correctly, the signal can be observed on the oscilloscope. Below are images of what the team observed when the button is pressed Once,Twice and Thrice

Pressed ONCE, the LED is on continuously and a stable horizontal voltage is observed

Always_On.jpg

Pressed TWICE, the LED blinks slowly

Slow_blink.jpg

Pressed THRICE, the LED blinks rapidly

Fast_blink.jpg


Home