Marlin 1.1.x firmware for Sunhokey Prusa i4 printer


Important Notes about BLTouch sensor

This Marlin firmware customization is for Sunhokey Prusa i4 3D printer equipped with CLONE of BLTouch sensor.

If you have Original ANTCLABS BLTouch Sensor - please replace modified Conditionals_LCD.h file
with original version /Marlin118/Original/Conditionals_LCD.h

Another example of i4 BLTouch hardware setup may be found here



Other changes

This firmware enables saving settings to EEPROM, reduce LCD panel encoder sensitivity and contains other useful configurations

I've also modified Marlin menu tree for easier access to axes movement and BLTouch functions. If you prefer original Marlin menus
then just replace ultralcd.cpp file with it's original version /Marlin118/Original/ultralcd.cpp


First test run after new firmware upload

To be safe and not broke your printhead or bed surface, please follow these recommendations on first test run:

  1. Move printhead to the center of print area (all x,y,z axes) before test, be sure to raise Z at least 100mm above print bed
  2. Put your hand on main power switch and be ready to switch printer off immediately
  3. Select "Prepare" -> "Auto home" menu item, wait for the X and Y axis homing finished
  4. Trigger BLTouch probe with finger right after Z homing process started to see if sensor behaves as expected
  5. If something goes wrong - power off your printer immediately before it will hit print bed or broke BLTouch

Links to firmwares

How to configure BLTouch Z Offset

Custom G-Code I use in Slic3r slicing software

Start Printing G-Code End Printing G-Code
M80    ; Power ON printer
M104 S[first_layer_temperature]
M190 S[first_layer_bed_temperature]
M109 S[first_layer_temperature]
G28    ; home all axes
G29    ; auto-level bed
G1 Z5  ; Initial printhead positioning
G1 X30 Y30 F3000
G1 X0 Y170  ; move out bed
M84         ; disable motors
M106 S200   ; turn on fan
M140 S0     ; turn off bed heater
M104 S0     ; turn off nozzle heater
G4 S300     ; Wait 5 minutes to cooldown
M81         ; Power OFF the printer