Wish List 0

Sharp Ir Distance Measuring Sensor Unit 4 ~ 30 Cm With Cable [Gp2Y0A41Sk0F]

Rs. 386.00 Rs. 441.00

> Here we've the SHARP IR Distance Measuring Sensor Unit four To 30 CM With Cable-[GP2Y0A41SK0F]. This little unit uses a beam of infrared mild to reflect off an item to degree its distance.

> Because it uses beam triangulation to calculate distance, it may provide consistent and dependable readings which might be much less sensitive to temperature variation or the item’s reflectivity.

> The sensor outputs an analog voltage similar to the space of the object, without problems read via an Arduino, PIC, Raspberry PI, or every other ADC chip.
         Package Includes :
            1 x Sharp GP2Y0A41SK0F Sensor.
            1 x connecting cable.

SPECIFICATIONS:

         Model GP2Y0A41SK0F                         :4 to 30 cm

         Operating Voltage (VDC)                         :4.5 ~ 5.5

         Distance measuring range (cm)            :4 ~ 30

         Connecting cable Length (cm)               :15

         Operating Temperature Range (°C)      :-10 to 60

         Response Time                                         :38 ± 10ms


OVERVIEW:

  Distance measuring range                                     :4 cm to 30 cm

  Output type                                                               :Analog voltage

  Output voltage differential over distance range :2.05 V (typical)

  Update period                                                           :38 ± 10 ms

PACKAGE INCLUDES:

1 PCS x Gp2Y0A41Sk0F Sharp Ir Distance Measuring Senso 4-30 Cm


//SOURCE CODE TAKEN FORM BELOW LINK

// Sharp IR GP2Y0A41SK0F Distance Test

// http://www.electronoobs.com/eng_arduino_tut72.php


#define sensor A0 // Sharp IR GP2Y0A41SK0F (4-30cm, analog)


void setup() {

  Serial.begin(9600); // start the serial port

}


void loop() {

  

  // 5v

  float volts = analogRead(sensor)*0.0048828125;  // value from sensor * (5/1024)

  int distance = 13*pow(volts, -1); // worked out from datasheet graph

  delay(1000); // slow down serial port 

  

  if (distance <= 30){

    Serial.println(distance);   // print the distance

  }

}


15 DAYS

Write a review

Please login or register to review