# EMR tilt detection

## Overview

EMR pens do NOT report the pen's tilt to the tablet. For example, it doesn't tell the tablet, "I am tilted by 5 degrees."

Instead, an EMR digitizer can detect the tilt of the pen just by examining the strength and shape of the signal the digitizer coils receive from the pen.

## Details

When the pen is perpendicular, the digitizer detects a single perpendicular shape.

<figure><img src="/files/noOr3eBIKsWqxNqgIKFL" alt=""><figcaption></figcaption></figure>

As the pen tilts, it produces two shapes. And the relationship between the two shapes indicates the tilt.

For example, in the diagram below, the pen is pointing to the lower left - meaning the top part of the pen is "falling" toward the lower left of the tablet.

<figure><img src="/files/YQfUVp63UlGI4sw6E3hU" alt=""><figcaption></figcaption></figure>

The work for the EMR sensor and tablet firmware is to detect that there are two signal peaks and then disambiguate them.

Once two peaks are established and their relative strengths and positions are known, then the direction of tilt and amount of tilt can be established and then reported to the computer.

The specific algorithm to do this has, to my knowledge, never been exactly revealed. But those knowledgeable in how signals like this are processed will probably have a clearer idea of how this tilt detection is done.

## **How tilt is reported to the computer**

The tablet measures the tilt in both the x and y directions

<div align="left"><figure><img src="/files/qq22nAgbo0ZMctoFNgT7" alt="" width="375"><figcaption><p>pen not perfectly perpendicular to tablet as indicated by shadow. Diagram shows x &#x26; y components of tilt.</p></figcaption></figure></div>

Measuring as x tilt and y tilt is also equivalent to measuring as azimuth and altitude. Think of azimuth as an angle from the tablet measured from "north" and the altitude as how high the far end of the pen is from the tablet surface.

In the example below, the orange lines indicate the azimuth. The purple line indicates the altitude, also known as elevation.

<figure><img src="/files/hj9zVDL79w41gpomn7Ad" alt="" width="375"><figcaption></figcaption></figure>


---

# 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://docs.sevenpens.com/drawtab/tech/emr/emr-tilt-detection.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.
