-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the ModeliPong wiki!
This repository offers a Modelica model to play pong, the prime father of all video games. As a controller, two potentiometers can be used which are read by an Arduino. The enclosed controller.ino features example code to read 2 analog pins and transfer the signals via USB. Or you simply use the keyboard mode.
The model is discrete but very small, so it should be softly realtime capable. You need the current Modelica_DeviceDrivers library to listen to Arduino. Make sure you adapt the port name, baudrate and sample time. Or you simply use the keyboard mode.
With the newest OpenModelica, you can simulate this model interactively. Use the enclosed mos file to generate an fmu that can be visualized. Then open it with OMEdit animation perspective.
Remarks:
This use case is pretty experimental and relies on the latest developments. Fell free to ask if things are unclear.
You can use Dymola as well, just insert a realtime synchronization.
There is no computer player. You need to play against yourself or your colleagues.