Skip to the content
PCBKitNew board
2 layers51.1 × 15.5 mmIR SENSOR, the printed circuit board in 3D

A KiCad hardware project for a simple IR (infrared) obstacle/proximity sensor module, featuring an IR emitter/receiver pair, a comparator threshold circuit, sensitivity adjustment, and status indication.

Size
51.1 × 15.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
7
Pads
26
Tracks, vias
40, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
20 Jul 2026
Updated
20 Jul 2026

Overview

IR SENSOR is an open-source printed circuit board by riteshh27, from the riteshh27/IR-SENSOR-PCB repository on GitHub, published under the MIT licence. It is a 2-layer board of 51.1 × 15.5 mm with 9 parts on 7 nets, routed with 40 tracks and 0 vias.

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

README

README.md

IR Sensor PCB

A KiCad hardware project for a simple IR (infrared) obstacle/proximity sensor module, featuring an IR emitter/receiver pair, a comparator threshold circuit, sensitivity adjustment, and status indication.

3D view - top

How It Works

  • D2 is the IR emitter LED, wired in series with current-limiting resistor R2 directly across VCC/GND — it's always on, flooding the area ahead with IR light.
  • D1 is the IR receiver (photodiode/phototransistor), in series with R1 forming a voltage divider. The midpoint feeds the + input of comparator U1.
  • RV1 (10k trimmer potentiometer) forms a second divider between VCC and GND, with its wiper feeding the − input of U1 — this sets the detection threshold/sensitivity.
  • U1 (single comparator, e.g. LM393/LM311-style DIP-8) compares the receiver signal against the threshold and switches its output accordingly.
  • The output passes through R3 to header J1, and drives status LED D3 to indicate detection state.

Schematic

Bill of Materials

DesignatorDescriptionFootprintQty
D1IR receiver (photodiode/phototransistor)LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_Clear1
D2IR emitter LEDLED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_Clear1
D3Status LEDLED_1206_3216Metric1
J13-pin header (VCC, GND, out)PinHeader_1x03_P2.54mm_Horizontal1
R1, R2Resistor, 10kR_1206_3216Metric2
R3Resistor, 10kR_1210_3225Metric1
RV1Potentiometer, 10k (sensitivity/threshold trim)Bourns 3296W (vertical trimmer)1
U1Single comparator (e.g. LM393/LM311)DIP-8 (0.3", 7.62mm)1

Board Details

  • Layers: 2-layer (F.Cu / B.Cu)
  • Board thickness: 0.063 in (~1.6 mm, standard)
  • Front copper area: 0.429 in²
  • Back copper area: 0.077 in²
  • Min track width / clearance: 0.0079 in (~0.2 mm)
  • Min drill diameter: 0.0118 in (~0.3 mm)
  • Components: 9 total (5 THT, 4 SMD), all on the front side
  • Pads: 18 through-hole, 8 SMD
  • Vias: 4 through-vias
  • DRC: 0 errors, 0 warnings ✅

Connector (J1)

PinFunction
1VCC
2GND
3out (digital detection signal)

PCB Layout

Top Copper (annotated)Bottom Copper
PCB layout annotatedPCB layout 2D
3D Top3D Bottom
3D top3D bottom

Design Rules Check

Passed with 0 violations:

DRC results

Repository Contents

FileDescription
IR_SENSOR.kicad_proKiCad project file
IR_SENSOR.kicad_schSchematic
IR_SENSOR.kicad_pcbPCB layout
IR_SENSOR.kicad_prlLocal project settings (layer visibility etc.)
IR_SENSOR.csvBill of materials (BOM)
IR_SENSOR.rptKiCad DRC/electrical rules report
IR_SENSOR_report.txtPCB statistics report (board area, pads, vias)
docs/images/Schematic, layout, 3D render, and DRC screenshots

Getting Started

  1. Install KiCad (version 7 or later recommended).
  2. Clone this repository:
    bash
    git clone https://github.com/riteshh27/IR-SENSOR-PCB.git
  3. Open IR_SENSOR.kicad_pro in KiCad to view/edit the schematic and PCB layout.

Manufacturing

To generate Gerber files for fabrication:

  1. Open the PCB layout in KiCad.
  2. Go to File → Fabrication Outputs → Gerbers.
  3. Export the drill file alongside the Gerbers.
  4. Zip the output folder and upload to your preferred PCB fab (JLCPCB, PCBWay, etc.).

License

See LICENSE for details.

Parts

9
QtyValueFootprintReferences
210kResistor_SMD:R_1206_3216MetricR1, R2
2LEDLED_THT:LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_ClearD1, D2
110kResistor_SMD:R_1210_3225MetricR3
110kPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1
1LEDLED_SMD:LED_1206_3216MetricD3
1~Package_DIP:DIP-8_W7.62mmU1
1~Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_HorizontalJ1

Questions

How big is the IR SENSOR PCB?

It measures 51.1 × 15.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the IR SENSOR use?

9 parts. 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 riteshh27/IR-SENSOR-PCB 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 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).

Similar boards

  • 2 layers103 × 30.5 mmTS Back Endcap, the printed circuit board in 3D

    TS Back Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    9 parts1.3kMIT
  • 2 layers31.8 × 47.6 mmNGC 38 connector, the printed circuit board in 3D

    NGC 38 connector

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    9 parts1.2k
  • 2 layers24 × 27.3 mmExpansion Card Retrofit, the printed circuit board in 3D

    Expansion Card Retrofit

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    9 parts1.1kCC-BY-4.0
  • 2 layers15.6 × 17.3 mmSKR Mini TFT Thermistor Board, the printed circuit board in 3D

    SKR Mini TFT Thermistor Board

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    9 parts1.1kGPL-3.0
  • 2 layers39.1 × 49.5 mmLearnoliver, the printed circuit board in 3D

    Learnoliver

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    9 parts915
  • 2 layers17.4 × 16.9 mmToolhead, the printed circuit board in 3D

    Toolhead

    tanaes/whopping_Voron_mods

    9 parts787GPL-3.0
  • 2 layers9.8 × 108 mmExpander, the printed circuit board in 3D

    Expander

    wntrblm/Castor_and_Pollux

    A Juno-inspired dual oscillator

    9 parts587
  • 2 layersKeyboard after, the printed circuit board in 3D

    Keyboard after

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    9 parts547GPL-3.0