Klipper Setup
Installation Klipper plugin
Section titled “Installation Klipper plugin”A script has been made to simplify the process of installing the plugin.
The defaults assumes that klipper is in ~/klipper and the klippy-env is in ~/klippy-env.
This should be standard on KIAUH and MainsailOS.
Run this command via SSH to install, customizing the paths if needed.
curl -s -L https://raw.githubusercontent.com/Cartographer3D/cartographer3d-plugin/refs/heads/main/scripts/install.sh | bash -s -- --klipper ~/klipper --klippy-env ~/klippy-envDownload the Cartographer Firmware Repository
Section titled “Download the Cartographer Firmware Repository”You should download the Cartographer firmware repository to update your probe to the latest compatible firmware.
Run this command via SSH to install.
cd ~git clone https://github.com/Cartographer3D/cartographer_firmware.gitConfigure Moonraker Update Manager
Section titled “Configure Moonraker Update Manager”Modify your moonraker.conf file, via the web interface with the following.
[update_manager cartographer_plugin]type: pythonchannel: stablevirtualenv: ~/klippy-envproject_name: cartographer3d-pluginis_system_service: Falsemanaged_services: klipperinfo_tags: desc=Cartographer Plugin
[update_manager Cartographer Firmware]type: git_repopath: ~/cartographer_firmwareis_system_service: Falseorigin: https://github.com/Cartographer3D/cartographer_firmware.gitprimary_branch: mainConfigure Klipper
Section titled “Configure Klipper”Below are the minimum, required, options listed. Except for the temperature_sensor blocks, you can omit those if you don’t want to monitor temperature.
You will need to adjust this config for your printer and your probe, this is done by modifying the sections labeled `<blank>`
[stepper_z]endstop_pin: probe:z_virtual_endstophoming_retract_dist: 0
[mcu cartographer] # See https://www.klipper3d.org/Config_Reference.html#mcu# Keep either the serial line (USB) or the canbus_uuid line (CAN) and remove the other.serial: <blank>canbus_uuid: <blank>restart_method: command # Not needed for probes using CAN.
[cartographer]mcu: cartographerx_offset: <blank> # This is the offset of your probe from the nozzle tip, to the centre of the coil.y_offset: <blank> # This is the offset of your probe from the nozzle tip, to the centre of the coil.verbose: no # For extra output
[bed_mesh]zero_reference_position: <blank>, <blank> # The centre of your bed.speed: 300horizontal_move_z: 3mesh_min: <blank>, <blank> # The first probed coordinate, nearest to the origin. This coordinate is relative to the probe's location.mesh_max: <blank>, <blank> # The probed coordinate farthest from the origin. This is not necessarily the last point probed, as the probing process occurs in a zig-zag fashion. As with mesh_min, this coordinate is relative to the probe's location.probe_count: 20, 20adaptive_margin: 10mesh_pps: 0,0 # Disable interpolation - mesh is probably dense enough
[temperature_sensor cartographer]sensor_type: temperature_mcusensor_mcu: cartographermin_temp: 5max_temp: 105
[adxl345]# Keep ONE cs_pin line for your probe version.# The wrong pin causes an endless boot loop.cs_pin: cartographer:PA3 # Cartographer V3#cs_pin: cartographer:PA0 # Cartographer V4 - use this line instead of the one abovespi_bus: spi1
[resonance_tester]accel_chip: adxl345probe_points: <blank>, <blank>, 20 # Fill out the blank with x and y coordinates where you want to run the resonance test.Finding the Serial or UUID
Section titled “Finding the Serial or UUID”Note, you need to replace the serial path or UUID with your probes serial path or UUID, this can be found by running the following commands
For USB based probes
ls /dev/serial/by-id/*For CAN based probes
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0Take note of either the Serial ID or the UUID.
Update your probe
Section titled “Update your probe”Now your probe is in your configuration, it is advisable to update the probe to the latest firmware version available to you.
Instructions on how to update your probe are available here.
Calibration
Section titled “Calibration”Cartographer provides two methods of homing.
We recommend always using the default scan method for general homing and using CARTOGRAPHER_TOUCH_HOME after all levelling has been done, just before your print starts.
Continue with Scan Calibration and Touch calibration.

