Skip to content

Repository files navigation

🖨️ Ender 3 V2 + Sprite Extruder — G-Code Scripts

Custom start/end G-Code scripts and firmware configuration for the Creality Ender 3 V2 with Sprite direct drive extruder upgrade, running Professional Firmware with UBL (Unified Bed Leveling).

 ███████╗███╗   ██╗██████╗ ███████╗██████╗     ██████╗ 
 ██╔════╝████╗  ██║██╔══██╗██╔════╝██╔══██╗    ╚════██╗
 █████╗  ██╔██╗ ██║██║  ██║█████╗  ██████╔╝     █████╔╝
 ██╔══╝  ██║╚██╗██║██║  ██║██╔══╝  ██╔══██╗     ╚═══██╗
 ███████╗██║ ╚████║██████╔╝███████╗██║  ██║    ██████╔╝
 ╚══════╝╚═╝  ╚═══╝╚═════╝ ╚══════╝╚═╝  ╚═╝    ╚═════╝ 

Printer Extruder Firmware Leveling Probe


🖨️ Printer Configuration

Component Specification
Base Printer Creality Ender 3 V2
Extruder Creality Sprite (Direct Drive)
Bed Probe CR-Touch (BLTouch compatible)
Bed Leveling UBL — Unified Bed Leveling (5x5 mesh)
Firmware Professional Firmware
Build Volume 220 x 220 x 240mm
Enclosure Heated cabinet build (for ABS/ASA)

📁 File Structure

Ender3V2-Sprite-gCode/
│
├── 🚀 Start Scripts
│   ├── 📄 Ender3V2-Sprite-Start.gcode  — Universal start (slicer variables)
│   ├── 📄 Start-PLA.gcode              — PLA / PLA+ optimised start
│   └── 📄 Start-ABS.gcode              — ABS / ASA start (enclosure required)
│
├── 🏁 End Scripts
│   ├── 📄 Ender3V2-Sprite-End.gcode    — Universal end (slicer variables)
│   ├── 📄 End-PLA.gcode                — PLA / PLA+ optimised end
│   └── 📄 End-ABS.gcode                — ABS / ASA end (slow cool)
│
├── ⚙️  Firmware Configuration
│   └── 📄 Ender2V2SpriteConfigurationFile.gcode — Professional Firmware settings
│
└── 🎨 Display Themes
    ├── 📄 Default Theme Menu.gcode     — Stock green theme
    ├── 📄 Blue Theme Menu.gcode        — Blue colour scheme
    ├── 📄 Grey Theme Menu.gcode        — Grey colour scheme
    ├── 📄 Purple Theme Menu.gcode      — Purple colour scheme
    └── 📄 red Theme Menu.gcode         — Red colour scheme

🚀 Start G-Code Scripts

Universal Start (Ender3V2-Sprite-Start.gcode)

Uses Cura slicer variables ({material_bed_temperature_layer_0} etc.) so temperatures are pulled automatically from your slicer profile. Use this as your default in Cura for maximum flexibility across materials.

Sequence:

  1. Pre-heat nozzle to 150°C (softens residual filament, no ooze)
  2. Heat bed to slicer material temperature
  3. Home all axes
  4. Run UBL 4-point quick tilt correction + load mesh slot 0
  5. Fade mesh correction over 5mm
  6. Move to prime position
  7. Heat nozzle to print temperature
  8. Double prime line (relative extrusion — easy to tune)
  9. Reset and prepare for print
  10. Beep notification

PLA Start (Start-PLA.gcode)

Hardcoded for PLA at 210°C nozzle / 60°C bed. Use this when you want explicit control rather than relying on slicer variables.

Key PLA settings:

Setting Value
Nozzle temp 210°C (215°C for PLA+)
Bed temp 60°C
Fan 100% from layer 2
Retraction 1mm @ 45mm/s
First layer speed 25mm/s

ABS Start (Start-ABS.gcode)

Designed for the enclosed heated cabinet build. Includes a 3-minute enclosure heat soak before homing to ensure thermal stability and prevent warping.

Key ABS settings:

Setting Value
Nozzle temp 240°C (245°C for ASA)
Bed temp 100°C (105°C for ASA)
Chamber temp 45–50°C minimum
Fan 0–20% max
Retraction 1mm @ 45mm/s
First layer speed 20mm/s
Heat soak 3 minutes (adjust to taste)

⚠️ ABS requires the enclosure to be closed during the entire print. Opening it causes thermal shock which leads to warping and layer delamination.


🏁 End G-Code Scripts

Universal End (Ender3V2-Sprite-End.gcode)

Works with any material. Retracts 1mm (appropriate for Sprite direct drive), presents the print, cools down, and disables motors.

PLA End (End-PLA.gcode)

Runs a brief full-fan blast after print completion to speed up cooling, then shuts everything down.

ABS End (End-ABS.gcode)

Slow cool sequence — critical for ABS to prevent warping:

  1. Fan stays OFF
  2. Bed holds at 60°C for 5 minutes
  3. Then bed turns off completely
  4. Double beep reminds you to wait before opening the enclosure

⏳ Wait 15–20 minutes after the print finishes before opening the enclosure.


⚙️ Firmware Configuration (Ender2V2SpriteConfigurationFile.gcode)

Applied directly to the printer via SD card. Sets up:

Setting Value Notes
Brightness 150 M256 B150
Power loss recovery Enabled M413 S1 — resumes print after power outage
Filament change 200mm load/unload M603 L200 U200
Probe feedrate 800mm/min C851 S800
Mesh insets 5mm all sides C29 L25 R195 F25 B195
Mesh size 5x5 grid N5
Mesh bed temp 50°C T50 — matches PLA bed temp
Bed dimensions 220x220mm C102 X220 Y220
Build volume 230x230x240mm C101 X230 Y230 Z240
Filament sensor Active LOW C412 M0

💡 Tip: For ABS printing, change T50 to T100 in the mesh command so leveling happens at ABS bed temperature for more accurate compensation.


🎨 Display Themes

Apply themes via SD card. Each file sets the LCD colour scheme and saves to EEPROM.

Theme Description
Default Stock Creality green
Blue Cool blue tones
Grey Neutral grey
Purple Deep purple
Red Warm red

To apply a theme:

  1. Copy the theme .gcode file to the root of an SD card
  2. Insert into printer and print the file
  3. The printer will apply colours, save to EEPROM, and reboot

🔧 How to Use in Cura

Universal Scripts (recommended)

  1. Open Cura → Printer Settings → Machine Settings
  2. Paste contents of Ender3V2-Sprite-Start.gcode into Start G-code
  3. Paste contents of Ender3V2-Sprite-End.gcode into End G-code

Material-Specific Scripts

  1. Create separate printer profiles in Cura for PLA and ABS
  2. Use Start-PLA.gcode / End-PLA.gcode in the PLA profile
  3. Use Start-ABS.gcode / End-ABS.gcode in the ABS profile

💡 Key Improvements Over Stock G-Code

Issue Old Behaviour Improved Behaviour
Nozzle pre-heat Cold during homing 150°C during homing (softens residual filament)
UBL fade height 10mm 5mm (correction where it matters)
Retraction 4mm total 1mm + 1mm (correct for Sprite direct drive)
Prime line travel Z0.03 (dangerous) Z0.2 travel → Z0.3 prime
Prime extrusion Absolute (harder to tune) Relative (easy to tune)
Motor disable Instant 2 second delay (prevents bed drop)
ABS cooling Immediate shutdown Slow cool with bed hold at 60°C
Enclosure heat soak None 3-minute soak before homing

⚠️ Important Notes

  • Sprite Direct Drive — retraction should be 1–2mm maximum. More causes grinding and clogs
  • UBL Mesh Slot 0 — these scripts load mesh slot 0 (G29 L0). If you save your mesh to a different slot, update this value
  • Power Loss Recovery — enabled (M413 S1) in all start scripts and configuration file. The printer will resume a print automatically after a power outage
  • ABS Ventilation — ABS fumes are hazardous. Route enclosure ventilation outside your workspace, not into the room
  • Heat Soak Time — the 3-minute ABS heat soak (G4 S180) may need adjusting based on your cabinet's insulation quality

Built for the Ender 3 V2 with Sprite extruder and CR-Touch probe running Professional Firmware. Maintained by BobHood

About

Storage for the custom G-Code start up and End codes for my Custom Ender 3 V2 with Sprite Direct drive.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages