• 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 » PMSM sensorless example for F28335
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
  • Forums

    PMSM sensorless example for F28335

    This question is answered
    bluehash
    Posted by bluehash
    on Nov 16 2009 16:10 PM
    Intellectual810 points

    Are there any PMSM examples for the F283x series of controllers. I know there are some that exist for the F2808 and F2812.

    Thanks.

    F28335 PMSM
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • ChrisClearman
      Posted by ChrisClearman
      on Jul 13 2011 09:52 AM
      Mastermind23195 points

      The best explanation is in the system documentation, but it is essentially

      ADC Result, normalized into pu, adjust for offset, normalize to +/-1 pu, scale to 3.3V from 3V ADC input

       

       

      Level 2C – Calibrating the Phase Current Offset

      Note that especially the low power motors draw low amplitude current after closing the speed loop under no-load. The performance of the sensorless control algorithm becomes prone to phase current offset which might stop the motors or cause unstable operation. Therefore, the phase current offset values need to be minimized at this step.

      Set VqTesting, VdTesting and SpeedRef to zero in the code, recompile and run the system and watch the clarke1.As & clarke1.Bs from watch window. Ideally the measured phase currents should be zero in this case. Make sure that the clarke1.As & clarke1.Bs values are less than 0.001 or minimum possible. If not, adjust the offset value in the code by going to:

      clarke1.As= ((AdcMirror.ADCRESULT0)*0.00024414-0.5524)*2*(3.0/3.3);

      and changing IQ15(0.55) offset value (e.g. IQ15(0.5587) or IQ15(0.5488) depending on the sign and amount of the offset).

      Rebuild the project and then repeat the calibration procedure again until the clarke1.As and clarke1.Bs offset values are minimum.

      Note: 2833x devices have 12-bit ADC and the result is can be read from the 16-bit ADC registers, AdcMirror.ADCRESULTn. The current sense result is therefore divided by 2^12 to normalize it in per unit format, and offset subtracted to get an ac quantity. The offset added to the current signal on the HVDMC kit is 1.65V for 3.3 V ADCs. Since the 2833x devices have 3.0V ADCs, 0.55 pu offset (=1.65V / 3.0V) is subtracted from the current measurement in the code. Finally, it is multiplied by two to normalize the measured phase current to ± 1.0 pu. Note that the components on the HVDMC kit scales down 20A peak current to 3.3V, therefore the measurement is rescaled for 3.0V ADCs. Make sure that the ADC input does not exceed 3.0V when 2833x is used.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaetan Lefebvre
      Posted by Gaetan Lefebvre
      on Jul 21 2011 08:32 AM
      Prodigy30 points

      Thanks Chris for this additional information.

      But my problem with the ADC doesn't come from this. In fact, I realized that the EPWMs don't work well. If I send a signal only on EPwm1Regs.CMPA.half.CMPA, the motor turns (and only one phase is undervoltage). The ADCMirror shows that the current isn't a sinus, that's why I thought it was the ADC that didn't work well.

      If I send a signal only on EPwm1Regs.CMPB or only on EPwm2Regs.CMPA.half.CMPA, there is no current in the motor. I compared my code with the example you gave me, but I really can't see the difference.

      "28335"
      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 Jul 21 2011 09:36 AM
      Mastermind23195 points

      "I realized that the EPWMs don't work well"

      I really don't think this is the issue.

      If you connect a bus voltage through an upper switch to the motor, and through a lower switch to ground you will have current through the motor.

      Recommend you look at the code and perhaps the documentation for the ePWM module if you think you aren't setting the PWM outputs correctly.

       


      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • murat karabacak79601
      Posted by murat karabacak79601
      on Jul 21 2011 18:09 PM
      Prodigy50 points

      Hi Chris;

      I am writing MRAS sensorless code for Low Voltage Dual Axis Motor Control + PFC Kit with 28035. I have some problems interested in IQmath and per unit values. Briefly, the problem is below:

      ***The floating point value (3.9) has to be added to Vd (pid1_id.Out) and the floating point value (0.9) has to be added to id (park1.Ds). After these additions, I can perform MRAS code to estimate speed and angle.

      I have tried to succeed in this, but i couldnt. Because, Vd and id are in their own per unit values with global _IQ24 format. If i knew to know base values of id and Vd, i would calculate the per unit values (0.9/idbase) and (3.9/Vdbase).

      How can i calculate these base values, in other words, what should i do to add these floating point values to the per unit Vd and id values?

      Motor Control 28035 "28335" TMDS1MTRPFCKIT TMDSHVMTRPFCKIT High Voltage Motor Control and PFC Developer's Kit
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Wang jihu
      Posted by Wang jihu
      on Mar 06 2012 00:29 AM
      Prodigy10 points

      bluehash

      Are there any PMSM examples for the F283x series of controllers. I know there are some that exist for the F2808 and F2812.

      Thanks.

      F28335 Motor Control "28335"
      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 Mar 06 2012 09:31 AM
      Mastermind18530 points

      Wang Jihu,

      If your question is the same as "bluehash"'s original question, I would recommend taking a look at the TMDSHVMTRPFCKIT.  There is an example specifically designed to control a PMSM motor on this hardware with a F28335 .

      The kit's software can be downloaded for free within controlSUITE. (http://www.ti.com/controlsuite)


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    «23456
    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