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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Industrial Automation
  • Technologies
  • More
Industrial Automation
Blog Stepper Motor Control with Hercules High-End Timer: Part 1: Hardware Overview
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Industrial Automation to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 26 May 2017 10:50 PM Date Created
  • Views 1994 views
  • Likes 3 likes
  • Comments 2 comments
  • stepper_motor
  • rm57l
  • boosterpack
  • stepper_driver
  • texas_instruments
  • launchpad
Related
Recommended

Stepper Motor Control with Hercules High-End Timer: Part 1: Hardware Overview

Jan Cumps
Jan Cumps
26 May 2017

I'm trying to control an unknown stepper motor with the high-end timer (NHET) module of a Texas Instruments Hercules microcontroller

image

I got a freebee from TI almost a year ago. An unknown stepper motor, a driver board and a Hercules RM57 LaunchPad. The code to run the motor was expected to arrive too (it was an assignment for an internal) but that never materialised. In this blog series I'm trying to program the NHET module so that it sends the right signals to make the stepper step.

 

In the first post I'll review the hardware and check what software components of the RM57 I'll need to drive the motor.

 

 

Hardware

I received the microcontroller, a stepper driver and a motor.

 

MicrocontrollerRM57 on a XL2-RM57L LaunchPadRM57 on a XL2-RM57L LaunchPad
Stepper DriverDRV8711 Stepper Motor Pre-driver and CSD88537ND Dual N-Channel NexFETTM Power MOSFET on a BOOST-DRV8711 BoosterPackDRV8711 Stepper Motor Pre-driver and CSD88537ND Dual N-Channel NexFETTM Power MOSFET on a BOOST-DRV8711 BoosterPack
MotorADAFRUIT 324 Stepper Motor NEMA-17 Size - 200 Steps/Rev, 12V 350mA

 

Motor

Rumours go that it's made by Seiko Denko or Emis. It's available from element14 as the Adafruit 324.

image

 

image

 

It's a 200 stepper with two coils. the wiring image below comes from the Adafruit product page. It needs an H-bridge per coil. These are part of the TI Stepper Motor BoosterPack discussed below.

 

image

 

Stepper Motor Driver

 

image

 

 

Hercules CPU Modules

 

The stepper motor controller determines what's needed.At first glance seems that I need SPI and PWM.

SPI can be done with the Hercules MibSPI module. I guess the PWM will have to come from the NHET.

 

 

Luxury Situation

The Stepper Motor BoosterPack comes with firmware for the TI MSP4320G2 controller.

I have one that I never used (long story short: there was a TI Store campaign where you could buy an MSP430 + CCS Full License for $10. 2 weeks later they released CCS7 that didn't need any license at all ... )

I can use the MSP430 to pre-test the BoosterPack and motor. And to take samples of the signals going from the controller to the driver. Luxury!

(update: I have this working. I have a testbed now to compare stepper profiles. Quite powerful.)

image

Some remarks from trying the application:

  • For some reason, the driver reports nFAULT. The led is dim but it's detected by the software. Something to look into.
  • Current to keep the motor in position: 0.607A. When that current is applied, I can't move the axle by hand. Firmly stuck.
  • Running in Full Step, 512 PPS, takes 0.133A, 1/8 step 0.530A
  • Going above 900 PPS stalls the motor. Anything below that seems to work for a non-loaded motor.

My next step is to try and understand the firmware for the MSP430. I don't know that one and the code is all register based. Nice learning curve ahead...

 

 

Related Blog
Part 1: Hardware Overview
Part 2: Stepper Controller and MSP430 Firmware
Part 3: SPI Commands and Pulse Control
Part 4: Analyse MSP430 PWM Step Signal
Part 5: Hercules RM57 Hardware Provisioning
Part 6: Hercules RM57 SPI
Part 7: HET Assembly Language Test
Part 8: HET Based Pulse Train Output
  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    Nice post Jan. I like the overall feel of the user interface. Can the board be used to test other motors? Could be a very useful tool to look at the stash of stepper motors I have accumulated from recycling…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to DAB

    It can be used for other steppers - up to 52V and 4.5A.

    It can also drive non-steppers. I haven't checked that out though ...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Nice post Jan.

     

    I like the overall feel of the user interface.

    Can the board be used to test other motors?

    Could be a very useful tool to look at the stash of stepper motors I have accumulated from recycling old printers.

     

    DAB

    • 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