Go Down

Topic: Virtual Arduino Screen (Read 3373 times) previous topic - next topic

Steen

Hi

I made a project for PC (windows only xs) that makes it possible to communicate with the Arduino. This might sound ordinairy, but i made it that way so you can draw on a "virtual" screen. With virtual i mean a screen that runs in a program on the PC. This makes it possible to test things out before trying them on real hardware, or you don't have a screen because it's too expensive or any other reason.

I know there's the serial monitor, but with this program you can draw strings, variables, rectangles, filled rectangles, ellipses, filled ellipses and lines on the screen, in color!
So if you're interested, more info can be found on my website
Download is available on the project page itself. Please tell me what you think about it and what should change.
I really hope this is useful to some people.

It is not finished yet, there are some things i'm not that happy with. Sometimes the screen flickers for no reason, and sometimes it gives an error, but i'm working on it


cr0sh

Looks interesting. You should add a command/commands to return current size of the virtual screen back to the Arduino. Also, you should publish the command protocol, so that others can implement virtual screen software for other platforms. Finally, adding this (in some manner) to the KS0108 library (http://www.arduino.cc/playground/Code/GLCDks0108) might be useful for some (?)...
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Graynomad

Maybe it's worth looking at avenue33's GLCD library and implementing the same functions, that way we can write code for the 4D Systems displays while waiting for the hardware.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Steen

Well i might take a look at it, but wouldn't that be a bit of a hard way to do? or is it to keep it in one lib?

robtillaart


very usefull,

First thoughtI would like to be able to "inject" graphical commands from a textbox too.
Then I can test command sequences (screenshots) even without using Arduino.

Should not be difficult to add.

Thanks for sharing!


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Steen

so you mean like sending the command the arduino should send, but within the form itself? sounds like a great idea รถ i will implement that soon, that can save a lot of sendingtime if you want to make graphical things or static texts.

that's really cool, thanks :)

robtillaart


Exactly what I meant ! 

Keep us up to date ;)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Steen

I worked a bit on it today, and i reached an early stage of the "command prompt" (that's the way i call it since it's quite the same as a real command prompt..

here are some pics (not downloadable yet, since only the drawString() is supported):



As you can see it draw the phrases on the screen, and they can be cleared with clearAll().
The promptscreen itself can be cleared too, with clearPrompt().

By now it can handle receiving from the arduino and the prompt at the same time, but to start the app you still have to connect the arduino.
The next release will be available this week when the command prompt works perfect. I'm working on some other debugging too.

If someone noticed a bug or errors or anything, please post them on my website nicksteen.Webs.com on the blog page

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Steen

Major update!

command prompt added, supports most common functions, such as drawString, drawRect etc..

download available on http://nicksteen.webs.com/virtual-arduino-screen

a little video:
http://www.youtube.com/watch?v=cM-RHvbN9hQ

Graynomad

#10
Apr 13, 2012, 08:02 am Last Edit: Apr 17, 2012, 02:45 pm by Graynomad Reason: 1
I have no immediate use for this but it does look good.

What I was referring to before was that if your function names and parameters happen to match avaenue33's library then any code written for this would port straight onto a GLCD simply by swapping libaries.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Steen

Well, i use it instead of the serialmonitor now, since it shows it nicer and cleaner than just a list of numbers.

i'm going to look for that, since it might be useful indeed, but why escpecially that lib? since there are a lot of LCD libs, and i think they're all different, aren't they?
it would be very easy, that's true..

Graynomad

Quote
why escpecially that lib?

No particular reason, from your point of view I suppose matching the library that handles the most popular GCLD would be best. 4D Systems displays are pretty common and that library is for them but there may be more appropriate ones around.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Steen

I'm not gonna update this for about 2 week si think, due to school project, but i will definitly have a look at those libs. It might indeed be handy to use, but then i'll have to rewrite a large part of the program xs i'll see what i can do.

liudr

Looks really good. I'll keep an eye on this project. Are you posting any source code?

Go Up