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

TOPIC: What is the sample rate of the SmartMotor

What is the sample rate of the SmartMotor 5 years ago #268

In the user guide referring to the WAIT command it says "Unless otherwise programmed with
the PID# command, the sample rate is about 4KHz". Does that mean it is some known value close to 4kHz, or does it mean it's somewhere around 4kHz but the exact rate is undefined or variable?

I am intending to use the sample clock to create some velocity profiles with accurate timing so obviously it's quite important!

I notice that in the example program for measuring execution time you have the following line:

d=c/4069 ‘Divide by sample time to get seconds per 1M operations

which implies the clock is running at 4069 Hz. Should that be 4096? It seems like a more sensible number, being 2^12.

Re: What is the sample rate of the SmartMotor 4 years, 12 months ago #281

  • csearcy
  • Posts: 480
  • Karma: 23
For Class4 motors, the default is 4KHz. 4069 is the correct number though that is confusing to those that are used to 12-bit analog systems. WAIT=4069 is one second.

The Class5 motors default to 8KHz.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.73 seconds