Free virtual Uno simulation environment

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.

stanjsimmons:
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/
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! :slight_smile:
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. :slight_smile:

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

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);
}