Wish List 0

Sharp Distance Measuring Sensor Unit 100 To 550 Cm Gp2Y0A710K0F With Cable

Rs. 983.00 Rs. 1,121.00

>  This extra-long-variety SHARP Distance Measuring Sensor unit a hundred to 550 cm – GP2Y0A710K0F with cable bounces IR off gadgets to determine how some distance away they're. It returns an analog voltage that may be used to determine how near the closest object is. These sensors are good for detection among 100cm-500cm (1-five meters / 3-15 feet).

>  The lengthy-variety makes them a very good opportunity to sonar sensors.

>  Please word: the wire co-lours are not intuitive! Watch out before wiring! The datasheet has wiring info. Connect the 2 outer floor wires each to the ground, the 2 ‘VCC’ wires both to 5VDC power, and read the analog sign from the Vo wire. The analog voltage out will variety from 3V whilst an object is set 100cm away and 1.4V while the object is 500cm away.

>  For a complete graph, showing the distance to the analog range, find the datasheet within the ATTACHMENT tab.

>  These sensors tend to be a bit noisy, we endorse soldering/connecting the 220uF capacitor to the identical place you join the wires, to provide a few filtering on the electricity supply. Connect the + pin of the capacitor to the Vcc twine connection, and the – pin of the capacitor to the GND wire connection.
          Features :
                    1 .Long-distance type (bigger size).
                    2.  Analog output.
                    3. Good Alternative to Sonar Sensors.
                    4. This item comes with a JEST connector and wires

SPECIFICATIONS:

          odel                                                           :GP2Y0A02YK0F (100to 550 cm)

         Operating Voltage (VDC)                        :4.5 ~ 5.5

         Average Current Consumption (mA)    :33

         Sampling Rate                                          :21-26Hz

         Distance Measuring Range (CM)           :100 ~ 550

         Output Type                                             :Analog Voltage


OVERVIEW:

    Distance measuring range                                     :100 cm to 550 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 Gp2Y0A710K0F Sharp Distance Measuring Sensor 100-550 Cm

   1 PCS x Connecting Cable.

//SOURCE CODE TAKEN FROM BELOW LINK

//https://robojax.com/learn/arduino/?vid=robojax-sharp_IR-LCD1602-I2C

 /*

 * Sharp IR (infrared) distance measurement module with LCD1602 and I2C for Arduino

 * Measures the distance in cm.


 * Watch the video https://youtu.be/RHgMwtKLEnE


 *  * 


Original library: https://github.com/guillaume-rico/SharpIR



// Written and updated by Ahmad Shamshiri for Robojax.com

// on Jan 03, 2018 at 20:01 in Ajax, Ontario, Canada

Nejrabi

* Get this code and other Arduino codes from Robojax.com

Learn Arduino step by step in structured course with all material, wiring diagram and library

all in once place. Purchase My course on Udemy.com http://robojax.com/L/?id=62


If you found this tutorial helpful, please support me so I can continue creating 

content like this. You can support me on Patreon http://robojax.com/L/?id=63


or make donation using PayPal http://robojax.com/L/?id=64


 *  * This code is "AS IS" without warranty or liability. Free to be used as long as you keep this note intact.* 

 * This code has been download from Robojax.com

    This program is free software: you can redistribute it and/or modify

    it under the terms of the GNU General Public License as published by

    the Free Software Foundation, either version 3 of the License, or

    (at your option) any later version.


    This program is distributed in the hope that it will be useful,

    but WITHOUT ANY WARRANTY; without even the implied warranty of

    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

    GNU General Public License for more details.


    You should have received a copy of the GNU General Public License

    along with this program.  If not, see <https://www.gnu.org/licenses/>.


*/





#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


// Set the LCD address to 0x27 for a 16 chars and 2 line display

LiquidCrystal_I2C lcd(0x27, 16, 2);


///////////////////***** start of Sharp IR

#include <SharpIR.h>


#define IR A0 // define Sharp IR signal pin

#define model 430 // the model of the IR module

// Sharp IR code for Robojax.com

// ir: the pin where your sensor is attached

// model: an int that determines your sensor:

/*

 * GP2Y0A02YK0F --> "20150"

 GP2Y0A21YK --> "1080"

 GP2Y0A710K0F --> "100500"

  GP2YA41SK0F --> "430"

 */


SharpIR SharpIR(IR, model);

/////////////////////**** end of Sharp IR


void setup()

{

  // Robojax code for LCD with I2C

  // initialize the LCD, 

  lcd.begin();

 

  // Turn on the blacklight and print a message.

  lcd.backlight();

  // Robojax code for LCD with I2C



}


void loop()

{

  

  //start of loop Robojax code for LCD with I2C

  lcd.clear();

  lcd.print("Robojax IR Test");

  lcd.setCursor (0,1); // go to start of 2nd line

 int dis=SharpIR.distance();// gets the distance in cm

 String distance = String(dis);

 distance ="Distance: "+distance+"cm";

 lcd.print(distance);

  //lcd.print(millis() / 1000);

  delay(500);

 //end of loopcode Robojax code for LCD with I2C

}


 

15 DAYS

Write a review

Please login or register to review