With gears to increase torque
Extruders are used to push plastic filament thru a hotend, to achieve the awesome feat of 3D Printing.
This module controls the motor that pushes the filament, it does not take care of the hotend itself, which is the job of TemperatureControl.
The most important parameter to get your extruder module to work properly, is extruder.module-name.steps_per_mm.
You can create as many Extruder modules as you want, as long as you give them different module names. You can name those modules whatever you want ( as long as you stick to only alphanumerical characters ).
Steps per millimeter
The number of steps on the stepper motor drivers smoothie needs to generate if it wants to move the filament 1 millimeter.
This value depends on your stepper motor, the microstepping on your stepper motor drivers, the gear reduction ratio on the extruder assembly if any and the diameter of your hobbed pulley/bolt.
A very good guide on how to find this value can be found here : http://reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide#E_steps
This is an optional parameter for those who want to use volumetric extrusion, but are too lazy to do their own math. ;) Simply enter the machine's filament diameter here and set your slicer's filament diameter to 1.128379mm ( 2*sqrt(1/pi) ) and enjoy portable gcode! Further explanation can be found in Triffid_Hunter's guide, linked above.
Details based on current Edge (Master is different)When a filament diameter is specified either from M200 Dxxx or the config setting Smoothie expects all E values specified to be in mmÂ³, so when you click extrude 10mm in Pronterface Smoothie will actually extrude 10mmÂ³. And E values in a gcode file will all be expected to be mmÂ³.
Note that when firmware retraction is specified via M207 the retraction length is still in mm not mmÂ³, but will be converted to mmÂ³ based on the filament diameter at the time of extrusion.
In the current master builds, only print moves have E specified in mmÂ³, retract or extrude only moves are still in mm. The change in edge is to be more compliant with other firmwares and user expectations.
The filament diameter can also be saved at run time with this M code
|M200||Set E units for volumetric extrusion - D<filament diameter> set to 0 to disable volumetric extrusion||M200 D3.0|
and saved with M500.
G10/G11 will cause the filament to retract and unretract, this option can be set in most current slicers.
Note this is optional, you are not obligated to set this up, but it is a nice feature if you want to use it.
The amounts of extrusion and speed can be set with the following M codes
|M207||set retract length Smm Fmm/min Zzlift/hop Qfeedrate mm/min||M207 S4 F30 Z1|
|M208||set retract recover length Smm surplus to the M207 S* Fmm/min||M208 S0 F8|
or can be set in config with the following settings…
extruder.hotend.retract_length 3 # retract length in mm extruder.hotend.retract_feedrate 45 # retract feedrate in mm/sec extruder.hotend.retract_recover_length 0 # additional length for recover extruder.hotend.retract_recover_feedrate 8 # recover feedrate in mm/sec (should be less than retract feedrate) extruder.hotend.retract_zlift_length 0 # zlift on retract in mm, 0 disables extruder.hotend.retract_zlift_feedrate 6000 # zlift feedrate in mm/min (Note mm/min NOT mm/sec)
These can be set differently for each extruder defined.
Config/Gcode differencePlease note the inconsistency here with the config specifying mm/sec and the M206/207 specifying mm/min.
Sorry about that.
1st Extruder (delta, or M4)
extruder.hotend.step_pin 2.3 extruder.hotend.dir_pin 0.22 extruder.hotend.en_pin 0.21
NoteThese pins are for the delta ( 4th ) driver on a Smoothieboard. This is what is most commonly used, but in another board or setup, you may have to use other pins.
2nd Extruder (epsilon, or M5)
extruder.hotend2.step_pin 2.8 extruder.hotend2.dir_pin 2.13 extruder.hotend2.en_pin 4.29
NoteThese pins are for the epsilon ( 5th ) driver on a Smoothieboard. This is what is most commonly used, but in another board or setup, you may have to use other pins.
Advanced pin configurationYou can do special things to Smoothie pins, for example you can invert them, which is useful to revert the direction of your extruder if it is wired the wrong way around on your board, see Pin Configuration.
You can make your extruder module use any other stepper motor driver, or even an external stepper motor driver, simply by providing the adequate pins for that driver, see Pinout.
On boards which feature current control of the stepper motor drivers ( Smoothieboard or 4pi ), you have to set that value for the extruder too.
This is handled by the Currentcontrol module, but usually, the line for the configuration of a given stepper motor is written along with it's pins, for clarity.
Set the value to the exact value your stepper motor is rated for ( or less, for less noise, but less torque ).
Setting the current to a value higher than the recommended one causes overheating, and skipped steps.
Here is an example of a common configuration and wiring of an extruder with a Smoothieboard.
This example setup is of an extruder ( stepper motor ) connected to the M4 stepper motor driver.
If your machine has multiple extruders, you also want to look at multiple-extruders.
The default Smoothie configuration example contains an example extruder section, this means you do not need to create a new one, but you can just re-use the sample one.
The configuration looks like this :
## Extruder module configuration # See http://smoothieware.org/extruder extruder.hotend.enable true # Whether to activate the extruder module at all. All configuration is ignored if false extruder.hotend.steps_per_mm 140 # Steps per mm for extruder stepper extruder.hotend.default_feed_rate 600 # Default rate ( mm/minute ) for moves where only the extruder moves extruder.hotend.acceleration 500 # Acceleration for the stepper motor mm/secÂ² extruder.hotend.max_speed 50 # Maximum speed in mm/s extruder.hotend.step_pin 2.3 # Pin for extruder step signal extruder.hotend.dir_pin 0.22 # Pin for extruder dir signal ( add '!' to reverse direction ) extruder.hotend.en_pin 0.21 # Pin for extruder enable signal delta_current 1.5 # Current setting in Amperes for this motor driver
Now that you extruder is configured, you can wire it :
Wiring your extruder stepper motor is very similar to how you wire your X, Y and Z stepper motors ( see adequate documentation ) : you just wire the 4 wires of the stepper motor, to the output connector of the M4 stepper motor driver.
All of the options currently supported by the Extruder module :
FormatThis is the new format which allows multiple extruders. The old format is deprecated. The old “one-extruder-only” configuration options will still be valid for backward compatibility, but it is recommended not to use them.
For example where before you used extruder_steps_per_mm you must now use extruder.module-name.steps_per_mm.
Here are the G-code commands currently supported by the Extruder module :Â
- G0/G1 : Move to the given coordinates. The F parameter defines speed and is remembered by subsequent commands ( specified in millimetres/minute ) (command is modal)
- G10 : Do firmware extruder retract
- G11 : Do firmware extruder un-retract
- G90 : Absolute mode ( default ) : passed coordinates will be considered absolute (command is modal)
- G91 : Relative mode : passed coordinates will be considered relative to the current point (command is modal ). Make sure you use G92 E0 to reset the extruder position every layer.
- G92 : Set current position to specified coordinates ( example : G92 E0 )
- M17 : Turn the active stepper motor driver's off
- M18 : Turn the active stepper motor driver's on
- M82 : Set absolute mode for extruder only
- M83 : Set relative mode for extruder only
- M84 : Turn the active stepper motor driver's on
- M92 : Set this axis' steps per millimetre. For example M92 E100 to set for the currently active Extruder, and M92 E100 P2 to set for the second extruder.
- M114 : Displays XYZ position, as well as the E position of the currently active Extruder
- M200 : Set E units for volumetric extrusion - D<filament diameter> set to 0 to disable volumetric extrusion, for example : M200 D3.0 to set for the currently active Extruder, and M200 D3.0 P3 to set for the third Extruder.
- M203 : Set maximum rate for axis, set E for Extruder axis or V for volumetric extrusion limit, for example : M203 V10 will limit extrusion moves to no faster than 10mm^3/s. M203 V0 disables.
- M204 : Set acceleration in mm/sec^2, E<nnn> sets extruder only move acceleration, for example : M204 E500. P selects the extruder, uses the currently active extruder if omitted.
- M221 : S<flow rate factor in percent> : Set flow rate factor override percentage for current extruder
- M500 : Save volatile settings to an override file
- M503 : Display volatile settings