Arduino Simulation With Proteus
Arduino Simulation With Proteus
We 'll show how to simulate the celebrated open-source electronics prototyping platform Arduino with Proteus .You can find other informations, project files and arduino software at its homepage.
To simulate the core of Arduino platform we need only a few components: the atmega328P Microcontroller, a Crystal and two Capacitors.Let' s look for these devices in the library:
Double click on the model and this appears under Devices panel:
Let 's click on the components and place them on the layout:
Click on "Terminals Mode" on the left toolbar and select the ground reference
After downloading the software from the Arduino site run the program:
Let 's choose to load the blink example from File menu:
This program simply turn on and turn off a led with a period of 1 second for every function.Let's save the program in a directory of our choice:
Come back to the program and click on the Verify button to check the correct syntax:
Once the syntax has been verified make sure that "Arduino Duemilanove or Nano w/ ATmega 328" is selected from Tools/Board menu:
At the end of the process an error message appears, because Arduino board is not connected, we can ignore it:
Instead make sure that applet directory has been created in the directory of the pde file:
Let's open applet directory and we can see the hex file generated:
Now come back to the Arduino schematic and double click on the microcontroller, in the window that pops up select the hex file:
We' re ready to simulate.Click on play button in the bottom left corner of thelayout:
license VSM for AVR is required to enable the simulation.As result of running program the pin 19 of microcontroller start blinking with a period of 1 second