Skip to the content
2 layers34 × 21 mm2-Layer Proximity PCB, the printed circuit board in 3D

This project is a custom-designed two-layer PCB for an infrared (IR) proximity sensor module, created using KiCad 9.0.

Size
34 × 21 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
6
Pads
31
Tracks, vias
37, 6
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
20 Aug 2025
Updated
20 Aug 2025

Overview

2-Layer Proximity PCB is an open-source printed circuit board by hydra1664, from the hydra1664/Two-Layer-PCB-Design-for-an-IR-Sensor-Module repository on GitHub. It is a 2-layer board of 34 × 21 mm with 11 parts on 6 nets, routed with 37 tracks and 6 vias.

It is built around the LM358. Its parts include 4 resistors, 4 diodes, 1 IC and 1 connector.

Main components

1

README

README.md

Two-Layer PCB for IR Sensor Module

This project is a custom-designed two-layer PCB for an infrared (IR) proximity sensor module, created using KiCad 9.0. The aim was to build a compact and reliable board that could be used for object detection, proximity sensing, or reflective surface detection.

The module is built around three main parts:

  • An IR LED to emit infrared light
  • A photodiode to detect the reflected light
  • An op-amp comparator to process the signal and output a clean digital logic level

The design was done with manufacturing in mind, keeping the board simple, efficient, and noise-resistant.

Schematic Design

The schematic includes:

  • IR LED for transmitting modulated IR light
  • Photodiode for sensing reflected light
  • Op-amp comparator for generating a digital HIGH/LOW output
  • Resistor network for biasing and setting comparator thresholds

PCB Layout

Component placement:

  • IR LED and photodiode are placed at the edge of the board for proper optical alignment with the environment
  • The op-amp is placed centrally to allow balanced trace routing
  • Custom footprints were used in some cases to simplify routing and save space

Routing strategy:

  • Sensitive signals (especially the photodiode output) are kept short and direct to reduce noise
  • A ground plane was added to the bottom layer for shielding and noise reduction
  • Power and output signals are routed on the top layer with standard trace widths
  • Vias are minimized to maintain signal integrity
  • Components are clearly labeled on the silkscreen

Files Included

The repository includes the following files:

  • 2-Layer-Proximity-PCB.kicad_pcb – the PCB layout
  • 2-Layer-Proximity-PCB.kicad_sch – the schematic file
  • Gerbers/ – a folder containing the full Gerber set, exported in JLCPCB format and ready for fabrication

Verification

The design was checked using KiCad’s DRC (Design Rule Check) and ERC (Electrical Rule Check) tools to ensure it meets both electrical and manufacturing requirements.

Conclusion

This PCB design provides a simple but effective IR sensor module that is well-suited for small-scale proximity detection applications. Working on this project gave me more hands-on experience in PCB design, especially with handling analog signals and optimizing layouts for sensor performance.

Parts

11
QtyValueFootprintReferences
3330Resistor_SMD:R_0805_2012MetricR1, R2, R4
1100Resistor_SMD:R_0805_2012MetricR3
110k POTPotentiometer_THT:Potentiometer_ACP_CA9-V10_Vertical_HoleRV1
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_HorizontalJ1
1D_PhotoLED_THT:LED_D5.0mm_Horizontal_O3.81mm_Z3.0mmD2
1IR_LEDLED_THT:LED_D5.0mm_Horizontal_O3.81mm_Z3.0mmD1
1LM358Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1OUT_LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD3
1PWR_LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4

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 2-Layer Proximity PCB PCB?

It measures 34 × 21 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 2-Layer Proximity PCB use?

11 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 2-Layer Proximity PCB KiCad files?

From the hydra1664/Two-Layer-PCB-Design-for-an-IR-Sensor-Module repository on GitHub, at the commit this page was made from: the board is 2-Layer-Proximity-PCB.kicad_pcb and its schematic 2-Layer-Proximity-PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 2-Layer Proximity PCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask hydra1664 before reusing the design.