Go Down

Topic: Free virtual Uno simulation environment (Read 4805 times) previous topic - next topic


Jun 27, 2014, 08:27 pm Last Edit: Jun 28, 2014, 04:21 am by stanjsimmons Reason: 1
Hi Everyone:

I have now released version 1.0 of my UnoArduSim simulator for WIndows.
This simulator allows you to test and debug many Uno programs without needing any of the the actual hardware. You can connect virtual I/O devices to a virtual Uno on a virtual lab bench, load and modify your program, and run, run-to, halt, step into, step-over, and step-out-of while viewing all local and global variables/arrays/objects. Full details and download at  www.sites.google.com/site/unoardusim/
Stan Simmons


Jun 27, 2014, 08:34 pm Last Edit: Jun 27, 2014, 08:39 pm by JimboZA Reason: 1
Ooooo... downloading as we speak.


edit.... well blink works  :). That's really good stuff.
Take it easy out there on the roads this holiday season: Arrive Alive.

No PMs for help please.
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.


How does it handle complex external hardware? That's where all the fun happens.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Jun 28, 2014, 04:19 am Last Edit: Jul 02, 2014, 06:07 pm by stanjsimmons Reason: 1
A good point -- UnoArduSim sure can't simulate any oddball faults/bugs inside your specific external hardware I/O device, but by attaching the corresponding UnoArduSim "fault-free" IO device you can tell you if your code is the problem. The  limited set of these virtual IO devices and supported libraries (which could be expanded in a following release) will hopefully be sufficient for most users, and if your particular device is not supported yet, you can try temporarily commenting-out/replacing the section of code that accesses it so that you can still test the other parts of your program.
Stan Simmons


Excellent job!
Thanks so much for sharing it.



How does it handle complex external hardware?
... I would encourage people using the simulator to teach Arduino use to encourage a good design/ development skill along the road to coping with the fact that the simulator probably WON'T simulate every possible bit of external kit:

"Stuff" boils down to inputs and outputs.

For a maybe-almost-too-simple example: Suppose I was using the simulator to develop software for a system to unlock my front door if I press the right buttons on a keypad.

In the final product, the Arduino will make an output high to make the door-lock-thingie unlock. FOR THE SIMULATION, I doubt that there is a door-lock-thingie "device" in the simulator. But there will be an LED. If I can "do" the LED in the simulation, I've solved the Arduino and software problems for doing the door lock in the real world. Yes... there are also some electronics issues... but I can make a great start on the overall road to success with the simulator.

Three cheers for this EXCELLENT initiative. I haven't played with it, but if it even ALMOST works, let's all get busy on... Facebook?... ick!... etc, and GET THE WORD OUT. If it even almost works, let's make getting it working even better worth the time of the people behind it.

And no, I'm not one of them (^_^)


Dec 07, 2014, 10:47 am Last Edit: Dec 08, 2014, 10:40 pm by tkbyd

Download link wasn't working 6 Dec 2014... and still not working 8 December, no answers received, despite reaching out in several directions. Which gave me a chill. Has Google suspended this for some reason? (The file we were pointed to was on a Google server, looked like a free user's account.)

Of the 3,000+ viewers of this thread, have any "well known" Arduino forum contributors actually TRIED the thing? Run it thought anti-malware checks? (Could they post "Yes", in this thread, if so, please? When did you try it?)

The simulator's site doesn't have any comments up about the download issue. (Sunday, 7 Dec 14, 9am London time.... maybe it went down overnight, and that's still not known about at "headquarters"?)

PLEASE let this be genuine!

PS... Umm... Ah... there I go getting all excited, rushing in. (Again.) Before we all get behind THIS one, maybe we should explore the field a bit? I had no idea (duh) that this wasn't the first. Several listed, with brief notes, at...


... but I STILL think we should be promoting the good ones!


If you go where the sites.google.com link in the announcement at the top takes you, from there, eventually, you get to a page with a link for downloading the program. If you examine the source for the page with the link for downloading the program, you will find your GMail email address in it! (I hadn't entered it for ages... must have logged into it for something else days ago.) I would guess that if you use the link, you are, ** unwittingly **, going to be sending your GMail email address to whoever put up the link you've been persuaded to click. Thank you Google. I don't (knowingly) give out my GMail eddress... and won't be clicking on links like this one again, now that I have suspicions.

The simulator may be genuine... I imply nothing on that front. But I've learned something about how drive.google.com resource sharing works that I'm glad to know.

Note as you look at the sites.google.com page, that it is not a Queens University, Kingston, Ontario page. The Queens logo appears under the word "Affiliations".

Go Up