---
tag: m0907
title: Trimpot Stepper Motor Current
brief: Set motor current via digital trimpot
author: thinkyhead

group: control
requires: DIGIPOTSS_PIN|HAS_MOTOR_CURRENT_PWM|DIGIPOT_I2C|DAC_STEPPER_CURRENT
eeprom: true

codes: [ M907 ]
related: [ M906 ]

notes:
- Trinamic and L64xx stepper drivers should use [`M906`](/docs/gcode/M906.html) instead.

parameters:

- tag: B
  optional: true
  requires: DIGIPOTSS_PIN | DIGIPOT_I2C
  description: Current for the E1 stepper
  values:
  - tag: current

- tag: C
  optional: true
  requires: DIGIPOT_I2C
  description: Current for the E2 stepper
  values:
  - tag: current

- tag: D
  optional: true
  requires: DIGIPOT_I2C
  description: Current for the E3 stepper
  values:
  - tag: current

- tag: E
  optional: true
  description: Current for the E0 stepper
  values:
  - tag: current

- tag: S
  optional: true
  requires: DIGIPOTSS_PIN | DAC_STEPPER_CURRENT
  description: Set this current on all steppers
  values:
  - tag: current

- tag: X
  optional: true
  description: Current for the X stepper (and the Y stepper with `MOTOR_CURRENT_PWM_XY`)
  values:
  - tag: current

- tag: Y
  optional: true
  description: Current for the Y stepper. (Use `X` with `MOTOR_CURRENT_PWM_XY`)
  values:
  - tag: current

- tag: Z
  optional: true
  description: Current for the Z stepper
  values:
  - tag: current

- tag: I
  optional: true
  since: 2.0.9
  requires: I_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)
  description: Current for the I stepper
  values:
  - tag: current

- tag: J
  optional: true
  since: 2.0.9
  requires: J_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)
  description: Current for the J stepper
  values:
  - tag: current

- tag: K
  optional: true
  since: 2.0.9
  requires: K_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)
  description: Current for the K stepper
  values:
  - tag: current

- tag: U
  optional: true
  since: 2.1
  requires: U_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)
  description: Current for the U stepper
  values:
  - tag: current

- tag: V
  optional: true
  since: 2.1
  requires: V_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)
  description: Current for the V stepper
  values:
  - tag: current

- tag: W
  optional: true
  since: 2.1
  requires: W_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)
  description: Current for the W stepper
  values:
  - tag: current

---

Set digital trimpot motor current using axis codes (`X`, `Y`, `Z`, `E`, etc.) plus `B` and `S`. The unit used for current depends on the type of stepper driver.
