Skip to the content
4 layers70 × 30 mmHarm meas using os, the printed circuit board in 3D

Harm meas using os

jkbkwcn/harm_meas_using_os

An electronic circuit project designed to measure mains current harmonics with amplitudes below one Least Significant Bit (LSB) of an Analog-to-Digital Converter.

Size
70 × 30 mm
Copper layers
4
Thickness
1.67 mm
Parts
67
Nets
66
Pads
244
Tracks, vias
495, 392
Pours
19
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
2 Oct 2026
Updated
2 Oct 2026

Overview

Harm meas using os is an open-source printed circuit board by jkbkwcn, from the jkbkwcn/harm_meas_using_os repository on GitHub. It is a 4-layer board of 70 × 30 mm with 67 parts on 66 nets, routed with 495 tracks and 392 vias.

It is built around the TLV2372IP and USBLC6-2SC6. Its parts include 26 capacitors, 21 resistors, 5 ICs, 4 connectors and 3 diodes. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

Sub-LSB Harmonics Measurement System

An electronic circuit project designed to measure mains current harmonics with amplitudes below one Least Significant Bit (LSB) of an Analog-to-Digital Converter.

This project was developed as part of the Analog Peripheral Circuits in Digital Systems course at the AGH University of Science and Technology in Kraków.

Description

The main goal of this project was to design and test an analog-to-digital processing path capable of detecting very weak signals (e.g., 400 µVpp) using a converter with a relatively low base resolution (where 1 LSB ≈ 800 µV). To achieve this, digital signal processing techniques were implemented: oversampling and hardware-based triangular dithering.

The system measures harmonics up to the 5th order (250 Hz) for a 50 Hz mains signal, utilizing an STM32 microcontroller and a dedicated analog signal conditioning circuit on a custom PCB.

Technologies and Specifications

  • Microcontroller: STM32F103C8T6 (ARM Cortex-M3 core)
  • ADC: Built-in 12-bit converter
  • DSP Methods:
    • Oversampling enabling a theoretical improvement in the Effective Number of Bits (ENOB)
    • Triangular dithering generated via hardware PWM
  • Hardware: Custom PCB designed in KiCad, featuring an analog front-end and USB power

Key Findings and Measurement Results

The system successfully measures signals with amplitudes significantly below the 1 LSB threshold of the converter. Measurements of a 400 µVpp signal (at 50 Hz) yielded consistent results in FFT spectral analysis.

Key observation from the research: Measurements revealed that the inherent white noise of the ADC and the analog path (amounting to about 2-3 LSB) was already sufficient to act as a natural broadband dither. This intrinsic noise successfully enabled the oversampling process, yielding an ENOB gain of approximately 4 bits. However, due to the ADC's intrinsic noise, the additionally injected triangular dither did not perform as theoretically expected. The built-in white noise essentially overshadowed the triangular signal, negating any extra theoretical benefits the triangle dither would normally provide over white noise. Despite this hardware limitation, the project successfully validated the oversampling concept and fully achieved its measurement objectives.

Parts

67
QtyValueFootprintReferences
10100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C5, C7, C9, C12, C13, C16, C17, C21, C23
810kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3, R5, R6, R7, R9, R10, R11
522uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4, C10, C11, C25, C26
410uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C3, C6, C8
3LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2, D3
21.2kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR14, R16
213pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC14, C15
21uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC22, C24
222Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR12, R13
247pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC18, C20
25k1Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR18, R21
2BLM18SG331TN1DInductor_SMD:L_0603_1608MetricL1, L2
10Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR20
11.5kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR15
1100Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR8
1100pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC19
114MHzLibrary:406C35B14U5
11MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR19
11kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
11k5 1%Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR17
1390kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4
1Conn_01x12_SocketConnector_PinSocket_2.54mm:PinSocket_2x06_P2.54mm_VerticalJ2
1Conn_01x22_SocketConnector_PinHeader_2.54mm:PinHeader_2x11_P2.54mm_VerticalJ1
1LDLN025Package_TO_SOT_SMD:SOT-23-5_HandSolderingU4
1LOGOLibrary:AGH_logoG***
1MountingHole_2.2mm_M2MountingHole:MountingHole_2.2mm_M2M2x4
1SMAConnector_Coaxial:SMA_Amphenol_132289_EdgeMountJ4
1STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU2
1SW_PushLibrary:TL3365SW1
1TLV2372Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U3
1USB_C_Receptacle_USB2.0_14PConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ5

The 64 most common of 67 parts.

Similar boards

  • 4 layers100 × 100 mmDATA Switcher, the printed circuit board in 3D

    DATA Switcher

    twfth9/Kenwood-Handset-Switch-PCB

    704 partsGPL-3.0
  • 2 layers101.6 × 53.3 mmBatteryAnalyzer MkII, the printed circuit board in 3D

    BatteryAnalyzer MkII

    Moragor/BatteryAnalyzer_MkII

    Updated Version of the battery analyzer, now with constant current

    25 parts12MIT
  • 2 layers105.5 × 86 mmECE302 Lab8, the printed circuit board in 3D

    ECE302 Lab8

    alexcjang/20V-5V-Buck-Converter

    41 parts
  • 2 layers52 × 48 mmSTM32-Based Programmable Waveform Generator, the printed circuit board in 3D

    STM32-Based Programmable Waveform Generator

    devjamescollier/STM-32_Based_Waveform_Generator

    USB-powered programmable function generator built around an STM32C031K6T6 microcontroller and MCP4901 DAC. Generates clean sine, triangle, and square waveforms with amplitude control via potentiometer, mode selection…

    48 partsCERN-OHL-P-2.0
  • 2 layers30 × 30 mmSteering Sensor (1), the printed circuit board in 3D

    Steering Sensor (1)

    dnz1666/impedance-buffer-pcb

    Analog circuit design (impedance buffer + LP filter) – KiCad schematic & PCB layout for a student EV project at RWTH Aachen

    14 parts
  • 4 layers160 × 70 mmAfternoonBlend, the printed circuit board in 3D

    AfternoonBlend

    dumaiss/PercolatorLabs

    Repo for all the Coffee Series pBITz multimedia cards

    81 parts
  • 2 layers53.3 × 99.8 mmAdapater a, the printed circuit board in 3D

    Adapater a

    jensboe/Modellbahn

    columns 1 block:selfmade block:base columns 1 nucleo adapter["adapter board A"] end space expansion1["expansion board A 1"] space expansionn["expansion board A n"] space expansionb["expansion board B"] adapter…

    58 parts
  • 2 layers130 × 44.4 mmTurbine, the printed circuit board in 3D

    Turbine

    JohnRipple/turbine-sensor

    After taking a look at the kit it was lacking content. It could be built in about 10 minutes. With a 45 minute time slot for each class there was a lot of time to fill, so I decided to make a more interesting turbine…

    10 parts

Questions

How big is the Harm meas using os PCB?

It measures 70 × 30 mm and has 4 copper layers, 1.67 mm thick.

What parts does the Harm meas using os use?

67 parts, built around the TLV2372IP and USBLC6-2SC6. 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 Harm meas using os KiCad files?

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

Can I use the Harm meas using os design in my own project?

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