Giter Club home page Giter Club logo

Comments (2)

teemuatlut avatar teemuatlut commented on September 4, 2024

The basic prerequisites for the driver to start operating on the software side are

  • off time > 0
  • run current > 0

The Simple example makes a call to the begin method which then pushes the default register values into the driver.
Digging through the code you can see the boot time defaults here: https://github.com/teemuatlut/TMC2130Stepper/blob/master/src/TMC2130Stepper.h#L414

// Shadow registers
uint32_t  GCONF_sr      = 0x00000000UL,
          IHOLD_IRUN_sr = 0x00000000UL,
          TSTEP_sr      = 0x00000000UL,
          TPWMTHRS_sr   = 0x00000000UL,
          TCOOLTHRS_sr  = 0x00000000UL,
          THIGH_sr      = 0x00000000UL,
          XDIRECT_sr    = 0x00000000UL,
          VDCMIN_sr     = 0x00000000UL,
          MSLUT0_sr     = 0xAAAAB554UL,
          MSLUT1_sr     = 0x4A9554AAUL,
          MSLUT2_sr     = 0x24492929UL,
          MSLUT3_sr     = 0x10104222UL,
          MSLUT4_sr     = 0xFBFFFFFFUL,
          MSLUT5_sr     = 0xB5BB777DUL,
          MSLUT6_sr     = 0x49295556UL,
          MSLUT7_sr     = 0x00404222UL,
          MSLUTSEL_sr   = 0xFFFF8056UL,
          CHOPCONF_sr   = 0x00000000UL,
          COOLCONF_sr   = 0x00000000UL,
          DCCTRL_sr     = 0x00000000UL,
          PWMCONF_sr    = 0x00050480UL,
          tmp_sr        = 0x00000000UL,
          TPOWERDOWN_sr = 0x00000000UL,
          ENCM_CTRL_sr  = 0x00000000UL,
          GSTAT_sr      = 0x00000000UL,
          MSLUTSTART_sr = 0x00F70000UL;

After that an off time value and a typical blank time setting is set.
Finally the example sets the run current.

from tmc2130stepper.

margaret-n-m avatar margaret-n-m commented on September 4, 2024

Thank You very much! I analysed Your settings carefully and implemented them into my code - and the motor finally moved. It seems everything is working as it should be. Thank You again!
Margaret

from tmc2130stepper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.