Skip to the content
PCBKitNew board
2 layers21.7 × 15.2 mmNew2, the printed circuit board in 3D

A simple Infrared (IR) Sensor designed in KiCad using the LM358 operational amplifier as a comparator. The circuit detects nearby objects by transmitting infrared light and sensing its reflection.

Size
21.7 × 15.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
7
Pads
26
Tracks, vias
51, 2
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
26 Jun 2026
Updated
26 Jun 2026

Overview

New2 is an open-source printed circuit board by Saroja-J, from the Saroja-J/IR-Sensor repository on GitHub. It is a 2-layer board of 21.7 × 15.2 mm with 11 parts on 7 nets, routed with 51 tracks and 2 vias.

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

Main components

1

README

README.md

📡 IR Sensor using LM358 Comparator

A simple Infrared (IR) Sensor designed in KiCad using the LM358 operational amplifier as a comparator. The circuit detects nearby objects by transmitting infrared light and sensing its reflection. The received signal is compared with a reference voltage, and when an object is detected, the output changes state and the indicator LED turns ON. The detection sensitivity can be adjusted using a potentiometer, making the circuit suitable for applications such as obstacle detection, object counting, line-following robots, and automation projects.


📖 Overview

This project consists of an IR LED that continuously emits infrared light and a photodiode that receives the reflected IR light from nearby objects. The LM358 Op-Amp compares the photodiode's output with a reference voltage set by the potentiometer. If the reflected IR light is strong enough, the comparator output becomes HIGH, turning ON the output LED and providing a digital output signal. The adjustable potentiometer allows the sensing distance to be tuned according to the application.


📷 PCB Design

Image

⚙️ How It Works

  1. A 5V DC supply powers the circuit.
  2. The IR LED emits infrared light continuously.
  3. When an object comes near, the IR light is reflected back to the photodiode.
  4. The photodiode converts the reflected light into a voltage.
  5. The LM358 compares this voltage with the reference voltage.
  6. If the reflected signal exceeds the set threshold, the output goes HIGH and the LED turns ON.

✨ Features

  • ✔️ Infrared object detection
  • ✔️ Adjustable sensing sensitivity
  • ✔️ LM358 used as a comparator
  • ✔️ LED indication for object detection
  • ✔️ Simple and low-cost design
  • ✔️ Designed using KiCad

🛠️ Components

ComponentDescription
LM358 Op-AmpCompares the sensor signal with the reference voltage and generates the output.
IR LEDEmits infrared light for object detection.
PhotodiodeDetects the reflected infrared light from nearby objects.
Potentiometer (RV1)Adjusts the sensing sensitivity.
Resistors (R1, R2, R3)Limit current and help set the operating conditions of the circuit.
LEDIndicates when an object is detected.
5V DC SupplyPowers the entire circuit.
Output ConnectorProvides the digital output signal.

📄 License

This project is intended for educational and learning purposes.

text

Parts

11
QtyValueFootprintReferences
3R_USResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1D_PhotoDiode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolderD2
1IR26-21C_L110_TR8LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD3
1LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD1
1LM358Package_SO:MSOP-8_3x3mm_P0.65mmU1
1R_Potentiometer_USPotentiometer_SMD:Potentiometer_Bourns_3314G_VerticalRV1

The 9 most common of 11 parts.

Questions

How big is the New2 PCB?

It measures 21.7 × 15.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the New2 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 New2 KiCad files?

From the Saroja-J/IR-Sensor repository on GitHub, at the commit this page was made from: the board is IR Sensor/New2.kicad_pcb and its schematic IR Sensor/New2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the New2 design in my own project?

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

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