Saturday, September 8, 2012

Lab: Parts Kit, Breadboard, Basic Electronics, and Switches


Overview:

The purpose of this lab was to become familiar with the different parts we will be working with as the semester continues and to construct a few circuits on our own with the many parts. 

Parts Kit:

We were equipped with the following materials for the lab:


  • Plastic container (in which everything else is)
  • Arduino Uno (microcontroller)
  • 3ft USB cable
  • 1 big pushbutton
  • 2 small pushbuttons
  • 3 assorted LEDs
  • 2 mini-LEDs (red/green)
  • 1 tri-color LED
  • 1 flex sensor
  • 1 softpot (pressure-sensitive resistor)
  • 1 potentiometer
  • 2 P2N2222 transistors
  • 1 7805 voltage regulator
  • 3 resistors each of:
    • 150 Ω
    • 330 Ω
    • 10K Ω (10,000 Ω)
  • breadboard
  • 3 alligator test clips


Electronics: 

Once I familiarized myself with the different components and measured continuity (whether or not there is a connection between 2 points) using the multimeter, I started setting up my breadboard. I first chose to use the 9v DC power supply to give my circuit power.

Basic LED Circuit:

I started with a basic LED circuit. I first disconnected my power supply then added a switch, a resistor, and a LED in a series (remember that the long leg goes to the voltage and the short leg goes to ground) like so:
This is a drawing of what the circuit will look like. The square is our power supply. The line with a break in it is the switch. The zig zag is where the resistor is. The triangle with arrows coming from it is the LED.
This picture shows a better idea of what the circuit will look like on the breadboard.

An aerial view of the actual circuit.
A profile view of the circuit with the LED.
When the button is pressed, the LED light shines because the switch is allowing the current to go through. The resistor plays an important role because it makes sure that the LED does not get more power than it needs. When you lift your finger off the button, the switch opens and the light turns back off as you can see in this video:



Components in Series:

The next circuit I built was similar to the first but I added an additional LED in a series like this:
A drawing of the series circuit. The square is the power supply, the broken line is the switch, the zig zag is the resistor, and the 2 triangles with arrows represent the 2 LEDs.
This is a picture of what the circuit will look like on the breadboard.
This is an aerial view of the 2 LED's in series.

If you were to measure the voltage across the resistor and each LED, the voltage would not match up with the total voltage from the power to ground because some of the energy is emitted as heat!

Components in Parallel:

I then created a parallel circuit with 3 LEDs
Here is is easy to see the the 3 LEDs are in parallel and sharing the same amount of voltage between them.



Generating a Variable Voltage with a Potentiometer:

In this circuit, I used a potentiometer (a resistor with the ability to change resistance) to create a dimming effect the LEDs.

A potentiometer works like this:
-There are 3 extensions from the device that are connections. The 2 outer ones are connected to a resistor with a fixed value.  The center connection is connected to a slider that slides across the fixed resistor which changes the resistance between the center connection to either outside connection. This change in resistance dims and brightens the light!


This picture shows the potentiometer with the 3 connections
This is the potentiometer in action!
I then took out the battery power supply and tried the same circuit using an Arduino connected to a USB as my power supply. The results were the same as expected:

Problems:

The first time I tested the parallel circuit with the 3 LEDs, only 2 LED lit up. I was using 2 regular LEDs and 1 tri-color LED. The tri-color LED was not lighting up because it needed more power than the circuit could give it. When we switched the tri-color LED out with a mini LED, all 3 lights worked. For future reference, make sure you have enough power for the loads you are working with!

For more information:

No comments:

Post a Comment