Sei sulla pagina 1di 20

Cookies Policy

Terms and Conditions


Administration
login
register

 Menu 

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:
Fig. 1 Simple project implemented with a microcontroller model

We can replace the microcontroller, capacitors and crystal oscillator with the 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”:
Fig. 3 Edit Properties

Load the hex file of the blink project in the “Program File” edit field:
Fig. 4 Load the Hex file

finally, let ‘s run the 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. 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”:
Fig. 7 Make Device window

Click onNext, and the “Add/Edit”:

Fig. 8 Click on “Add/Edit” button

It ‘s shown the “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
Fig. 10 Type “led” on Pick Packages window

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

and click on the anode pin of the PCB:

Fig. 12 Click on Anode pin


Same procedure for the other pin:

Fig. 13 Click on Cathode pin

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

Fig. 14 Packagings window shows the PCB assigned

Next button, select PACKAGE from the Component Properties and Definitions options:
Fig. 15 Select PACKAGE

Leave blank the Datasheet Filename edit field:

Fig. 16 leave blank the datasheet field

Choose USERDVC library, for example:


Fig. 17 choose USERDVC library

Confirm the update request in the next message box

Fig. 18 Update message box

Pages: 1 2

Posted in Proteus and tagged ARDUINO 3D models, ARDUINO MEGA model, ARDUINO Pro Mini model, ARDUINO Proteus, ARDUINO simulation projects, ARDUINO SPICE simulation,
ARDUINO UNO model.

Like 0

Tweet

Share

SPICE Documentation
▼ SPICE
► Altium Designer
► Control Systems using SPICE
► EDWinXP
► LTspice
► Micro-Cap
► NI Multisim
► OrCAD PSpice
▼ Proteus
» ARDUINO Simulation PCB and 3D Models Libraries for Proteus.
» Arduino Simulation Projects using Arduino Simulation Library Models.
» Arduino Simulation with Proteus
» Getting Started with Proteus
» How to connect components in Proteus: Wiring up Components
» How to connect Proteus with Keil IDE
» How to Import PSpice models into Proteus
» SPICE simulation with Proteus of a Coils Tester.
► Proteus Ares PCB
► Proteus Video tutorials
► SPICE OPUS
► TINA
► ViaDesigner
» links to SPICE libraries
» SPICE Simulation Algorithm
» SPICE Simulation Software

We use Profiling cookies, like Facebook, Twitter, Linkedin, Google+, Pinterest, Gravatar cookies to ensure that we give you the best experience on our website. By
continuing to use our website you are agreeing to our use of cookies. Ok Read more
Cookies Policy
Terms and Conditions
Administration
login
register

 Menu 

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:
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:
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:
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:

Fig. 24 The ARDUINO IDE

at this point it ‘s important to choose from the “Tools” main menu, “Board” and “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).

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:
Fig. 27 Simulation running with ARDUINO MEGA model

Pages: 1 2

Posted in Proteus and tagged ARDUINO 3D models, ARDUINO MEGA model, ARDUINO Pro Mini model, ARDUINO Proteus, ARDUINO simulation projects, ARDUINO SPICE simulation,
ARDUINO UNO model.

Like 0

Tweet

Share

SPICE Documentation
▼ SPICE
► Altium Designer
► Control Systems using SPICE
► EDWinXP
► LTspice
► Micro-Cap
► NI Multisim
► OrCAD PSpice
▼ Proteus
» ARDUINO Simulation PCB and 3D Models Libraries for Proteus.
» Arduino Simulation Projects using Arduino Simulation Library Models.
» Arduino Simulation with Proteus
» Getting Started with Proteus
» How to connect components in Proteus: Wiring up Components
» How to connect Proteus with Keil IDE
» How to Import PSpice models into Proteus
» SPICE simulation with Proteus of a Coils Tester.
► Proteus Ares PCB
► Proteus Video tutorials
► SPICE OPUS
► TINA
► ViaDesigner
» links to SPICE libraries
» SPICE Simulation Algorithm
» SPICE Simulation Software

We use Profiling cookies, like Facebook, Twitter, Linkedin, Google+, Pinterest, Gravatar cookies to ensure that we give you the best experience on our website. By
continuing to use our website you are agreeing to our use of cookies. Ok Read more

Potrebbero piacerti anche