Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Airtap is an open-source printed circuit board by ajkumar-1907, from the ajkumar-1907/POWER-ELECTRONICS-LIB repository on GitHub, published under the MIT licence. It is a 2-layer board of 50 × 100 mm with 62 parts on 46 nets, routed with 335 tracks and 18 vias.
It is built around the ATMEGA328-AU, HLK-5M05 and AMS1117-3.3, with the AO3400A, 10D561K and 1N4148W among its other parts. Its parts include 14 resistors, 11 capacitors, 4 diodes, 3 ICs and 3 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.
A touchless, proximity-triggered relay controller for 220 V AC loads. Hold your hand 10–30 mm above the sensing area and a VL53L0X time-of-flight sensor detects it. The ATmega328 then toggles an onboard relay to switch a lamp, fan or other mains appliance, with no physical contact.
Credit: AirTap is a fork of ProxiWave-D (PWD-v010A) by Ampnics, released under the MIT License. The circuit, PCB layout and test firmware are Ampnics' original design. This fork re-brands the board silkscreen as "AIR-TAP", ports the project to KiCad 10, and adds Gerbers, renders and documentation. See NOTICE.md.
⚠️ DANGER: mains voltage. The AC side of this board carries 220 V. Never touch it while it's powered, keep it in an enclosure, and only build it if you're experienced with mains wiring.
3D views
Top
Bottom (sensor side)
Schematic sections
220 VAC → 5 VDC
AC connector, relay & buzzer
ToF sensor
Microcontroller
Layer views
Front copper
Back copper
Front silkscreen
Back silkscreen
Overview
Block
Parts
Function
220 VAC → 5 VDC
F1 fuse, RV1 MOV, C1, PS1 HLK-5M05, C3
Fused, surge-protected isolated AC-DC module
5 V → 3.3 V
U2 AMS1117-3.3 + decoupling
Powers the MCU and sensor
Microcontroller
U3 ATmega328-A, Y1 8 MHz, SW1 reset
Reads the sensor, drives the relay, buzzer and LEDs
D2 blue (relay), D3 red (power), D4 green (status)
Visual status
Programming
J2 2×3 ICSP
Flash with USBasp / AVRISP
Backup sensor
J3 3-pin
Optional IR proximity sensor input
Working Principle
Power: mains enters on J1 (LINE / NEUTRAL) through fuse F1 (0.5 A). MOV RV1 (10D561K) clamps surges, and the HLK-5M05 isolated module produces 5 V. The AMS1117 then makes 3.3 V for the ATmega328 and the VL53L0X.
Sensing: the VL53L0X sends out infrared laser pulses and measures their time of flight. The ATmega328 reads the distance over I²C (SDA = PC4, SCL = PC5).
Decision: when a hand is held inside the calibrated 10–30 mm window, the firmware toggles the load state.
Switching: PC2 drives Q1 (AO3400A logic-level MOSFET), which energises relay K1. D1 clamps the coil's flyback spike. The relay's NO / C / NC contacts are brought out on J1.
Feedback: PC3 drives the buzzer through Q2, the blue LED shows the relay state, and the green LED (PC1) shows status.
GPIO Mapping
ATmega328 Pin
Signal
Function
PC1 / A1
STS
Relay status LED
PC2 / A2
RLY
Relay driver (Q1)
PC3 / A3
BUZZER
Buzzer driver (Q2)
PC4 / A4
SDA
VL53L0X I²C data
PC5 / A5
SCL
VL53L0X I²C clock
PD2 / D2
XSHUT
VL53L0X shutdown / reset
PD4 / D4
IR-BKP
Backup IR sensor (J3)
J1: AC Terminal (5-way)
Pin
Label
Description
1
L/L
AC line (live) in
2
N
AC neutral in
3
NO
Relay normally-open
4
C
Relay common
5
NC
Relay normally-closed
Wire the load between NO and neutral, and connect C to line, so the load is off until triggered.
Key Equations
ToF ranging:
text
d = (c × t) / 2 c = 3×10⁸ m/s, t = round-trip time of the laser pulse
Relay coil drive (G5LE-1, 5 V coil ≈ 72 Ω):
text
I_coil ≈ 5 V / 72 Ω ≈ 70 mA → switched by AO3400A (R_DS(on) ≈ 30 mΩ at V_GS = 2.5 V)
LED current (3.3 V rail):
text
I_LED = (3.3 − V_F) / R e.g. (3.3 − 2.0) / 330 Ω ≈ 4 mA
Specifications
Parameter
Value
Input
220 V AC, 50 Hz
Load Switching
SPDT relay (G5LE-1), NO / C / NC on screw terminal
Setup: in the Arduino IDE, install MiniCore (board manager URL https://raw.githubusercontent.com/MCUdude/MiniCore/master/package_MCUdude_MiniCore_index.json), then choose ATmega328, External 8 MHz, 3.3 V. Install the VL53L0X library by Pololu, and flash through J2 with a USBasp.
Design Notes
J3 footprint: the backup IR connector (J3) has no footprint assigned in the schematic, although the PCB has one. Assign it, for example PinHeader_1x03_P2.54mm, before running "Update PCB from Schematic", or KiCad will flag it.
Isolation: the AC/DC boundary is marked on the silkscreen. For extra safety, consider adding a routed isolation slot between the mains section and the logic section.
C1 must be an X2-rated safety capacitor.
Load rating: the relay is rated 10 A, but the fuse (0.5 A) protects the logic supply only. Fuse the load circuit separately, sized for your appliance.
3D models: the vendor 3D models (relay, buzzer, terminal, switch) aren't included, so KiCad's 3D viewer shows those parts without a body. The 3D renders in this folder were made with them.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.
Hardware reference design for an ESP32-S3 smart plug with mains power conversion, relay switching, RTC support, USB connectivity, and protection components.
The consumer half of the ephemerkey system, and the second PCB in this repo (alongside hardware/ephemerkey/, sharing the same scripts/kschgen.py engine, Makefile, and lib tables — the multi-project layout used by…
An 80×80 mm STM32F405 flight controller for a 4S freestyle quad, running Betaflight off a custom target I wrote.
90 parts
Questions
How big is the Airtap PCB?
It measures 50 × 100 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Airtap use?
62 parts, built around the ATMEGA328-AU, HLK-5M05, AMS1117-3.3 and AO3400A. 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 Airtap KiCad files?
From the ajkumar-1907/POWER-ELECTRONICS-LIB repository on GitHub, at the commit this page was made from: the board is airtap/airtap.kicad_pcb and its schematic air-quality-monitor/air-quality-monitor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Airtap 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).