element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Review Blogs Stepper Motor Driver Kit + Motor - Positional Accuracy
  • Blogs
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: Workshopshed
  • Date Created: 24 Aug 2019 9:29 PM Date Created
  • Views 662 views
  • Likes 3 likes
  • Comments 1 comment
Related
Recommended
  • trinamic
  • stepper

Stepper Motor Driver Kit + Motor - Positional Accuracy

Workshopshed
Workshopshed
24 Aug 2019

The next test for the TMC5161 was positional accuracy. This is where my test rig came in. I fixed the motor to one bracket and attached the 3D printed drum. A waxed cotton thread was wrapped around the drum twice for grip and then fed around the idler at the far end of the test rig. The tension was provided with some rubber bands. Finally a card was added in the middle of the rig and the cord was marked with white paint.

imageimage

This time the position mode in the TMCL-IDE was used along with the position graph. The position mode has controls to set the acceleration including two modes of trapisoidal and six point. The controls also allow you to move a specific number of positions (not sure if this is steps or microsteps) and to go to a specific position. I used the clear button to zero my rig with the marked lined up with the card. I then experimented with the speed and acceleration settings. It was a little hard to control with the slow acceleration so this was increased to make the positioning a bit more snappy. The settings were reduced down so it was easier to film. I used the alternating mode to move the motor repeatedly back and forth. The "move by" setting seemed to max out at 51200 for some reason but this was sufficient for my testing.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

For the traposoidal mode I did get some misalignment at higher settings. I checked with some marks on the cord/drum that this was in fact the cord slipping on the drum and not the stepper driver failing to return to the right position. Reducing the acceleration, reduced the slippage.

image

For the 6 point mode the driver uses two sets of acceleration parameters. It accelerates till it hits a specific speed then swaps to the next setting until it reaches maximum speed. As you can see from the graph this means that it can reach the maximum velocity quicker and also the desired position, approx 25% quicker in fact. I found that this mode also had less slippage than for the trapisoidal mode.

image

There was no evidence at any point that the motor was skipping steps, however the loads on this test are extremely small.

 

One important thing to remember is that the acceleration, speed and position control is being handled by the driver chip not the development board so if you wanted you could control this kind of motion with something as simple as an 8 bit micro-controller with a UART connection.  Multiple devices could be connected to the same cabling as the chips can be configured with a unique address. A quick search showed a simple library for controlling these chips from Arduino written by https://github.com/teemuatlut/TMCStepper

 

image

image

 

The other key point demonstrated by my test is that positional accuracy is a function of all the components in the system; the motor, the driver and all the mechanical components.

  • Sign in to reply

Top Comments

  • clem57
    clem57 over 6 years ago +1
    Thanks Workshopshed for excellent write up.
  • clem57
    clem57 over 6 years ago

    Thanks Workshopshed for excellent write up.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube