• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » Motor Control and PFC Control Developers Kit
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Motor Control and PFC Control Developers Kit

    Motor Control and PFC Control Developers Kit

    This question is not answered
    Manas Sawant
    Posted by Manas Sawant
    on Dec 01 2009 12:15 PM
    Intellectual280 points

    Hi,

     

    I am currently using the Motor Control and PFC Control Developers Kit kit to achieve speed and position control. I wish to use the F2808 control card with the above kit which is supplied with a F28035 control card. I wish to use the Ecaps on F2808 control card for position sensing. I am trying to figure out what changes I need to make to the examples supplied with the kit to enable the ecaps on the 2808.

     

    I am wondering if I need to make any changes to the 2xPM_Motors-DevInit_F2803x.c

    Also is there a source file for Initializing the Motor Control Dev Kit for use with the F2808 control card.

     

     

    -Manas

    Motor Control Motor Control Development Kit F2808 control card
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Brett Larimore
      Posted by Brett Larimore
      on Dec 01 2009 13:53 PM
      Mastermind18460 points

      Manas,

      I will answer your question and give comments one by one below:

      ----

      I am currently using the Motor Control and PFC Control Developers Kit kit to achieve speed and position control. I wish to use the F2808 control card with the above kit which is supplied with a F28035 control card. I wish to use the Ecaps on F2808 control card for position sensing. I am trying to figure out what changes I need to make to the examples supplied with the kit to enable the ecaps on the 2808.


      > Unfortunately, there has not been a port of the F2808 to the "Motor Control and PFC Developer's Kit", although much of this project's code can be used.  The current Digital Motor Control library (http://focus.ti.com/mcu/docs/mcuorphan.tsp?contentId=51397) supports the F2808 and this could be used instead as your base project or as a good reference for porting the existing 2xPM_Motors project to the F2808.  As you are likely aware, if your motor has an encoder, it may be more useful to use the F28035's QEP peripheral which can be used to sense position/speed.

      I am wondering if I need to make any changes to the 2xPM_Motors-DevInit_F2803x.c .  

      > I would recommend taking a look at the FlashingLEDs-DevInit_F280x.c file that should exist at "C:\TI_F28xxx_SysSW\FlashingLeds".  You would then need to redefine the functionality in this file to match the 2xPM_Motors-DevInit_F2803x.c

      Also is there a source file for Initializing the Motor Control Dev Kit for use with the F2808 control card.

      > Editing the DevInit file should take care of most of the initialization required for the controlCARD.  The other pieces of the project that would need to be edited would be:

      • You will likely use a 100MHz clock frequency for the F2808 instead of the 60MHz clock frequency on the F28035.  Since the PWM periods are based off of the system clock, the PWM periods would need to increase to keep the PWM switching frequency at 10kHz or whatever speed your project requires. Any other peripherals based off the system clock would also need to be slightly edited.
      • The ADC peripheral is different between the F2808 and the F28035.  It will be useful to use the F2808 digital motor control library as a reference here.


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manas Sawant
      Posted by Manas Sawant
      on Dec 01 2009 14:23 PM
      Intellectual280 points

      Brett,

      Thank you for the reply. I am sure it sheds some light.

      I am aware of the QEP capability of the board. However my application requires me to use hall effect sensors for position measurement. The 28035 contains only 1 ECAP module and I need 3 to estimate the position within 120 degree accuracy, hence the 2808 control card.

      I wish to know if any of the motor control examples supplied with the 2808 motor control library would work directly with the motor control pfc kit?

       

      Thank you,

      Manas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Brett Larimore
      Posted by Brett Larimore
      on Dec 01 2009 16:24 PM
      Mastermind18460 points

      Manas,

      If your application is BLDC, it may be possible to use GPIO inputs to sense the Hall Effect sensors.  You would then poll a series of GPIO in the ISR to move the control to the next PWM sector.  I assume that your application is permanent magnet synchronous, but I thought I would list that option here for others.

      Unfortunately, I don't believe we have an example that has the F2808 on the Motor Control + PFC kit.  Porting will be necessary. Some notes:

      • The motor control library I previously linked was built with the DMC550 + F2808 eZDSP in mind. (http://www.spectrumdigital.com/product_info.php?products_id=140, http://www.spectrumdigital.com/product_info.php?&products_id=73).  The MotorControl+PFC kit is really our first move away from this DMC550 board and into an overall better motor control user experience.
      • If you choose the F2808 + MotorControl+PFC kit path, you may want to replace C37 and C38 with a digikey part number 718-1671-1.  The previous capacitors we used had a slight issue with regard to noise.


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Arefeen
      Posted by Arefeen
      on Dec 01 2009 21:28 PM
      Genius5170 points

      Hello Manas

      As Brett mentioned in many cases polling GPIO may be sufficient for a BLDC trapezoidal control. However, depending on your maximum speed you may run into some issues with polling and in those cases if you have to use interurpt driven technique then you may consider configuring  regular GPIOs to receive external interrupt. In this configuration one Hall will use  capture and the remaning two Halls will use regular GPIO with external interrupts. Some time back I used this configuration to operate a small BLDC drive around 40KRPM. By the way, if you are operating at a high RPM then interestingly you may actually get better performance with a sensorless algorithm than hall based implementation.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manas Sawant
      Posted by Manas Sawant
      on Dec 01 2009 23:21 PM
      Intellectual280 points

      Arafeen,

      Thank you for your reply. I am aware that the Sliding Mode observer provides sufficient performance at higher RPM, however my application needs calibration of the motor at lower speeds. I would like to be able to control the position at a lower rpm. The motor needs to reset to a predetermined  position.

       

      -Manas

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Arefeen
      Posted by Arefeen
      on Dec 02 2009 08:11 AM
      Genius5170 points

      Thanks for the clarification .. by the way what level of position resolution are you looking for? I am assuming you will run some sort of extrapolation between two Hall transisitons as at low speed 120 degree spacing of Hall signals may not provide enough resolution. Or may be you will have an encoder - if it is okay I am interested to know more about your motor calibartion concept.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manas Sawant
      Posted by Manas Sawant
      on Dec 02 2009 08:49 AM
      Intellectual280 points

      Arefeen,

      Let me explain:

      The motor is fixed to a 23:1 gear head. This means for every 120 degree motion of the rotor shaft, the gearhead shaft would rotate around 5.2 degrees. This accuracy is acceptable for my application.

      Depending on the hall sensor outputs which I will feed to the ECAP modules, I would know exactly in what sector the motor is and implement control. The ECAP's on the 2808 give a 10-ns time resolution. This should be sufficient.

      -Manas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manas Sawant
      Posted by Manas Sawant
      on Dec 17 2009 09:40 AM
      Intellectual280 points

      Arafeen,

       

      I wish to know what is the transfer function model used to obtain the PID gains on the 2xPMSM example in the Motor control kit examples bundle.

       

      I wish to go a step further with the control algorith.

       

      -Manas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Arefeen
      Posted by Arefeen
      on Dec 17 2009 10:03 AM
      Genius5170 points

      Hello Manas

      Sorry, I am not familiar with this code but assuming the documentation describes the transfer functions. I am sure TI team will clarify.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Dec 17 2009 11:20 AM
      Mastermind22795 points

      download and install the DMC Library

      http://focus.ti.com/docs/toolsw/folders/print/sprc215.html

      look here

      C:\tidcs\DMC\c28\v32x\lib\doc\pid_reg3.pdf

      for documentation on the PID module.

       

      BTW - we are working on a clean-up, optimization, and overall better user experience with the DMC software. You'll see part one in January :)

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manas Sawant
      Posted by Manas Sawant
      on Dec 17 2009 12:48 PM
      Intellectual280 points

      Chris,

      Thank You.

      Well I am aware of the documentation on the DMC lib. What I meant was what BLDC model has been used during the controller design process for the Anaheim Automation BLY172S-24V-4000 motor.This transfer function would have been used by the TI team to obtain the PID gains.

       

      -Manas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Dec 17 2009 16:25 PM
      Mastermind22795 points

      Manas,

      For the most part we tune on the fly, but we do have an old spreadsheet that we used for much of the original PID work

      I had to find it...it was buried!  We need to get some of these things pulled into a new DMC revision.

      Install the old F24x PMSM3_2 http://focus.ti.com/docs/toolsw/folders/print/sprc109.html

      look here

      C:\tidcs\DMC\c24\v31x\sys\pmsm3_2\asm\pid.xls

      and you'll see the equations we used.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Mar 08 2010 11:34 AM
      Expert1300 points

      Hi all,

      In the Motor Control kit mentioned above, there is this line in 2xPM_Motors-Settings.h:

      #define BASE_FREQ       200            // Base electrical frequency (Hz)

      Can some explain what the base_freq term is, and how it is derived? I believe it can be used to calculate max RPM, but somehow, it's derivation eludes me. I am trying to port the F28035 code to F28335.

      Thanks,

      Tim

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Arefeen
      Posted by Arefeen
      on Mar 08 2010 18:05 PM
      Genius5170 points

      I am not familiar with the latest example code but most likely base frequency is utilized for per unit calculations so that all items can be kept in percentage instead of absolute value. This will make code more portable and easier to modify. There must be good reasons to select 200Hz as the base frequency which only TI folks can clarify.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use