Arduino Simulation Projects using Arduino Simulation Library Models.

We have already seen in the article “ARDUINO Simulation PCB and 3D Models Libraries for Proteus”,  how to add the ARDUINO simulation, footprints and 3D models libraries to Proteus. Now we are going to see how is simple to use this components models for simulating ARDUINO projects. We can download for example the controlling LED project implemented with a microcontroler:

 

Simple project implemented with a microcontroller model

Fig. 1 Simple project implemented with a microcontroller model

We can replace the microcontroller, capacitors and crystal oscillator with the ARDUINO UNO simulation model:

The same project above implemented with ARDUINO UNO simulation model

Fig. 2 The same project above implemented with ARDUINO UNO simulation model

Let ‘s note that the PB5 output has a different numeration in the two models, but the .hex file should work for both, and also for the project implemented with ARDUINO Pro Mini model.

Click the right mouse button, over the model, and choose “Edit Properties”:

Edit Properties

Fig. 3 Edit Properties

Load the hex file of the blink project in the “Program File” edit field:

Load the Hex file

Fig. 4 Load the Hex file

finally, let ‘s run the simulation:

Run th simulation

Fig. 5 Run th simulation

Regarding the PCB assignment, let ‘s note that the only component that hasn ‘t an assigned footprint is the animated red LED:

Fig. 2 PCB package not specified for the LED component

Fig. 6 PCB package not specified for the LED component

We have to assign one to it: select the component, right mouse button, and let ‘s choose “Make Device”:

Make Device window

Fig. 7 Make Device window

Click onNext, and the “Add/Edit”:

Click on "Add/Edit" button

Fig. 8 Click on “Add/Edit” button

It ‘s shown the “Package Device” window:

Package Device window

Fig. 9 Package Device window

Click on “Add” button and type the keyword “led” on the “Pick Packages” window, and select LED PACKAGE

Type "led" on Pick Packages window

Fig. 10 Type “led” on Pick Packages window

Double click over the first line, under the letter “A”

Double click

Fig. 11 Double click

and click on the anode pin of the PCB:

Click on Anode pin

Fig. 12 Click on Anode pin

Same procedure for the other pin:

Click on Cathode pin

Fig. 13 Click on Cathode pin

Now, let ‘s click on the “Assign Packages” button,

Packagings window shows the PCB assigned

Fig. 14 Packagings window shows the PCB assigned

Next button, select PACKAGE from the Component Properties and Definitions options:

Select PACKAGE

Fig. 15 Select PACKAGE

Leave blank the Datasheet Filename edit field:

Fig. 16 leave blank the datasheet field

Choose USERDVC library, for example:

choose USERDVC library

Fig. 17 choose USERDVC library

Confirm the update request in the next message box

Fig. 18 Update message box

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