Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Revolution Counter with Rollover

Revolution Counter with Rollover 3 years 9 months ago #1590

  • JefAWI
  • JefAWI's Avatar
  • OFFLINE
  • Posts: 2
  • Karma: 0
Hi.
I have an application in which I have to run a SmartMotor continuously for several weeks or months as part of a product endurance test. I want to be able to reliably, and without loss, count the number of motor revolutions during the test. It's easy enough to come up with something that counts the revolutions but I'm having trouble with the encoder rollover. Has anyone done this before? Any tips or code that can be shared?

Thanks.

Jeff.
The administrator has disabled public write access.

Re: Revolution Counter with Rollover 3 years 9 months ago #1591

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
If it's a Class5 motor... Status Word 3, Bit 3 gets set when a Wraparound occurs. You could set up an interrupt to trigger on that bit, and increment an EEPROM location or a variable.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.259 seconds