Pages: [1]   Go Down
Author Topic: Displaying output on a computer monitor?  (Read 1701 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using sweeping a ping using a servo to map out space using x-y coordinates.  I know at all times what degree from origin the ping is pointing and the distance it is reading.  How would I go about showing this graphically on a computer screen?  I'm familiar with outputting strings to the serial console, but how do I display this information graphically?  Is there some kind of graphical display library somewhere?  I'm essentially looking for it to look something like this:

Code:
\      2.30m            /
  \      *            /
    \               /
      \           /
        \       /
          Ping

If I were to walk around the room, the dot would track left/right and display the distance above it.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd just send the position data serially to the PC, and write something on the PC to display it.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since I have absolutely no clue as to how I would do that, I'm hoping there's an easier way?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33371
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That is the easy way.
Look at interfacing to the Processing language.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Never tried it, but Matlab might do want you want.
Logged

Hannover, Germany
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Something like this http://luckylarry.co.uk/arduino-projects/arduino-processing-make-a-radar-screen-to-visualise-sensor-data-from-srf-05-part-1-setting-up-the-circuit-and-outputting-values/?
Logged

http://danimathblog.blogspot.com

#define true '/'/'/'
#define false '-'-'-'

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yep, that's it.  That is essentially the easy part...for me anyways.  What I don't have is the knowledge after this point.  What is this Processing languauge, how do I use it, and how do I translate it to graphics on a screen?

Thanks,
Eric
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What I don't have is the knowledge after this point.  What is this Processing languauge, how do I use it, and how do I translate it to graphics on a screen?
http://www.processing.org
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!  Looks like I've got something new to learn and it will definitely do what I want.  Could I also use this Processing to display on say, a square phone LCD...remove the computer from the equation entirely?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33371
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use other protocols like OSC that allow you to talk over a network to smart phones. Or you can use it to set up a web server that your phone can tap into.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I meant actually having an LCD from a phone on the device...I see them for sale here and there...square, color, I think from a Nokia?  Would I have to use processing, or just draw the lines and dots on the LCD using the library for it?
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could attach that directly to the Arduino.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33371
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well it depends on the model of the display. It also takes a lot of processing power to drive it directly making your main task more difficult and less accurate.
You are better off with an LCD shield that contains the chips for the memory and refresh circuits.
Processing, the language would not be involved.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You are better off with an LCD shield that contains the chips for the memory and refresh circuits.
Yeah, that was what I meant.
Logged

Pages: [1]   Go Up
Jump to: