ECE 002 Final Project
Download
Report
Transcript ECE 002 Final Project
ECE 002 Final Project
By Brandon Minor, Adam McCormack, Benjamin Miller, Damon McCullough
Team Beardface
Group 11 was undoubtedly one of the most capable groups. True,
they had some tough times, but they always knew what to expect.
Their preparedness made up for their tardiness; for this reason,
they never were late with a report or an assignment, though they
might have been late themselves.
Projects This Semester
◦
◦
◦
◦
◦
◦
Sensor Characterization
Instrumentation Lab
Elevator Project
Circuits Lab
PSPICE Lab
MATLAB… Lab…
Instrumentation Lab
Learned how to use Oscilloscope and
Multimeter
SENSOR CHARACTERIZATION
Senors are devices that receive signals
from the outside world and use the data
to perform useful functions in everyday
electronics.
◦
◦
◦
◦
◦
Light
Movement
Color
Weight
Etc.
Light Sensor
The light sensor is used to
interpret light values, more
specifically the brightness levels
of the surrounding environment.
Higher values are dark and low
values are light/whiter.
/* Light Sensor Program*/
void main() {
int light;
while(start_button()==0) { }
while(1) {
light = analog(6);
printf("The digitized light
value is %d\n", light);
sleep(1.0);
printf("\n");
}
}
Sonar Sensor
The sonar senor also detects
distance but for a much longer
range. The range is from 30 2000 mm. Small values mean
the object is close and large
values means it very far away.
/* Sonar Sensor Program*/
void main() {
int range;
while(start_button()==0) { }
while(1) {
range = sonar();
printf("The digitized range is
%d\n", range);
sleep(1.0);
printf("\n");
}
}
Optical
The optical range finder sensor
detects distance. Low values are
very far away objects and high
values are very close objects. The
range is very small, only about 8
inches.
/* Optical Rangefinder Sensor
Program*/
void main() {
int range;
while(start_button()==0) { }
while(1) {
range = analog(6);
printf("The digitized range is
%d\n", range);
sleep(1.0);
printf("\n");
}
}
IR Top Hat Sensor
The Top sensor
measures
brightness. High
values signify
darkness and low
values mean light.
Conclusion
Our group encountered some problems
while implementing the experiments
◦ Top Hat Sensor not giving accurate readings at
first
We realized that we had the sensor plugged into
the wrong port
◦ Handy Board had trouble loading the programs
All these problems made us more aware
of testing and triple checking our data to
make sure it is accurate.
Elevator Project
The elevator project was used to learn
about how to implement the sensors we
tested in the last lab
◦ to look at the possibilities of what sensor would
do the job most effectively and efficiently
Since we only needed to known when the
elevator was at the first or second floor,
button sensors would do
Elevator Program
void main()
{
while(1) // 1 infinite loop
{
while(start_button()==0){}
while(1) // 1 infinite loop
{
if (digital(7)==1){
motor(0,9);
}
if(digital(10)==1){
motor(0,0);
}
if(digital(9)==1){
motor(0,-9);
}
if(digital(8)==1){
motor(0,0);
}
}
}
}
MATLAB
Used MATLAB to solve a complex circuit
MATLAB was also used to integrate a
function using the trapezoidal rule
Vectorized Integration > Composite
Integration
y
f(b)
f(a)
a
b
x
AM RADIO
We soldered wires together and followed a schematic to assemble an AM
radio. The end result was beautiful sound from an AM radio station.
Circuit Lab
The purpose of this integrated lab was to learn how to
calculate commonly used values in circuitry, such as
current and voltage, by using a multimeter. Groups also
learned how different parts in a circuit can affect these
values.
PSPICE Lab
Lab involved becoming acquainted with
computer aided circuit design
Circuit simulations
2
1
D1
1N4500
V3
1.7
R6
1k
0
1.079mA
1.700V
-1.079mA
1.079V
0V
1.079mA
1.079mA
What we learned…
A whole bunch
Group 11 learned many things, and found even more that they
have to improve upon. They could work more efficiently together
by distributing work, but sometimes this left some members
clueless as to what was actually going on, what the big goal of
the project really was.
In the future, the group should distribute work in cycles,
somebody doing this one day and that the other, so that everyone
comprehends every process involved.
Also, the group should work on its soldering skills. But that just
takes practice.