Go Down

Topic: arduino simulator (Read 23601 times) previous topic - next topic


is there any kind of emulator to simulate an atmega168 or an arduino diecimilla?
I am  learning and i dont like to burn my electronics components.


Still looking for. Has anyone probe proteus and simulating an atmega168 or the arduino?


I looked a little bit to see if any of the open source Atmel simulators might be easily modifiable (or usable as-is) to be a useful Arduino simulator.  Alas, what I discovered was that there don't seem to be any AVR simulators that are being actively worked on.  There were a couple that are on sourceforge, but appear to be all but abandoned (GNU AVR Simulator, latest file 2002;  IMAVR, latest 2004; AVRsimu, latest 2005; Quasi - new but non-existent, AVRSIM: 2005, AVRora (in java!): 2005, simulAVR; "transitioning to simulAVRxx"; whose last change was in 2005.)

Sigh.   I thought AVRora was particularly interesting; they provide an interface to gdb, so you'd get source-level debugging almost for free.  But it's a pretty huge school project, and doesn't appear to be active.

Windows users can try Atmel's AVR Studio...


Dec 04, 2007, 05:55 am Last Edit: Dec 04, 2007, 05:56 am by uniduino Reason: 1
Can i simulate the atmega 168 with the bootloader file on Avrstudio?
I saw that proteus software can simulate various atmegas but my question is how to simulate arduino board with it, with eagle file into the simulation.
If it is posible this would be a great idea to tryng virtual circuits or sensors without buying components before a sucessfull working project.



Check this project: http://www.fritzing.org/

it isn't a simulator
only a circuit designer ... but very very powerful, export pcb etc
VERY nice project

but not a simulator  :'(


Nov 27, 2008, 06:22 pm Last Edit: Nov 27, 2008, 06:31 pm by mettawolf Reason: 1
To simulate the Arduino in proteus you have to wire the chip as normal, load the boot loader as he source program, then input your program as virtual serial data from within the simulation.

really not worth the trouble.  If you can't find a good simulator. i suggest buying Saleae logic. you hook it up to the output pins of your arduino.  It displays exactly what each pin is doing with precise timing, and it interprets serial communication as well. It is not as fun as actually seeing stuff happen, but it will tell you weather or not your code is working.


I really would like to use Arduino2009 on Proteus...
I plan to 'reproduce' Arduino's schematic on Proteus
and I think you only need to use the hex produced while building process, no ?

But perhaps someone already did something like that ?  :D


I`m playing with Atmel's AVR Studio 4 , But only using it for the bootloading and working how to program in C++ .
I think there is a limit what you can do with the debug funtions.

It`s good fun NOT converting by code from Arduino to C++

Like is so easy with a wire libiary !!!!


Feb 28, 2009, 12:07 am Last Edit: Feb 28, 2009, 12:07 am by gameschild Reason: 1
We (myself and another) have just started work on an Emulator for the Arduino boards.

Search for 'arduemu' on SourceForge.

Still in devlepment and will be for a while.


Try to view this two youtube video:
  1/2: ....link to internet...
  2/2: ....link to internet...

Ooops!!! I can't post message with links because it is my first message in this forum.

Enter in youtube and search for this two codes
 1/2: ZIcMQZjcmew
 2/2: coM_K7sju88

It is in brazilian/portuguese language. But, I believe you will understand the images showed with ISIS, Arduino IDE and atmega168 controller.



In reply to MEM (others could appreciate, too, hopefully)

I followed the instructions from the portugese video and I have been able to simulate either the Duemilanove and the Mega.
Having some few issues using softwareserail (garbage on LCD).
I also don't have idea of the real speed of the simulator compared to the real circuit but all the stuff works good enough for a real newbie who does not want to burn his fisrt arduino  ;)
In the CPU properties, in the simulator, I specify which .elf file has to be used. With 0017 IDE that file was in the "proper" directory so, once linked, I can modify and recompile (upload, to be true, to have it moved in the applet folder) without the (real) hassle of moving it every time.
Moreoaver having separate applets folders for each project is a MUST for archiving. I have a folder for each project that included everyting I need to archive/move. pde files and applet,  simulator project including link to the correct elf.
So... I definitely miss the "move to applet" feature!!  :'(

Hope my answer covers your question.

Let me know.


Thank you Mario, for the benefit of those of us that don't speak Portuguese, could you post a link to a site that has the simulator download.


jabber that looks like a hardware simulator based on spice. I think Mario was talking about software that interpreted the output from compiling an arduino sketch and ran a simulation of this in software.

Go Up