Can someone point me in the right direction? (x/y plotter)

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Can someone point me in the right direction? (x/y plotter)

Postby aspire4higher » Sun Jun 29, 2014 5:15 pm

Hi there, I am a beginner java programmer (I am reading the book "head first java, second edition"). The project I am currently working on is a lego laser plotter.
It has an x and y axis. The x axis has a length limit that it can travel, but the y axis can travel as far as it wants.
I want to be able to open an image on my computer, enhance the image/outline the image (so that the lines can be sent as x/y coordinates to the intelligent brick, and then the intelligent brick should figure out what movements it needs to draw the image with the laser.) Anyone know how to point me in the right direction? I have no idea where to start.
any help on this issue is deeply appreciated.
Image
aspire4higher
New User
 
Posts: 8
Joined: Wed Jun 25, 2014 6:20 pm

Re: Can someone point me in the right direction? (x/y plotte

Postby lawrie » Mon Jun 30, 2014 10:29 am

This is not an easy project for someone new to Java programming.

Have a look at the TRAC3R project which does part of what you want to do : viewtopic.php?f=19&t=6983. It does drawing from an SVG file with lines. You would then have convert the image to an appropriate SVG file.

You could use an image to svg converter such as http://image.online-convert.com/convert-to-svg. I don't know what svg elements in would generate and whether they would be easy to draw with your laser plotter.

If you wanted to do the conversion yourself with java, you could look at http://xmlgraphics.apache.org/batik/ or https://github.com/bytedeco/javacv or http://rsbweb.nih.gov/ij/, but I don't know if any of these will do what you want.

Another approach would be to just plot the image as pixels rather than lines, but that would be slow.
lawrie
leJOS Team Member
 
Posts: 929
Joined: Mon Feb 05, 2007 1:27 pm

Re: Can someone point me in the right direction? (x/y plotte

Postby aspire4higher » Tue Jul 01, 2014 11:41 pm

Thank you for your input.

I really appreciate it. :)
aspire4higher
New User
 
Posts: 8
Joined: Wed Jun 25, 2014 6:20 pm


Return to EV3 Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff