Arduino Simulation Projects using Arduino Simulation Library Models.

Now that all components have associated a footprint we can move to Ares, the PCB layout module of Proteus:

Open ARES PCB Proteus module

Fig. 19 Open ARES PCB Proteus module

Choose DEFAULT template and place the components on the layout:

Fig. 20 Place the components on the layout

for a quick preview of the components in 3d, let ‘s select “3D Visualization” from the Output main menu:

Output 3D Visualization

Fig. 21 Output 3D Visualization

Fig. 22 3D View

With the same .hex file, we can run the simulation using the ARDUINO Pro Mini simulation model; we replace the ARDUINO UNO model with ARDUINO Pro Mini and connect the resistor to the D13 output:

The same project using ARDUINO Pro Mini simulation model

Fig. 23 The same project using ARDUINO Pro Mini simulation model

If we want to use the ARDUINO MEGA model, we have to choose another output, for example the digital pin 24, an recreate the .hex file using the ARDUINO software platform:

The ARDUINO IDE

Fig. 24 The ARDUINO IDE

at this point it ‘s important to choose from the “Tools” main menu, “Board” and “Arduino Mega”:

Before compiling choose ARDUINO MEGA

Fig. 25 Before compiling choose ARDUINO MEGA

After compiling we get the message “Serial port COM1 not found”, we can ignore it. What we have to check is that the applet directory has been created  in the directory of the pde file (read the ARDUINO simulation with Proteus article for more info).

COM1 message

Fig. 26 COM1 message

For more info about how to program and compiling with ARDUINO IDE read the article “Arduino Simulation with Proteus“.

In the Applet directory, we ‘ll find the new .hex file, upoad the file  in the “Program File” edit field of ARDUINO MEGA model and run the simulation:

Simulation running with ARDUINO MEGA model

Fig. 27 Simulation running with ARDUINO MEGA model

Posted in Proteus and tagged , , , , , , .