r/ControlTheory • • 3d ago

Other We built a browser-based tool for modeling controllers and generating embedded C

Modeloop Canvas Editor

Hi everyone! We’d like to share a new model-based design environment with anyone interested in trying it out. It’s free and you can start modeling right in your browser without installing any desktop software.

It's called Modeloop and we've spent some years to build but we think it has a lot of interesting features.

DIAGRAMS

In the diagram editor, you can build control algorithms by combining basic blocks from the standard library and use finite state machines (FSMs) to define operating modes and the transitions between them. You can organize your diagram into nested subsystems and schedule different functions to run at different rates. For example, you could run a motor’s current loop at 10 kHz, its speed loop at 1 kHz, and its diagnostics at 100 Hz.

You can also edit any model either graphically or as text. For example:

previous = UnitDelay(filtered_value, initial=20.0)

new_sample = 0.2 * raw

memory = 0.8 * previous

filtered_value = new_sample + memory

filtered = filtered_value

The model format is open, and models are saved as JSON, without obscure proprietary formats that lead to vendor lock-in. There’s also a built-in version control system that lets you commit your diagrams and push them to GitHub, for example.

ENGINE

Modeloop’s engine is written in Rust to give users maximum performance while minimizing wait times, especially during compilation and simulation. You can also write unit tests for specific parts of the model, create different scenarios, and view test coverage for the automatically generated code.

Modeloop supports both Model-in-the-loop and Software-in-the-loop simulations. The broader documentation is here.

We’d love to hear your feedback on the product, which parts you love, and especially what’s unclear or could be improved.

Link: https://modeloop.app/

10 Upvotes

9 comments sorted by

•

u/SupraDestroy Control padawan 3d ago

I just finished the firmware for a standing cube and will definitely try it out and compare my work with it when I am done with my prototype.

→ More replies

•

u/evdekiSex 1d ago

Since it is developed with Rust, have you mostly developed it with Claude?

→ More replies

•

u/Wetmelon 3d ago

Neat! I also did this at work lol. Anything to get better codegen than Simulink -_-

→ More replies