Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gioblu/reflectometer
Reflectometer Arduino library - Wire and use in a simple way photodiode / LED based reflectometers / range finders
https://github.com/gioblu/reflectometer
Last synced: about 4 hours ago
JSON representation
Reflectometer Arduino library - Wire and use in a simple way photodiode / LED based reflectometers / range finders
- Host: GitHub
- URL: https://github.com/gioblu/reflectometer
- Owner: gioblu
- Created: 2014-11-20T17:55:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-25T01:00:12.000Z (over 9 years ago)
- Last Synced: 2023-03-11T23:11:15.671Z (over 1 year ago)
- Language: C++
- Size: 195 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Reflectometer Arduino library
##### Play in a simple way with photodiode / LED based reflectometers / range finders / light sensors
=====
Reflectometer mySensor(**Emitter pin**, **Sensor pin**, **Readings**, **Filter**);
> **Emitter pin**: Arduino pin where you connected the positive of the IR/visible light emitter
> **Sensor pin**: Arduino analog pin where you connected the positive of the photodiode/LED
> **Readings**: Number of analog readings you want to perform in one measurement
> **Filter**: Insert a number from 0 to 1 to filter the output valuemysensor.distance();
> Returns **distance** measurement using ISL (Inverse Square Law), obviously its impossible to determine a correct distance value without knowing the reflectivity of the object in front (could be a mirror 10m away or a black paper sheet at 1m), so in this case is only an estimated value.mysensor.ambient();
> Returns **ambient light** value that is the sum of all readings done with the LED emitter offmysensor.reflex();
> Returns **light measurement** value that is the sum of all readings done with the LED emitter on