-
Testing first of nA Current Meter: AC Coupling nightmare
05/26/2026 at 15:18 • 0 commentsAs stated in the previous post, the design was simple: A microcontroller to read the values read by the ADS1117 ADC, which is connected to the output of the OpAmp chain.
Pretty simple design, which actually seems to work in the µA range. However, during extensive testing, the device several issues began to emerge.
---------- more ----------In the image below, the device is working with 1 µA, but analyzing the data from the PC shows the real thruth. The signal captured by the device contains a high 50Hz signal coupled into the actual signal.
(As always more updated info in my blog)
![]()
I had heard about this issue, but never experience myself. When working in regular projects, AC coupling usually is not a problem. The hundreds of microamperes flowing though the circuit do not affect the measurements or the device's functionalities. However, in this project, the voltage drop in the shunt resistor is in the range of µA in a 10 $k\Omega$, even the lowest current can create a measurable noise.
The mains coupling is a problem that appears when the mains frequency (in Spain 50 Hz) is capacitive coupled to the circuit. The circuit, the probes, the cabling, everything couples with the main voltage, thus generating a small AC current flow through the circuit. This small current generates the noise
in the measuring shunt.Solving the AC coupling in this first version of the PCB is not easy. The signal bypassing the parasitic capacity to the mains voltage has to come back to the wall plug, and the easiest way is through our measuring circuit.
In the upcoming news, we will move towards an isolated design with the analog part isolated from the USB part to avoid this issue!
-
Version 1: STM32F103 + ADS1115
05/20/2026 at 09:32 • 0 commentsFirst of all, this project has been developed on TW/YT streams (in Spanish) where I iterate and test this project. By the time I am writting this posts, I have already achieved many of my goals. However, I think the process was interesting and I wanted to log the process. I am also doing a write up in my english blog: (My blog)
For my projects, I need to log the current consumption of devices as they transition between normal operation and low-power modes. Usually my projects are based around STM32 or ESP32 microcontrollers, which requires from **hundreds of milliamps** in normal mode (e.g.:300mA the ESP32 when using WiFi) down to **dozens of microamps** for the STM32 low power mode.
In the first version of the uPM I just wanted to add a microprocessor to get the data and send it to the PC using a USB. The aim in this step is to do an affordable, and easily available components.
The STM32F103 main tasks was to read the ADC from the ADS1115, and send it to the Host PC using USB, while showing some information in the OLED display.
![]()
The first tests with the system and the screen, seems promising even comparing to the readings from the SDM4065A, the error was not a big issue. However, we will see that the display uA measurements contain a secret...
![]()
Laboratorio Gluón

