Browse Source

Merge pull request #1336 from stv0g/Documentation

Documentation restructuring
Bo Herrmannsen 10 years ago
parent
commit
47881574ed

+ 105
- 0
Documentation/BedLeveling.md View File

@@ -0,0 +1,105 @@
1
+===============================================
2
+Instructions for configuring Bed Auto Leveling
3
+===============================================
4
+There are two options for this feature. You may choose to use a servo mounted on the X carriage or you may use a sled that mounts on the X axis and can be docked when not in use.
5
+See the section for each option below for specifics about installation and configuration. Also included are instructions that apply to both options.
6
+
7
+Instructions for Both Options
8
+-----------------------------
9
+
10
+Uncomment the "ENABLE_AUTO_BED_LEVELING" define (commented by default)
11
+
12
+The following options define the probing positions. These are good starting values.
13
+I recommend to keep a better clearance from borders in the first run and then make the probes as close as possible to borders:
14
+
15
+* \#define LEFT_PROBE_BED_POSITION 30
16
+* \#define RIGHT_PROBE_BED_POSITION 140
17
+* \#define BACK_PROBE_BED_POSITION 140
18
+* \#define FRONT_PROBE_BED_POSITION 30
19
+
20
+A few more options:
21
+
22
+* \#define XY_TRAVEL_SPEED 6000
23
+
24
+X and Y axis travel speed between probes, in mm/min.
25
+Bear in mind that really fast moves may render step skipping. 6000 mm/min (100mm/s) is a good value.
26
+
27
+* \#define Z_RAISE_BEFORE_PROBING 10
28
+* \#define Z_RAISE_BETWEEN_PROBINGS 10
29
+
30
+The Z axis is lifted when traveling to the first probe point by Z_RAISE_BEFORE_PROBING value
31
+and then lifted when traveling from first to second and second to third point by Z_RAISE_BETWEEN_PROBINGS.
32
+All values are in mm as usual.
33
+
34
+Servo Option Notes
35
+------------------
36
+You will probably need a swivel Z-MIN endstop in the extruder. A rc servo do a great job.
37
+Check the system working here: http://www.youtube.com/watch?v=3IKMeOYz-1Q (Enable English subtitles)
38
+Teasing ;-) video: http://www.youtube.com/watch?v=x8eqSQNAyro
39
+
40
+In order to get the servo working, you need to enable:
41
+
42
+* \#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command
43
+
44
+* \#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
45
+
46
+* \#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 165,60} // X,Y,Z Axis Extend and Retract angles
47
+
48
+The first define tells firmware how many servos you have.
49
+The second tells what axis this servo will be attached to. In the example above, we have a servo in Z axis.
50
+The third one tells the angle in 2 situations: Probing (165º) and resting (60º). Check this with command M280 P0 S{angle} (example: M280 P0 S60 moves the servo to 60º)
51
+
52
+Next you need to define the Z endstop (probe) offset from hotend.
53
+My preferred method:
54
+
55
+* a) Make a small mark in the bed with a marker/felt-tip pen.
56
+* b) Place the hotend tip as *exactly* as possible on the mark, touching the bed. Raise the hotend 0.1mm (a regular paper thickness) and zero all axis (G92 X0 Y0 Z0);
57
+* d) Raise the hotend 10mm (or more) for probe clearance, lower the Z probe (Z-Endstop) with M401 and place it just on that mark by moving X, Y and Z;
58
+* e) Lower the Z in 0.1mm steps, with the probe always touching the mark (it may be necessary to adjust X and Y as well) until you hear the "click" meaning the mechanical endstop was trigged. You can confirm with M119;
59
+* f) Now you have the probe in the same place as your hotend tip was before. Perform a M114 and write down the values, for example: X:24.3 Y:-31.4 Z:5.1;
60
+* g) You can raise the z probe with M402 command;
61
+* h) Fill the defines bellow multiplying the values by "-1" (just change the signal)
62
+
63
+
64
+* \#define X_PROBE_OFFSET_FROM_EXTRUDER -24.3
65
+* \#define Y_PROBE_OFFSET_FROM_EXTRUDER 31.4
66
+* \#define Z_PROBE_OFFSET_FROM_EXTRUDER -5.1
67
+
68
+Sled Option Notes
69
+-----------------
70
+The sled option uses an electromagnet to attach and detach to/from the X carriage. See http://www.thingiverse.com/thing:396692 for more details on how to print and install this feature. It uses the same connections as the servo option.
71
+
72
+To use the sled option, you must define two additional things in Configuration.h:
73
+
74
+* \#define Z_PROBE_SLED
75
+* \#define SLED_DOCKING_OFFSET 5
76
+
77
+Uncomment the Z_PROBE_SLED to define to enable the sled (commented out by default).
78
+
79
+Uncomment the SLED_DOCKING_OFFSET to set the extra distance the X axis must travel to dock the sled. This value can be found by moving the X axis to its maximum position then measure the distance to the right X end and subtract the width of the sled (23mm if you printed the sled from Thingiverse).
80
+
81
+Next you need to define the Z endstop (probe) offset from hotend.
82
+My preferred method:
83
+
84
+* a) Home the X and Y axes.
85
+* b) Move the X axis to about the center of the print bed. Make a mark on the print bed.
86
+* c) Move the Y axis to the maximum position. Make another mark.
87
+* d) Home the X axis and use a straight edge to make a line between the two points.
88
+* e) Repeat (b)-(d) reversing the X and Y. When you are done you will have two lines on the print bed. We will use these to measure the offset for the Z probe endstop.
89
+* f) Move the nozzle so that it is positioned on the center point of the two lines. You can use fine movement of 0.1mm to get it as close as possible. Note the position of X and Y.
90
+* g) Zero the Z axis with the G92 Z0 command.
91
+* h) Raise the Z axis about 20mmm.
92
+* i) Use the G32 command to retrieve the sled.
93
+* j) Now more the X and Y axis to the position recorded in (f).
94
+* k) Lower the Z axis in 0.1mm steps until you hear the "click" meaning the mechanical endstop was trigged. You can confirm with the M119 command. Note the position of the Z axis.
95
+* l) Make a mark on the print bed where the endstop lever has touched the print bed. Raise the Z-axis about 30mm to give yourself some room.
96
+* m) Now measure the distance from the center point to the endstop impact site along the X and Y axis using the lines drawn previously.
97
+* n) Fill in the values below. If the endstop mark is in front of the line running left-to-right, use positive values. If it is behind, use negative values. For the Z axis use the value from (k) and subtract 0.1mm.
98
+
99
+For example, suppose you measured the endstop position and it was 20mm to the right of the line running front-to-back, 10mm toward the front of the line running left-to-right, and the value from (k) was 2.85. The values for the defines would be:
100
+
101
+* \#define X_PROBE_OFFSET_FROM_EXTRUDER 20
102
+* \#define Y_PROBE_OFFSET_FROM_EXTRUDER 10
103
+* \#define Z_PROBE_OFFSET_FROM_EXTRUDER 2.75
104
+
105
+That's it.. enjoy never having to calibrate your Z endstop neither leveling your bed by hand anymore ;-)

COPYING.md → Documentation/COPYING.md View File


+ 16
- 0
Documentation/Compilation.md View File

@@ -0,0 +1,16 @@
1
+# Configuring and compilation
2
+
3
+  1. Install the latest non-beta arduino software IDE/toolset: http://www.arduino.cc/en/Main/Software
4
+  2. Download the Marlin firmware
5
+    - [Latest developement version](https://github.com/MarlinFirmware/Marlin/tree/Development)
6
+    - [Stable version](https://github.com/MarlinFirmware/Marlin/tree/Development)
7
+  3. In both cases use the "Download Zip" button on the right.
8
+  4. Some boards require special files and/or libraries from the ArduinoAddons directory. Take a look at the dedicated [README](/ArduinoAddons/README.md) for details.
9
+  5. Start the arduino IDE.
10
+  6. Select Tools -> Board -> Arduino Mega 2560    or your microcontroller
11
+  7. Select the correct serial port in Tools ->Serial Port
12
+  8. Open Marlin.pde or .ino
13
+  9. Click the Verify/Compile button
14
+  10. Click the Upload button. If all goes well the firmware is uploading
15
+
16
+That's ok.  Enjoy Silky Smooth Printing.

+ 10
- 0
Documentation/Contributing.md View File

@@ -0,0 +1,10 @@
1
+Developer Notes
2
+===================
3
+
4
+- There are now 2 branches: The __development__ branch is where new features and code changes will be sorted out. This branch may have untested code in it, so please let us know if you find any bugs. When the __development__ branch has reached a state where it is stable, it will be moved to the __stable__ branch.
5
+
6
+- We are doing a kind of cleanup in the list of Issues and Pull Requests, the aim is to get to a state where we can certify the code as stable. To get the code tested as widely as possible we require several volunteers with a wide variety of hardware configurations willing to test the firmware and help us to certify it as stable. If you want to help out testing go to this issue and let us know: https://github.com/MarlinFirmware/Marlin/issues/1209
7
+
8
+- Before you submit any pull request, we ask that you _PLEASE_ test your code before submission, even if the change seems innocuous. When creating the pull request, please include the hardware you used for testing and a short synopsis of your testing procedure. Untested pull requests are less likely to be merged, as even slight changes create the risk of breaking the main branch.
9
+
10
+- If you have a fix don't open an issue telling about it, but test the code and submit a pull request. Use the __development__ branch when you submit.

+ 112
- 0
Documentation/Features.md View File

@@ -0,0 +1,112 @@
1
+# Features
2
+
3
+*   Interrupt based movement with real linear acceleration
4
+*   High steprate
5
+*   Look ahead (Keep the speed high when possible. High cornering speed)
6
+*   Interrupt based temperature protection
7
+*   Preliminary support for [Matthew Roberts Advance Algorithm](http://reprap.org/pipermail/reprap-dev/2011-May/003323.html)
8
+*   Full endstop support
9
+*   SD Card support
10
+*   SD Card folders (works in pronterface)
11
+*   SD Card autostart support
12
+*   LCD support (ideally 20x4)
13
+*   LCD menu system for autonomous SD card printing, controlled by an click-encoder.
14
+*   EEPROM storage of e.g. max-velocity, max-acceleration, and similar variables
15
+*   many small but handy things originating from bkubicek's fork.
16
+*   Arc support
17
+*   Temperature oversampling
18
+*   Dynamic Temperature setpointing aka "AutoTemp"
19
+*   Support for [QTMarlin](https://github.com/bkubicek/QTMarlin), a very beta GUI for PID-tuning and velocity-acceleration testing. 
20
+*   Endstop trigger reporting to the host software.
21
+*   Updated sdcardlib
22
+*   Heater power reporting. Useful for PID monitoring.
23
+*   PID tuning
24
+*   [CoreXY kinematics](www.corexy.com/theory.html)
25
+*   Delta kinematics
26
+*   SCARA kinematics
27
+*   Dual X-carriage support for multiple extruder systems
28
+*   Configurable serial port to support connection of wireless adaptors.
29
+*   Automatic operation of extruder/cold-end cooling fans based on nozzle temperature
30
+*   RC Servo Support, specify angle or duration for continuous rotation servos.
31
+*   Bed Auto Leveling.
32
+*   Support for a filament diameter sensor, which adjusts extrusion volume
33
+
34
+The default baudrate is 250000. This baudrate has less jitter and hence errors than the usual 115200 baud, but is less supported by drivers and host-environments.
35
+
36
+## Differences and additions to the already good Sprinter firmware
37
+
38
+### Look-ahead
39
+
40
+Marlin has look-ahead. While sprinter has to break and re-accelerate at each corner,
41
+lookahead will only decelerate and accelerate to a velocity,
42
+so that the change in vectorial velocity magnitude is less than the xy_jerk_velocity.
43
+This is only possible, if some future moves are already processed, hence the name.
44
+It leads to less over-deposition at corners, especially at flat angles.
45
+
46
+### Arc support
47
+
48
+Slic3r can find curves that, although broken into segments, were ment to describe an arc.
49
+Marlin is able to print those arcs. The advantage is the firmware can choose the resolution,
50
+and can perform the arc with nearly constant velocity, resulting in a nice finish.
51
+Also, less serial communication is needed.
52
+
53
+### Temperature Oversampling
54
+
55
+To reduce noise and make the PID-differential term more useful, 16 ADC conversion results are averaged.
56
+
57
+### AutoTemp
58
+
59
+If your gcode contains a wide spread of extruder velocities, or you realtime change the building speed, the temperature should be changed accordingly.
60
+Usually, higher speed requires higher temperature.
61
+This can now be performed by the AutoTemp function
62
+By calling M109 S<mintemp> B<maxtemp> F<factor> you enter the autotemp mode.
63
+
64
+You can leave it by calling M109 without any F.
65
+If active, the maximal extruder stepper rate of all buffered moves will be calculated, and named "maxerate" [steps/sec].
66
+The wanted temperature then will be set to t=tempmin+factor*maxerate, while being limited between tempmin and tempmax.
67
+If the target temperature is set manually or by gcode to a value less then tempmin, it will be kept without change.
68
+Ideally, your gcode can be completely free of temperature controls, apart from a M109 S T F in the start.gcode, and a M109 S0 in the end.gcode.
69
+
70
+### EEPROM
71
+
72
+If you know your PID values, the acceleration and max-velocities of your unique machine, you can set them, and finally store them in the EEPROM.
73
+After each reboot, it will magically load them from EEPROM, independent what your Configuration.h says.
74
+
75
+### LCD Menu
76
+
77
+If your hardware supports it, you can build yourself a LCD-CardReader+Click+encoder combination. It will enable you to realtime tune temperatures,
78
+accelerations, velocities, flow rates, select and print files from the SD card, preheat, disable the steppers, and do other fancy stuff.
79
+One working hardware is documented here: http://www.thingiverse.com/thing:12663
80
+Also, with just a 20x4 or 16x2 display, useful data is shown.
81
+
82
+### SD card directories
83
+
84
+If you have an SD card reader attached to your controller, also folders work now. Listing the files in pronterface will show "/path/subpath/file.g".
85
+You can write to file in a subfolder by specifying a similar text using small letters in the path.
86
+Also, backup copies of various operating systems are hidden, as well as files not ending with ".g".
87
+
88
+### Autostart
89
+
90
+If you place a file auto[0-9].g into the root of the sd card, it will be automatically executed if you boot the printer. The same file will be executed by selecting "Autostart" from the menu.
91
+First *0 will be performed, than *1 and so on. That way, you can heat up or even print automatically without user interaction.
92
+
93
+### Endstop trigger reporting
94
+
95
+If an endstop is hit while moving towards the endstop, the location at which the firmware thinks that the endstop was triggered is outputed on the serial port.
96
+This is useful, because the user gets a warning message.
97
+However, also tools like QTMarlin can use this for finding acceptable combinations of velocity+acceleration.
98
+
99
+### Coding paradigm
100
+
101
+Not relevant from a user side, but Marlin was split into thematic junks, and has tried to partially enforced private variables.
102
+This is intended to make it clearer, what interacts which what, and leads to a higher level of modularization.
103
+We think that this is a useful prestep for porting this firmware to e.g. an ARM platform in the future.
104
+A lot of RAM (with enabled LCD ~2200 bytes) was saved by storing char []="some message" in Program memory.
105
+In the serial communication, a #define based level of abstraction was enforced, so that it is clear that
106
+some transfer is information (usually beginning with "echo:"), an error "error:", or just normal protocol,
107
+necessary for backwards compatibility.
108
+
109
+### Interrupt based temperature measurements
110
+
111
+An interrupt is used to manage ADC conversions, and enforce checking for critical temperatures.
112
+This leads to less blocking in the heater management routine.

+ 9
- 0
Documentation/FilamentSensor.md View File

@@ -0,0 +1,9 @@
1
+Filament Sensor
2
+---------------
3
+Supports the use of a real time filament diameter sensor that measures the diameter of the filament going into the extruder and then adjusts the extrusion rate to compensate for filament that does not match what is defined in the g-code.  The diameter can also be displayed on the LCD screen. This potentially eliminates the need to measure filament diameter when changing spools of filament. Gcode becomes independent of the filament diameter. Can also compensate for changing diameter.
4
+
5
+For examples of these sensors, see: http://www.thingiverse.com/thing:454584, https://www.youmagine.com/designs/filament-diameter-sensor, http://diy3dprinting.blogspot.com/2014/01/diy-filament-diameter-sensor.html. Any sensor which produces a voltage equivalent to the diameter in mm (i.e. 1v = 1mm) can be used. This provides a very simple interface and may encourage more innovation in this area.
6
+
7
+4 new Mcodes are defined to set relevant parameters: M404, M405, M406, M407 - see above.
8
+
9
+ Implements a delay buffer to handle the transit delay between where the filament is measured and when it gets to the extruder.

+ 103
- 0
Documentation/GCodes.md View File

@@ -0,0 +1,103 @@
1
+# Implemented G Codes
2
+
3
+## G Codes
4
+
5
+*  G0  -> G1
6
+*  G1  - Coordinated Movement X Y Z E
7
+*  G2  - CW ARC
8
+*  G3  - CCW ARC
9
+*  G4  - Dwell S<seconds> or P<milliseconds>
10
+*  G10 - retract filament according to settings of M207
11
+*  G11 - retract recover filament according to settings of M208
12
+*  G28 - Home all Axis
13
+*  G29 - Detailed Z-Probe, probes the bed at 3 points.  You must de at the home position for this to work correctly.
14
+*  G30 - Single Z Probe, probes bed at current XY location.
15
+*  G31 - Dock Z Probe sled (if enabled)
16
+*  G32 - Undock Z Probe sled (if enabled)
17
+*  G90 - Use Absolute Coordinates
18
+*  G91 - Use Relative Coordinates
19
+*  G92 - Set current position to cordinates given
20
+
21
+## M Codes
22
+*  M0   - Unconditional stop - Wait for user to press a button on the LCD (Only if ULTRA_LCD is enabled)
23
+*  M1   - Same as M0
24
+*  M17  - Enable/Power all stepper motors
25
+*  M18  - Disable all stepper motors; same as M84
26
+*  M20  - List SD card
27
+*  M21  - Init SD card
28
+*  M22  - Release SD card
29
+*  M23  - Select SD file (M23 filename.g)
30
+*  M24  - Start/resume SD print
31
+*  M25  - Pause SD print
32
+*  M26  - Set SD position in bytes (M26 S12345)
33
+*  M27  - Report SD print status
34
+*  M28  - Start SD write (M28 filename.g)
35
+*  M29  - Stop SD write
36
+*  M30  - Delete file from SD (M30 filename.g)
37
+*  M31  - Output time since last M109 or SD card start to serial
38
+*  M32  - Select file and start SD print (Can be used when printing from SD card)
39
+*  M42  - Change pin status via gcode Use M42 Px Sy to set pin x to value y, when omitting Px the onboard led will be used.
40
+*  M80  - Turn on Power Supply
41
+*  M81  - Turn off Power Supply
42
+*  M82  - Set E codes absolute (default)
43
+*  M83  - Set E codes relative while in Absolute Coordinates (G90) mode
44
+*  M84  - Disable steppers until next move, or use S<seconds> to specify an inactivity timeout, after which the steppers will be disabled.  S0 to disable the timeout.
45
+*  M85  - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
46
+*  M92  - Set axis_steps_per_unit - same syntax as G92
47
+*  M104 - Set extruder target temp
48
+*  M105 - Read current temp
49
+*  M106 - Fan on
50
+*  M107 - Fan off
51
+*  M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating
52
+*         Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling
53
+*  M112 - Emergency stop
54
+*  M114 - Output current position to serial port
55
+*  M115 - Capabilities string
56
+*  M117 - display message
57
+*  M119 - Output Endstop status to serial port
58
+*  M126 - Solenoid Air Valve Open (BariCUDA support by jmil)
59
+*  M127 - Solenoid Air Valve Closed (BariCUDA vent to atmospheric pressure by jmil)
60
+*  M128 - EtoP Open (BariCUDA EtoP = electricity to air pressure transducer by jmil)
61
+*  M129 - EtoP Closed (BariCUDA EtoP = electricity to air pressure transducer by jmil)
62
+*  M140 - Set bed target temp
63
+*  M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
64
+*         Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
65
+*  M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
66
+*  M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
67
+*  M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
68
+*  M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
69
+*  M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) im mm/sec^2  also sets minimum segment time in ms (B20000) to prevent buffer underruns and M20 minimum feedrate
70
+*  M205 -  advanced settings:  minimum travel speed S=while printing T=travel only,  B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk
71
+*  M206 - set additional homeing offset
72
+*  M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
73
+*  M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
74
+*  M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
75
+*  M218 - set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y>
76
+*  M220 S<factor in percent>- set speed factor override percentage
77
+*  M221 S<factor in percent>- set extrude factor override percentage
78
+*  M240 - Trigger a camera to take a photograph
79
+*  M280 - Position an RC Servo P<index> S<angle/microseconds>, ommit S to report back current angle
80
+*  M300 - Play beepsound S<frequency Hz> P<duration ms>
81
+*  M301 - Set PID parameters P I and D
82
+*  M302 - Allow cold extrudes
83
+*  M303 - PID relay autotune S<temperature> sets the target temperature. (default target temperature = 150C)
84
+*  M304 - Set bed PID parameters P I and D
85
+*  M400 - Finish all moves
86
+*  M401 - Lower z-probe if present
87
+*  M402 - Raise z-probe if present
88
+*  M404 - N<dia in mm> Enter the nominal filament width (3mm, 1.75mm ) or will display nominal filament width without parameters
89
+*  M405 - Turn on Filament Sensor extrusion control.  Optional D<delay in cm> to set delay in centimeters between sensor and extruder
90
+*  M406 - Turn off Filament Sensor extrusion control
91
+*  M407 - Displays measured filament diameter
92
+*  M500 - stores paramters in EEPROM
93
+*  M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
94
+*  M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
95
+*  M503 - print the current settings (from memory not from eeprom)
96
+*  M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
97
+*  M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
98
+*  M907 - Set digital trimpot motor current using axis codes.
99
+*  M908 - Control digital trimpot directly.
100
+*  M350 - Set microstepping mode.
101
+*  M351 - Toggle MS1 MS2 pins directly.
102
+*  M928 - Start SD logging (M928 filename.g) - ended by M29
103
+*  M999 - Restart after being stopped by error

+ 119
- 0
Documentation/Hardware.md View File

@@ -0,0 +1,119 @@
1
+# Supported Hardware
2
+
3
+__Please note:__ We need more feedback from users weather their board is actually working!
4
+
5
+Supported boards are listed under: [/Marlin/boards.h](/Marlin/boards.h)
6
+
7
+
8
+
9
+
10
+##### RAMPS
11
+
12
+http://reprap.org/wiki/RAMPS
13
+
14
+```
15
+#define BOARD_RAMPS_OLD         3    // MEGA/RAMPS up to 1.2
16
+#define BOARD_RAMPS_13_EFB      33   // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
17
+#define BOARD_RAMPS_13_EEB      34   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
18
+#define BOARD_RAMPS_13_EFF      35   // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)
19
+#define BOARD_RAMPS_13_EEF      36   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
20
+```
21
+
22
+##### Generation 3 Electronics
23
+
24
+http://reprap.org/wiki/Generation_3_Electronics
25
+
26
+```
27
+#define BOARD_GEN3_PLUS         9    // Gen3+
28
+#define BOARD_GEN3_MONOLITHIC   22   // Gen3 Monolithic Electronics
29
+```
30
+
31
+##### Generation 6 Electronics
32
+
33
+http://reprap.org/wiki/Generation_6_Electronics
34
+
35
+```
36
+#define BOARD_GEN6              5    // Gen6
37
+#define BOARD_GEN6_DELUXE       51   // Gen6 deluxe
38
+```
39
+
40
+##### Generation 7 Electronics
41
+
42
+http://reprap.org/wiki/Generation_7_Electronics
43
+
44
+```
45
+#define BOARD_GEN7_CUSTOM       10   // Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"
46
+#define BOARD_GEN7_12           11   // Gen7 v1.1, v1.2
47
+#define BOARD_GEN7_13           12   // Gen7 v1.3
48
+#define BOARD_GEN7_14           13   // Gen7 v1.4
49
+```
50
+
51
+
52
+```
53
+#define BOARD_CHEAPTRONIC       2    // Cheaptronic v1.0
54
+#define BOARD_SETHI             20   // Sethi 3D_1
55
+```
56
+
57
+##### Sanguinololu
58
+
59
+http://reprap.org/wiki/Sanguinololu
60
+
61
+```
62
+#define BOARD_SANGUINOLOLU_11   6    // Sanguinololu < 1.2
63
+#define BOARD_SANGUINOLOLU_12   62   // Sanguinololu 1.2 and above
64
+
65
+```
66
+
67
+##### Melzi
68
+
69
+http://reprap.org/wiki/Melzi
70
+
71
+```
72
+#define BOARD_MELZI             63   // Melzi
73
+#define BOARD_MELZI_1284        66   // Melzi with ATmega1284 (MaKr3d version)
74
+```
75
+
76
+##### RUMBA
77
+
78
+http://reprap.org/wiki/RUMBA
79
+
80
+```
81
+#define BOARD_RUMBA             80   // Rumba
82
+```
83
+
84
+##### Azteeg
85
+
86
+  - http://reprap.org/wiki/Azteeg_X1
87
+  - http://reprap.org/wiki/Azteeg_X3
88
+
89
+
90
+```
91
+#define BOARD_AZTEEG_X1         65   // Azteeg X1
92
+#define BOARD_AZTEEG_X3         67   // Azteeg X3
93
+#define BOARD_AZTEEG_X3_PRO     68   // Azteeg X3 Pro
94
+```
95
+
96
+#### Others
97
+
98
+```
99
+#define BOARD_DUEMILANOVE_328P  4    // Duemilanove w/ ATMega328P pin assignment
100
+#define BOARD_STB_11            64   // STB V1.1
101
+#define BOARD_ULTIMAKER         7    // Ultimaker
102
+#define BOARD_ULTIMAKER_OLD     71   // Ultimaker (Older electronics. Pre 1.5.4. This is rare)
103
+#define BOARD_ULTIMAIN_2        72   // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
104
+#define BOARD_3DRAG             77   // 3Drag Controller
105
+#define BOARD_TEENSYLU          8    // Teensylu
106
+#define BOARD_PRINTRBOARD       81   // Printrboard (AT90USB1286)
107
+#define BOARD_BRAINWAVE         82   // Brainwave (AT90USB646)
108
+#define BOARD_SAV_MKI           83   // SAV Mk-I (AT90USB1286)
109
+#define BOARD_TEENSY2           84   // Teensy++2.0 (AT90USB1286) - CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84  make
110
+#define BOARD_MEGATRONICS       70   // Megatronics
111
+#define BOARD_MEGATRONICS_2     701  // Megatronics v2.0
112
+#define BOARD_MEGATRONICS_1     702  // Minitronics v1.0
113
+#define BOARD_OMCA_A            90   // Alpha OMCA board
114
+#define BOARD_OMCA              91   // Final OMCA board
115
+#define BOARD_RAMBO             301  // Rambo
116
+#define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
117
+#define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board
118
+#define BOARD_LEAPFROG          999  // Leapfrog
119
+```

BIN
Documentation/Logo/Marlin Logo GitHub.png View File


+ 39
- 408
README.md View File

@@ -1,429 +1,60 @@
1
-Current Status: Bug Fixing
2
-===================
1
+# Marlin 3D Printer Firmware
2
+<img align="right" src="Documentation/Logo/Marlin%20Logo%20GitHub.png" />
3 3
 
4
-What bugs are we working on: https://github.com/MarlinFirmware/Marlin/milestones/Bug%20Fixing%20Round%201
4
+  * [Configuration & Compilation](/Documentation/Compilation.md)
5
+  * Supported
6
+    * [Features](/Documentation/Features.md)
7
+    * [Hardware](/Documentation/Hardware.md)
8
+    * [GCodes](/Documentation/GCodes.md)
9
+  * Notes
10
+    * [Auto Bed Leveling](/Documentation/BedLeveling.md)
11
+    * [Filament Sensor](/Documentation/FilamentSensor.md)
5 12
 
6
-IRC channel on freenode: #marlin-firmware
13
+##### [RepRap.org Wiki Page](http://reprap.org/wiki/Marlin)
7 14
 
8
-(baaaah, #marlin was taken)
15
+## Quick Information
9 16
 
10
-If a google hangout is needed then use this link: 
17
+This is a firmware for reprap single-processor electronics setups.
18
+It also works on the Ultimaker PCB. It supports printing from SD card+Folders, and look-ahead trajectory planning.
19
+This firmware is a mashup between [Sprinter](https://github.com/kliment/Sprinter), [grbl](https://github.com/simen/grbl) and many original parts.
11 20
 
12
-https://plus.google.com/hangouts/_/event/cps5d0ru0iruhl6ebqbk9dpqpa4?authuser=0&hl=da
21
+## Current Status: Bug Fixing
13 22
 
14
-It's valid for the next 10 years, must remember to renew then :-P
23
+The Marlin development is currently revived. There's a long list of reported issues and pull requests, which we are working on currently.
24
+We are actively looking for testers. So please try the current development version and report new issues and feedback.
15 25
 
16
-Developer Notes
17
-===================
18
-
19
-- There are now 2 branches: The __development__ branch is where new features and code changes will be sorted out. This branch may have untested code in it, so please let us know if you find any bugs. When the __development__ branch has reached a state where it is stable, it will be moved to the __stable__ branch.
20
-
21
-- We are doing a kind of cleanup in the list of Issues and Pull Requests, the aim is to get to a state where we can certify the code as stable. To get the code tested as widely as possible we require several volunteers with a wide variety of hardware configurations willing to test the firmware and help us to certify it as stable. If you want to help out testing go to this issue and let us know: https://github.com/MarlinFirmware/Marlin/issues/1209
22
-
23
-- Before you submit any pull request, we ask that you _PLEASE_ test your code before submission, even if the change seems innocuous. When creating the pull request, please include the hardware you used for testing and a short synopsis of your testing procedure. Untested pull requests are less likely to be merged, as even slight changes create the risk of breaking the main branch.
24
-
25
-- If you have a fix don't open an issue telling about it, but test the code and submit a pull request. Use the __development__ branch when you submit.
26
-
27
-==========================
28
-Marlin 3D Printer Firmware
29
-==========================
30 26
 [![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
31 27
 [![Travis Build Status](https://travis-ci.org/MarlinFirmware/Marlin.svg)](https://travis-ci.org/MarlinFirmware/Marlin)
32 28
 
33
-Marlin has a GPL license because I believe in open development.
34
-Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.
35
-
36
-[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=ErikZalm&url=https://github.com/MarlinFirmware/Marlin&title=Marlin&language=&tags=github&category=software)
37
-
38
-Quick Information
39
-===================
40
-This RepRap firmware is a mashup between <a href="https://github.com/kliment/Sprinter">Sprinter</a>, <a href="https://github.com/simen/grbl/tree">grbl</a> and many original parts.
41
-
42
-Derived from Sprinter and Grbl by Erik van der Zalm.
43
-Sprinters lead developers are Kliment and caru.
44
-Grbls lead developer is Simen Svale Skogsrud. Sonney Jeon (Chamnit) improved some parts of grbl
45
-A fork by bkubicek for the Ultimaker was merged, and further development was aided by him.
46
-Some features have been added by:
47
-Lampmaker, Bradley Feldman, and others...
48
-
49
-
50
-Features:
51
-=========
52
-
53
-*   Interrupt based movement with real linear acceleration
54
-*   High steprate
55
-*   Look ahead (Keep the speed high when possible. High cornering speed)
56
-*   Interrupt based temperature protection
57
-*   preliminary support for Matthew Roberts advance algorithm
58
-    For more info see: http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
59
-*   Full endstop support
60
-*   SD Card support
61
-*   SD Card folders (works in pronterface)
62
-*   SD Card autostart support
63
-*   LCD support (ideally 20x4)
64
-*   LCD menu system for autonomous SD card printing, controlled by an click-encoder.
65
-*   EEPROM storage of e.g. max-velocity, max-acceleration, and similar variables
66
-*   many small but handy things originating from bkubicek's fork.
67
-*   Arc support
68
-*   Temperature oversampling
69
-*   Dynamic Temperature setpointing aka "AutoTemp"
70
-*   Support for QTMarlin, a very beta GUI for PID-tuning and velocity-acceleration testing. https://github.com/bkubicek/QTMarlin
71
-*   Endstop trigger reporting to the host software.
72
-*   Updated sdcardlib
73
-*   Heater power reporting. Useful for PID monitoring.
74
-*   PID tuning
75
-*   CoreXY kinematics (www.corexy.com/theory.html)
76
-*   Delta kinematics
77
-*   SCARA kinematics
78
-*   Dual X-carriage support for multiple extruder systems
79
-*   Configurable serial port to support connection of wireless adaptors.
80
-*   Automatic operation of extruder/cold-end cooling fans based on nozzle temperature
81
-*   RC Servo Support, specify angle or duration for continuous rotation servos.
82
-*   Bed Auto Leveling.
83
-*   Support for a filament diameter sensor, which adjusts extrusion volume
84
-
85
-The default baudrate is 250000. This baudrate has less jitter and hence errors than the usual 115200 baud, but is less supported by drivers and host-environments.
86
-
87
-
88
-Differences and additions to the already good Sprinter firmware:
89
-================================================================
90
-
91
-Look-ahead:
92
------------
93
-
94
-Marlin has look-ahead. While sprinter has to break and re-accelerate at each corner,
95
-lookahead will only decelerate and accelerate to a velocity,
96
-so that the change in vectorial velocity magnitude is less than the xy_jerk_velocity.
97
-This is only possible, if some future moves are already processed, hence the name.
98
-It leads to less over-deposition at corners, especially at flat angles.
99
-
100
-Arc support:
101
-------------
102
-
103
-Slic3r can find curves that, although broken into segments, were ment to describe an arc.
104
-Marlin is able to print those arcs. The advantage is the firmware can choose the resolution,
105
-and can perform the arc with nearly constant velocity, resulting in a nice finish.
106
-Also, less serial communication is needed.
107
-
108
-Temperature Oversampling:
109
--------------------------
110
-
111
-To reduce noise and make the PID-differential term more useful, 16 ADC conversion results are averaged.
112
-
113
-AutoTemp:
114
----------
115
-
116
-If your gcode contains a wide spread of extruder velocities, or you realtime change the building speed, the temperature should be changed accordingly.
117
-Usually, higher speed requires higher temperature.
118
-This can now be performed by the AutoTemp function
119
-By calling M109 S<mintemp> B<maxtemp> F<factor> you enter the autotemp mode.
120
-
121
-You can leave it by calling M109 without any F.
122
-If active, the maximal extruder stepper rate of all buffered moves will be calculated, and named "maxerate" [steps/sec].
123
-The wanted temperature then will be set to t=tempmin+factor*maxerate, while being limited between tempmin and tempmax.
124
-If the target temperature is set manually or by gcode to a value less then tempmin, it will be kept without change.
125
-Ideally, your gcode can be completely free of temperature controls, apart from a M109 S T F in the start.gcode, and a M109 S0 in the end.gcode.
126
-
127
-EEPROM:
128
--------
129
-
130
-If you know your PID values, the acceleration and max-velocities of your unique machine, you can set them, and finally store them in the EEPROM.
131
-After each reboot, it will magically load them from EEPROM, independent what your Configuration.h says.
132
-
133
-LCD Menu:
134
----------
135
-
136
-If your hardware supports it, you can build yourself a LCD-CardReader+Click+encoder combination. It will enable you to realtime tune temperatures,
137
-accelerations, velocities, flow rates, select and print files from the SD card, preheat, disable the steppers, and do other fancy stuff.
138
-One working hardware is documented here: http://www.thingiverse.com/thing:12663
139
-Also, with just a 20x4 or 16x2 display, useful data is shown.
140
-
141
-SD card folders:
142
-----------------
143
-
144
-If you have an SD card reader attached to your controller, also folders work now. Listing the files in pronterface will show "/path/subpath/file.g".
145
-You can write to file in a subfolder by specifying a similar text using small letters in the path.
146
-Also, backup copies of various operating systems are hidden, as well as files not ending with ".g".
147
-
148
-SD card folders:
149
-----------------
150
-
151
-If you place a file auto[0-9].g into the root of the sd card, it will be automatically executed if you boot the printer. The same file will be executed by selecting "Autostart" from the menu.
152
-First *0 will be performed, than *1 and so on. That way, you can heat up or even print automatically without user interaction.
153
-
154
-Endstop trigger reporting:
155
---------------------------
156
-
157
-If an endstop is hit while moving towards the endstop, the location at which the firmware thinks that the endstop was triggered is outputed on the serial port.
158
-This is useful, because the user gets a warning message.
159
-However, also tools like QTMarlin can use this for finding acceptable combinations of velocity+acceleration.
160
-
161
-Coding paradigm:
162
-----------------
163
-
164
-Not relevant from a user side, but Marlin was split into thematic junks, and has tried to partially enforced private variables.
165
-This is intended to make it clearer, what interacts which what, and leads to a higher level of modularization.
166
-We think that this is a useful prestep for porting this firmware to e.g. an ARM platform in the future.
167
-A lot of RAM (with enabled LCD ~2200 bytes) was saved by storing char []="some message" in Program memory.
168
-In the serial communication, a #define based level of abstraction was enforced, so that it is clear that
169
-some transfer is information (usually beginning with "echo:"), an error "error:", or just normal protocol,
170
-necessary for backwards compatibility.
171
-
172
-Interrupt based temperature measurements:
173
------------------------------------------
174
-
175
-An interrupt is used to manage ADC conversions, and enforce checking for critical temperatures.
176
-This leads to less blocking in the heater management routine.
29
+What bugs are we working on: [Bug Fixing Round 2](https://github.com/MarlinFirmware/Marlin/milestones/Bug%20Fixing%20Round%202)
177 30
 
178
-Implemented G Codes:
179
-====================
31
+## Contact
180 32
 
181
-*  G0  -> G1
182
-*  G1  - Coordinated Movement X Y Z E
183
-*  G2  - CW ARC
184
-*  G3  - CCW ARC
185
-*  G4  - Dwell S<seconds> or P<milliseconds>
186
-*  G10 - retract filament according to settings of M207
187
-*  G11 - retract recover filament according to settings of M208
188
-*  G28 - Home all Axis
189
-*  G29 - Detailed Z-Probe, probes the bed at 3 points.  You must de at the home position for this to work correctly.
190
-*  G30 - Single Z Probe, probes bed at current XY location.
191
-*  G31 - Dock Z Probe sled (if enabled)
192
-*  G32 - Undock Z Probe sled (if enabled)
193
-*  G90 - Use Absolute Coordinates
194
-*  G91 - Use Relative Coordinates
195
-*  G92 - Set current position to cordinates given
33
+__IRC:__ #marlin-firmware @freenode
196 34
 
197
-M Codes
198
-*  M0   - Unconditional stop - Wait for user to press a button on the LCD (Only if ULTRA_LCD is enabled)
199
-*  M1   - Same as M0
200
-*  M17  - Enable/Power all stepper motors
201
-*  M18  - Disable all stepper motors; same as M84
202
-*  M20  - List SD card
203
-*  M21  - Init SD card
204
-*  M22  - Release SD card
205
-*  M23  - Select SD file (M23 filename.g)
206
-*  M24  - Start/resume SD print
207
-*  M25  - Pause SD print
208
-*  M26  - Set SD position in bytes (M26 S12345)
209
-*  M27  - Report SD print status
210
-*  M28  - Start SD write (M28 filename.g)
211
-*  M29  - Stop SD write
212
-*  M30  - Delete file from SD (M30 filename.g)
213
-*  M31  - Output time since last M109 or SD card start to serial
214
-*  M32  - Select file and start SD print (Can be used when printing from SD card)
215
-*  M42  - Change pin status via gcode Use M42 Px Sy to set pin x to value y, when omitting Px the onboard led will be used.
216
-*  M80  - Turn on Power Supply
217
-*  M81  - Turn off Power Supply
218
-*  M82  - Set E codes absolute (default)
219
-*  M83  - Set E codes relative while in Absolute Coordinates (G90) mode
220
-*  M84  - Disable steppers until next move, or use S<seconds> to specify an inactivity timeout, after which the steppers will be disabled.  S0 to disable the timeout.
221
-*  M85  - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
222
-*  M92  - Set axis_steps_per_unit - same syntax as G92
223
-*  M104 - Set extruder target temp
224
-*  M105 - Read current temp
225
-*  M106 - Fan on
226
-*  M107 - Fan off
227
-*  M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating
228
-*         Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling
229
-*  M112 - Emergency stop
230
-*  M114 - Output current position to serial port
231
-*  M115 - Capabilities string
232
-*  M117 - display message
233
-*  M119 - Output Endstop status to serial port
234
-*  M126 - Solenoid Air Valve Open (BariCUDA support by jmil)
235
-*  M127 - Solenoid Air Valve Closed (BariCUDA vent to atmospheric pressure by jmil)
236
-*  M128 - EtoP Open (BariCUDA EtoP = electricity to air pressure transducer by jmil)
237
-*  M129 - EtoP Closed (BariCUDA EtoP = electricity to air pressure transducer by jmil)
238
-*  M140 - Set bed target temp
239
-*  M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
240
-*         Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
241
-*  M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
242
-*  M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
243
-*  M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
244
-*  M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
245
-*  M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) im mm/sec^2  also sets minimum segment time in ms (B20000) to prevent buffer underruns and M20 minimum feedrate
246
-*  M205 -  advanced settings:  minimum travel speed S=while printing T=travel only,  B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk
247
-*  M206 - set additional homeing offset
248
-*  M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
249
-*  M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
250
-*  M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
251
-*  M218 - set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y>
252
-*  M220 S<factor in percent>- set speed factor override percentage
253
-*  M221 S<factor in percent>- set extrude factor override percentage
254
-*  M240 - Trigger a camera to take a photograph
255
-*  M280 - Position an RC Servo P<index> S<angle/microseconds>, ommit S to report back current angle
256
-*  M300 - Play beepsound S<frequency Hz> P<duration ms>
257
-*  M301 - Set PID parameters P I and D
258
-*  M302 - Allow cold extrudes
259
-*  M303 - PID relay autotune S<temperature> sets the target temperature. (default target temperature = 150C)
260
-*  M304 - Set bed PID parameters P I and D
261
-*  M400 - Finish all moves
262
-*  M401 - Lower z-probe if present
263
-*  M402 - Raise z-probe if present
264
-*  M404 - N<dia in mm> Enter the nominal filament width (3mm, 1.75mm ) or will display nominal filament width without parameters
265
-*  M405 - Turn on Filament Sensor extrusion control.  Optional D<delay in cm> to set delay in centimeters between sensor and extruder
266
-*  M406 - Turn off Filament Sensor extrusion control
267
-*  M407 - Displays measured filament diameter
268
-*  M500 - stores paramters in EEPROM
269
-*  M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
270
-*  M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
271
-*  M503 - print the current settings (from memory not from eeprom)
272
-*  M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
273
-*  M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
274
-*  M907 - Set digital trimpot motor current using axis codes.
275
-*  M908 - Control digital trimpot directly.
276
-*  M350 - Set microstepping mode.
277
-*  M351 - Toggle MS1 MS2 pins directly.
278
-*  M928 - Start SD logging (M928 filename.g) - ended by M29
279
-*  M999 - Restart after being stopped by error
35
+__Google Hangouts:__ https://plus.google.com/hangouts/_/event/cps5d0ru0iruhl6ebqbk9dpqpa4?authuser=0&hl=da
280 36
 
37
+## Credits
281 38
 
282
-Configuring and compilation:
283
-============================
39
+The current Marlin dev team consists of:
284 40
 
285
-Install the latest non-beta arduino software IDE/toolset
286
-   http://www.arduino.cc/en/Main/Software
41
+ - Erik van der Zalm ([@ErikZalm](https://github.com/ErikZalm))
42
+ - [@daid](https://github.com/daid)
43
+ - Bo Herrmannsen ([@boelle](https://github.com/boelle))
287 44
 
288
-Download the Marlin firmware
289
-   https://github.com/MarlinFirmware/Marlin/tree/development
290
-   
291
-   For the latest development, or 
292
-   
293
-   
294
-   
295
-   For the latest stable release
296
-   
297
-   In both cases use the "Download Zip" button on the right.
298
-
299
-For some spec. boards a spec. dir in the ArduinoAddons directory in the Marlin dir needs to be copied to the arduino environment. <arduino home>\hardware\
300
-
301
-Start the arduino IDE.
302
-Select Tools -> Board -> Arduino Mega 2560    or your microcontroller
303
-Select the correct serial port in Tools ->Serial Port
304
-Open Marlin.pde or .ino
305
-
306
-Click the Verify/Compile button
307
-
308
-Click the Upload button
309
-If all goes well the firmware is uploading
310
-
311
-That's ok.  Enjoy Silky Smooth Printing.
312
-
313
-===============================================
314
-Instructions for configuring Bed Auto Leveling
315
-===============================================
316
-There are two options for this feature. You may choose to use a servo mounted on the X carriage or you may use a sled that mounts on the X axis and can be docked when not in use.
317
-See the section for each option below for specifics about installation and configuration. Also included are instructions that apply to both options.
318
-
319
-Instructions for Both Options
320
------------------------------
321
-
322
-Uncomment the "ENABLE_AUTO_BED_LEVELING" define (commented by default)
323
-
324
-The following options define the probing positions. These are good starting values.
325
-I recommend to keep a better clearance from borders in the first run and then make the probes as close as possible to borders:
326
-
327
-* \#define LEFT_PROBE_BED_POSITION 30
328
-* \#define RIGHT_PROBE_BED_POSITION 140
329
-* \#define BACK_PROBE_BED_POSITION 140
330
-* \#define FRONT_PROBE_BED_POSITION 30
331
-
332
-A few more options:
333
-
334
-* \#define XY_TRAVEL_SPEED 6000
335
-
336
-X and Y axis travel speed between probes, in mm/min.
337
-Bear in mind that really fast moves may render step skipping. 6000 mm/min (100mm/s) is a good value.
338
-
339
-* \#define Z_RAISE_BEFORE_PROBING 10
340
-* \#define Z_RAISE_BETWEEN_PROBINGS 10
341
-
342
-The Z axis is lifted when traveling to the first probe point by Z_RAISE_BEFORE_PROBING value
343
-and then lifted when traveling from first to second and second to third point by Z_RAISE_BETWEEN_PROBINGS.
344
-All values are in mm as usual.
345
-
346
-Servo Option Notes
347
-------------------
348
-You will probably need a swivel Z-MIN endstop in the extruder. A rc servo do a great job.
349
-Check the system working here: http://www.youtube.com/watch?v=3IKMeOYz-1Q (Enable English subtitles)
350
-Teasing ;-) video: http://www.youtube.com/watch?v=x8eqSQNAyro
351
-
352
-In order to get the servo working, you need to enable:
353
-
354
-* \#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command
355
-
356
-* \#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
357
-
358
-* \#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 165,60} // X,Y,Z Axis Extend and Retract angles
359
-
360
-The first define tells firmware how many servos you have.
361
-The second tells what axis this servo will be attached to. In the example above, we have a servo in Z axis.
362
-The third one tells the angle in 2 situations: Probing (165º) and resting (60º). Check this with command M280 P0 S{angle} (example: M280 P0 S60 moves the servo to 60º)
363
-
364
-Next you need to define the Z endstop (probe) offset from hotend.
365
-My preferred method:
366
-
367
-* a) Make a small mark in the bed with a marker/felt-tip pen.
368
-* b) Place the hotend tip as *exactly* as possible on the mark, touching the bed. Raise the hotend 0.1mm (a regular paper thickness) and zero all axis (G92 X0 Y0 Z0);
369
-* d) Raise the hotend 10mm (or more) for probe clearance, lower the Z probe (Z-Endstop) with M401 and place it just on that mark by moving X, Y and Z;
370
-* e) Lower the Z in 0.1mm steps, with the probe always touching the mark (it may be necessary to adjust X and Y as well) until you hear the "click" meaning the mechanical endstop was trigged. You can confirm with M119;
371
-* f) Now you have the probe in the same place as your hotend tip was before. Perform a M114 and write down the values, for example: X:24.3 Y:-31.4 Z:5.1;
372
-* g) You can raise the z probe with M402 command;
373
-* h) Fill the defines bellow multiplying the values by "-1" (just change the signal)
374
-
375
-
376
-* \#define X_PROBE_OFFSET_FROM_EXTRUDER -24.3
377
-* \#define Y_PROBE_OFFSET_FROM_EXTRUDER 31.4
378
-* \#define Z_PROBE_OFFSET_FROM_EXTRUDER -5.1
379
-
380
-
381
-Sled Option Notes
382
------------------
383
-The sled option uses an electromagnet to attach and detach to/from the X carriage. See http://www.thingiverse.com/thing:396692 for more details on how to print and install this feature. It uses the same connections as the servo option.
384
-
385
-To use the sled option, you must define two additional things in Configuration.h:
386
-
387
-* \#define Z_PROBE_SLED
388
-* \#define SLED_DOCKING_OFFSET 5
389
-
390
-Uncomment the Z_PROBE_SLED to define to enable the sled (commented out by default).
391
-
392
-Uncomment the SLED_DOCKING_OFFSET to set the extra distance the X axis must travel to dock the sled. This value can be found by moving the X axis to its maximum position then measure the distance to the right X end and subtract the width of the sled (23mm if you printed the sled from Thingiverse).
393
-
394
-Next you need to define the Z endstop (probe) offset from hotend.
395
-My preferred method:
396
-
397
-* a) Home the X and Y axes.
398
-* b) Move the X axis to about the center of the print bed. Make a mark on the print bed.
399
-* c) Move the Y axis to the maximum position. Make another mark.
400
-* d) Home the X axis and use a straight edge to make a line between the two points.
401
-* e) Repeat (b)-(d) reversing the X and Y. When you are done you will have two lines on the print bed. We will use these to measure the offset for the Z probe endstop.
402
-* f) Move the nozzle so that it is positioned on the center point of the two lines. You can use fine movement of 0.1mm to get it as close as possible. Note the position of X and Y.
403
-* g) Zero the Z axis with the G92 Z0 command.
404
-* h) Raise the Z axis about 20mmm.
405
-* i) Use the G32 command to retrieve the sled.
406
-* j) Now more the X and Y axis to the position recorded in (f).
407
-* k) Lower the Z axis in 0.1mm steps until you hear the "click" meaning the mechanical endstop was trigged. You can confirm with the M119 command. Note the position of the Z axis.
408
-* l) Make a mark on the print bed where the endstop lever has touched the print bed. Raise the Z-axis about 30mm to give yourself some room.
409
-* m) Now measure the distance from the center point to the endstop impact site along the X and Y axis using the lines drawn previously.
410
-* n) Fill in the values below. If the endstop mark is in front of the line running left-to-right, use positive values. If it is behind, use negative values. For the Z axis use the value from (k) and subtract 0.1mm.
411
-
412
-For example, suppose you measured the endstop position and it was 20mm to the right of the line running front-to-back, 10mm toward the front of the line running left-to-right, and the value from (k) was 2.85. The values for the defines would be:
413
-
414
-* \#define X_PROBE_OFFSET_FROM_EXTRUDER 20
415
-* \#define Y_PROBE_OFFSET_FROM_EXTRUDER 10
416
-* \#define Z_PROBE_OFFSET_FROM_EXTRUDER 2.75
417
-
418
-That's it.. enjoy never having to calibrate your Z endstop neither leveling your bed by hand anymore ;-)
419
-
420
-Filament Sensor
421
----------------
422
-Supports the use of a real time filament diameter sensor that measures the diameter of the filament going into the extruder and then adjusts the extrusion rate to compensate for filament that does not match what is defined in the g-code.  The diameter can also be displayed on the LCD screen. This potentially eliminates the need to measure filament diameter when changing spools of filament. Gcode becomes independent of the filament diameter. Can also compensate for changing diameter.
45
+Sprinters lead developers are Kliment and caru.
46
+Grbls lead developer is Simen Svale Skogsrud.
47
+Sonney Jeon (Chamnit) improved some parts of grbl
48
+A fork by bkubicek for the Ultimaker was merged.
423 49
 
424
-For examples of these sensors, see: http://www.thingiverse.com/thing:454584, https://www.youmagine.com/designs/filament-diameter-sensor, http://diy3dprinting.blogspot.com/2014/01/diy-filament-diameter-sensor.html. Any sensor which produces a voltage equivalent to the diameter in mm (i.e. 1v = 1mm) can be used. This provides a very simple interface and may encourage more innovation in this area.
50
+More features have been added by:
51
+  - Lampmaker,
52
+  - Bradley Feldman,
53
+  - and others...
425 54
 
426
-4 new Mcodes are defined to set relevant parameters: M404, M405, M406, M407 - see above.
55
+## Licence
427 56
 
428
- Implements a delay buffer to handle the transit delay between where the filament is measured and when it gets to the extruder.
57
+Marlin is published unde the [GPL license](/Documentation/COPYING.md) because I believe in open development.
58
+Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.
429 59
 
60
+[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=ErikZalm&url=https://github.com/MarlinFirmware/Marlin&title=Marlin&language=&tags=github&category=software)

Loading…
Cancel
Save