M3-CRETE Software Setup

These development notes describe the current software reference and limited motion-check preparation for qualified technical teams. They are not a complete installation, controls-validation, cybersecurity, commissioning, or safety procedure.

Part
3 of 4
Time
~2 hours
Difficulty
Beginner
Tools
Pi + computer
Before you start

Finish Part 1 (Frame) and Part 2 (Wiring) first. The motors and the control board must already be wired and checked. For this guide, keep the big power supply and the pump turned off — we only need the small power for the board and the Raspberry Pi. Motors can move on their own during testing, so keep your hands and tools away from moving parts.

What you need

Words to know

Raspberry Pi
A tiny computer. It runs the printer's main software.
Klipper
The program that tells the motors exactly how and when to move.
Moonraker
A helper program that lets web pages and screens talk to Klipper.
Mainsail
The web page you use to control the printer from any browser.
KlipperScreen
The app that runs on the printer's own touchscreen.
BTT Kraken
The control board. The motors plug into it.
Firmware
A small program that runs on the control board itself.
Flash
To copy a program onto a board or a card.
Config
The settings file that tells Klipper about this machine (its motors, board, and limits).

Part 1 — Put the software on the Raspberry Pi

We will copy a ready-made printer operating system, called MainsailOS, onto the microSD card. MainsailOS already includes Klipper, Moonraker, and Mainsail.

1

Install Raspberry Pi Imager

On your computer, download and install Raspberry Pi Imager from raspberrypi.com/software. It is the tool that writes the operating system to the card.

2

Pick the device and the operating system

Put the microSD card into your computer. Open Raspberry Pi Imager and:

3

Set up Wi-Fi and turn on remote access

Before writing, click the gear / edit settings button. This part saves a lot of trouble later. Set:

Then click Write. Wait for it to finish. This takes several minutes.

Part 2 — Turn it on and open the dashboard

4

Boot the Pi

Put the microSD card into the Raspberry Pi. Connect the touchscreen if you have one. Power on the Pi. The first start takes a few minutes while it sets itself up.

5

Open Mainsail in a browser

On your phone or computer (on the same Wi-Fi), open a browser and go to:

http://m3crete.local/

You should see the Mainsail dashboard. It will show an error like "Klipper not ready" — that is normal for now. We fix it in the next parts.

If that address does not work

Find the Pi's IP address (check your router, or the Pi's screen) and use that instead, like http://192.168.1.50/.

Part 3 — Put firmware on the control board (Kraken)

The Kraken board needs its own small program (firmware). We build it on the Pi, then copy it to the board's microSD card.

6

Connect to the Pi with SSH

On your computer, open a terminal (on Windows, use "PowerShell" or "Windows Terminal"). Type this, using the username you chose, then press Enter and type your password:

ssh [email protected]

You are now "inside" the Pi. The commands below are typed here.

7

Build the firmware

Type these two lines, one at a time:

cd ~/klipper
make menuconfig

A blue menu opens. Use the arrow keys and Enter to set these options (leave everything else as it is):

Press Q to quit the menu, then Y to save. Now build it:

make

When it finishes, the new firmware file is at ~/klipper/out/klipper.bin.

8

Copy the firmware to the Kraken

How to know it worked

Take the card out and check it on your computer. If the file is now named FIRMWARE.CUR, the board flashed correctly. Put the card back in the Kraken.

9

Connect the board to the Pi

Plug the USB cable from the Kraken into the Raspberry Pi. Make sure the board has its own power (the logic power, not the big motor supply yet).

Part 4 — Install the M3-CRETE settings

Now we add the M3-CRETE config (the settings for this exact machine) and the touchscreen app. One script does it all.

10

Download and run the installer

Back in the SSH window (inside the Pi), type these lines one at a time:

cd ~
git clone https://github.com/sunnyday-technologies/M3-CRETE-FIRMWARE.git
cd M3-CRETE-FIRMWARE
bash install.sh

The installer will:

If you do not want the touchscreen app, run bash install.sh --no-screen instead.

Part 5 — Check that everything is talking

11

Look for "Ready"

Go back to Mainsail in your browser (http://m3crete.local/) and refresh the page. At the top it should now say Klipper: Ready. That means the Pi and the board are talking. 🎉

If it does not say Ready

The most common cause is the board address. In the SSH window type ls /dev/serial/by-id/ and copy the line that has "Klipper" in it. Then in Mainsail open printer.cfg, find the serial: line near the top, and paste your line after serial: /dev/serial/by-id/. Click Save & Restart.

Part 6 — First motor test (the 4 Z motors)

This is the moment of truth: making the four Z motors move. We test them one at a time, gently, at low power. Full tuning and the homing setup are covered in Part 4 (Validation).

Safety

Stand clear of the machine. A motor can spin a belt or move the gantry. Keep the big motor power supply and the pump off. Have your hand near the printer's power switch so you can cut power fast if something looks wrong.

12

Wake up the motors

In Mainsail, find the Console (the box where you can type commands). Type:

ZHOLD

All four Z motors should now "hold" — try to turn one by hand and it should resist. To let them go free again, type ZRELEASE.

13

Jog each motor, one at a time

Type these, one at a time. Each one nudges a single motor a small amount:

ZJOG MOTOR=0 DIST=5 VEL=3
ZJOG MOTOR=1 DIST=5 VEL=3
ZJOG MOTOR=2 DIST=5 VEL=3
ZJOG MOTOR=3 DIST=5 VEL=3

Watch each motor. You want to see two things:

To send a corner back down, use a negative number, like ZJOG MOTOR=0 DIST=-5 VEL=3.

That's the software done

If all four motors wake up and move, your software is installed and working end-to-end. Setting the motor power, tuning the built-in stall sensing, and homing all four corners to the top is the next guide: Part 4 — Validation. Do not run a full G28 yet — only the commands above.

Quick checklist

Print this page and tick the boxes as you go.

If you get stuck

Next

Part 4 — Preliminary Motion Checkout. Review the limited current, direction, sensorless-homing, and Z-alignment observations and the professional verification work that remains. It is not safety qualification or permission to print.


M3-CRETE is an experimental open-hardware reference, not a finished certified appliance or construction machine. It is intended for qualified technical users, R&D labs, supervised institutional programs, and experienced builders. Any AC mains wiring, control-box integration, grounding, disconnects, or emergency-stop power work must be done by qualified personnel or a licensed electrician where required. Hardware is published under CERN-OHL-W-2.0; this guide is CC BY 4.0.