Documentation sections
Optical Proximity Sensor Range
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug optical-sensor-range. Compare optical proximity sensor configurations by detection factor. Analyze emitter power, detector responsivity, and reflectivity tradeoffs.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| emitterPowernumber | mW | at least 0.001 | 10 | Emitter Power |
| detectorSensitivitynumber | A/W | at least 0.001 | 0.6 | Typical silicon photodiode: 0.5–0.8 A/W at 850 nm |
| targetReflectivitynumber | % | 0.1 … 100 | 90 | Target Reflectivity |
| safetyFactornumber | none | at least 1 | 1.5 | Safety Factor |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| maxRangeheadline | none | Relative Detection Factor |
| normalizedRange | none | Nominal Detection Factor |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.