

IR SENSOR
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.mdIR 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.

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.

Bill of Materials
| Designator | Description | Footprint | Qty |
|---|---|---|---|
| D1 | IR receiver (photodiode/phototransistor) | LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_Clear | 1 |
| D2 | IR emitter LED | LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_Clear | 1 |
| D3 | Status LED | LED_1206_3216Metric | 1 |
| J1 | 3-pin header (VCC, GND, out) | PinHeader_1x03_P2.54mm_Horizontal | 1 |
| R1, R2 | Resistor, 10k | R_1206_3216Metric | 2 |
| R3 | Resistor, 10k | R_1210_3225Metric | 1 |
| RV1 | Potentiometer, 10k (sensitivity/threshold trim) | Bourns 3296W (vertical trimmer) | 1 |
| U1 | Single 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)
| Pin | Function |
|---|---|
| 1 | VCC |
| 2 | GND |
| 3 | out (digital detection signal) |
PCB Layout
| Top Copper (annotated) | Bottom Copper |
|---|---|
![]() | ![]() |
| 3D Top | 3D Bottom |
|---|---|
![]() | ![]() |
Design Rules Check
Passed with 0 violations:

Repository Contents
| File | Description |
|---|---|
IR_SENSOR.kicad_pro | KiCad project file |
IR_SENSOR.kicad_sch | Schematic |
IR_SENSOR.kicad_pcb | PCB layout |
IR_SENSOR.kicad_prl | Local project settings (layer visibility etc.) |
IR_SENSOR.csv | Bill of materials (BOM) |
IR_SENSOR.rpt | KiCad DRC/electrical rules report |
IR_SENSOR_report.txt | PCB statistics report (board area, pads, vias) |
docs/images/ | Schematic, layout, 3D render, and DRC screenshots |
Getting Started
- Install KiCad (version 7 or later recommended).
- Clone this repository:
bash git clone https://github.com/riteshh27/IR-SENSOR-PCB.git - Open
IR_SENSOR.kicad_proin KiCad to view/edit the schematic and PCB layout.
Manufacturing
To generate Gerber files for fabrication:
- Open the PCB layout in KiCad.
- Go to File → Fabrication Outputs → Gerbers.
- Export the drill file alongside the Gerbers.
- Zip the output folder and upload to your preferred PCB fab (JLCPCB, PCBWay, etc.).
License
See LICENSE for details.
Parts
9| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 10k | Resistor_SMD:R_1206_3216Metric | R1, R2 |
| 2 | LED | LED_THT:LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_Clear | D1, D2 |
| 1 | 10k | Resistor_SMD:R_1210_3225Metric | R3 |
| 1 | 10k | Potentiometer_THT:Potentiometer_Bourns_3296W_Vertical | RV1 |
| 1 | LED | LED_SMD:LED_1206_3216Metric | D3 |
| 1 | ~ | Package_DIP:DIP-8_W7.62mm | U1 |
| 1 | ~ | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Horizontal | J1 |
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 mm

- 2 layers31.8 × 47.6 mm

- 2 layers24 × 27.3 mm

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 mm

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 mm

Learnoliver
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
9 parts915 - 2 layers17.4 × 16.9 mm

- 2 layers9.8 × 108 mm

- 2 layers

Keyboard after
adamws/kicad-kbplacer
KiCad plugin for automatic keyboard's key placement and routing
9 parts547GPL-3.0


