Skip to the content
PCBKitNew board
2 layersIR sensor, the printed circuit board in 3D

A custom PCB designed in KiCad 8 that detects nearby objects using an IR LED and photodiode pair, processed through an LM741 op-amp comparator circuit with adjustable sensitivity via a potentiometer.

Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
11
Pads
31
Tracks, vias
72, 7
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
16 Aug 2026
Updated
16 Aug 2026

Overview

IR sensor is an open-source printed circuit board by yychia131, from the yychia131/irsensorpcb repository on GitHub. It is a 2-layer board with 11 parts on 11 nets, routed with 72 tracks and 7 vias.

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

README

README.md

IR Proximity Sensor PCB

A custom PCB designed in KiCad 8 that detects nearby objects using an IR LED and photodiode pair, processed through an LM741 op-amp comparator circuit with adjustable sensitivity via a potentiometer.


Features

  • IR LED emitter and photodiode receiver pair for proximity detection
  • LM741 op-amp configured as a comparator for clean digital output
  • Adjustable sensitivity via 10kΩ potentiometer
  • Output LED indicator on object detection
  • Power LED indicator
  • 3-pin connector output for integration with external systems

Components

ReferenceComponentDescription
U1LM741Op-amp configured as comparator
D1D_PhotoPhotodiode — IR receiver
D2IR_LEDInfrared emitter LED
D3OUT_LEDOutput indicator LED
D4PWR_LEDPower indicator LED
RV110k_POTPotentiometer — sensitivity adjustment
R1–R4330ΩCurrent limiting resistors
J1Conn_01x033-pin output connector

Schematic

schematic


PCB Layout

schematic


3D Render

schematic


How It Works

  1. IR LED emits infrared light toward the target
  2. Photodiode receives reflected IR light — resistance drops as light increases
  3. Voltage at the op-amp non-inverting input (+) rises when object is detected
  4. LM741 comparator switches output to HIGH when (+) exceeds the threshold set by the potentiometer at (−)
  5. Output LED lights up indicating object detection

Tools Used

  • KiCad 10

What I Learned

  • How an op-amp comparator circuit works in a real PCB context
  • Routing mixed analog and digital signals on a single board
  • Using a potentiometer footprint for adjustable threshold setting
  • Resolving DRC violations including board outline and unconnected tracks
  • Exporting 3D render and Gerber files for manufacture

Parts

11
QtyValueFootprintReferences
3330Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3
1100Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4
110k_POTPotentiometer_THT:Potentiometer_ACP_CA9-V10_Vertical_HoleRV1
1Conn_01x03Connector_PinHeader_2.00mm:PinHeader_1x03_P2.00mm_HorizontalJ1
1D_PhotoLED_THT:LED_D4.0mmD1
1IR_LEDLED_THT:LED_D4.0mmD2
1LM741Package_SO:TSSOP-8_3x3mm_P0.65mmU1
1OUT_LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD3
1PWR_LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4

Questions

What parts does the IR sensor use?

11 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 yychia131/irsensorpcb 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 yychia131 before reusing the design.

Similar boards

  • 2 layers60 × 30 mmController, the printed circuit board in 3D

    Controller

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    11 parts3kApache-2.0
  • 2 layers103 × 30.5 mmTS Front Endcap, the printed circuit board in 3D

    TS Front Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    11 parts1.3kMIT
  • 2 layers26 × 30 mmExpansion Card, the printed circuit board in 3D

    Expansion Card

    FrameworkComputer/ExpansionCards

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

    11 parts1.1kCC-BY-4.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    11 parts1kGPL-3.0
  • 2 layers10 × 20 mm2 connector Sensor Board, the printed circuit board in 3D

    2 connector Sensor Board

    hackclub/OnBoard

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

    11 parts915
  • 2 layersFet module, the printed circuit board in 3D

    Fet module

    ByteWelder/Decktility

    A handheld PC

    11 parts855CC-BY-SA-4.0
  • 2 layers47 × 33 mmSevensegment led display module, the printed circuit board in 3D

    Sevensegment led display module

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    11 parts803MIT
  • 2 layers42.5 × 36.8 mmDevboard, the printed circuit board in 3D

    Devboard

    basilfx/TRADFRI-Hacking

    Hacking IKEA TRÅDFRI products, such as light bulbs, window blinds and other accessories.

    11 parts743CC-BY-4.0