User Manual

Gravity: Digital Adjustable Infrared Proximity Sensor for Arduino
(0~200 cm)
(http://www.dfrobot.com/) Home (https://www.dfrobot.com/) > Sensors & Modules (https://www.dfrobot.com/category-156.html) > Sensors
(https://www.dfrobot.com/category-36.html) > Range & Distance Sensors (https://www.dfrobot.com/category-55.html)
Contents
1 Introduction
1.1 principle
2 Specification
3 Board Overview
4 Tutorial
4.1 Connection Diagram
4.2 Sample Code
4.3 Result
5 Trouble shooting
6 More Documents
Introduction
(/wiki/index.php/%E9%93%BE%E6%8E%A5%E
Gravity: Digital Adjustable Infrared Proximity
Sensor for Arduino (0~200 cm)
(https://ProductLink)
This is an Arduino digital infrared distance sensor. It has an adjustable detection range, 0cm - 200cm. It is small, easy to use, assemble, and inexpensive.
Useful for robotics, interactive media, industrial assembly line, etc. Infrared wave length is part of the Sun's natural light spectrum. While is a nice fit for indoor projects,
outdoors with plenty of sun light and reflective surfaces on it's sight is not adviced. It's incredibly repurposable and can be used for a lot of different projects. The adjustable
screw on it's back makes it very convenient for different purposes. Digital read on your Arduino pin and you are ready to go. Good sensor choice for quick prototyping.
Use it on a robot for wall detection and wall follower, or as some of the projects listed below as a trigger system. It's round shape with the screwable holders make it a good
choice for a home made assembled robot, with a hole of it's diameter and the holders you can place it aiming at different positions on a robot. Or even place it near your PC to
turn on and off your monitor.
To ease the difficult of using this sensor, a Gravity Interface is adapted to allow plug&play. The IO expansion shield is the best match for this sound senor connecting to your
Arduino.
principle
Light is an electromagnetic radiation that behaves like radio waves and X-rays at speeds of about 300,000 km / s so that it can be received by the moment it is launched.
Infrared photoelectric switch is the use of human invisible (wavelength 780nm-1mm) near infrared and infrared to detect, determine the object. A feeble beam that is
instantaneously transmitted by the optoelectronic device can be transmitted and received safely and reliably.
Infrared photoelectric switch is important to be able to handle the intensity of light changes: it use optical components in the media to make changes in the beam; the use of
light to reflect objects; make the beam emission after a long distance back instantly. Infrared photoelectric switch is composed of transmitter, receiver and detection circuit of
three parts. The emitter is aimed at the target emission beam and the emitted beam is typically derived from a light emitting diode (LED) and a laser diode. The light beam is
emitted continuously or the pulse width is changed. The intensity of the pulsed beam of radiation is selected multiple times during launch, running indirectly toward the target.
The receiver has a photodiode or a phototriode. In front of the receiver, it is equipped with optical components such as lenses and apertures. Connecting downstream is the
detection circuit, which filters out the valid signal and applies the signal.
Specification
Output Form: PNP normally open
Signal Type: Digital signal
Operating Voltage: 3~5V

Summary of content (4 pages)