Usage of "Speed Measurement" Block for TI C2000

1 view (last 30 days)
Werner
Werner on 25 Jul 2012
Commented: Manikandan on 16 Apr 2014
Hi,
i`m just trying to read the speed of an encoder with a C2000 F2808 DSP, using the Embedded Coder Toolbox Block "Speed Measurement".
The encoder got 500 counts per revolution, so the eQEP-unit of a C2000 produces 2000 counts per rev.
Therefore you should scale the theta-input to 1 and give a direction information. (Diff-Constant=1, Low-Pass-Filter-Constant=0)
After not getting the right results on the DSP i tried to simulate the block and i am not getting the right results either.
I`ll send you a picture of my simulation with every signal scope that is useful to measure, hope you can help me. (I would expect getting the 300 RPM out of the RPM-output of the block)
Regards, Werner
Picture:
  1 Comment
Manikandan
Manikandan on 16 Apr 2014
Hi guys,
I use DSP TMS320F2812 for control of BLDC drive. I used 3GPOI's are for detect rotor position from this corresponding switches are ON with aids of PWM block, so that I build code that will be downloaded through RS232 with use of another local compiler to convert .out to .asc file. I was successfully controlled the speed in open loop with online control through serial by using SCI block sets. Now I want to measure the speed of motor, how to calculate speed form the signal out of GPIO in simulink. Otherwise I used QEP and CAP blocks with proper wiring connections.
The problem is the output of CAP or QEP will give the counter values only while motor running and these values are oscillating. Actually my motor one rotation will give two square pulses. Some of other chip block sets will give the period of square eg. dSPIC embedded target block set's from www.kerhuel.eu
Please help me out calculate the speed of motor by using QEP or CAP block so that the output of block i want to get frequency or period of i'm given square, then i will send it to SCI to real time monitor.
I waiting reply,
Thanks and Reg, R.Manikandan,M.E.,(Ph.D)., AP / Department of EEE, The Kavery Engineering College, Mecheri (po), Salem(dt), pin:636453 Tamil Nadu, India. Cell: 9944270473 Email: electricmani@yahoo.co.in

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!