
IPoS
peterheinrich/InternetOverSpaghetti
Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

This repository contains the complete KiCad PCB design files for an Infrared (IR) Proximity / Obstacle Sensor Module built around the LM358 dual operational amplifier.
Ir sensor is an open-source printed circuit board by VINAY-0119, from the VINAY-0119/IR-Sensor-PCB-designing repository on GitHub. It is a 2-layer board of 29.5 × 15.5 mm with 9 parts on 7 nets, routed with 63 tracks and 2 vias.
It is built around the LM358. Its parts include 3 resistors, 3 diodes, 1 IC and 1 connector. It belongs with the sensors and measurement boards of this library.
Manufacturer: Vinay Industries | IC: LM358 Dual Op-Amp | Tool: KiCad EDA | Version: 1.0
This repository contains the complete KiCad PCB design files for an Infrared (IR) Proximity / Obstacle Sensor Module built around the LM358 dual operational amplifier. The circuit uses an IR LED emitter and IR photodiode receiver pair with a comparator stage to detect objects and output a clean digital signal.
A blue trimmer potentiometer (RV1) allows real-time sensitivity and detection range adjustment without any code changes.
| Feature | Detail |
|---|---|
| Supply Voltage | 5V DC |
| Output Type | Digital (HIGH / LOW) |
| Sensitivity Control | Onboard trimmer potentiometer (RV1) |
| Status Indicator | Onboard LED (D3) lights when object detected |
| MCU Compatibility | Arduino, ESP32, STM32, Raspberry Pi |
| IC | LM358 Dual Op-Amp (DIP-8) |
| PCB Layers | Single-layer (F.Cu) |
| Design Tool | KiCad EDA |

Copper trace routing, component placement, silkscreen labels, and board outline as seen in KiCad PCB Editor. Components visible: D1, D2 (IR LEDs), R1–R3 (resistors), RV1 (trimmer), LM358 (DIP-8), D3 (status LED), J1 (3-pin header).

Full circuit schematic showing the LM358 comparator, IR emitter/receiver voltage divider, sensitivity trimmer (RV1), and digital output stage with status LED (D3) and 3-pin connector (J1).

KiCad 3D render of the assembled PCB. Visible: white IR emitter (D1), black IR photodiode (D2), blue trimmer potentiometer (RV1), LM358 DIP-8 IC, SMD status LED (D3), and 3-pin output header (J1) labeled VCC / GND / DATA.
VCC (+5V)
│
├──► D1 (IR LED Emitter) ──► R1 (100Ω) ──────────────────► GND [IR Transmission]
│
├──► D2 (IR Photodiode) + R2 (10kΩ divider) ─────────────► LM358 Non-Inverting (+)
│ [Received IR voltage]
├──► RV1 (10kΩ Trimmer) ──────────────────────────────────► LM358 Inverting (−)
│ [Threshold adjustment]
│
└──► LM358 Output ──► R3 (330Ω) ──► D3 (Status LED) ──────► DATA Pin (J1 Pin 3)| Ref | Component | Value | Package | Description |
|---|---|---|---|---|
| D1 | IR LED Emitter | — | 5mm Through-hole | Infrared emitter (white body) |
| D2 | IR Photodiode | — | 5mm Through-hole | Infrared receiver (black body) |
| D3 | Status LED | — | SMD | Object detection indicator |
| R1 | Resistor | 100Ω | Through-hole | IR LED current limiter |
| R2 | Resistor | 10kΩ | Through-hole | Photodiode voltage divider |
| R3 | Resistor | 330Ω | Through-hole | Output LED current limiter |
| RV1 | Trimmer Pot | 10kΩ | Top-adjust blue | Sensitivity / threshold adjustment |
| U1 | LM358 | — | DIP-8 | Dual operational amplifier |
| J1 | Pin Header | 3-pin | 2.54mm pitch | VCC / GND / DATA output connector |
J1 — 3-Pin Header (2.54mm pitch)
┌─────┬──────────┬────────────────────────────────────┐
│ Pin │ Label │ Description │
├─────┼──────────┼────────────────────────────────────┤
│ 1 │ VCC │ Power supply input (+5V DC) │
│ 2 │ GND │ Ground │
│ 3 │ DATA │ Digital output (HIGH = detected) │
└─────┴──────────┴────────────────────────────────────┘⚠️ Always verify polarity before connecting power. Reverse polarity may damage the IC.
| Parameter | Value |
|---|---|
| Board Dimensions | ~75mm × 28mm |
| PCB Layers | 1 (Single-sided — F.Cu) |
| Surface Finish | HASL |
| PCB Thickness | 1.6mm |
| Min Track Width | 0.25mm |
| Min Clearance | 0.2mm |
| Silkscreen | Front side (labels + Vinay Industries branding) |
| IC Package | DIP-8 through-hole |
| LED Package | 5mm through-hole (D1, D2) + SMD (D3) |
IR-Sensor-Module/
├── README.md ← This file
├── images/
│ ├── pcb_layout.png ← PCB layout screenshot
│ ├── schematic.png ← Schematic screenshot
│ └── 3d_render.png ← 3D board render
├── IR_Sensor.kicad_pro ← KiCad project file
├── IR_Sensor.kicad_sch ← Schematic
├── IR_Sensor.kicad_pcb ← PCB layout
├── fp-lib-table ← Footprint library table
├── sym-lib-table ← Symbol library table
├── gerbers/ ← Gerber files for manufacturing
│ ├── IR_Sensor-F_Cu.gbr
│ ├── IR_Sensor-F_Silkscreen.gbr
│ ├── IR_Sensor-F_Mask.gbr
│ ├── IR_Sensor-Edge_Cuts.gbr
│ └── IR_Sensor-PTH.drl
└── bom/
└── BOM.csvPrerequisites: KiCad 7.x or later
# Clone the repository
git clone https://github.com/vinay-industries/ir-sensor-module.git
cd ir-sensor-moduleIn KiCad:
IR_Sensor.kicad_proIn KiCad PCB Editor:
File → Fabrication Outputs → Gerbers (.gbr)| Layer | Purpose |
|---|---|
| F.Cu | Front copper traces |
| F.Silkscreen | Component labels |
| F.Mask | Solder mask |
| Edge.Cuts | Board outline |
| PTH Drill | Drill holes |
Zip the /gerbers folder and upload to your PCB manufacturer:
IR Sensor Module Arduino Uno
───────────────── ───────────
VCC ──────────► 5V
GND ──────────► GND
DATA ──────────► D7#define IR_SENSOR_PIN 7
void setup() {
pinMode(IR_SENSOR_PIN, INPUT);
Serial.begin(9600);
Serial.println("IR Sensor Module Ready — Vinay Industries");
}
void loop() {
int state = digitalRead(IR_SENSOR_PIN);
if (state == HIGH) {
Serial.println("Object Detected!");
} else {
Serial.println("No Object.");
}
delay(100);
}💡 Tip: Recalibrate when changing target surface color or ambient lighting conditions.
This project is licensed under the MIT License — see the LICENSE file for details. Free to use, modify, and manufacture for personal or commercial purposes with attribution.
Vinay Industries — KiCad PCB Design | Embedded Electronics
Designed with ❤️ using KiCad EDA
Manufacturer: Vinay Industries | IC: LM358 Dual Op-Amp | Tool: KiCad EDA | Version: 1.0
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 100R | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R1 |
| 1 | 10K | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R2 |
| 1 | 10K | Potentiometer_THT:Potentiometer_Bourns_3266Y_Vertical | RV1 |
| 1 | 330 | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R3 |
| 1 | Conn_01x03_Pin | Connector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_Horizontal | J1 |
| 1 | LED | LED_THT:LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_Clear | D1 |
| 1 | LED | LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D3 |
| 1 | LED | LED_THT:LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_IRBlack | D2 |
| 1 | LM358 | Package_DIP:DIP-8_W7.62mm | U1 |

peterheinrich/InternetOverSpaghetti
Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

zmaker/arduino_cookbook
gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

profdc9/RFBitBanger
A QRP digital transceiver created from readily available parts for off-the-grid maintenance


tvlad1234/pillScopePlus
Oscilloscope based around the STM32F401 Black Pill and a color LCD screen


starlightk7/OpenSFC
OSHW Reproduction Parts related to the Super Famicom / Super Nintendo game console

It measures 29.5 × 15.5 mm and has 2 copper layers, 1.6 mm thick.
9 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.
From the VINAY-0119/IR-Sensor-PCB-designing 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.
Its repository states no licence, so its author keeps all rights: ask VINAY-0119 before reusing the design.