Infrared Distance Measuring Proximity Sensor 4 - 30cm - SHARP GP0A41SK

  • RM48.00

  • Product Code: GP0A41SK
  • Availability: In Stock

The Sharp distance sensor's are a popular choice for many projects that require accurate distance measurements. This IR sensor is more economical than sonar range-finders, yet it provides much better performance than other IR alternatives. Interfacing to most microcontrollers is straightforward: the single analog output can be connected to an analog-to-digital converter for taking distance measurements, or the output can be connected to a comparator for threshold detection. The detection range of this version is approximately 4 cm to 30 cm (1.5" to 12").

 

Features:

  • Infrared rangefinder: 4cm to 30cm (1.5" to 12").
  • Analog Interface
  • External control circuit is unnecessary
  • Japanese Solderless Terminal (JST) Connector

 

Specifications:

  • Distance measuring range: 4 cm to 30 cm (1.5" to 12").
  • Maximum measurement angle: >40°
  • Operating voltage: 4.5 V to 5.5 V DC
  • Average power consumption : 22mA
  • Peak power consumption : 400mA
  • Frequency of updates/cycle : 16.5 ± 4 ms
  • Output type: Analog voltage (2.55V at 4cm to 0.55V at 30cm)
  • Output voltage differential over distance range: 2.25 V (typical)
  • Operating Temperature: -10°C ~ 60°C
  • Weight: 3.5 g
  • Size: 44.5 mm × 18.9 mm × 13.5 mm
 
Document:
http://www.sharpsma.com/webfm_send/1489

 

 

Connect Sharp Infrared Distance Measurement to Arduino

 
Arduino sketch:
/*
created  by  lisper (leyapin@gmail.com)
function	test GP2Y0A41SK0F
*/
//connect gp2d120x to A0

#define pin A0

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 arduino 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);
}

View the result in serial monitor.

Write a review

Note: HTML is not translated!
    Bad           Good

 

Related Products

Tags: IR Infrared, Distance Measuring