Skip to the content
2 layers65.5 × 45 mmOpenPAT RP2040, the printed circuit board in 3D

A low-voltage Portable Appliance Tester based on the RP2040. Safely measures PE continuity at 200mA and L-N resistance on unpowered appliances.

Size
65.5 × 45 mm
Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
30
Pads
72
Tracks, vias
94, 10
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
7 Sep 2026
Updated
28 Oct 2026

Overview

OpenPAT RP2040 is an open-source printed circuit board by lukasnf, from the lukasnf/OpenPAT-RP2040 repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 2-layer board of 65.5 × 45 mm with 25 parts on 30 nets, routed with 94 tracks and 10 vias.

It is built around the LM317, BAT54S and ADS1115. Its parts include 7 resistors, 5 connectors, 4 diodes, 1 capacitor and 1 IC. It belongs with the RP2040 boards of this library.

Main components

3

README

README.md

OpenPAT-RP2040

⚠️ SAFETY DISCLAIMER: This project is for educational and preliminary diagnostic purposes only. While it tests electrical safety parameters, it is not a certified Portable Appliance Tester (PAT). It does not replace legally required safety tests conducted with calibrated and certified equipment. Always assume appliances are dangerous until proven otherwise.

OpenPAT-RP2040 is a low-voltage Portable Appliance Tester based on the RP2040 microcontroller. It is designed to safely measure Protective Earth (PE) continuity at standard test currents (200mA) and verify Phase-to-Neutral (L-N) resistance on unpowered appliances.

Operating completely without high measurement voltages, this design allows for safe preliminary testing of appliances.

Note: This project is currently under active development. The schematics and PCB layout have been designed using KiCad and manufactured via JLCPCB.


🛠 Hardware Architecture

The measurement circuitry is designed around the RP2040 and relies on a dedicated analog frontend for precise, low-voltage readings. Based on the schematic, the core components and sub-circuits include:

  • Microcontroller: RP2040
  • Analog-to-Digital Converter (ADC): ADS1115 connected via I2C (I2C_SCL, I2C_SDA) to read the measurement nodes (PE_TEST, PE_TEST_RE, L_T, N_T).
  • PE Test Current Source: A constant current source generating approximately 200mA. This is achieved using an LM317 linear regulator (U1) combined with a 6.2Ω / 1W resistor (R1).
  • PE Continuity Measurement: Employs a 4-wire (Kelvin) measurement method to accurately determine resistance by eliminating the voltage drop across the test leads. This is implemented using separate connections for force (PE_FORCE_IN, PE_OUT1) and sense (PE_SENSE_1, which connects to the protected PE_TEST_RE node).
  • L-N Resistance Measurement: Controlled via RP2040 GPIOs. An NMOS transistor (Q1, controlled by GP26) and a switched pull-up (via GP27 and a 1kΩ resistor) are used to configure the circuit to measure the resistance between the Phase and Neutral test points via the L/N_TEST1 connector.
  • Input Protection: All sensitive analog measurement lines are protected against transients. The circuit uses 10kΩ series resistors (R2, R3, R4, R5) and BAT54S dual Schottky diodes (D1, D2, D3, D4) to safely clamp the ADC inputs to the 3.3V rail and Ground.

Components

ComponentValue / Type
MicrocontrollerRP2040 Zero
ADCADS1115
N-Channel MOSFETIRLML 2502 (20V, 4.2A, SOT-23)
Schottky DiodeBAT54S-7-F (30V, 0.2A, SOT23)
Capacitor100 nF (50V, X7R, RM 2.5)
Terminal BlockMKDS 1.5/2-5.08 (2-pin, RM 5.08)
Shunt Resistor6.2 Ω (1 Watt)
Standard Resistors10 kΩ, 1 kΩ

📂 Repository Contents

Bildschirmfoto 2026-10-05 um 15 35 09 image

...

📄 License

This repository contains both hardware design files and software source code, which are licensed differently:

This README was drafted with AI assistance. All technical information has been manually verified by the author.

Lukas F.

Parts

25
QtyValueFootprintReferences
410kRResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3, R4, R5
4BAT54SPackage_TO_SOT_SMD:SOT-23D1, D2, D3, D4
21kRResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7
2Conn_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalL/N_TEST1, PE_OUT1
2Conn_01x09_PinConnector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_VerticalJ1, J2
1100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1
16.2R / 1WResistor_THT:R_Axial_DIN0411_L9.9mm_D3.6mm_P12.70mm_HorizontalR1
1ADS1115Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ3
1LM317Package_TO_SOT_THT:TO-220-3_VerticalU1
1PE_FORCE_INConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ7
1PE_SENSE_1Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ4
1Q_NMOS_GSDPackage_TO_SOT_SMD:SOT-23Q1

The 21 most common of 25 parts.

Similar boards

  • 4 layers84 × 100 mmEsp32s3-can sd logger, the printed circuit board in 3D

    Esp32s3-can sd logger

    MrBlahhhh/esp32-autosport

    A data logger you wire straight into a race car: 12 V and CAN come in on one 4-pin plug, sensor readings and CAN traffic get written to a microSD card.

    206 parts
  • 2 layers66.2 × 63.5 mmIntAna, the printed circuit board in 3D

    IntAna

    radioelf/OpenPlc

    Hardware for OpenPLC with raspberry PI Z and Mod. software OpenPlc

    75 parts7
  • 2 layers70 × 50 mmS88iso, the printed circuit board in 3D

    S88iso

    GBert/railroad

    git clone https://github.com/arendst/Tasmota.git cd Tasmota git tag pio run

    33 parts36
  • 2 layers100 × 35 mmTwo comparator effect, the printed circuit board in 3D

    Two comparator effect

    cyberboy666/two_comparator_effect

    analog video posterisation effect - adapted from a rob schafer design

    34 parts15GPL-3.0
  • 2 layersAlim10o, the printed circuit board in 3D

    Alim10o

    acmo0/PedalBoard-Power-Supply-Diy

    This is a description of pedalboard power supplies that I designed an made. I use this power supplies, they are fully working. Pay attention : they are made for 230VAC.

    110 parts14GPL-3.0
  • 2 layers32 × 42 mmNoahFC, the printed circuit board in 3D

    NoahFC

    zosko/NoahFC

    NoahFC - Atmega328 based Flight Controller

    52 parts12GPL-3.0
  • 2 layers300 × 90 mmPreamp, the printed circuit board in 3D

    Preamp

    profdc9/PrettyGoodPreamplifier

    A Pretty Good Preamplifier for Stereo and Subwoofer Use

    222 parts10
  • 2 layers120 × 50 mmAudioswitch, the printed circuit board in 3D

    Audioswitch

    zehome/autoaudioswitcher

    OSHW: Automatic audio input switcher based on audio activity

    80 parts10BSD-3-Clause

Questions

How big is the OpenPAT RP2040 PCB?

It measures 65.5 × 45 mm and has 2 copper layers, 1.6 mm thick.

What parts does the OpenPAT RP2040 use?

25 parts, built around the LM317, BAT54S and ADS1115. 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 OpenPAT RP2040 KiCad files?

From the lukasnf/OpenPAT-RP2040 repository on GitHub, at the commit this page was made from: the board is hardware/schematic/schematic.kicad_pcb and its schematic hardware/schematic/schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the OpenPAT RP2040 design in my own project?

Its repository publishes it under the CERN-OHL-S-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).