This course presents a step-by-step summary of using the Arduino SCADE library and Python wrapper with the Ansys SCADE Suite application and how to integrate the generated code on an Arduino board. This course is designed to help you build a system with the Ansys SCADE Suite application and Arduino.
Let us look at the final circuit we want to build at the end of the course:
Image 3
The behavior we expect from our Arduino board is the following:
To implement this, in our Ansys SCADE application model, we will have two operators.
First, an Architecture operator, which has no value in the eyes of Ansys SCADE application, but which defines the devices we will use in our circuit. This operator has no value because no code will be generated from it. It will just be used by the Arduino wrapper to know which devices are used. Ansys SCADE application is nonetheless very useful on this architecture, as it can be used to check whether all variable types are respected and whether we've forgotten any connections.
Next, we'll have an operator called Controller. This operator allows us to define the behavior of our model and the interactions of the devices on the Arduino board. For example, press a button, and an LED light up. The controller is very important because it allows us to simulate the behavior of our circuit directly in the Ansys SCADE application. So don't hesitate to use the simulation tools offered by the Ansys SCADE application before uploading the code to the Arduino board.
Ansys SCADE Suite application (Version 2023 R1)