โ† Back to news

Show HN: Modeloop โ€“ From visual algorithms to microcontroller C code

modeloop.app|25 points|22 comments|by lucamark|Jun 15, 2026

Show HN: Modeloop โ€“ Transforming Visual Algorithms into Microcontroller C Code

Modeloop is redefining the landscape of systems engineering by treating Models as Code. It stands as the premier visual ecosystem that integrates modern DevOps practices and rigorous built-in verification directly into model-based design.

๐Ÿš€ Get Early Access

  • Join the Waitlist for Desktop Access
  • Share on X
  • Share on LinkedIn

๐Ÿ“Š The Modeloop Advantage

FeatureImpactDetail
Velocity10x FasterAccelerated path from concept to production
Transparency0 Binary Lock-inModels are stored as plain, readable JSON
Versatility2 Codegen TargetsSingle model โ†’\rightarrow Python and C
Accessibility2 PlatformsFully functional on Web and Desktop

What is Modeloop? It is a unified engineering loop. It isn't merely a drawing canvas or a standalone simulator; it is a comprehensive workflow where visual diagrams are transformed into executable source code, test suites, and audit-ready artifacts.


๐Ÿ› ๏ธ The Three-Step Engineering Workflow

01. Visual Modeling

Engineers can architect their entire system using a single model. This includes:

  • Block Diagrams and Containers
  • Buses and Calibration Constants
  • StateCharts for complex logic

Visual Model Preview

02. Code Generation

Modeloop produces high-quality Python and MISRA-compliant C code. Crucially, tests are not tethered to a specific diagram schema, ensuring flexibility.

Example: Generated PID Controller

typedef struct { 
    float i; 
    float prev; 
} PID; 

float pid_step(PID* s, float e, float dt) { 
    s->i += e * dt; 
    float d = (e - s->prev) / dt; 
    s->prev = e; 
    return Kp*e + Ki*s->i + Kd*d; 
}

03. Verification

The workflow is closed by tracing requirements, executing tests, and reviewing model differences within a CI/CD pipeline.

# build-log
modeloop build --all
[โœ“] Generated C code
[โœ“] Generated Python model
[โœ“] Verification tests passed
[โœ“] Pipeline configuration ready
~ $ 

๐Ÿ›๏ธ The Engineering Mandate: Why Modeloop?

Modern embedded development is currently being squeezed by three primary forces: the strictness of Model-Based Systems Engineering (MBSE), the rapid pace of Agile, and the sheer scale of modern codebases.

I. The Convergence of Rigor and Speed

Historically, MBSE was associated with static, heavy documentation. Modeloop transforms the model into a live, executable contract.

  • Every block โ†’\rightarrow Bound to a requirement.
  • Every connection โ†’\rightarrow Type-checked.
  • Every commit โ†’\rightarrow System re-validated in seconds.

II. Closing the V-Model Gap

The "V-Model" is the gold standard for safety-critical systems, but a massive chasm usually exists between the left (design) and right (verification) arms.

Manual translation of models to code โ†’\rightarrow Automated Generation. Modeloop ensures the model is the design, and the model emits both the implementation and the test harness.

III. The Complexity Mandate

As codebases grow, the risk of human error increases exponentially. When a system reaches 10810^8 lines of code, the probability of a manual change being defect-free is nearly zero.

The Growth of Embedded Complexity

Era/SystemEstimated LOCScale
1969 Apollo 11145K145\text{K}Small\text{Small}
1997 F-22 Raptor1.7M1.7\text{M}Medium\text{Medium}
2011 Boeing 7876.5M6.5\text{M}Large\text{Large}
2020 Premium Vehicle100M100\text{M}Massive\text{Massive}
2025 Modern ADAS500M+500\text{M}+Extreme\text{Extreme}

๐Ÿ’ป Platform Capabilities

Modeloop provides a comprehensive suite of tools to handle the entire lifecycle:

  1. Models: Create complex, hierarchical block diagrams.
  2. State Machines: Embed visual StateCharts (e.g., Idle โ†’\rightarrow Active โ†’\rightarrow Reset) directly into signal flows.
  3. Mathematical Verification: Every block is mapped to formal semantics.
    • Example State-Space Representation: {xโ€ฒ(t)=Aโ‹…x(t)+Bโ‹…u(t)y(t)=Cโ‹…x(t)+Dโ‹…u(t)\begin{cases} x'(t) = A \cdot x(t) + B \cdot u(t) \\ y(t) = C \cdot x(t) + D \cdot u(t) \end{cases}
  4. Testing: Define test cases (Normal, Fail, Edge) and validate functional correctness.
  5. Simulation: Use PlotLab to inspect signal traces (e.g., ref_speed vs motor_out) in real-time.

๐ŸŽฏ Built to Solve Specific Pain Points

01. Modularity

  • Without Modeloop: In standard C, it is easy to create "spaghetti code" where everything is interconnected.
  • With Modeloop: You can wrap any subsystem into a Hierarchical Container with strictly defined inputs and outputs, making modularity the default.

02. State Management

  • Without Modeloop: Managing complex states often involves fragile switch statements or nested if-else blocks.
  • With Modeloop: Use visual State Machines to ensure every transition is explicit and visualized.