Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« on: April 05, 2012, 04:07:50 pm » |
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 websiteDownload 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 
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5081
Where's the beer?
|
 |
« Reply #1 on: April 05, 2012, 06:32:46 pm » |
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 (?)...
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6826
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #2 on: April 06, 2012, 10:21:17 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« Reply #3 on: April 09, 2012, 03:46:42 am » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9401
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #4 on: April 09, 2012, 04:31:48 am » |
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!
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« Reply #5 on: April 09, 2012, 01:38:41 pm » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9401
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #6 on: April 09, 2012, 03:02:23 pm » |
Exactly what I meant ! Keep us up to date 
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« Reply #7 on: April 10, 2012, 10:15:28 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9401
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #8 on: April 10, 2012, 10:20:31 am » |
looks promissing!
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« Reply #9 on: April 12, 2012, 03:47:16 pm » |
Major update! command prompt added, supports most common functions, such as drawString, drawRect etc.. download available on http://nicksteen.webs.com/virtual-arduino-screena little video:
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6826
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #10 on: April 13, 2012, 01:02:29 am » |
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
|
|
|
|
« Last Edit: April 17, 2012, 07:45:12 am by Graynomad »
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« Reply #11 on: April 14, 2012, 02:57:53 pm » |
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..
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6826
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #12 on: April 14, 2012, 06:11:07 pm » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Belgium
Offline
Full Member
Karma: 0
Posts: 182
|
 |
« Reply #13 on: April 19, 2012, 12:43:40 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5929
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #14 on: April 20, 2012, 12:14:58 pm » |
Looks really good. I'll keep an eye on this project. Are you posting any source code?
|
|
|
|
|
Logged
|
|
|
|
|
|