0% found this document useful (0 votes)
48 views6 pages

TestPlan Example UltrasonicSensor

The document outlines test plans and requirements for testing an ultrasonic HC-SR04 sensor. It includes 7 test steps to test the sensor's ability to accurately measure distances from 0.8 to 118.8 inches and provide the correct readings when objects are within or outside the sensor's field of view. The tests were conducted on August 9th, 2017 and most requirements failed or results were inconsistent, identifying issues with the sensor's accuracy and range.

Uploaded by

Zack Overfield
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views6 pages

TestPlan Example UltrasonicSensor

The document outlines test plans and requirements for testing an ultrasonic HC-SR04 sensor. It includes 7 test steps to test the sensor's ability to accurately measure distances from 0.8 to 118.8 inches and provide the correct readings when objects are within or outside the sensor's field of view. The tests were conducted on August 9th, 2017 and most requirements failed or results were inconsistent, identifying issues with the sensor's accuracy and range.

Uploaded by

Zack Overfield
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Ultrasonic HC-SR04 Sensor

Test Plan

Revision: 0.1
August 9, 2017

Embry-Riddle Aeronautical University


600 South Clyde Morris Boulevard
Daytona Beach, FL 32114
Revision History

Rev Date Author Description


0.1 Aug 9, 2017 Ghelarducci Initial build
Introduction
The purpose of this document is to specify the methodology of testing the product against a set
of related requirements. Refer to Appendix A for Requirements. The product to be tested is the HC-SR04
ultrasonic sensor.

Test Plan
The following sequence satisfies:
Req. 1. And 1.1
Step Input/action Expected Result Date Ran Pass/Fail Comments
1 a) Plug in Should display a Aug 9th pass Display is a little
unpowered Boe- numeric value and 2017 hard to read as the
Bot to computer the string ‘ in’ refresh rate is too
via usb cable high. Recommend a
b) Open Arduino time delay in main
software loop.
c) Open correct
com port
d) Record display
The following sequence satisfies:
Req. 2., 3., 3.1 and 4.
Step Input/action Expected Date Ran Pass/Fail Comments
Result
1 a) Place Boe-Bot on Should display Aug 9th 2017 Fail The com port
flat surface well the string 1.00 displayed
plugged into in ‘0.90 in’.
computer
b) Measure out
from end of
transmitter
housing one inch
c) Place object at
the one inch
distance
d) Record display
2 a) Place Boe-Bot on Should display Aug 9th 2017 fail Displayed
flat surface well the string value of 0
plugged into ‘118.8 in’ inches. Also
computer note that if
b) Measure out anything was
from end of above the
transmitter surface within
housing 118.8 one foot and
inches in-between
c) Place object at the sensor and
118.8 inch mark object display
d) Record display read a
distance
‘relative’ to
the object.
3 a) Place Boe-Bot on Should display Aug 9th 2017 fail Same reading
flat surface well one inch and as in step 1.
plugged into the with every Also, no
computer mark change until
b) Measure out afterward the the 4th mark
from end of display should with reading
transmitter be .1 inch ‘1.01 in’ and
housing one inch higher the 5th mark
place mark read ‘1.12 in’
c) Measure out a
tenth of an inch
from the mark.
Place another
mark
d) Repeat step c
five times
e) Place object at
the one inch
distance record
display
f) Move object to
next mark, wait
one second
g) Record display
h) Repeat steps e
through g until a
measure exists
The following sequence satisfies:
Req. 5., 5.1 and 5.2
Step Input/action Expected Date Ran Pass/Fail Comments
Result
1 a) Place Boe-Bot on Should display Aug 9th 2017 Fail The com port
flat surface well the string displayed
plugged into ‘0.00 in’ ‘1.65 in’ when
computer the object was
b) Measure out placed .1
from end of inches from
transmitter the sensor
housing one inch
c) Place object
somewhere
within the one
inch distance
d) Record display
2 a) Place Boe-Bot on Should display Aug 9th 2017 pass None
flat surface well the string
plugged into ‘0.00 in’
computer
b) Measure out
from end of
transmitter
housing 118.8
inches
c) Place object
beyond 118.8
inch mark
d) Record display
Appendix A

Requirements:

Functional:

1. Measurements shall be displayed to the user.


1.1. Distances shall be measured in inches.
2. HC-SR04 shall measure with an accuracy of a tenth of an inch.
3. HC-SR04 shall measure a minimum distance of .8 inches.
3.1. Minimum distance shall be defined as one inch due to EGR101 RED sensor mount dimensions.
4. HC-SR04 shall measure a maximum distance of 118.8 inches.
5. Measurements shall be incorrect when the object of measure is out of the field of view of the
transmitting beam.
5.1. Measurements shall read zero inches when receiver is blocked. (Object is too close)
5.2. Measurements shall read zero inches when no object is with transmitting signals path. (Object
is too far away)

Non-Functional:

6. HC-SR04 shall be fixed to the front a Boe-Bot using the EGR101 RED sensor mount.
6.1. The center of the HC-SR04’s transmitter housing shall be mounted an inch from the ground.
6.1.1.Ground shall be defined as any surface for which the bottom of the Boe-Bot’s wheel rest
on.

You might also like