Go Down

Topic: Displaying output on a computer monitor? (Read 2223 times) previous topic - next topic

livetoski78

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: [Select]

\      2.30m            /
  \      *            /
    \               /
      \           /
        \       /
          Ping


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

dxw00d

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

livetoski78

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

Grumpy_Mike

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

dxw00d

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


livetoski78

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

PaulS

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

livetoski78

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?

Grumpy_Mike

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.

livetoski78

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?

dxw00d

You could attach that directly to the Arduino.

Grumpy_Mike

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.

dxw00d

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.

Go Up