Skip to content

MRR ESPE with Trinamic drivers in UART mode #2

@vivian-ng

Description

@vivian-ng

I received an email asking about TMC2209 drivers in UART mode. I thought it best to move the conversation to a more public space so that the collective wisdom of the open source community can be harnessed.

First, @luc-github has managed to use TMC2208 in standalone (aka "dumb") mode which does not use UART at all. Basically, the driver is configured using jumper pins much like normal "dumb" drivers like A4988.

For the MRR ESPE, the issues with getting UART mode working are:

  1. Native ESP32 pins. Unlike the MRR ESPA, the MRR ESPE has more unused native pins since I2S is being used for stepper control and PWM. So by default, the MRR ESPE has 5 unused pins. If the LCD controller is not used, this frees another 6 pins for a total of 11 pins. Which means 5 axes (5 stepper drivers) can be supported as long as the serial ports for them can be configured.
  2. Hardware serial. While the ESP32 has 3 sets of hardware serial, I have seen a lot of articles regarding getting all 3 to work. Most can get 2 sets working. One set will be used for serial terminal (USB to UART) already; that leaves only one other set of hardware serial for TMC driver in UART mode.
  3. Software serial. The lack of hardware serial is usually overcome with software serial. But software serial support for ESP32 on the TMCStepper library is still being worked on. Unless someone is able to work on the software development for this, software serial will not be an option at all. But if someone manages to develop support for software serial on the ESP32 in the TMCStepper library, the MRR ESPE can theoretically use TMC drivers in UART mode (if the LCD controller is not used).

Consolidating:

  • Trinamic drivers in standalone mode works.
  • Trinamic drivers in SPI mode works. If you need silent operations, TMC2130 drivers can be used. For higher currents, TMC5160 should work too.
  • Trinamic drivers (TMC2208 and TMC2209) in UART mode has the limitations as outlined above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions