Skip to content

Commit 82a489e

Browse files
authored
Merge pull request #5 from DrGFreeman/in_work
Improved documentation
2 parents 0c95472 + d8b7361 commit 82a489e

6 files changed

Lines changed: 12 additions & 15 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SharpDistSensor
22
A library for the Arduino IDE that helps interface with Sharp analog distance sensors.
33

4-
Version 1.1.0
4+
Version 1.1.1
55
[![Build Status](https://travis-ci.org/DrGFreeman/SharpDistSensor.svg?branch=master)](https://travis-ci.org/DrGFreeman/SharpDistSensor)
66
By Julien de la Bruère-Terreault (drgfreeman@tuta.io)
77

@@ -60,7 +60,12 @@ Model | Units | C0 | C1 | C2 | C3 | C4 | C5 | valMin | valMax
6060
------|-------|----|----|----|----|----|----|--------|--------
6161
**GP2Y0A60SZLF_5V** | mm | 1734 | -9.005 | 2.032E-2 | -2.251E-5 | 1.167E-8 | -2.037E-12 | 30 | 875
6262

63+
**Important Note:** The analog voltage returned by the sensor is largely dependent of the reflected object size and reflectivity. The distance returned by these pre-defined calibration functions can therefore vary significantly from the real distance depending on the object detected. Where accuracy is required by the application, it is recommended to perform calibration with the object to be detected and use custom calibration fit functions instead.
64+
65+
This library has been designed so that it is easy to add sensor models. Contributions are therefore welcome. Adding models to the library can be done by either submitting a pull request or providing me the proposed fit function and associated calibration data by email so I can add it myself. Thank you for contributing!
66+
6367
## Version history
68+
* 1.1.1 (2017-05-01): Clarified comments and fixed typos in examples, improved README.
6469
* 1.1.0 (2017-04-05): Added support of power fit functions.
6570
* 1.0.0 (2017-03-29): Initial major release for Arduino Library Manager (no change rel. to 0.3.2)
6671
* 0.3.2 (2017-03-29): Modified models enum and related type in setModel method arguments.

examples/SharpDistSensorBasic/SharpDistSensorBasic.ino

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ in mm.
3333
The library default values corresponding to the Sharp GP2Y0A60SZLF 5V sensor
3434
are used.
3535
36-
For how to use a different sensor model pre-defined in this library, see the
37-
SharpDistSensorByModel.ino example sketch in this library.
38-
39-
For how to use different sensor model, units, range or calibration with a
40-
custom calibration curve, see the SharpDistSensorCustom.ino example sketch in
41-
this library.
36+
See the library README for how to use pre-defined sensor models or custom
37+
fit functions.
4238
*/
4339

4440
#include <SharpDistSensor.h>

examples/SharpDistSensorByModel/SharpDistSensorByModel.ino

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ SOFTWARE.
2929
This example shows how to use the SharpDistSensor library to continuously
3030
read the sensor and display the distance in mm using a pre-defined sensor model.
3131
See the library README page for the list of available models and corresponding
32-
constants.
33-
34-
For how to use different sensor model, units, range or calibration with a
35-
custom calibration curve, see the SharpDistSensorCustom.ino example sketch in
36-
this library.
32+
constants or for how to use custom defined fit functions.
3733
*/
3834

3935
#include <SharpDistSensor.h>

examples/SharpDistSensorCustomPoly/SharpDistSensorCustomPoly.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SOFTWARE.
2727

2828
/*
2929
This example shows how to use the SharpDistSensor library to continuously
30-
read the sensor and display the analog value and the corrseponding distance
30+
read the sensor and display the analog value and the corresponding distance
3131
using custom polynomial fit curve and range.
3232
3333
The same values as the library default values for the Sharp GP2Y0A60SZLF 5V

examples/SharpDistSensorCustomPower/SharpDistSensorCustomPower.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SOFTWARE.
2727

2828
/*
2929
This example shows how to use the SharpDistSensor library to continuously
30-
read the sensor and display the analog value and the corrseponding distance
30+
read the sensor and display the analog value and the corresponding distance
3131
using custom power fit curve and range.
3232
*/
3333

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SharpDistSensor
2-
version=1.1.0
2+
version=1.1.1
33
author=Julien de la Bruere-Terreault (drgfreeman@tuta.io)
44
maintainer=Julien de la Bruere-Terreault (drgfreeman@tuta.io)
55
sentence=Sharp analog distance sensor library

0 commit comments

Comments
 (0)