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/ (http://www.sites.google.com/site/unoardusim/)
Enjoy!
Ooooo... downloading as we speak.
Thanks.
edit.... well blink works :). That's really good stuff.
How does it handle complex external hardware? That's where all the fun happens.
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.
Excellent job!
Thanks so much for sharing it.
Regarding....
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 (^_^)
P.S.
Download problem solved! See post of 22 Jan 15
On 22 Jan 15 I cut down the following, but left parts to highlight the dead end which I suspect remains, and to make the following point, which was originally a 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...
http://blog.oscarliang.net/arduino-simulator-free-virtual-circuit-hardware/
... but I STILL think we should be promoting the good ones!
====
Modified comments on download from original post....
ARGH!! OH NO!!
Download link had a dead end route waiting for you 6 Dec 2014. Linked to how Google's shared docs system operates, I suspect. (I had "works". Changed that.)
The simulator's site doesn't have any comments up about the download issue. (Didn't early Dec 14, nor 22 Jan 15)
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".
Hi Stan
I am a BSc Mech Eng Undergrad at Oxford Brookes.
My final year dissertation is on using and Arduino board to control a 12V 20A brushed motor.
Naturally that doesn't mean find an Arduino shield, plug it into the Arduino and then the job's done.
It means 'produce an investigation worth reading'.
Part of the dissertation has been the evaluation of Free/Open Source Arduino simulators.
I downloaded this today and it is very good, well done.
The Fritzing simulator has superior graphics, but it comes nowhere near yours on the practicality front.
Thanks for the effort.
best regards
Paul Lancaster
awesome im going to give it a shot ive been thinking a very similar thing!
How does it handle complex external hardware? That's where all the fun happens.
i put a post in gigs and collaborations for something im going to start working on in processing that will simulate
the target MCU'S output if a "hypothetical" pinout of basic digital components that can be determined using a database of truth tables for ICs that are designed as particular logic gates, but, as you said complexity is proportional to both fun of outcome AND mental strain achieving it, and there's a lot more fun than just ones and zeros to be had with other electrical components.
im afraid i too got an error for the dl page of the zip file.
Downloaded 1/19/2015 installed on win7 64 bit system.
Works excellently!!
Professor Simmons:
I am retired computers and electronics technologies instructor and would like to link students to your simulator for a new online course I am preparing on Arduino and circuit prototyping in the maker vent.
Would you have any objections to my putting a link to your program in the course along with credits to you?
I have been considering another professional program but your program fits my requirements very well.
Thanks
Tim
Update: Hurrah! Download problem solved! See post of 22 Jan 15
Rest is modified verion of original post...
Tried download again... still problems. (Original had details of what I'd tried... including...)
Tried to add yet another piece of software to my computer, as the download process seemed to "need" that. (The special "zip extractor", or whatever it was called)
Not necessary. (See post of 22 Jan 15)
How do I like to "publish" free things... or access them? Go to, say...
http://sheepdogguides.com/lut/lt1Nd.htm
Try the "download a .zip with the code and a compiled .exe file in it." See if it gives you any hassle? (And let me know, if it does!) (It will give you a little Windows program, illustrating topics in Lazarus programming. (Lazarus: An open-source, multi-platform language similar to Delphi.)
ok cool well im pretty certain i want to pursue making my own processing/VB/Arduino virtual platform any how. i mean if anything should be free source it should be things that make life easier for those that are pushing their mental boundaries throughout the world ie designing and innovating anything (which is broad enough i think) so yep thats why i posted something in this vein in the gigs and collaborations section to try and get something like this cooking anyway.
thanks for posting the link ill take a look
ah this is my 32 bit ill try the 64 now. lol this 32 bit is in better nick because my dad never used it because the power adapter was blown and he assumed must be laptop.
How does it handle complex external hardware? That's where all the fun happens.
i did find one (you'll need to google it i cant remember the link) that created the simulation on an engine that is apparently built based on Maxwell's Equations hence you get all the fruit of wireless involved in the read out i suppose only thing that made me click out ocf the page was pricing unfortunately
but if i were in a more established stage of my life and could afford it hey... im sure you understand how much cost and time cutting would be involved having it handy in prototyping!
Just a tip regarding the problems with downloading mentioned above.
Once you are on the page with the download, Click on the little downward arrow on the right side and you should get a windows"do you want to download..." box. DO NOT click on the name of the file, this will give you a URL not found error (Unless you are loged in with a google account, I am assuming).
Hope this helps
so hang on, that works for you? just staying on the page that clicking on simulator takes you to from the index? it get the same non functional google page whether i left OR right click on the zip link provided on that page on my 32 system. have not got round to checking my 64 or as i affectionately refer to it as "mr dusty"
For those who've had trouble downloading the simulator....
Once you are on the page with the download...
https://www.sites.google.com/site/unoardusim/services (https://www.sites.google.com/site/unoardusim/services)
...click on the little downward arrow at the right-hand end of the line and you should get a Windows "Do you want to download...?" box.
Hurrah!! Thank you Opal_1970! (I was so grateful that I actually remembered to click on his "Add Karma" button!) That was "the secret" I'd failed to grasp!! (Successful download just now with Windows 7/ Firefox 35.0)
Hello,
After a bit of a bother figuring out the download interface I was able to get in, install it and run it.
I have attached a photo of the URL and relevant area on the page to click. Google makes a mess of it.
Will be using the simulator in my MSc Robotics course this semester, in the School of Design at HKPU.
I will let you know how well it was received by (primarily non-technical) Mainland Chinese Designers.
Graham Leach
Visiting Lecturer, School of Design
Multimedia & Entertainment Technology (MSc)
Hong Kong Polytechnic University
Wow! I think I'll try it.
Tell me, how does it compare to Simulator for Arduino http://www.virtronics.com.au (http://www.virtronics.com.au) ? at Virtronics, we have a range of universities and educational institutions who use the Simulator and one purchased 200 licences last year.
Tested! Good!
I have finally had time to do a few tests of the simulator... and I am delighted with it. Excellent for introducing Arduino to students.
A few notes put together at...
http://sheepdogguides.com/arduino/aht9simsimm.htm (http://sheepdogguides.com/arduino/aht9simsimm.htm)
Tell me, how does it compare to Simulator for Arduino http://www.virtronics.com.au ? at Virtronics, we have a range of universities and educational institutions who use the Simulator and one purchased 200 licences last year.
how much is a student license for yours and how long is the demo? im asking because im trying this one tonight so i will evaluate yours based on this one being freeware.
I may have got details wrong, but if I've read the site correctly... prices in Australian Dollars, "AD"...
Current version: AD 15
Version 1.0 list expected to be around AD 50
Then there's a free demo version...
"Ten minute trial (then 30 day trial with a simple email unlock)"
"After 30 days of use or 100 sketches there is a delay timer on loading a sketch and
code limit of 150 lines"
See more at: http://www.virtronics.com.au/Simulator-for-Arduino.html
===
Now... don't get me wrong: It is THEIR product, and they have every right to sell licenses for use as they see fit. But I'm going to invest some time in the FREE simulator first, and see if I can live with it before spending money that I could spend on actual Arduinos!
And when it comes to shareware, I don't want to invest time in getting to grips with something if usage is time limited. Feature limited: Fine! But I rarely see something that is time limited that interests me enough to spend time there.
i do like this one for sure im having some teething problems in that ive somehow cause all the options under the execute tab to be unavailable. im using the software serial.
Thank you for this wonderful program. I've just ran through some test and it's definitely going to be a great addition beside the real thing.
thanks a lot
Hello all,
I am trying to download the simulator but not getting the link to download.
I searched in following link
https://www.sites.google.com/site/unoardusim/home
But the last update was on Jun 27, 2014, I want to know that whether this simulator was updated after that or that was the only updated version?
If any new version is available for win7 64bit, kindly send me the download link in dipanshupayasi@gmail.com ASAP.
Thanx in advance. . .
dipanshupayasi- See posts 17 and 18 above. In 18, if you click on the graphic it gets big enough to read, but then you may need to use the horizontal scrool bar to see the bit at the right which marks the arrow you need.
Overcome all that, and you should be okay. Download worked (for me!) 6am UK 14 Feb 15.
(You get to the download page from the one you cited by clicking on "Simulator" in the menu at the left there.)
Yahoo group cancelled due to lack of interest
To download:
When on the download page (https://www.sites.google.com/site/unoardusim/home , choose "Simulator Download" from the left sidebar) you have to click the download arrow on the right and NOT the filename UnoArduSimV1.1.zip!
Ortwin
it looks very promising. Would be great to add some more complex features like support for multiple arduinos e.g. using I2C or RS485 as that's really where things get complex (at least for me).
Hi,
Thanks for this great Arduino Uno simulation software. Very easy to use and enough powerfull.
Are interrupts implemented ?
I tried to use them without success.
Thanks for help.
JBIL
Hi there, first of all; great program. Thumbs up!
I'm totally new at this and just practicing, so naturally i stumbled on something:
when i try to start an serial port with " Serial.begin(9600) " the program doesn't run.
When you write your program you'll see a black little screen with " BUILD-IN'S ",
if i look there there is an " //Serial: " that turns green (in the code)
but no " Serial. " , even if i type it in it stays black.
Does someone else have this problem, or see my misstep?
Ruud
Nice work! Thank u Professor. Greetings from Brazil.
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/ (http://www.sites.google.com/site/unoardusim/)
Enjoy!
Kudos on such a great program! I have used it for an hour and it works exactly as described! Great for stubbing out a program! Excellent work, this is the best simulator I have found so far. Thank you!
Thank you Prof Simmons!
This is a great simulator and it is so light weight!!!
I'm from a software background. Just saw some projects done with Audrino and developed some interest on it.
So I decided to learn with a simulator. When I'm confident enough to do something real, I'll go ahead and purchase the items.
But it was hard to find a good free simulator for Audrino. This is the best I got so far.
Thank you so much. I really appreciate your effort for this wonderful simulator! :)
Wish you all the best and hope you will improve this a lot better and powerful than it already is.
I can't make the motor to turn to both directions. I know it has something to do with Dir and Enc but tried some combinations to no avail.
FIXED, I was not correctly setting the Dir PIN as OUTPUT!
Took me less than an hour to download and test out some code concepts. What a great tool!
Sunny ways, Prof. Simmons, sunny ways. Posted from the foot of Kingston Rd. in Toronto, so you are literally just up the street from me. :)
Sunny ways, Prof. Simmons, sunny ways. Posted from the foot of Kingston Rd. in Toronto, so you are literally just up the street from me. :)
Sounds like you are quite liberal (L)
.
All files at https://www.sites.google.com/site/unoardusim/services are infected with malware. DO NOT DOWNLOAD.
my windows 10 found malware in the latest UnoArduSimV1.4.3...
+Tk Boyd I have contacted you back and also looked at the Arduino thread you mention. You look like an avid supporter of the software and I admire you for it. I am not the author of the Uno Arduino Simulator. Professor Stan Simmons of Queen's University, Canada is the author. He may be reached at unoardusim@gmail.com
Would some assist in downloading the simulation software Prof Simmond V1.5 please.
I keep getting blocked by "Smart Screen Filter"
Kind regards.
Indelec
Nice software, thank you very much.
Is it possible to add our own (simple) models of devices?
In our Robotics Club we use the Ultrasonic Transducer a lot (HC-SR04)
Thanks,
Geoff...
Back in early May, Damain, newbie, 3 posts, announced that there was a malware problem with the simulator downloads.
I looked into it, made enquiries, waited to see what developments arose.
Of several possible explanations, it seems that maybe an .exe being inside a .zip was giving rise to a false positive. I have read many places that Windows Defender is next to useless. I also haven't looked with great care... which is what you need to do in this wicked world, at the download link cited by Damain.
Today, I went to my own page about the simulator...
https://www.sites.google.com/site/unoardusim/services
Used the "Catch your simulator... Go to..." link there, and a little RTMing... the download may not, today, be EXACTLY what is was when I wrote my page... fetched the zip for version 1.5, and on a Windows 7 (until MS highjacks it, with THEIR malware) did a malware scan of it with Eset's Intnernet Security, which I have been happy with for some time. No issues reported.
===
Off topic rant- Windows.... I've heard it said that the little red "x" in the upper right corner of the "Do you want to upgrade to Wondows 10"- type windows that are plaguing the planet has been reprogrammed to mean "Yes! Update me!" (You know the window... the one that doesn't have a "no, go away, don't ask again" button.)
One of my systems took 20 hours to download the massive monstrosity that clutters my soon-to-be-Linux desktop PC, VDU monitor, with all sorts of stuff only appropriate to a internet enabled smartpone with a touchscreen. Bah!
I have not been able to download the arduino simulator...
Very nice software, saved me already a lot of time!
However i ran into a problem.
I like to simulate a program which makes use of the virtual wire library.
When including it, UnoArduSim complains at the first line of the library (#ifndef VirtualWire_h):
"PARSE ERROR: unable to parse line".
I'm running it on linux with wine, may that be an issue? Or am I doing something wrong?
Hi kernash, does this work OK on a real Arduino and/or on the Simulator: http://virtronics.com.au/Simulator-for-Arduino.html
Hi,
This is a cool tool, but I am having some trouble using it. I am trying to do a simple test where I read a value from a 0-5V slider and then have it translate to 0-360 degrees output to a servo. So far, it will not read in a value from the slider. The servo will accept the output, but the value is not as it should be. Here is the code which I cobbled together. I would appreciate any help pointing out errors and fixes. Thanks in advance,
#include <Servo.h>
const int srvPin = 9;//servo comtrol pulses
Servo servo1;
int count;
int pwmPin = 10; // output pin supporting PWM
int inPin = 3; // voltage connected to analog pin 3, e.g. a potentiometer
int val = 0; // variable to store the read value
float volt = 0; // variable to hold the voltage read
void setup()
{
count=0;
pinMode(pwmPin, OUTPUT); // sets the pin as output
servo1.attach(srvPin);//attach servo1
}
void loop()
{
count=count+1;
delay(200);
val = analogRead(inPin); // read the input pin
volt =(5.0 * val) / 1023; //translate analog 5-volt slider to output range
val = 360 * (volt / 255); //prepare variable for servo output (0-360)
//analogWrite(pwmPin, val); //ignore for now
servo1.write(val);
}
Hi, this sketch looks OK except for one line:
val = 360 * (volt / 255); //prepare variable for servo output (0-360)
should be
val = 360 * (volt / 5.0); //prepare variable for servo output (0-360)
In Simulator for Arduino (http://virtronics.com.au/Data/SetupFree.zip), the output pin changes a shade of red and the angle is displated to the right of the pin.
HALP MEH!!!!!!!!!!!!!!!!!!111
No can do, good buddy. Please post
- The full error message;
- The full line of code that generates the error;
- At least one line before, two or three might be better, and one line after wouldn't hurt; and
- Declarations for all variables used in the code that generates the error.
I'll have a look for what it's worth, and you might get better minds than mine looking as well once there is something to look at.
Can we interface virtual LED display in Arduino simulator,,..if so can any one tell how,,..?
Hello..
perhaps a silly question, is this a standalone simulator ? or do i need to install/run it on the same machine which has Arduino IDE installed ?
Regards
Standalone!
Woo, this simulator is great, exactly what I what looking for. Thank you mate!
I am getting an error when trying to define :
long unsigned int rxID;
"PARSE ERROR: 'unsigned': illegal identifier: matches a reserved keyword in Arduino"
any idea?
Nice tool. Is there a reason it doesn't understand the datatype "short" ?
I really enjoy your simulator, when I can , can I donate towards it ???? I think this is a worthy cause and I usually don't donate to too much to projects unless they are good... but this one is. The only thing I would like to see is more projects for it. I am part of the Robot Club at KwartzLab in Kitchener, Ontario, Canada (some of you reading this might know me).... if anyone wants more info about the Robot Club or KwartzLab email me back. Thanks... Russ Campbell
Hello,
I've come across a possible bug.
In the code below, in block //4 the replace seems not to function.
John
/*
Sample Program to show some string functionsn
*/
//#include "string.h";
void setup() {
String my_str = "This is my string.";
Serial.begin(9600);
// (1) print the string
Serial.println(my_str);
// (2) change the string to upper-case
my_str.toUpperCase();
Serial.println(my_str);
// (3) overwrite the string
my_str = "My new string.";
Serial.println(my_str);
// (4) replace a word in the string
my_str.replace("string", "Arduino sketch");
Serial.println(my_str);
// (5) get the length of the string
Serial.print("String length is: ");
Serial.println(my_str.length());}
void loop()
{
}
My code is working perfectly on Arduino uno v3. Simulator is giving error on #include <String.h>
Error is :
PARSE ERROR: A < > Bracketed #include file name must contain the full drive path
How to solve this issue?
Thanks for this monumental effort ! I ran the "blink" program and another a string functions testing program and they ran perfectly . I attached a few 'small devices" as well like LEDs and a terminal , was impressed with its functioning. The compiler within it is very friendly and its messages are detailed to solve any coding mistake easily, even compared to the Arduino IDE C compiler. My congratulations. Is there a way to run a HEX file directly in case i don't have C source program ? its needed in some situations where i compile on a different compiler and want to test the hex file on your simulator or someone gives me a hex file to use.
how can I download a Uno simulator in my computer?
please help
Hi, have not tried this yet, my home system run Ubuntu and centos Linux any thought of porting it?
I will create a windows VM to try it, but would prefer a native version.. please
Or maybe an android one for my old A500 tablet..
It runs both Lubuntu 14.04 and android 5.1.1.
Cheers
Pasquale
At https://www.sites.google.com/site/unoardusim/services the page for the simulator is said.
"This is a simulator for Windows (XP or later). Porting to other operating systems is a project for future."
so it only runs on windows. [ from one 60yr old to another : ) ]
Boa tarde, alguém sabe informar onde encontro um curso de Arduino autorizado? Gostaria de certificar professores e a escola pelo Arduino.
Hello!
Excellent initiative!
Do you have plans to release it for OSX?
Brilliant. I am currently developing a flight simulator interface while on holiday without my Ardiuino hardware. Now I can continue working and testing.
Thank you.
Do you have a macOS version?
Fantastic!
I feel that this is exactly the initiative that Arduino embodies, and encourages, and rightly so.
Are there any plans to develop it into Android and/or iOS?
Hi Stan,
Constructive criticism - I have just tried your software and it shows fantastic potential! May I make a couple of suggestions for improvement.
1) I would be great if the left hand site 'Coding Window' allowed us to actual code. This would be beneficial as we would have immediate (instead of - compiled, saving, loading into unoardusim and repeat) feedback for our (newbies) code.
2) The ability to import a Hex file to be simulated.
3) The inclusion of some more hardware eg 1602 displays, 4x 7segment displays, resistive sensors (temp), optical encoders
Thanks again
The list of the Top 10 Best Simulators for Arduino is shown in the following.
Paul Ware's Arduino simulator.
Simduino.
ArduinoSim
Arduino Simulator for PC.
Emulare Arduino simulator.
Simulator for Arduino.
Autodesk Eagle.
Proteus.
Autodesk Circuits.
Virtronics Simulator for Arduino
Arduino
I used the Stanley Huang version of CodeBlocks that has a simulator integrated so you can change the sketch, compile a see the result.
The other simulator I used require that first I have to compile in Arduino IDE and then import the binary.
Is there a simulator with integrated IDE so I can do the same that I do in CodeBlocks? I mean that I can modify the sketch and have te simulator that run it (after compiling!).
but that's just picture... :(
The List of Arduino Simulators
PaulWare's Arduino Simulator
SimDuino
ArduinoSim
Arduino Simulator for PC
Emulare Arduino Simulator
Simulator for Arduino
Yenka for Arduino
AutoCAD 123D
LTSpice Arduino Simulator
PSpice for Arduino
Circuit Lab Arduino Simulator
EasyEDA simulator
Circuits-cloud Simulator
Systemvision Simulator
Proteus by Labcenter
Copied it from this article of Arduino simulators (https://tutorial45.com/arduino-simulator-emulator/).