• 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 » Level 6 PM sensorless trials with DRV8301 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
  • Level 6 PM sensorless trials with DRV8301 kit

    Level 6 PM sensorless trials with DRV8301 kit

    This question has suggested answer(s)
    indiantuktuk
    Posted by indiantuktuk
    on Apr 23 2012 20:40 PM
    Expert1485 points

    Hi,

    Using DRV8301 kit and PM sensorless code level 6.

    I have a problem.  The motor runs smoothly with Isw=1 (closed loop) but it stops the moment I change the Isw to 2 (speed loop).  Tried rotating the speed control knob (DRV8301 HC kit) with no improvement. 

    On studying the schematics of the kit the speed control knob is connected to ADC B0.  But is not used in the code and its not initialised too. 

    Please suggest how to resolve this.

    thx

    Indiantuktuk

    Level 6
    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 Apr 23 2012 22:36 PM
      Mastermind23135 points

      what motor are you using?

      how did it run in level 5?

      Are you on 6A or 6B?  I always recommend 6B - tuning SMO and the current with a fixed Iq ref (make sure you load the motor) is easier.

      correct, the SW we provide does not use the HW knob

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • indiantuktuk
      Posted by indiantuktuk
      on Apr 24 2012 11:37 AM
      Expert1485 points

      Hi Chris,

      Pl find below the info requested.

      1) The motor is a customer motor with 40 poles.

      2) I did not try Level 5 as I OK with sensored PMSM i.e., level 6A would do.

      3) I am on 6A level.

      You tmentioned the HW knob is not interfaced, but actually the speedcontrol should be done thru' the knob i.e., similar to automotive app.  How would you recommend the next steps.

      Please review & suggest.

      Thx

      Indiantuktuk

      DRV8301
      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 Apr 26 2012 00:47 AM
      Mastermind23135 points

      what did you do to check QEP functionality with your sensor?

      the knob is on the board, we don't use the knob in the example code we provide.  you can certainly add that as needed. we tend to stay digital, doing setpoints through GUI UART or JTAG directly to a memory address/variable.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • indiantuktuk
      Posted by indiantuktuk
      on Apr 26 2012 11:34 AM
      Expert1485 points

      Hi Chris,

      I could run Level 5 successfully.  the estimated speed w.r.t to reference speed is within15% while the encoder i.e., speed1.speed is within 0.5%. 

      I am still unable to run the motor in level 6, Isw=2 closed loop while there is no issue with Isw=1.  Could you please suggest how to sort this.

      Q) what did you do to check QEP functionality with your sensor?

      I checked the functionality of QEP in watch window i.e., speed1.speed & speed1.baserpm etc.

      Pl suggest.

      thx

      Indiantuktuk

      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 Apr 29 2012 22:40 PM
      Mastermind23135 points

      there is a disconnect between your rmp_out and SMO Theta.  Your SMO needs to be further tuned until they are synchronized.

      from step 5

      Set lsw to 1. Now the motor is running close to reference speed. Compare smo1.Theta with rg1.Out via
      PWMDAC with external low-pass filter and an oscilloscope. They should be identical with a small phase
      shift.
      If smo1.Theta does not give the sawtooth waveform, the Kslide and Kslf inside the sliding mode
      observer are required to be re-tuned.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kelly Meemken
      Posted by Kelly Meemken
      on May 10 2012 09:29 AM
      Intellectual435 points

      I just received the DRV8301-HC-C2 developement kit and I've messed around with the initial program loaded in the flash (6-step) but I am more interested in FOC.  The HowToRunGuide instructions are a little confusing.  Do I build each of the 7 levels individually and the run the debug after all 7 rebuilds or do I debug and run after each individual level?  I've tried both and couldn't get my motor to turn or get the program to continuously run.  The program seems to stop approx. 1/2 second after I push the run button and nothing updates on the graph or watch window.

      Also, do I need the serial to be connected to run the PM_Sensorless program?  Is there an output file for this program available anywhere to load into flash like the 2 other sample programs?  I know I've thrown a lot of questions out but if you could point me in the right direction, i'd appreciate it.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kelly Meemken
      Posted by Kelly Meemken
      on May 15 2012 15:07 PM
      Intellectual435 points

      How to you tune the kslide and kslf.  I only see there parameters in one spot in the software.

      smo1.Kslide = _IQ(0.15);

      smo1.Kslf = _IQ(0.1);

       

      Also, where is VOLT_MACRO located in the project.  In level 2, it says to change one of the variables to 1 if needed but I was not able to locate VOLT_MACRO

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • BrandonAzbell
      Posted by BrandonAzbell
      on Jun 29 2012 23:20 PM
      Suggested Answer
      Guru54850 points

      Kelly Meemken

      How to you tune the kslide and kslf.  I only see there parameters in one spot in the software.

      smo1.Kslide = _IQ(0.15);

      smo1.Kslf = _IQ(0.1);

      The documentation in the .\DRV830x-HC-C2-KIT_v104\PM_Sensorless\~Doc has some information in the Level 5 Incremental Build section on the process for tuning Kslide and Kslf.

       

      Kelly Meemken

      Also, where is VOLT_MACRO located in the project.  In level 2, it says to change one of the variables to 1 if needed but I was not able to locate VOLT_MACRO

      <CONTROLSUITE_INSTALL_DIR>\libs\app_libs\motor_control\math_blocks\v3.1\volt_calc.h

      Brandon

      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