# Measuring Bed Flatness

You can easily measure the bed's flatness using the autolevel feature (`G32`). This will probe a grid around the bed and output an mesh array for visualisation. Knowing where you have high/low spots can help you make informed decisions about stock placement or even where to put shims to correct the level.

The trick to this technique is for the autolevel probe points to avoid the mounting holes. To achieve this users have determined the right number of probe points and starting locations for the different model machines. Follow the below instructions to measure the bed flatness.

{% hint style="warning" %}
With your dominant hand, find the red emergency stop button. Become well acquainted.

You and only you are responsible for the safe operation of your machine. E-stop the machine if you are ever in doubt. We not liable for damage to your machine.
{% endhint %}

### [Carvera Air](#user-content-fn-1)[^1]

1. Home the machine
2. Install and calibrate the Probe
3. Move the probe to roughly the center of the front left bolt. I like to be more to the right of center of the bolt just a touch (1mm). For me, this is the MCS location `X-293 Y-206`
4. Go to MDI and run `G32 R1 X17 Y8 A239 B196 I13 J11 H1`
5. Clear and disable the bed compensation map with the command `M370`
6. Grab the [log file](/docs/controller/features/logging.md) from the Kivy directory. It can be found here:

```
Windows: C:\Users\USERNAME\.kivy\logs\
macOS: /Users/USERNAME/.kivy/logs/
Linux: /home/USERNAME/.kivy/logs/
```

7. At the end, there will be a grid of numbers. Remove `[INFO ] MDI Received:` from the lines.
8. Paste the numbers into <https://i.chillrain.com/index.php/3d-printer-auto-bed-leveling-mesh-visualizer/> and click "Visualize"

[^1]: Original guide by Discord user natewalck


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://carvera-community.gitbook.io/docs/guides/measuring-bed-flatness.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
