Docsity

Firmware, Summaries of Machine Learning

Partial preview of the text

Download Firmware and more Summaries Machine Learning in PDF only on Docsity!

Firmware

3D printing–building by learning

X. Chen

University of Washington

Review of the FDM 3D Printing Process

I (^) Modeling I (^) input: 3D concept of an object I (^) output: .STL file I (^) Slicing I (^) input: 3D model as a .STL file I (^) output: G-Code I (^) Printing

.STL file

I (^) each triangle facet is described by a perpendicular direction and three points which represent the corners of the triangle. An STL file provides a complete listing of the x, y and z coordinates of these corners and perpendiculars.

.STL file

I (^) STL is an old standard (3 decades old) I (^) not keeping up with the improving 3D printers and design software I (^) new standard AMF (Additive Manufacturing Format) I (^) maintains the surface mesh structure I (^) added capabilities to reflect advances in design software and printers I (^) can handle e.g. different colors, different materials, lattice internal structures

G-Code

3D printers can be manually controlled with G-codes

Figure 4: G-code manual control example: repetier host

Common G-Codes

Code Function G0, G1 linear move G2, G3 controlled arc move G4 dwell (delay or pause) G10 & G11 retract and unretract (the filament) G28 move to home position M104 set extruder temperature M140 set bed temperature M116 wait for temperature to stabilize M112 emergency stop

RepRap GCode Cheat Sheet Comm. Parameters Description Example G0 G1 Axis [X/Y/Z] PositionAxis [X/Y/Z/E] Position Feed [F] Rapid MovementControlled Movement G0 X50G1 F150 X G4 G20 Time in ms [P]none Dwell / WaitSet units to inch G4 P500G G21 G28 none<Axis [X/Y/Z]> Set units to mmHome G21G28 X Y G90 G91 nonenone Absolute PositioningRelative Positioning G90G G92 Axis [X/Y/Z/E] Value Set Position to value G92 X5 Y Comm. M0 Parameters none Description Stops everything after buffer is empty (^) Example M M17 none Enable all stepper motors M

G0 & G1: Parameters

G0 [E(pos in mm)] [F(mm/min)] [X(pos in mm)] [Y(pos in mm)] [Z(pos in mm)]

Argument Description E(pos in mm) The amount to extrude between the starting point and ending point F(mm/min) The maximum movement rate of the move between the starting and ending point X(pos in mm) A coordinate on the X axis Y(pos in mm) A coordinate on the Y axis Z(pos in mm) A coordinate on the Z axis

G0 & G1: Example 1:

  • G0 X12 ; move to 12mm on the X axis
  • G0 F1500 ; set the feedrate to 1500mm/minute
  • G1 X90.6 Y13.8 ; move to location (X,Y)=(90.6mm, 13.8mm

G0 & G1: Quiz

Explain each line of the following G-codes:

  • G1 F
  • G1 X50 Y25.3 E22.4 F

Common G-Code: Controlled Arc Move

G2 & G3: Example

  • G2 X90.6 Y13 I5 J10 E24 (Move in a Clockwise arc from the In picture, this looks like:

Common G-Codes » A More Comprehensive Example

G0 Y10 Z- G1 Z- G1 Y G2 X10 Y30 R G1 X G2 X40 Y20 R G1 Y G2 X30 Y0 R G1 X G2 X0 Y10 Z-15 R G3 X-10 Y20 R- G3 X0 Y10 I10 (center) G91 G1 X10 Z G3 Y10 R5 Z3 (circle in incremental) Y10 R5 Z G20 G0 X G3 X-1 R1 (radius in inches)G3 X1 Z0.3 I0.5 J0.5 (I,J in inches) G21 (back to mm) G80 X10 (do nothing) G G0 X30 Y30 Z

M-Codes

  • M0 - Unconditional stop
  • M1 - Same as M
  • M17 - Enable/Power all stepper motors
  • M18 - Disable all stepper motors; same as M
  • M20 - List SD card
  • M21 - Init SD card
  • M22 - Release SD card
  • M23 - Select SD file (M23 filename.g)
  • M24 - Start/resume SD print
  • M25 - Pause SD print
  • M26 - Set SD position in bytes (M26 S12345)
  • M27 - Report SD print status
  • M28 - Start SD write (M28 filename.g)
  • M29 - Stop SD write
  • M30 - Delete file from SD (M30 filename.g)

Reference

I (^) Marlin: http://www.marlinfw.org/docs/basics/introduction.html I (^) Online Gcode Preview: http://nraynaud.github.io/webgcode/ I (^) RepRap G-code page: http://reprap.org/wiki/G-code