git404hub

what is silkyrms fr?

anha1/silkyrms — explained in plain English

Analysis updated 2026-05-18

1C++Audience · developerComplexity · 3/5Setup · moderate

tl;dr

SilkyRMS is a fast, accurate C++ library for measuring AC current and power on ESP32 microcontrollers using clip-on sensors.

vibe map

mindmap
  root((SilkyRMS))
    What it does
      Measures AC current
      True RMS calculation
      Tracks DC offset drift
    Tech stack
      C++
      ESP32
      FreeRTOS
    Use cases
      Energy monitoring
      Power measurement projects
      Current clamp sensing
    Audience
      Embedded developers
      Hobbyist makers
    Setup
      Wire SCT 013 clamp
      Build voltage divider
      Set constructor parameters

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Measure real-time AC current and power on an ESP32 using an SCT-013 clamp sensor.

VIBE 2

Build an energy monitoring device that reports accurate wattage without slowing down WiFi tasks.

VIBE 3

Wire up a DC bias circuit and read AC signals safely through a microcontroller's ADC.

what's the stack?

C++ESP32FreeRTOS

how it stacks up fr

anha1/silkyrmsallentdan/shape_based_matchingamu2mod/radeonmon
Stars111
LanguageC++C++C++
Last pushed2019-03-01
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity3/53/53/5
Audiencedeveloperdevelopervibe coder

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 1h+

Needs a current clamp sensor and a hand-built voltage divider circuit, not just software setup.

in plain english

SilkyRMS is a code library for ESP32 and similar dual core microcontrollers that measures alternating current power and current using an inexpensive clip-on sensor, the kind often called an SCT-013 current transformer. It calculates a continuously updated true RMS reading of the current and power flowing through a wire, which is the standard, accurate way to measure alternating current signals rather than a rougher estimate. The library is built to run fast without slowing down other tasks on the microcontroller. It uses integer math instead of slower floating point calculations during the main sampling loop, which on an ESP32-S3 lets it take around 89,000 samples over a 5 second window, roughly 17,800 samples per second. Because small manufacturing differences and heat can shift a circuit's resting voltage away from its expected midpoint, the library continuously tracks and corrects for that using a smoothing filter, so its measurements stay accurate over time. It also deliberately varies exactly when it yields control back to the microcontroller's other background tasks, using prime number based timing, so that these brief pauses do not repeatedly miss the same part of the electrical wave and skew the reading. To use it, you need a compatible current clamp sensor, wired into the microcontroller's analog input through a simple voltage divider circuit that shifts the clamp's alternating signal into a range the chip can read, since the chip cannot read negative voltages directly. The library's settings let you specify the chip's ADC resolution, the reference voltage, the sensor's specific volts-to-amps ratio, and your local mains voltage, whether 230V as used in Europe or 120V as used in the United States. The project includes ready to use example code for both a sensor wired directly into the ESP32 and one using a separate external ADC chip. It is written in C++ and currently has 1 star on GitHub. The available material does not state the project's license.

prompts (copy fr)

prompt 1
Help me wire an SCT-013 current clamp to my ESP32 and configure SilkyRMS's constructor parameters.
prompt 2
Explain how SilkyRMS's DC offset tracking and prime number timing improve measurement accuracy.
prompt 3
Show me how to use the external ADC example in SilkyRMS instead of the ESP32's built-in ADC.

Frequently asked questions

what is silkyrms fr?

SilkyRMS is a fast, accurate C++ library for measuring AC current and power on ESP32 microcontrollers using clip-on sensors.

What language is silkyrms written in?

Mainly C++. The stack also includes C++, ESP32, FreeRTOS.

How hard is silkyrms to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is silkyrms for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.