Digital Twin using Dezyne generated code

A group of students from Fontys University of Applied Science has built a  digital twin demonstrator that is fully controlled using Dezyne generated code.

Verum uses a Lego Mindstorms model as a live demonstrator of results achieved with the Dezyne modeling tool. This is a model of a wafer stepper composed of a feeder robot, a 2d stage and a material handling robot. The control software is written in Dezyne and drives all motors and sensors. The students have made a digital twin of this machine in Unity representing the physical objects and their dynamic behaviour.

Related: See here all Dezyne examples

Dezyne meets Unity

The control is programmed entirely in Dezyne and drives all decisions based on event occurrences. The two parts of the application communicate by means of Websockets.  For example in Unity a ball moves until it hits a wall. The collision detection in Unity fires an event in the Dezyne control code. In the Dezyne control code the decision is taken to change direction which is sent as a command to the ball in Unity.

The concept is strong in the sense that the Dezyne generated code can be used both in the virtual setup and in the real Lego machine. So for early prototyping all the control software can be developed before investments in electronics and mechanics need to be done. Feasibility of new ideas can be tested at low cost and project throughput time can be significantly reduced.

Related: Verifying and validating embedded software with Dezyne, a review by Jordi Carbot

All source code and documentation (including a small tutorial) is available for engineers who want to develop similar prototypes.

3D Virtual Model

New Call-to-action

Related Articles

Enjoy this article? Don't forget to share.