Skip to the content
2 layers50 × 100 mmAirtap, the printed circuit board in 3D

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.

Size
50 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
62
Nets
46
Pads
162
Tracks, vias
335, 18
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
18 Sep 2026
Updated
3 Oct 2026

Overview

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.

Main components

8

README

airtap/README.md

AirTap: Touchless AC Switch

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.

Schematic

PCB Layout

PCB Top and Bottom

3D views

TopBottom (sensor side)
3D top3D bottom

3D angled view

Schematic sections

220 VAC → 5 VDCAC connector, relay & buzzer
Power supplyRelay and buzzer
ToF sensorMicrocontroller
ToF sensorMicrocontroller

3.3 V regulator, programming port, LEDs, IR connector

Layer views

Front copperBack copper
Front copperBack copper
Front silkscreenBack silkscreen
Front silkscreenBack silkscreen

Overview

BlockPartsFunction
220 VAC → 5 VDCF1 fuse, RV1 MOV, C1, PS1 HLK-5M05, C3Fused, surge-protected isolated AC-DC module
5 V → 3.3 VU2 AMS1117-3.3 + decouplingPowers the MCU and sensor
MicrocontrollerU3 ATmega328-A, Y1 8 MHz, SW1 resetReads the sensor, drives the relay, buzzer and LEDs
ToF sensorU1 VL53L0X, I²C pull-upsMeasures hand distance (10–30 mm trigger window)
Relay and buzzerK1 G5LE-1, Q1/Q2 AO3400A, D1 flyback, LS1 MLT-8530Switches the AC load; audible feedback
IndicatorsD2 blue (relay), D3 red (power), D4 green (status)Visual status
ProgrammingJ2 2×3 ICSPFlash with USBasp / AVRISP
Backup sensorJ3 3-pinOptional IR proximity sensor input

Working Principle

  1. 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.
  2. 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).
  3. Decision: when a hand is held inside the calibrated 10–30 mm window, the firmware toggles the load state.
  4. 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.
  5. Feedback: PC3 drives the buzzer through Q2, the blue LED shows the relay state, and the green LED (PC1) shows status.

GPIO Mapping

ATmega328 PinSignalFunction
PC1 / A1STSRelay status LED
PC2 / A2RLYRelay driver (Q1)
PC3 / A3BUZZERBuzzer driver (Q2)
PC4 / A4SDAVL53L0X I²C data
PC5 / A5SCLVL53L0X I²C clock
PD2 / D2XSHUTVL53L0X shutdown / reset
PD4 / D4IR-BKPBackup IR sensor (J3)

J1: AC Terminal (5-way)

PinLabelDescription
1L/LAC line (live) in
2NAC neutral in
3NORelay normally-open
4CRelay common
5NCRelay 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

ParameterValue
Input220 V AC, 50 Hz
Load SwitchingSPDT relay (G5LE-1), NO / C / NC on screw terminal
Logic Supply5 V (HLK-5M05) → 3.3 V (AMS1117)
MCUATmega328-A @ 8 MHz, 3.3 V
SensorVL53L0X ToF, 10–30 mm calibrated trigger
Protection0.5 A fuse, 10D561K MOV, flyback diode
ProgrammingICSP 2×3
Board Size50 × 100 mm, 2-layer, 4 × M2.5 mounting holes, fiducials

Bill of Materials (key parts)

RefValuePackage
PS1HLK-5M05 (220 VAC → 5 V)Module
U3ATmega328-ATQFP-32
U1VL53L0CXV0DH1 (VL53L0X)LGA
U2AMS1117-3.3SOT-223
K1Omron G5LE-1 relay, 5 V coilTHT
Q1, Q2AO3400A N-MOSFETSOT-23
D11N4148WSOD-123
F10.5 A / 250 VAC fuseLittelfuse 395
RV110D561K MOVDisc 12 mm
C10.1 µF X2 film13 × 6 mm
C3220 µF electrolytic8 × 10 mm
LS1MLT-8530 buzzerSMD
Y18 MHz resonatorSMD 3-pin
J15-way screw terminal, 5.08 mmTHT

Plus 0603 resistors, capacitors and LEDs; see the schematic for full values.

Firmware

Test sketches by the original author are in firmware/test-codes/:

SketchTests
ToF-SensorVL53L0X I²C ranging (prints distance over UART)
RelayRelay coil driver and flyback diode
Relay-LedRelay status LED
BuzzerBuzzer driver

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.

Files in This Folder

FileDescription
airtap.kicad_pro / .kicad_sch / .kicad_pcbKiCad 10 project, schematic and PCB
airtap-PTH.drl / airtap-NPTH.drlDrill files
gerbers/Gerber set for fabrication (incl. paste layers)
firmware/test-codes/Arduino test sketches (original author)
schematic.pngFull schematic image
schematic-*.pngSchematic section close-ups
pcb-3d-top.png / pcb-3d-bottom.png / pcb-3d-angle.png3D renders
pcb-layout2.png / pcb-layout.pngLayout previews
pcb-front-copper.png / pcb-back-copper.pngCopper layer views
pcb-front-silkscreen.png / pcb-back-silkscreen.pngSilkscreen layer views
NOTICE.mdOriginal copyright and license notice

How to Use

  1. Open airtap.kicad_pro in KiCad 10 or later.
  2. To manufacture, zip gerbers/ together with the two .drl files and upload them to any PCB fab.
  3. After assembly, flash the test sketches through J2 to check each block, then load your main firmware.
  4. Calibrate the trigger distance (10–30 mm) for your enclosure.

License

The original ProxiWave-D design is © Ampnics, released under the MIT License (see NOTICE.md). Changes in this fork are released under the repository's MIT License.

Parts

62
QtyValueFootprintReferences
5100nFCapacitor_SMD:C_0603_1608MetricC2, C5, C7, C10, C11
54K7Resistor_SMD:R_0603_1608MetricR2, R3, R4, R7, R13
410KResistor_SMD:R_0603_1608MetricR1, R6, R10, R12
4MountingHoleMountingHole:MountingHole_2.7mmH1, H2, H3, H4
3FiducialFiducial:Fiducial_0.75mm_Mask1.5mmFID1, FID2, FID3
20RResistor_SMD:R_0603_1608MetricR9, R11
210uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC6, C9
21KResistor_SMD:R_0603_1608MetricR5, R8
2AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2
2LOGOLogos:DANGER-10MMG***, G***
1OLIMEX_LOGOs-FP:LOGO_PBFREESign-PbFree
10.1uFCapacitor_THT:C_Rect_L13.0mm_W6.0mm_P10.00mm_FKS3_FKP3_MKS4C1
10.5A/250VacFuse:Fuse_Littelfuse_395SeriesF1
110D561KVaristor:RV_Disc_D12mm_W5.8mm_P7.5mmRV1
11N4148WDiode_SMD:D_SOD-123D1
11uFCapacitor_SMD:C_0603_1608MetricC8
1220uFCapacitor_SMD:CP_Elec_8x10C3
1330RResistor_SMD:R_0603_1608MetricR14
13V3TestPoint:TestPoint_Pad_D1.5mmTP3
14.7uFCapacitor_SMD:C_0603_1608MetricC4
15VTestPoint:TestPoint_Pad_D1.5mmTP1
18MHzCrystal:Resonator_SMD_Murata_CSTxExxV-3Pin_3.0x1.1mmY1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1ATmega328-APackage_QFP:TQFP-32_7x7mm_P0.8mmU3
1AVDDTestPoint:TestPoint_Pad_D1.5mmTP4
1BLUELED_SMD:LED_0603_1608MetricD2
1Conn_01x03_PinConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ3
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ2
1G5LE-1Relay_THT:Relay_SPDT_Omron-G5LE-1K1
1GNDTestPoint:TestPoint_Pad_D1.5mmTP2
1GREENLED_SMD:LED_0603_1608MetricD4
1HLK-5M05Converter_ACDC:Converter_ACDC_Hi-Link_HLK-5MxxPS1
1LOGOLogos:sound_6x6mmG***
1MLT-8530MLT8530-Buzzer:MLT-8530_JHELS1
1REDLED_SMD:LED_0603_1608MetricD3
1SW_PushButton_Switch_THT:SW_Tactile_SKHH_AngledSW1
1Screw_Terminal_01x05TerminalBlock:TerminalBlock_bornier-5_P5.08mmJ1
1VL53L0CXV0DH1Sensor_Distance:ST_VL53L1xU1

The 59 most common of 62 parts.

More from ajkumar-1907/POWER-ELECTRONICS-LIB

7
  • 4 layers220 × 150 mmDual active bridge, the printed circuit board in 3D

    Dual active bridge

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    174 parts1MIT
  • 2 layers68 × 47.4 mmAir quality monitor, the printed circuit board in 3D

    Air quality monitor

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    59 parts1MIT
  • 2 layers56.5 × 29 mmDc motor speed controller, the printed circuit board in 3D

    Dc motor speed controller

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    19 parts1MIT
  • 2 layers48.8 × 37.5 mmTransformerless power supply, the printed circuit board in 3D

    Transformerless power supply

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    19 parts1MIT
  • 2 layers31 × 15 mmUsb to uart converter, the printed circuit board in 3D

    Usb to uart converter

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    19 parts1MIT
  • 2 layers53 × 36 mmBuck converter, the printed circuit board in 3D

    Buck converter

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    11 parts1MIT
  • 2 layers30.5 × 27.8 mmServo tester, the printed circuit board in 3D

    Servo tester

    ajkumar-1907/POWER-ELECTRONICS-LIB

    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.

    10 parts1MIT

Similar boards

  • 2 layers105 × 58 mmZAP-01A, the printed circuit board in 3D

    ZAP-01A

    ponrajleo/AI-Hardware-ESP32S3-

    This project is part of a complete open-source hardware design course on YouTube:

    103 parts
  • 2 layers105 × 58 mmZAP-010A, the printed circuit board in 3D

    ZAP-010A

    lalithk06/Esp32_Smart_Plug

    Hardware reference design for an ESP32-S3 smart plug with mains power conversion, relay switching, RTC support, USB connectivity, and protection components.

    80 parts
  • 2 layers105 × 58 mmViRa V1.0, the printed circuit board in 3D

    ViRa V1.0

    VikramR3/ViRa_Ai_plug

    ESP32-S3 mains smart plug: HLK-5M05 isolated supply, SRD-05VDC relay, DS3231M RTC. 2-layer KiCad design.

    80 partsMIT
  • 2 layers200.3 × 96 mmESP32C5 iot switch, the printed circuit board in 3D

    ESP32C5 iot switch

    mynameisbrozu/esp32-based-iot-switch

    Personal project - Iot switch with esp32c5 and 3.7" epaper display

    89 partsMIT
  • 2 layers42 × 66 mmWafflehw rev0.1, the printed circuit board in 3D

    Wafflehw rev0.1

    Jankyneering/Waffle_hw

    Hardware designs for Waffle, a compact Pager and general RF multitool.

    42 parts2GPL-3.0
  • 6 layers100 × 67.8 mm12v-2x6, the printed circuit board in 3D

    12v-2x6

    eggsampler/12v-2x6-Current-Monitor

    For more information, see the schematic or the PCB layout (KiCanvas)

    152 parts1
  • 2 layersEphemerkey, the printed circuit board in 3D

    Ephemerkey

    ephemerkey/ephemerkey

    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…

    70 parts
  • 4 layers55 × 55 mmDrone PCB FC, the printed circuit board in 3D

    Drone PCB FC

    Ethansuttor/drone_PCB

    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).