A
A
artanets2014-04-29 22:08:44
Arduino
artanets, 2014-04-29 22:08:44

How to teach Arduino to understand .stl / .dwg ?

In theory, such a task is given to a three-axis system with a pencil and ask it to draw a 2d drawing (contour) from .stl /
.dwg .stl / .dwg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vanyamba-electronics, 2015-01-04
@vanyamba-electronics

Automatically compiling an algorithm is easier than it seems. This task comes down to writing a 3D rendering algorithm.
First, the viewport parameters are set. That is, sheet size, drawing resolution (motor step in X and Y). This is how the scale = length to height ratio is defined (4:3, 5:4, 16:9, etc.). This is necessary so that the user can move the camera on the monitor screen, rotate the model - in order to ask the program what exactly he wants to see as a result.
Then the camera parameters are set - position in space, focal length, rendering depth, sharpness, fog color, visual filters, brightness, contrast, saturation, etc.
After that, the transformation matrix of the model is set - how it should be rotated and shifted.
After that, you can start rendering - directly drawing.
Once the 2D projection is obtained, it can be drawn using a printer, in this case an Arduino, and a manipulator with a felt-tip pen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question