FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How DER Twin Works — Architecture of an Open Source Energy Device Simulator
How-ToSystems

How DER Twin Works — Architecture of an Open Source Energy Device Simulator

via Dev.toOleksandr3h ago

This is Part 3 of my series on DER Twin. Part 1 covered why I built it. Part 2 showed how to use it for EMS testing. This one is about how it works inside. If you want to contribute — add a new device type, extend the physics, or add a new protocol — this is the article to read first. The Four Layers DER Twin is built around a strict separation of concerns. Every component lives in exactly one layer and communicates only through defined interfaces. Protocol layer — accepts Modbus connections and exposes register addresses. Never touches device state directly. Controller layer — maps register reads and writes to device telemetry and commands. Owns the encoding/decoding logic. Device layer — owns physics. Knows nothing about protocols. A BESS device doesn't know if it's being read via TCP or RTU. Simulation engine — owns time. Calls step(dt) on every device on every tick. External models — the environment. Irradiance, ambient temperature, grid frequency, grid voltage. Devices read from t

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

How-To

Logos Privacy Builders Bootcamp

Reddit Programming • 1h ago

#05 Frozen Pipes
How-To

#05 Frozen Pipes

Dev.to • 6h ago

Replace Doom Scrolling With Intentional Reading
How-To

Replace Doom Scrolling With Intentional Reading

Dev.to • 9h ago

Web Color "Wheel" Chart
How-To

Web Color "Wheel" Chart

Dev.to • 13h ago

Im looking for indie apps and tools built by solo developers, their stories and perspectives for a newsletter I’m starting. If you know a solo maker or use an overlooked gem built by one please let me know! 🙏
How-To

Im looking for indie apps and tools built by solo developers, their stories and perspectives for a newsletter I’m starting. If you know a solo maker or use an overlooked gem built by one please let me know! 🙏

Dev.to • 1d ago

Discover More Articles