Skip to content

cybeaer/SharpIR-Average

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SharpIR-Average

Arduino Library for getting average distance from the Sharp IR GP2*

Forked from the Arduino page itself at http://playground.arduino.cc/Main/SharpIR

Changes

Added max Distance for model 1080 (80cm) and changed from cm to mm.

At 30 tries and an tolerance of 98% its near 1mm exact at 67mm to 799mm.

The calculated values are for using with 5V

How to Install/Use in IDE

to use create a SharpIR Folder in your library folder and paste these files, restart Arduino IDE.

For Details at using in Arduino Project look at the original at http://playground.arduino.cc/Main/SharpIR quick one here: //include lib

#include <SharpIR.h>

//before setup()

SharpIR sharp(analogSensorPin, 30, 98, 1080);

//at loop for getting distance

sharp.distance()

About

Arduino Library for getting average distance from the Sharp IR GP2*

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages