Introduction: Arduino and IR Module: Obstacle Detector

In this project, we shall use IR module to detect the obstacle within a small range of its vicinity. The presence of obstacle will be indicated by onboard LED (Digital pin 13) to turn ON and OFF based on the detection.

About IR Module:

The IR module consists of an Infrared Transmitter, an Infrared Detector, and support circuitry. The module requires very minimal connection because it has just three pins. When it detects an obstacle within its range it will send an output low as a result this can be used to trigger an alarm or LED to indicate the detection.

Step 1: Components Required:

- Arduino board 1

- IR sensor module 1

- Jumper wires 3

- Breadboard 1

You can buy these components from elegocart.

Step 2: Project Setup:

Step 3: Code:

Step 4: Result: