SEN0143 Specifications Datasheet by DFRobot

View All Related Products | Download PDF Datasheet
Formulas These fijrmulas are derived from the Sharp datasheets w campum distance. The fovmula to translate SensorValua into Distance for Sharp ‘IOBOcm analog sensors 15' Distance (cm) x 4BW/[SensorValue - 20] This formula :9 only valid over the SensorVaIue range 805C!) The formula to translate SensorValue into Distance for Sharp 20-15mm analog sensors is: Dstance (cm) = SAGE/[SensorValue - 18,82] This formula is only valid over the SensorValue range 80-490. The formula to translate SensorValue lnm Distance for Sharp 43mm analog sensor is: Diaance (crnl - 207E/[SensorValue - ’I ‘|] This formula Is only valid over the SensorValue range 80530 For digital distance sensors, SensarValue will be greater than 200 if the distance of the objea bemg measured is less that the deflation distance of the sensor. Otherwise (he SensorValue will be less that 200.
SHARPGP2Y0A41SK0FIRrangersensor
(4‐30cm)SKU:SEN0143
Specifications
Outputanalog output
Detection Range 4-30cm
Voltage4.55.5V
Current33mA
Size40x20x13.5 mm
formulas
formulas
a 9 a 7 _1_ _DIGm\L m DFRoao.’ 'n ~, POWER ANALOG-MN . :91 (3nd m o 1 2 3 4 5
ConnectionDiagram
SampleCode
/******** start code ********/
/*
* created 2013-07-29
* by lisper (leyapin@gmail.com)
* function test GP2Y0A41SK0F
*
*/
//connect gp2d120x to A1
#define pin A1
void setup () {
Serial.begin (9600);
pinMode(pin, INPUT);
}
void loop () {
uint16_t value = analogRead (pin);
double distance = get_IR (value); //Convert the analog voltage to the
distance
Serial.println (value); //Print the data to the ardui
no serial monitor
Serial.print (distance);
Serial.println (" cm");
Serial.println ();
delay (500); //Delay 0.5s
}
//return distance (cm)
double get_IR (uint16_t value) {
if (value < 16) value = 16;
return 2076.0 / (value - 11.0);
}
/******** end code ********/
https://www.dfrobot.com/wiki/index.php/SHARP_GP2Y0A41SK0F_IR_ranger_sensor_(430cm)_SKU:SEN014333018

Products related to this Datasheet

SHARP GP2Y0A41SKOF
Available Quantity: 37
Unit Price: 13.76