Skip to the content
2 layers36.7 × 15.1 mmIR Sensor, the printed circuit board in 3D

The circuit operates on the principle of Infrared Reflection:

Size
36.7 × 15.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
7
Pads
26
Tracks, vias
35, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
24 May 2025
Updated
30 Dec 2025

Overview

IR Sensor is an open-source printed circuit board by Mohamed-Tarek-Marzouk, from the Mohamed-Tarek-Marzouk/IR_sensor_Module- repository on GitHub. It is a 2-layer board of 36.7 × 15.1 mm with 9 parts on 7 nets, routed with 35 tracks and 0 vias.

It is built around the LM358. Its parts include 3 resistors, 3 diodes, 1 IC and 1 connector. It belongs with the sensors and measurement boards of this library.

Main components

1

README

README.md

📡 IR Sensor Module (Obstacle Detection Circuit)

Project Type Skill Level

📌 Overview

This project is an Infrared (IR) Sensor Module design that detects nearby objects based on infrared reflection. It is an essential building block for beginners in electronics and embedded systems, commonly used in robotics for obstacle avoidance and automation.


🧩 Components Used

ComponentQuantityPurpose
IR Transmitter LED1Emits continuous infrared light.
IR Receiver (Photodiode)1Receives reflected infrared light from objects.
LM358 Op-Amp1Acts as a voltage comparator to process the signals.
Potentiometer1Adjusts sensitivity and detection threshold (distance).
Output LED1Visual indicator that lights up upon detection.
Resistors3Current limiting for LEDs and signal pull-up/down.
3-Pin Connector1Interface for VCC (5V), GND, and Signal Output (OUT).

⚙️ How It Works

The circuit operates on the principle of Infrared Reflection:

  1. Emission: The IR Transmitter LED continuously sends out infrared light.
  2. Reflection: When an object comes within range, it reflects the IR light back toward the sensor.
  3. Detection: The IR Receiver (Photodiode) detects the reflected light, changing its resistance based on the intensity.
  4. Comparison: The LM358 Op-Amp compares the voltage from the receiver against a reference voltage set by the Potentiometer.
  5. Output: If the reflected signal is strong enough (exceeding the threshold), the comparator switches its output to HIGH, activating the Output LED and sending a signal through the OUT pin.

🎯 Applications

This module is highly versatile and can be integrated into:

  • Obstacle Detection: Preventing robots from colliding with walls.
  • Line Following: Detecting dark vs. light surfaces for line-follower robots.
  • Proximity Sensing: Touchless switches or object counters.
  • Automation: Basic presence detection in smart home projects.

🔧 Adjustment & Tuning

[!TIP] Use a small screwdriver to turn the Potentiometer.

  • Clockwise: Usually increases sensitivity (longer detection range).
  • Counter-clockwise: Decreases sensitivity (shorter range, less prone to false triggers from ambient light).

📜 License

This design is open for educational use. Feel free to modify the circuit or incorporate it into your own robotic designs.

Parts

9
QtyValueFootprintReferences
1100Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
110KPotentiometer_SMD:Potentiometer_Bourns_3314G_VerticalRV1
110KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2
1330Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR3
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_HorizontalJ1
1IR LEDLED_THT:LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_IRBlackD2
1LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD3
1LM358Package_DIP:DIP-8_W7.62mm_SMDSocket_SmallPadsU1
1PHOTO DIODELED_THT:LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_IRBlackD1

Similar boards

  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers68.8 × 53.6 mmZArduino, the printed circuit board in 3D

    ZArduino

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    46 parts269
  • 2 layers152 × 88 mmRFBitBangSMT, the printed circuit board in 3D

    RFBitBangSMT

    profdc9/RFBitBanger

    A QRP digital transceiver created from readily available parts for off-the-grid maintenance

    271 parts222
  • 2 layers118 × 103.5 mmEV Charger2, the printed circuit board in 3D

    EV Charger2

    fotherja/EV_Charger

    Arduino Uno Code for EV Charger

    62 parts167MIT
  • 2 layers113 × 62.2 mmFullScope, the printed circuit board in 3D

    FullScope

    tvlad1234/pillScopePlus

    Oscilloscope based around the STM32F401 Black Pill and a color LCD screen

    15 parts165Apache-2.0
  • 2 layers75.2 × 61.1 mmHelios, the printed circuit board in 3D

    Helios

    Grix/helios_dac

    Helios Laser DAC

    102 parts132
  • 2 layers144.1 × 182.2 mmSHVC CPU-01, the printed circuit board in 3D

    SHVC CPU-01

    starlightk7/OpenSFC

    OSHW Reproduction Parts related to the Super Famicom / Super Nintendo game console

    498 parts114CERN-OHL-S-2.0
  • 2 layers100 × 85 mmVNA, the printed circuit board in 3D

    VNA

    profdc9/VNA

    Vector Network Analyzer based on the STM32F103C8T6 bluepill

    178 parts93

Questions

How big is the IR Sensor PCB?

It measures 36.7 × 15.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the IR Sensor use?

9 parts, built around the LM358. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the IR Sensor KiCad files?

From the Mohamed-Tarek-Marzouk/IR_sensor_Module- repository on GitHub, at the commit this page was made from: the board is IR_Sensor.kicad_pcb and its schematic IR_Sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the IR Sensor design in my own project?

Its repository states no licence, so its author keeps all rights: ask Mohamed-Tarek-Marzouk before reusing the design.