3.3. Exercise — Step 1

Creating a temperature limit warning

This exercise describes how to build, simulate and test a model that monitors a temperature and activates a warning lamp if a temperature threshold is breached. The model uses a single analogue input to measure the temperature, and a single PWM output to activate a 5 volt warning lamp.

The exercise requires the OpenECU to be connected to various devices and components as pictured in Figure 3.2, “Quick start loom”.

Figure 3.2. Quick start loom

Quick start loom

By following the instructions below, you will complete the model design, test the simulation, create compiled C code and test the model running on the ECU.