![](https://electroboat.in/uploads/media/2024/sharp_sensor.jpg)
![](https://electroboat.in/media/image?path=uploads/media/2024/sharp-distance-measuring-sensor-unit-10-80-cm-gp2y0a21yk0f-5.jpg&width=620&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/41-3TBj5G-S__AC_UF1000,1000_QL80_.jpg&width=620&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/sharp_sensor.jpg&width=175&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/sharp-distance-measuring-sensor-unit-10-80-cm-gp2y0a21yk0f-5.jpg&width=172&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/41-3TBj5G-S__AC_UF1000,1000_QL80_.jpg&width=172&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/sharp_sensor.jpg&width=300&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/sharp-distance-measuring-sensor-unit-10-80-cm-gp2y0a21yk0f-5.jpg&width=300&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/41-3TBj5G-S__AC_UF1000,1000_QL80_.jpg&width=300&quality=80)
Sharp Distance Measuring Sensor unit 10 to 80cm
This IR distance sensor produces an analog output that varies from 3.1V at 10cm to 0.3V at 80cm. It can find the distance to objects that present a very narrow edge such as a wall at a very sharp angle.
₹ 390 ₹499
499
![](https://electroboat.in/assets/front_end/classic/images/cod_logo.png)
![](https://electroboat.in/assets/front_end/classic/images/cancelable.png)
![](https://electroboat.in/assets/front_end/classic/images/returnable.png)
Made In : | India |
Add FAQ
Sharp sensors are a range of optical distance sensors produced by Sharp Corporation. They are widely used in various applications for measuring distances and detecting objects. Sharp's distance sensors, such as the GP2Y0A21YK0F and GP2Y0D805Z0F, are popular for their ease of use and reliability.
Key Features of Sharp Sensors:
-
Distance Measurement:
- Range: Sharp distance sensors can measure distances ranging from a few centimeters to several meters, depending on the model.
- Accuracy: Provides accurate distance measurements based on reflected infrared light.
-
Detection Methods:
- Infrared (IR) Reflection: Uses an infrared LED to emit light and a photodetector to measure the amount of reflected light. The amount of reflected light correlates with the distance to the object.
-
Output Type:
- Analog Output: Provides a continuous voltage signal that corresponds to the detected distance. The voltage level varies with the distance.
- Digital Output: Some models provide a digital signal indicating whether an object is detected or not, often used for object detection rather than precise distance measurement.
-
Power Supply:
- Typical Voltage: Most Sharp sensors operate at 5V, though some models may work with other voltage levels.
-
Applications:
- Obstacle Detection: Used in robotics for detecting obstacles and avoiding collisions.
- Distance Measurement: Employed in applications where distance measurement is required, such as in proximity sensors and distance gauges.
- Level Sensing: Useful in detecting levels of materials or liquids in various industrial and consumer applications.
Example of Sharp Sensor Models:
-
GP2Y0A21YK0F:
- Range: Approximately 10 cm to 80 cm.
- Output: Analog voltage output.
- Applications: Suitable for close-range distance measurement and obstacle avoidance.
-
GP2Y0D805Z0F:
- Range: Approximately 4 cm to 30 cm.
- Output: Digital output with a built-in comparator.
- Applications: Ideal for short-range object detection and proximity sensing.
Connecting a Sharp Sensor to Arduino:
Here’s a guide to connect a Sharp distance sensor with an Arduino and read its output.
Wiring Instructions for GP2Y0A21YK0F (Analog Output):
- Sharp Sensor to Arduino:
- VCC (Sharp Sensor) to 5V (Arduino).
- GND (Sharp Sensor) to GND (Arduino).
- VOUT (Sharp Sensor) to an analog input pin on Arduino (e.g., A0).
// Define the analog pin where the Sharp sensor is connected
#define SHARP_SENSOR_PIN A0
void setup() {
// Start serial communication for debugging
Serial.begin(9600);
}
void loop() {
// Read the raw analog value from the Sharp sensor (0 to 1023)
int sensorValue = analogRead(SHARP_SENSOR_PIN);
// Convert the sensor value to voltage (0 to 5V)
float voltage = sensorValue * (5.0 / 1023.0);
// Calculate the distance in cm (using the Sharp sensor's formula)
// For GP2Y0A21YK0F, the distance is calculated as:
// Distance = (27.86 * pow(sensorValue, -1.10))
// This is an empirical formula based on datasheet values
// If using a different sensor, adjust the formula accordingly.
float distance = (27.86 * pow(sensorValue, -1.10));
// Print the raw sensor value, voltage, and calculated distance
Serial.print("Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" Voltage: ");
Serial.print(voltage);
Serial.print("V Distance: ");
Serial.print(distance);
Serial.println(" cm");
// Add a delay for better readability of output
delay(500);
}
0 Reviews For this Product
![](https://electroboat.in/uploads/seller/electroboat_logo3.jpeg)