Test Plan - Wikispaces

ukrainianlegalElectronics - Devices

Nov 2, 2013 (4 years and 11 months ago)

335 views


1


Test Plan

Project: Heart Rate Detection Device

ECE 411


Fall 2011













Portland State University

Maseeh college of Engineering and Computer Science

Electrical and Computer Engineering


Team 2: Hussain AlFaraj, Jason Nguyen, Fadi Butti, Phong Ngo

11
-
26
-
2011





2

Table of Contents


Cover Page











1

Table of Contents










2

Revision History










2

Introduction












3

Testing

Objectives and

Outlines








4


A.

Functional

Test









4

B.
Microcontroller Programming
Verification





4

Resources











4

Engineering Recourses









5


Preparation for Testing









5

Test Cases











6

References











6










Revision History:

Name

Date

Reasons For Change

Version















3




Introduction


This document clarifies the test cases for the Heartbeat Rate Detection Device to ensure
that the device functions properly. We tested the device that works using an IR sensor and a
photodiode as input sensor that will send an amplified signal of blood flu
ctuation

to the
microcontroller. The microcontroller then will calculate the heartbeats per minutes based on
the uploaded code that we designed for the purpose of calculating the heartbeat rate. The test
document is walkthrough of the procedure required to

ensure that all stages with chosen
components wo
rks correctly and properly. We followed similar step as in building our
prototype circuit after soldering the final board. We went through the board to make sure
there are no mistakes in the traces, as well
as, while and after soldering the components to
make sure the parts are all attached correctly with the traces on the board and making sure
there is no loose components or a misplaced one. We started first with LED signal indicator that
will show you that
there is actually an amplified signal being transmitted from the sensor
through the low
-
pass

filter to the microcontroller. Then we uploaded a test code to see that
output LCD shows the digits work, and with that we made sure that those components are
corr
ectly connected. After we completed

the initial test, we checked the push
-
buttons

that we
assigned for starting counting and clearing the data. Although, we had a hard time having the
accurate results due to the sensitivity of the input sensor, we could at least to make sure it is
properly connected after making a suitable enclosure fo
r
the IR and photodiode.



4


Test
ing

Objectives and Outlines


The following outlines are set to help us verifying the functionality of the device in
general. Briefly, the testing outlines are as follows:

A.

Functional Test

1)

Verify the active low
-
pass filter ope
ration

2)

Verify amplified input signal sent by the input sensor

3)

Verify RTC operation

4)

Verify the functionality of the push
-
buttons

5)

Verify the accuracy of the calculated results

B.

Microcontroller Programming Verification

1)

Push the start button to operate the LCD

2)

Put a fingertip on the input sensor for the pulse to be calculated

3)

Wait for 15 seconds to see the results in the LCD

4)

Push the clear button to erase the data on LCD to 000


Used Resources


In order to fulfill the testing plan, the testing procedure require
d the following
resources:

Engineering Resources

Quantity

Functional
U
nits

2

Battery

1

Stopwatch

1

Trained Operator

1









5


Engineering Resources

1.

Functional Units
: The circuit consists of two parts;

the input/ amplifiers part, and
the microcontroller/ LCD output part. We need these two parts to be functioning
correctly without any voltage drops or any misconnection occurred when
assembled.

2.

Battery
: In order to operate the device, we need to supply it with a low voltage
around 5V. We connected the device with a 9V Battery, and with a the 5V
regulator we will guarantee delivering 5V to the circuit to make it operating
properly.

3.

Stopwatch and a train
ed operator:

For operating,
a trained operator

is required
to put his fingertip on the in
put sensor. An amplified signal of the heart pulses
will be sent to the microcontroller to measure it and display it on the LCD. The
procedure of the measurement

will
take 15 seconds to display the final results.


Preparation for Testing


In order to make sure we will not end up with an accidental damage on our circuit,
we
first performed a quick visual checking on the PCB board and throughout the components to
ensure
that there are no flaws
. The continue checking the whole circuit as follows:



Walkthrough the buses between each component to ensure that we have the right
connections.



Check the solder joints on the PCB
to detect any unnecessary shorts or misconnections.



U
sing an external power supply with very low voltage (~ 1.2V), test the IR and
photodiode, and the LED indicator to make sure they are working properly.



Check the schematic and compare it with the connection of the low pass filter to make
sure the correct c
omponents were used and assembled.



Review the code and go through it to make sure we put the right commands and
structure and used the correct pins for the correct job.



Check the external pins on the microcontroller and make sure they are properly
connecte
d with the traces on the board.




6


Test Cases










Test Writer:
Hussain Al Faraj

Test Case Name

LCD display test

Test ID#:

1

Description

Test the functionality of the device by
verifying the correct results shown on the
LCD

Type:


Tester Information

Name
of Tester


Date:


Hardware Version:


Time:


Setup:


Step

Action

Expected Result

Pass

Fail

N/A

Comments

1

Place fingertip on
the input sensor

and push the start
button

LED signal indicator will blink as
a result of detecting the heart
pulse

and a one blink on the LCD





2

Wait for 15
seconds for the
microcontroller to
calculate the
heartbeats

LED indicator blinking





3

Read the result on
the LCD

LCD should display the results





4

Check the
calculation
accuracy

Results should be
close enough to
be correct





Overall test Result






7








References:

Team 2 Project documents
of ECE411, 2011.

http://ece411practicum2011.wikispaces.com/Project+Related+Documents

Test Writer:
Hussain Al Faraj

Test Case Name

Microcontroller and LCD code
functionality

Test ID#:


Description

Review the code used to generate the HEX
file that we uploaded to the
microcontroller
and check the functionality

Type:


Tester Information

Name of Tester


Date:


Hardware Version:


Time:


Setup:


Step

Action

Expected Result

Pass

Fail

N/A

Comments

1

Check the code
using the C
compiler

If there is any mistake in the
code
structure, the compiler will show
that in the results, otherwise, it is
fine





2

Check first if
start/clear button ‘s
code works

The LCD will blink once with
000 value when clear it, and will
blink once then show the results
in 15 seconds when
start button is
pushed





3

Check the
calculation formula
with in the code

Counted Heartbeats * 4





4

Make sure that the
results does not
exceed 180 bpm

Set the code to l <= 180





Overall test Result