Skip to content

Releases: FelixHauser/Sharp-Average-IR

Sharp Average IR Library for Arduino

20 Aug 20:34
Compare
Choose a tag to compare

After v1.0 being buried in the Arduino forums and re uploaded on GitHub just recently, this is the version 2.0 of the SharpAverageIR Library, formerly known as SharpIR (like beginning of 2014, actually).

Why is it different?

When I started playing with these sensors, at the end of 2013, I observed that they were somehow inconsistent in that, when fixed on an object the continuous reading of the distance sometimes dropped too much or was too long.
Based on another library I designed a way to take several readings and discard those too scattered from the actual distance.
Version 1.0 (still available on the "master" branch) was able to do just that but with a some inconsistency in and on itself. I left it there for historic reasons only and I encourage not to use that version.

New features

  • Completely new algorithm to sort out inconsistent readings based in actual statistics.
  • Support for all Sharp analog-output sensors: GP2Y0A21Y, GP2Y0A02Y, GP2Y0A41SK0F and GP2Y0A710K0F.
  • Minimized use of floats in the calculations.
  • Gain in precision.

To be added in future releases

  • ability to select the logic voltage between 5v and 3.3v.
  • improve math and code (not where I shine, I'm afraid).
  • have an idea? let me know or even better, branch the project and get cracking!