Steps for Simulation
- Set the real time scale in the simulation setup of the model to 1. This indicates that one unit of Activate simulation time corresponds to 1 second.
- Connect the Arduino board to a USB port of the PC.
- Double-click on the ArduinoConfiguration block. The connected serial communication ports are listed. Use the port connected to the Arduino board.
- Open the file : <activate_installation>/hwx/databases/activate/system/Arduino/_bin/arduino.ino with the Arduino IDE.
- In the Arduino IDE, if the needed libraries are not yet installed, install them.
- In the Arduino IDE, compile the file arduino.ino and upload the sketch to the Arduino board.
- Return to Activate, then click the Run button. The simulation runs for 30 seconds.
- On the breadboard, click the button and observe how the LED turns on and off.