HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
tmc51x0_test_config::MotorConfig_17HS4401S Struct Reference

Motor Configuration for 17HS4401S-PG518 NEMA 17 Stepper Motor (WITH GEARBOX) More...

#include <esp32_tmc51x0_test_config.hpp>

Static Public Attributes

static constexpr uint16_t RATED_CURRENT_MA = 1700
 
static constexpr uint32_t RESISTANCE_MOHM = 1500
 
static constexpr float INDUCTANCE_MH = 3.2f
 
static constexpr float GEAR_RATIO = 5.18f
 
static constexpr uint16_t MOTOR_FULL_STEPS = 200
 
static constexpr uint16_t OUTPUT_FULL_STEPS = static_cast<uint16_t>(MOTOR_FULL_STEPS * GEAR_RATIO)
 
static constexpr uint32_t SUPPLY_VOLTAGE_MV = 24000
 
static constexpr uint16_t TARGET_RUN_CURRENT_MA = 1880
 
static constexpr uint16_t TARGET_HOLD_CURRENT_MA = 940
 
static constexpr tmc51x0::MicrostepResolution MRES = tmc51x0::MicrostepResolution::MRES_256
 
static constexpr bool INTERPOLATION = true
 
static constexpr uint8_t TOFF = 5
 
static constexpr uint8_t HEND = 3
 
static constexpr uint8_t HSTRT = 4
 
static constexpr uint8_t TBL = 2
 
static constexpr bool STEALTH_AUTOSCALE = true
 
static constexpr bool STEALTH_AUTOGRAD = true
 
static constexpr uint8_t STEALTH_FREQ = 1
 
static constexpr uint8_t STEALTH_OFS = 30
 
static constexpr float RAMP_VSTART_RPM = 3.0f
 
static constexpr float RAMP_VSTOP_RPM = 5.0f
 
static constexpr float RAMP_VMAX_RPM = 120.0f
 
static constexpr float RAMP_AMAX_REV_S2 = 2.0f
 
static constexpr float RAMP_DMAX_REV_S2 = 2.0f
 
static constexpr float RAMP_A1_REV_S2 = 1.0f
 
static constexpr float RAMP_D1_REV_S2 = 1.0f
 
static constexpr float RAMP_V1_RPM = 36.0f
 
static constexpr float RAMP_TPOWERDOWN_MS = 100.0f
 
static constexpr float RAMP_TZEROWAIT_MS = 0.0f
 
static constexpr float IHOLDDELAY_MS = 300.0f
 
static constexpr float STEALTH_VELOCITY_THRESHOLD_RPM = 30.0f
 

Detailed Description

Motor Configuration for 17HS4401S-PG518 NEMA 17 Stepper Motor (WITH GEARBOX)

Model: 17HS4401S-PG518 (with Planetary Gearbox)

  • Rated Current: 1.68A / Phase
  • Step Angle (Motor): 1.8°
  • Holding Torque (Motor): 40Ncm (before gearbox)
  • Gear Ratio: 5.18:1 (Planetary)
  • Steps/Rev (Output Shaft): 200 * 5.18 = 1036 steps

Driver Settings for Smoothness:

  • Microsteps: 256 (MRES=0) for maximum smoothness
  • Current: Run=1.88A (~112%), Hold=0.94A (~56%)
  • Global Scaler: 160 (Optimal range >128)
  • Chopper: TOFF=5, HEND=3, HSTRT=4 (Typical for NEMA17)

Member Data Documentation

◆ GEAR_RATIO

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::GEAR_RATIO = 5.18f
staticconstexpr

◆ HEND

constexpr uint8_t tmc51x0_test_config::MotorConfig_17HS4401S::HEND = 3
staticconstexpr

◆ HSTRT

constexpr uint8_t tmc51x0_test_config::MotorConfig_17HS4401S::HSTRT = 4
staticconstexpr

◆ IHOLDDELAY_MS

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::IHOLDDELAY_MS = 300.0f
staticconstexpr

◆ INDUCTANCE_MH

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::INDUCTANCE_MH = 3.2f
staticconstexpr

◆ INTERPOLATION

constexpr bool tmc51x0_test_config::MotorConfig_17HS4401S::INTERPOLATION = true
staticconstexpr

◆ MOTOR_FULL_STEPS

constexpr uint16_t tmc51x0_test_config::MotorConfig_17HS4401S::MOTOR_FULL_STEPS = 200
staticconstexpr

◆ MRES

constexpr tmc51x0::MicrostepResolution tmc51x0_test_config::MotorConfig_17HS4401S::MRES = tmc51x0::MicrostepResolution::MRES_256
staticconstexpr

◆ OUTPUT_FULL_STEPS

constexpr uint16_t tmc51x0_test_config::MotorConfig_17HS4401S::OUTPUT_FULL_STEPS = static_cast<uint16_t>(MOTOR_FULL_STEPS * GEAR_RATIO)
staticconstexpr

◆ RAMP_A1_REV_S2

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_A1_REV_S2 = 1.0f
staticconstexpr

◆ RAMP_AMAX_REV_S2

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_AMAX_REV_S2 = 2.0f
staticconstexpr

◆ RAMP_D1_REV_S2

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_D1_REV_S2 = 1.0f
staticconstexpr

◆ RAMP_DMAX_REV_S2

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_DMAX_REV_S2 = 2.0f
staticconstexpr

◆ RAMP_TPOWERDOWN_MS

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_TPOWERDOWN_MS = 100.0f
staticconstexpr

◆ RAMP_TZEROWAIT_MS

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_TZEROWAIT_MS = 0.0f
staticconstexpr

◆ RAMP_V1_RPM

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_V1_RPM = 36.0f
staticconstexpr

◆ RAMP_VMAX_RPM

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_VMAX_RPM = 120.0f
staticconstexpr

◆ RAMP_VSTART_RPM

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_VSTART_RPM = 3.0f
staticconstexpr

◆ RAMP_VSTOP_RPM

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::RAMP_VSTOP_RPM = 5.0f
staticconstexpr

◆ RATED_CURRENT_MA

constexpr uint16_t tmc51x0_test_config::MotorConfig_17HS4401S::RATED_CURRENT_MA = 1700
staticconstexpr

◆ RESISTANCE_MOHM

constexpr uint32_t tmc51x0_test_config::MotorConfig_17HS4401S::RESISTANCE_MOHM = 1500
staticconstexpr

◆ STEALTH_AUTOGRAD

constexpr bool tmc51x0_test_config::MotorConfig_17HS4401S::STEALTH_AUTOGRAD = true
staticconstexpr

◆ STEALTH_AUTOSCALE

constexpr bool tmc51x0_test_config::MotorConfig_17HS4401S::STEALTH_AUTOSCALE = true
staticconstexpr

◆ STEALTH_FREQ

constexpr uint8_t tmc51x0_test_config::MotorConfig_17HS4401S::STEALTH_FREQ = 1
staticconstexpr

◆ STEALTH_OFS

constexpr uint8_t tmc51x0_test_config::MotorConfig_17HS4401S::STEALTH_OFS = 30
staticconstexpr

◆ STEALTH_VELOCITY_THRESHOLD_RPM

constexpr float tmc51x0_test_config::MotorConfig_17HS4401S::STEALTH_VELOCITY_THRESHOLD_RPM = 30.0f
staticconstexpr

◆ SUPPLY_VOLTAGE_MV

constexpr uint32_t tmc51x0_test_config::MotorConfig_17HS4401S::SUPPLY_VOLTAGE_MV = 24000
staticconstexpr

◆ TARGET_HOLD_CURRENT_MA

constexpr uint16_t tmc51x0_test_config::MotorConfig_17HS4401S::TARGET_HOLD_CURRENT_MA = 940
staticconstexpr

◆ TARGET_RUN_CURRENT_MA

constexpr uint16_t tmc51x0_test_config::MotorConfig_17HS4401S::TARGET_RUN_CURRENT_MA = 1880
staticconstexpr

◆ TBL

constexpr uint8_t tmc51x0_test_config::MotorConfig_17HS4401S::TBL = 2
staticconstexpr

◆ TOFF

constexpr uint8_t tmc51x0_test_config::MotorConfig_17HS4401S::TOFF = 5
staticconstexpr

The documentation for this struct was generated from the following file: