We were instructed to write our names using only the desktop mill, so to start off we made our names in a website with a grid (Virtual Graph Paper) so it was easy to write the g-code. We wrote the g-code in notepad and copied the code onto a flash drive them uploaded it to the desktop mill with a pen attachment. We would then run the mill to write our name.
My first attempt was a fail and it didn't even look like my name. The pen didn't even get up off the paper to start writing another letter.
My second attempt was way better I realized that the Z couldn't go up to 3 inches (what I had it set at in my code) because the machine is smaller than normal. I also added decimals to all my whole numbers because the machine couldn't read the number unless it had a decimal point after or before it. My first A and N were messed up because I missed adding decimals to the g-code.
My third and final attempt was perfect and looked exactly how it looked on the virtual graph paper website we used. Below is the finished g-code I used and the three attempts I did.
%
O58364
(Pen Nathan)
(Tool List)
(Tool 1-Pen)
G00 G90 G54 X0 Y0
G43 H01 Z0.1
(First N)
Z0
Y1.1
X.5 Y0
Y1.1
(First A)
Z.2
X.7 Y0
Z0
X.9 Y1.1
X1.1 Y0
Z.2
X.8 Y.5
Z0
X1.0
(T)
Z.2
X1.4 Y0
Z0
Y1.1
Z.2
X1.2 Y1.1
Z0
X1.6
(H)
Z.2
X1.8 Y0
Z0
Y1.1
Z.2
X2.2 Y0
Z0
Y1.1
Z.2
X1.8 Y.5
Z0
X2.2
(Last A)
Z.2
X2.4 Y0
Z0
X2.6 Y1.1
X2.8 Y0
Z.2
X2.5 Y.5
Z0
X2.7
(Last N)
Z.2
X3.0 Y0
Z0
Y1.1
X3.5 Y0
Y1.1
M30
%
Today we designed a letter that had some curves to it so we could figure out how to code curves using radiuses. I started out designing an N on Virtual Graph Paper .com, I have the ratio of 1 box = 1 inch. The designing went great but things slowed down when it came to programming the G-code, I tried to start out by just manually placing little lines to make up a curved shape but I knew that was going to take way to long and wasn't going to look good. Rick taught us that the code for writing curves was G2 or 3 (for counter clockwise and just clockwise) F50. (feedrate/how fast the pen tool moves) R?? (The radius of the line your are going drawing) X and Y. I was having trouble Getting the radius of the line I was trying to write, I tried to use the website to see the radius by looking at the bottom right corner the triangle was the radius of the line I was making but since I sized up the sketch to real life it was off.
After I realized that the size was off I switched to fusion and remade my N because I thought that I would be able to understand it more, and I did I also figured out that it was easier to get the radius using the measure tool. Below is the G-code I made and used for the final attempt
%
O42835
(NAC Curvy N)
(Write Curvy With the mini mill)
G00 G17 G20 G56 X0 Y0
G43 H1 Z1.0
X.5
Z0
G2 F50. R12.811 X1.0 Y5.0
G1 X1.5
G3 F50. R12.053 X2.535 Y0.923
G2 F50. R7.967 X3.0 Y5.0
G1 X3.50
G3 F50. R7.657 X3.0 Y0
G1 X2.50
G2 F50. R7.358 X1.25 Y4.308
G3 F50. R8.828 X1.0 Y0
G1 X.50
M30
Today we were instructed to redraw a picture of our choosing using the desktop mill with g-code. I decided to redraw this fresh orange picture that I found online on a website called "logoworks.com". After I found my picture I put it into fusion to sketch out, so I could have exact measurements and radiuses for my g-code. I had a 5 inch by 5 inch box in fusion that I used as a base for my picture, so I know its going to fit in a 5 by 5 inch box on the paper we're drawing on.
This is how I got all the points for my g-code I had the measure tool to see how far the points were from my offset point/bottom left. This is also how I got all the radius for the curves in the part.
These are the two tries that I did to draw the fresh orange, as you can see on the first attempt its messed up, but on my second and last attempt I got it perfect. On my first attempt I didn't raise the z high enough and it was still touching the paper when it shouldn't have been because it was moving to the next letter, and also I for got to add an X coordinate and that's why its stopped early because it errored out. After I fixed the two problems I also realized that I forgot to add the Z going back down after finishing a letter so I fixed that too. Below is the G-code I used for the final product.
%
O48629
(NAC Fresh Orange)
(Draw a picture with desktop mill)
G00 G17 G20 G56 X0 Y0
G43 H1 Z1.0
(Orange Peel)
X1.0 Y3.8
Z0
G3 F50. R0.831 X0.351 Y3.341
G2 F50. R0.62 X0.346 Y2.819
G3 F50. R2.306 X2.10 Y1.0
G2 F50. R0.461 X2.50 Y0.9
G3 F50. R1.697 X4.30 Y1.2
R2.585 X4.746 Y2.96
G1 X4.443 Y3.024
X4.43 Y2.96
X4.645 Y2.873
G2 F50. R0.166 X4.6 Y2.7
G3 F50. R0.139 X4.645 Y2.54
G2 F50.R0.647 X4.565 Y2.117
G1 X4.572 Y1.903
G2 F50. R2.151 X4.074 Y1.198
R1.648 X2.85 Y0.9
R2.632 X1.35 Y2.15
R3.551 X1.0 Y3.1
G1 X1.0 Y3.8
Z0.5
M1
(F)
X1.432 Y3.724
Z0
G3 F50. R2.196 X1.588 Y2.661
G1 X2.161 Y2.992
G2 F50. R0.108 X2.231 Y2.865
G1 X2.506 Y3.003
X2.443 Y3.13
X2.541 Y3.179
X2.591 Y3.046
X2.808 Y3.154
G2 F50. R0.255 X2.734 Y3.403
G1 X1.432 Y3.724
Z0.5
M1
(R)
X1.75 Y2.55
Z0
G3 F50. R0.099 X1.727 Y2.383
G1 X1.892 Y2.137
G3 F50. R0.084 X2.045 Y2.169
G1 X2.45 Y2.50
X2.152 Y2.102
G3 F50. R0.213 X2.20 Y1.8
G1 X2.372 Y1.68
G3 F50. R0.095 X2.52 Y1.74
G1 X2.553 Y1.944
G3 F50. R0.555 X2.65 Y2.5
R0.146 X2.809 Y2.59
G1 X2.90 Y2.819
G3 F50. R0.128 X2.9 Y3.0
G1 X2.8 Y3.1
X1.75 Y2.55
Z0.5
X2.65 Y2.65
Z0
G3 F50. R.366 X2.809 Y2.909
G1 X2.574 Y2.735
X2.65 Y2.65
Z0.5
M1
(E)
X2.52 Y1.67
Z0
G3 F50. R0.962 X3.53 Y1.433
G1 X3.45 Y1.85
X3.178 Y1.879
G2 F50. R0.10 X3.063 Y1.976
G1 X3.063 Y2.1
G2 F50. R0.105 X3.2 Y2.2
G1 X3.35 Y2.20
X3.275 Y2.49
X3.102 Y2.529
Y2.65
X3.225 Y2.682
X3.189 Y2.909
X3.015 Y2.952
X2.989 Y2.909
X2.52 Y1.67
Z0.5
M1
(S)
X3.553 Y1.661
Z0
G3 F50. R0.136 X3.7 Y1.5
R0.63 X4.206 Y1.834
R0.407 X3.968 Y2.412
G1 X3.511 Y2.555
G2 F50. R0.065 X3.57 Y2.657
G3 F50. R0.071 X3.7 Y2.7
G1 X3.439 Y2.97
G3 F50. R0.141 X3.247 Y2.789
G1 X3.3 Y2.55
G3 F50. R0.201 X3.4 Y2.35
G1 X3.85 Y2.2
G2 F50. R0.128 X3.977 Y2.075
R0.171 X3.648 Y2.128
G3 F50. R0.113 X3.45 Y2.049
G1 X3.553 Y1.661
Z0.5
M1
(H)
X4.25 Y2.25
Z0
G3 F50. R0.054 X4.334 Y2.318
G1 X4.35 Y2.55
G3 F50. R0.128 X4.228 Y2.687
G1 X4.061 Y2.815
X4.061 Y2.872
X4.273 Y2.751
G3 F50. R0.048 X4.34 Y2.811
G1 X4.329 Y2.939
G3 F50. R0.177 X4.169 Y3.099
G1 X3.536 Y3.269
G3 F50. R0.054 X3.479 Y3.184
R0.862 X3.753 Y3.03
G1 X3.868 Y2.973
G2 F50. R0.042 X3.827 Y2.899
G1 X3.5 Y3.1
G3 F50. R0.053 X3.439 Y3.013
G1 X4.25 Y2.25
Z1.0
X0 Y0
M30