Skip to the content
2 layers35 × 15.8 mmIR Sensor, the printed circuit board in 3D

A compact infrared obstacle-detection circuit designed in KiCad 9. The design uses an IR LED as the emitter, a photodiode as the detector, and an LM358 op-amp stage to compare the sensor signal against an adjustable…

Size
35 × 15.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
11
Pads
30
Tracks, vias
42, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
11 Oct 2026
Updated
11 Oct 2026

Overview

IR Sensor is an open-source printed circuit board by AhmedOsama21998, from the AhmedOsama21998/IR-Obstacle-Avoidance-Sensor-PCB repository on GitHub, published under the MIT licence. It is a 2-layer board of 35 × 15.8 mm with 12 parts on 11 nets, routed with 42 tracks and 0 vias.

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

Main components

1

README

README.md

IR Obstacle Avoidance Sensor PCB

A compact infrared obstacle-detection circuit designed in KiCad 9. The design uses an IR LED as the emitter, a photodiode as the detector, and an LM358 op-amp stage to compare the sensor signal against an adjustable threshold.

Project status: Design only. The PCB has not been reported as fabricated or tested. Do not treat the design as validated hardware until it has been assembled and tested.

Overview

The intended signal path is:

  1. IR emitter: D3 emits infrared light. R3 (100 Ω in the current schematic) limits LED current.
  2. Optical detector: D2 is a photodiode. R2 (10 kΩ) forms the sensor node shown in the schematic.
  3. Adjustable threshold: RV2 (10 kΩ) sets the reference level for the LM358 stage.
  4. Output indicator: U1A drives the OUT node and the D1 indicator through R1 (330 Ω).
  5. Power indicator: D4 with R4 (300 Ω) indicates power.

The exact detection distance, output polarity, ambient-light immunity, and operating limits have not been characterized in hardware.

Design files

Open KiCad/IR_Sensor.kicad_pro with KiCad 9 or a compatible newer version. The project folder contains:

  • IR_Sensor.kicad_pro — project settings
  • IR_Sensor.kicad_sch — schematic
  • IR_Sensor.kicad_pcb — PCB layout

Images

PCB layout and 3D view

PCB layout and 3D view

Schematic

Schematic

Connector

The schematic labels J1 as:

PinSignal
1+5V
2OUT
3GND

Verify pin numbering against the PCB footprint and the final assembled board before connecting it to another circuit.

Current component values

ReferenceComponent / value
U1LM358
D2Photodiode
D3IR LED
D1Sensor/output indicator LED
D4Power indicator LED
R1330 Ω
R210 kΩ
R3100 Ω
R4300 Ω
RV210 kΩ potentiometer
J11×3 connector, 2.54 mm pitch footprint

Values and parts are transcribed from the supplied design files/schematic; confirm them against the exact selected components before fabrication.

Before fabrication

  • Run ERC on the schematic and DRC on the PCB in your KiCad version.
  • Review the photodiode part number, polarity, and biasing against its datasheet.
  • Verify the IR LED's rated continuous current and power dissipation of R3.
  • Confirm the unused half of the LM358 is handled appropriately for the intended design.
  • Check connector orientation and pin numbering against the footprint.
  • Generate Gerber and drill files only from the final reviewed PCB revision.
  • Fabricate, assemble, and test before describing the board as functional.

License

This repository is intended to be shared openly. The included MIT license applies to the project documentation and files in this repository to the extent the author has the right to license them. If you prefer a hardware-specific license for the electronic design files, replace it before publishing with a license such as CERN-OHL-S-2.0 and review its terms.

Author

Designed by Ahmed Osama Metwally using KiCad.

Parts

12
QtyValueFootprintReferences
1100Resistor_SMD:R_1206_3216MetricR3
110kResistor_SMD:R_1206_3216MetricR2
110kPotentiometer_SMD:Potentiometer_Bourns_3314G_VerticalRV2
1300Resistor_SMD:R_1206_3216MetricR4
1330Resistor_SMD:R_1206_3216MetricR1
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_HorizontalJ1
1IR LEDLED_THT:LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_IRBlackD3
1LM358Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1LOGOLOGOG***
1PHOTO DiodeLED_THT:LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_ClearD2
1Power LEDLED_SMD:LED_1206_3216MetricD4
1Sens LEDLED_SMD:LED_1206_3216MetricD1

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 35 × 15.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the IR Sensor use?

12 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 AhmedOsama21998/IR-Obstacle-Avoidance-Sensor-PCB repository on GitHub, at the commit this page was made from: the board is KiCad/IR_Sensor.kicad_pcb and its schematic KiCad/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 publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).