The Pressure Sensing Project
The Pressure Sensing Project
The Pressure Sensing Project
A. Introduction
The paper discusses the use of a multi-faceted electronic project as a capstone experience
for an associate degree program in Electrical and Computer Engineering Technology
(ECET) at Purdue University's School of Technology New Albany location. This project
incorporates several different technologies from both the analog and digital realms of
electronics. The project is designed by the course instructor of ECET 297 Electronic
System Design and Fabrication. ECET 297 is in the fourth semester of the A.S. program.
The students are given the design of the circuit in block diagram and schematic form.
Each subpart of the circuit is intended to provide review to the student as each technology
has been covered in previous courses. The students are then required to fabricate the
circuit one portion at a time until the project is completed. Fabrication of the project is
done on prototyping (UBS-100) boards. Each section must be functioning correctly
before the next section is to be fabricated and thus the project provides an excellent
troubleshooting experience. Careful and neat layout of the circuit is mandated by the
course instructor and the course grade is partially dependent on that. A project such as
this one has been used each of the past six years in ECET 297 in New Albany. Each
year's project is unique as the course instructor designs a new one for each successive
class. The faculty in ECET at New Albany considers the projects used over the past six
years in the course to have been effective capstone experiences for the students. Student
feedback on this course has been excellent and individual students have reported that they
have had such pride in their completed project that they have kept it fully assembled on
its protoboard years after graduating.
The remainder of the paper discusses the design of the project. This project is a Pressure
Sensing circuit that utilizes a variable capacitor as a pressure switch. The variable
capacitor is constructed by using two conducting plates with a foam layer in between as
in Figure 1 on the next page.
Page 9.1283.1
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
TOP CONDUCTING PLATE
When pressure is applied to the top plate, the foam layer collapses resulting in an increase
in the capacitance. The project utilizes this behavior to sense the pressure presence. The
design covers basic analog/digital circuits that the students learn during the first two
years in the Electrical Engineering Technology Program at Purdue University. Figures 2
and 3 show the block diagrams of the project.
When the top plate is pressed down to 1/3 of the gap, the 3-digit display shows the time
in seconds that the pressure is present. At the same time, the first LED is lit to show that
the distance between the two plates has decreased 30%. If the pressure keeps increasing,
the time continues to count and the second and third LED’s show 60% or 90% when the
gap reaches these points. When the pressure is released, the time freezes to show the total
time the pressure has been presented. When the top plate is pressed down the second time
at 30%, the time resets itself and starts counting again.
The project consists of different stages that are manageable as weekly classroom
activities. It helps the students to utilize their knowledge to design and build a working
circuit.
OSCILLATOR
RC ACTIVE ACTIVE
INSTRUMENTATION ACTIVE
WHEATSTONE BAND PASS PEAK
AMPLIFIER RECTIFIER
BRIDGE FILTER DETECTOR
TO A
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
DECODER/ DECODER/ DECODER/
DRIVER DRIVER DRIVER
TRANSISTOR ONE-SHOT
FROM A
DRIVER CIRCUIT
+15V +15V
C1 R4
470 F 2k
R1 R3
GND 8.2k 15k
C2
470 F
15V 15V
LM741 VOUT1
C4 R5
0.0015 F 22k
R2 C3
22k 0.0015 F
The 15VDC power supply has two 470 F filtering capacitors as in the top left corner in
Figure 4.
Page 9.1283.3
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
In the oscillator, if we let R2 = R5 = R and C3 = C4 = C, the oscillating frequency is:
1 1
f 4.82kHz
2 RC 2 22k 0.0015 F
Let K be the closed-loop gain of the Non-Inverting amplifier section. In order for
oscillation to occur, we need:
R5 C3 22k 0.0015 F
K 1 1 3
R2 C4 22k 0.0015 F
Therefore,
R3 R4
K 3 1 R3 R4 2 R1 2 8.2k 16.4k
R1
In the design, a 2k 22 turn rheostat is used for R4 to fine-tune the circuit for oscillation.
+14V
50 s/DIV
14V
The output of the oscillator is the reference voltage for the following RC Wheatstone
bridge circuit.
Page 9.1283.4
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
2. The RC Wheatstone Bridge
C6
C5 39pF
VOUT2 VOUT3
R6 R7
100k 100k
The reference voltage of the bridge VOUT1 comes from the output of the Wien-Bridge
oscillator. The variable capacitor C5 is the pressure switch that is mentioned at the
beginning of this paper. The 100k 22turn rheostat R7 is used to balance the bridge.
The outputs of the bridge VOUT2 and VOUT3 are the inputs of the following
Instrumentation amplifier.
R11 R14
VOUT3
12k 1% 12k 1%
LM741
R9
12k 1% LM741 VOUT4
R8
10k
R10 R12
12k 1% 12k 1%
R13
12k 1%
LM741
VOUT2
Page 9.1283.5
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
In the amplifier, if we let R9 = R10 = … = R14 = R, the output of the amplifier is:
Table 1 below shows the peak values of VOUT4 at different pressure levels.
+300mV
50 s/DIV
300mV
Since the above output is not a perfect sinusoidal wave, we need to condition the
waveform and to amplify the signal by using a Second Order Active Band Pass filter.
Page 9.1283.6
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
4. The Second Order Active Band Pass Filter
In the circuit, a Buffer is used to isolate the output impedance of the Instrumentation
amplifier from the input impedance of the filter.
If we let R15 = R17 = R18 = R, and C7 = C8 = C, the center frequency of the filter is:
2 2
f0 4.81kHz
2 RC 2 12k 0.0039 F
The above center frequency matches with the oscillating frequency of the Wien-Bridge
oscillator.
R19 33k
K 1 1 3.75
R16 12k
2 2
Q 5.7
4 K 4 3.75
R17
12k 1%
R16 R19
12k 33k
R15 C8
12k 1% 0.0039 F LM741 VOUT5
LM741
VOUT4
C7 R18
0.0039 F 12k 1%
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
Figure 10 below shows the output waveform of the filter under normal condition.
+5V
50 s/DIV
5V
Figure 11 below shows the frequency response of the filter with a 600mV-peak input
signal.
14
12
10
Output Peak (V)
0
0 2 4 6 8 10
f (kHz)
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
Table 2 below shows the peak values of VOUT5 at different pressure levels.
The next stage of the project is the Active Full Wave Rectifier circuit. This circuit is also
known as the Absolute Value circuit. The circuit doubles the operating frequency of the
system to enhance the performance of the Peak Detector circuit in the system.
Figure 12 shows the schematic diagram of the Absolute Value circuit. In the circuit, R20 =
R21 = R22 = R24. In order for the circuit to function properly, the resistor R23 must be half
of the other resistors. Therefore, a 10k 22 turn rheostat is used to accomplish this task.
D2
D1 1N914
1N914
R20 LM741 VOUT6
12k 1%
VOUT5
LM741
R22
12k 1%
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
Figure 13 below shows the output waveform of the Absolute Value circuit after the
rheostat R23 is properly set.
+5V
50 s/DIV
5V
Table 3 below shows the peak values of VOUT6 at different pressure levels.
The full-wave rectified signal is then converted into a DC voltage by the Peak Detector
circuit. Page 9.1283.10
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
6. The Active Peak Detector Circuit
The schematic diagram of the Active Peak Detector circuit is in Figure 14 below.
R25
100k
D3
1N914
LM741 VOUT7
VOUT6
C9 R26
1 F 10k
The output signal VOUT7 is a DC voltage that has a small ripple voltage riding on it.
Under normal condition, this peak-to-peak ripple voltage is:
5V
VRIPPLE 10k 51.87 mV
9.64kHz 1 F
Figure 15 on the next page shows the ripple voltage (with the AC input selector mode of
the oscilloscope) of VOUT7.
+25mV
50 s/DIV
25mV
Page 9.1283.11
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
Figure 16 below shows the output of the Peak Detector circuit VOUT7 under normal
condition, the first, second, and third levels of pressure.
THIRD LEVEL
13.0V
SECOND LEVEL
9.0V
FIRST LEVEL
6.5V
NORMAL CONDITION
5.0V
0.0V
This output is used as the inputs of the three Voltage Comparator circuits.
The next stage of the project consists of three Voltage Comparator circuits. The
schematic diagram of this stage is in Figure 17 below.
+15V
VOUT8
R27
100k
+6.5V R30
1k
LM741
VOUT7 LED1
+15V
R28
100k
+9.0V R31
1k
LM741
LED2
+15V
R29
100k
+13V R32
1k
LM741
LED3
Page 9.1283.12
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
In these circuits, the potentiometers R27, R28, and R29 are used to set the reference
voltages for the Voltage Comparators. The settings are 6.5V, 9.0V, and 13.0V
respectively.
Under normal condition, all three LED’s are off. When the pressure reaches the first
level, the light-emitting-diode LED1 is on. When the pressure reaches the second level,
the light-emitting-diodes LED1 and LED2 are on. When the pressure reaches the third
level, all three light-emitting-diodes are on.
Since the Counters in the later part of the design require an active LO signal to function, a
transistor driver is used to achieve this objective. In addition, a Monostable Multivibrator
(One-Shot) circuit is also used to reset the Counters. The schematic diagram of this
section is in Figure 18 below.
+5V
74121
R34 Q NC A1 A2 B Q GND
1k 1 2 3 4 5 6 7
VOUT10
R33
10k
VOUT8 2N3904 C11 R36
10 F 1k
VOUT9
+5V
In the circuit, another 470 F capacitor C10 is used to filter the +5VDC power supply.
The design of the One-Shot circuit is based on the Function Table in Figure 19 on the
next page.
Page 9.1283.13
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
INPUTS OUTPUTS
A1 A2 B Q Q
L X H L H
X L H L H
X X L L H
H H X L H
H H
H H
L X
X L
+15V
VOUT8 GND
15V
+5V
VOUT9 GND
+5V
VOUT10 GND
10.3ms
Page 9.1283.14
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
The output voltage VOUT9 enables the Counters and the output voltage VOUT10 resets the
Counters.
The next part of the digital section is the Clock circuit that generates a 10Hz square wave
signal for the Counters. The circuit is a 555 Timer in its astable mode.
1.44 1.44
f 9.9 Hz
R37 2 R38 C13 1k 2 330k 0.22 F
+5V
R37
1k
8 4
7
R38
330k
6 555 3 VOUT11
2 5
1
C13 C14
0.22 F 0.01 F
Page 9.1283.15
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
3. The Counter and Driver Circuits
The schematic diagram of the last part of the design is in Figure 22 below.
a b c d e f g a b c d e f g a b c d e f g
U/D
U/D
QA QB QC QD QA QB QC QD QA QB QC QD
LOAD
LOAD
CTEN
CTEN
CTEN
CLK
CLK
CLK
DA
DD
DA
DD
DA
DD
DB
DC
DB
DC
DB
DC
VOUT9 VOUT10 VOUT11
When the pressure reaches its first level, the voltage VOUT9 enables the Counters and the
voltage VOUT10 resets the display to 00.0 in about 10ms. After that, the display shows the
time the pressure is present to 1/10 of a second. After the pressure is released, the display
freezes to show the total time the pressure was at the switch. If the switch is pressed again
to the first level of pressure, the three-digit display resets to 00.0 and then starts showing
the time as before.
D. Conclusion
The project produces indicators for the relative position between the top and the bottom
plates of the variable capacitor. Three light-emitting-diodes show that the gap between
the two plates is being closed. A three-digit display shows the total time the gap is at a
preset level.
The project consists of different analog and digital circuits that the students have learned
during the first three semesters in the Electrical and Computer Engineering Technology
Program of Purdue University. This design gives the students an opportunity to put into
practice the theories and applications they possess. It also enhances their troubleshooting
skills.
Page 9.1283.16
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education
This project concept has been used in ECET 297 and it predecessor course ECET 296 for
the past six years. Each year the project has changed and grown in complexity. The
faculty members of the ECET department in New Albany have used the results of the
project to gauge overall academic success of their program. Since the project has grown
each year in both size and complexity and nearly all of the students have succeeded each
of the six years, the faculty believes that this is an indication of increasing strength in the
program.
Bibliography
1. Boylestad, R. L. (1995). Introductory circuit analysis (6th ed.). Ohio: Merrill Publishing.
2. Budak, A. (1974). Passive and active network analysis and synthesis. Boston: Houghton Mifflin.
3. Malvino, A. P. (1999). Electronic Principles (6th ed.). Ohio: Glencoe/McGraw-Hill.
NGHIA T. LE
Nghia T. Le is an Assistant Professor of Electrical Engineering Technology of Purdue University. He
teaches at Purdue University, School of Technology at New Albany, Indiana. He earned his B. S. and M. E.
E. E. degrees from the University of Louisville. He specializes is instrumentation and controls. He can be
reached at: [email protected].
TERRENCE P. O’CONNOR
Terrence P. O’Connor is an Associate Professor of Electrical Engineering Technology for Purdue
University. He teaches at the New Albany site where he has taught all but one of the courses in the two
year degree offered there. He is primarily interested in ELF/ULF signal detection in the area of research,
but also has delved into engineering ethics. He is a graduate of Northern Arizona University where he
received a B.S. in Engineering Technology. He received his Master of Science degree in Engineering
Technology from West Texas State University. He can be reached at: [email protected].
Page 9.1283.17
Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition
Copyright©2004, American Society for Engineering Education