<p>The potmeter does not work in UART operation, see e.g. <a href="https://www.instructables.com/id/UART-This-Serial-Control-of-Stepper-Motors-With-th/" rel="nofollow noreferrer">this quote</a>:</p>
<blockquote>
<p>You don't have to fiddle with jumpers to set your micro-steps, just
change it in the firmware, and you can dynamically change the amount
of current going to each stepper motor (no more adjusting that small
potentiometer on the driver board) just by sending a GCode command
(M906).</p>
</blockquote>
<p>So, you cannot change the Vref of a UART operated stepper driver, setting the current directly is the way to go on UART operated stepper drivers; in fact that is actually what you are doing on non-UART operated stepper drivers, you change the Vref to change the current through the stepper motor, the higher the voltage the higher the current through the stepper the more torque the stepper has.</p>

CC BY-SA 4.0
2020-07-08T12:35:30.627Z
You are right. I found now in the datasheet on page 5: "STEP/DIR Driver with Full Diagnostics and Control" ... "This mode allows replacing all control lines like ENN, DIAG, INDEX, MS1, MS2, and analog current
setting VREF by a single interface line. This way, only three signals are required for full control: STEP, DIR and PDN_UART. Even motion without external STEP pulses is provided by an internal programmable step pulse generator: Just set the desired motor velocity." This means that I may be able to use only three data lines per TMC! I have to check Klipper
FarO
CC BY-SA 4.0
2020-07-07T17:44:43.660Z
2021-06-08T09:31:38.490Z
2021-06-08T09:31:38.490Z
0scar
<p>I'm going to use <a href="https://learn.watterott.com/silentstepstick/" rel="nofollow noreferrer">TMC2208 stepstick</a> in a printer and the firmware can control via UART the current during printing and during holding (static, no movement): the firmware has an explicit setting for running current and for holding current.</p>
<p>In this case, should I care about the physical trimmer which controls the Vref?</p>
<p>I tried to understand the <a href="https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC220x_TMC2224_datasheet_Rev1.09.pdf" rel="nofollow noreferrer">TMC2208 datasheet</a> (page 50) when it's talking about current control but I don't understand whether the Vref becomes superfluous or it still acts as a maximum value which the UART must obey.</p>

<stepper-driver><tmc2208>
Is the Vref trimmer relevant on TMC2208 in UART mode?
FarO
# Is the Vref trimmer relevant on TMC2208 in UART mode?

(Asked by: username_0 on 2020-07-02)

I'm going to use [TMC2208 stepstick](https://learn.watterott.com/silentstepstick/) in a printer and the firmware can control via UART the current during printing and during holding (static, no movement): the firmware has an explicit setting for running current and for holding current.

In this case, should I care about the physical trimmer which controls the Vref?

I tried to understand the [TMC2208 datasheet](https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC220x_TMC2224_datasheet_Rev1.09.pdf) (page 50) when it's talking about current control but I don't understand whether the Vref becomes superfluous or it still acts as a maximum value which the UART must obey.

**Tags:** stepper-driver, tmc2208

---

## 1 answers

### Answer by username_1 on 2020-07-07. Score: 1 | Accepted answer

The potmeter does not work in UART operation, see e.g. [this quote](https://www.instructables.com/id/UART-This-Serial-Control-of-Stepper-Motors-With-th/):

> You don't have to fiddle with jumpers to set your micro-steps, just
> change it in the firmware, and you can dynamically change the amount
> of current going to each stepper motor (no more adjusting that small
> potentiometer on the driver board) just by sending a GCode command
> (M906).

So, you cannot change the Vref of a UART operated stepper driver, setting the current directly is the way to go on UART operated stepper drivers; in fact that is actually what you are doing on non-UART operated stepper drivers, you change the Vref to change the current through the stepper motor, the higher the voltage the higher the current through the stepper the more torque the stepper has.

> **Comments:**
> **username_0**: You are right. I found now in the datasheet on page 5: "STEP/DIR Driver with Full Diagnostics and Control" ... "This mode allows replacing all control lines like ENN, DIAG, INDEX, MS1, MS2, and analog current setting VREF by a single interface line. This way, only three signals are required for full control: STEP, DIR and PDN_UART. Even motion without external STEP pulses is provided by an internal programmable step pulse generator: Just set the desired motor velocity." This means that I may be able to use only three data lines per TMC! I have to check Klipper  

---

