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::BoardConfig_TMC51x0_BOB Struct Reference

Board hardware configuration for TMC51x0 Break-Out Board (BOB) More...

#include <esp32_tmc51x0_test_config.hpp>

Static Public Attributes

static constexpr uint32_t SENSE_RESISTOR_MOHM = 110
 Sense resistor value in milliohms (0.11Ω - typical for BOB)
 
static constexpr uint32_t CLOCK_FREQUENCY_HZ = 0
 TMC51x0 clock frequency in Hz (0 = use internal 12 MHz oscillator, CLK pin tied to GND)
 
static constexpr float MOSFET_MILLER_CHARGE_NC = 30.0f
 MOSFET Miller charge in nC (~30nC for typical BOB MOSFETs)
 
static constexpr uint32_t BBM_TIME_NS = 200
 Break-before-make time in nanoseconds (~200ns for typical MOSFETs)
 
static constexpr uint16_t S2VS_VOLTAGE_MV = 625
 Short to VS voltage threshold in mV (0 = auto = 625mV)
 
static constexpr uint16_t S2G_VOLTAGE_MV = 625
 Short to GND voltage threshold in mV (0 = auto = 625mV)
 

Detailed Description

Board hardware configuration for TMC51x0 Break-Out Board (BOB)

Defines board-specific hardware parameters for the TMC51x0 Break-Out Board. These values are used for automatic current calculation and power stage configuration.

Board-specific: These parameters depend on the TMC51x0 BOB hardware:

  • Sense resistor value (0.11Ω / 110 mOhm - typical for BOB)
  • Clock frequency (12 MHz internal clock)
  • MOSFET characteristics (typical MOSFETs: Miller charge ~30nC, BBM time ~200ns)
  • Short protection defaults

Note: BOB boards may vary. Adjust these values based on your specific BOB hardware. Common BOB configurations use 0.11Ω sense resistors and standard MOSFETs.

Note: Supply voltage is motor-specific and should be set from MotorConfig, not BoardConfig. The board can handle 12-36V, but the actual voltage depends on the motor being driven.

These values stay the same regardless of which motor is connected or what platform it's used on.

Member Data Documentation

◆ BBM_TIME_NS

constexpr uint32_t tmc51x0_test_config::BoardConfig_TMC51x0_BOB::BBM_TIME_NS = 200
staticconstexpr

Break-before-make time in nanoseconds (~200ns for typical MOSFETs)

◆ CLOCK_FREQUENCY_HZ

constexpr uint32_t tmc51x0_test_config::BoardConfig_TMC51x0_BOB::CLOCK_FREQUENCY_HZ = 0
staticconstexpr

TMC51x0 clock frequency in Hz (0 = use internal 12 MHz oscillator, CLK pin tied to GND)

◆ MOSFET_MILLER_CHARGE_NC

constexpr float tmc51x0_test_config::BoardConfig_TMC51x0_BOB::MOSFET_MILLER_CHARGE_NC = 30.0f
staticconstexpr

MOSFET Miller charge in nC (~30nC for typical BOB MOSFETs)

◆ S2G_VOLTAGE_MV

constexpr uint16_t tmc51x0_test_config::BoardConfig_TMC51x0_BOB::S2G_VOLTAGE_MV = 625
staticconstexpr

Short to GND voltage threshold in mV (0 = auto = 625mV)

◆ S2VS_VOLTAGE_MV

constexpr uint16_t tmc51x0_test_config::BoardConfig_TMC51x0_BOB::S2VS_VOLTAGE_MV = 625
staticconstexpr

Short to VS voltage threshold in mV (0 = auto = 625mV)

◆ SENSE_RESISTOR_MOHM

constexpr uint32_t tmc51x0_test_config::BoardConfig_TMC51x0_BOB::SENSE_RESISTOR_MOHM = 110
staticconstexpr

Sense resistor value in milliohms (0.11Ω - typical for BOB)


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