Drawing Robot |
San Diego |
Drawing Robot |
Click here to view video |
More Videos |
Drawing Robot |
Click here to view video |
Click here to view video |
The drawing robot is one project of a set of three projects that are included in the “Arduino Engineering Kit Rev 2”. The Arduino kit also includes a webcam controlled rover and a self balancing motorcycle. All three projects use MATLAB software tools.
The drawing robot plots an image on a whiteboard. As you can see below, we used the drawing robot to plot ( draw ) an image of a deer and we also used the drawing robot to draw five letters ( R O M A N ).
We used an x and y coordinate system to plot the images on the white board. We started by defining multiple points on each of the lines that we want to draw. Each point had an x-coordinate and a y-coordinate. We then directed the robot to connect all the points in a line. MATLAB uses arrays to hold the x and y coordinates of each point in the line.
Each array consists of multiple rows and 2 columns. The first column holds x-coordinates of the white board and the second column holds the corresponding y-coordinates. By providing one of these arrays to the drawing robot, we can guide the robot along a line or segment of an image. By providing multiple arrays to the drawing robot, we can guide the robot along all the lines that make up an image.
As an example, the letter N has three lines. Each of those three lines has multiple points. The lines can consist of straight lines as in the letter N, or the lines can be curved as in the letter O.
The “Roman Script” is the MATLAB script we used to draw the name “R O M A N” on the whiteboard. The Roman Script calls the following five scripts:
Each of these functions develops an array to draw a letter.
|
Roman |
Roman |
Eva |
Deer |
Click here to view video |