• 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 » Phase Locked Loop (PLL) for grid connected output
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
  • Phase Locked Loop (PLL) for grid connected output

    Phase Locked Loop (PLL) for grid connected output

    This question is answered
    Felix Zhang
    Posted by Felix Zhang
    on Jun 24 2011 02:17 AM
    Intellectual605 points

    Dear all,

    anyone knows if there is PLL algorithm that we may use directly?

    thanks a lot!

    Regards,

    Felix

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Arefeen
      Posted by Arefeen
      on Jun 24 2011 08:07 AM
      Genius5170 points

      A generic PLL can be found online ...Google will offer a number of examples ... however, the IP is in making the PLL robust enough for real world application. I doubt you will find those real-world PLL implementations as free example or download. By the way, are you looking for a three phase or single phase application?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manish Bhardwaj
      Posted by Manish Bhardwaj
      on Jun 24 2011 13:50 PM
      Expert7330 points

      Felix,

       

      I have an implementation of SPLL that i am happy to share, you would need to send me a message with your affiliation through the community,

      You can friend me to send me an email, 

       

      regards

      Manish Bhardwaj

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manish Bhardwaj
      Posted by Manish Bhardwaj
      on Jun 24 2011 13:53 PM
      Verified Answer
      Verified by Felix Zhang
      Expert7330 points

      Just to add the PLL is a single phase PLL, it would provide you a structure to code the PLL you may have to tweak the PLL to get the frequency error within the range depending on the power rating of your grid connect inverter,

      -Manish

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • kerem
      Posted by kerem
      on Jan 04 2012 04:32 AM
      Prodigy60 points

      Hello Manish,

      I need such an implementation example too.

      I am working on a 3-phase grid connected solar inverter project and I need to syncronise the inverter output to the grid. I have tried simply zero crossing feedback from grid for syncronisation, but THD is too high in this case.

      I send you a friend request. Could you share your SPLL implementation with me as well.

      Regards,

      Kerem

      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 Jan 04 2012 07:54 AM
      Genius5170 points

      Hello Kerem .. Zero crossing detection method is simple but may not be sufficient in many applications. One possible solution is to use Clark /Park transformations in addition zero crossing information to have a more robust implementation. You will also have to watch for line noise, line voltage unbalance and faults.

       I am also interested to know more about TI implementation ... please post the link, if available, for download.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • chao wang
      Posted by chao wang
      on Feb 08 2012 20:36 PM
      Prodigy30 points

      Hello  Manish,

      I am also have this kind of problems in the implemention of SPLL, could you share you PLL implement (single phase)with me as well.

      Thanks!

      Danny

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manish Bhardwaj
      Posted by Manish Bhardwaj
      on Feb 09 2012 11:26 AM
      Expert7330 points

      Dear all,

      The PLL method is now available in ControlSUITE both in fixed and IQ format,

      Please check,

      ControlSUITE\libs\app_libs\solar\

      Regards

      Manish Bhardwaj

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tony Jiang
      Posted by Tony Jiang
      on Feb 13 2012 14:15 PM
      Prodigy10 points

      Can you tell me how to determine the coefficients for 2P2Z Notch Filter at different sample rate, say 10e-6s. Thanks.

      Tony Jiang

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manish Bhardwaj
      Posted by Manish Bhardwaj
      on Feb 13 2012 14:55 PM
      Expert7330 points

      You can use band stop filter to closely approximate the notch

      for example in Matlab coefficients can be got from

      [B,A]=butter(1,[95*2/10000 105*2/10000],'stop')

      Regards

      Manish Bhardwaj

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Angamuthu Ananth
      Posted by Angamuthu Ananth
      on Feb 21 2012 03:56 AM
      Prodigy15 points

      Manish,

      As per the document (pdf) in ControlSUITE\libs\app_libs\solar\.. It says the PI takes care of the system dynamics. And no more we have to take concentrate on the  filtering capabilities of PI. But in the Code (provided as Header file), the PLL is created with the PI, considering as a Low pass filter... and moreover a notch filter is also use.. Could please clarify me the use of two filters (LPF and Notch filters) in the code.

      And also let me know, whether this PLL work for a polluted grid. Grid containing Third, fifth and some EMI etc...)

      Thanks in Advance.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manish Bhardwaj
      Posted by Manish Bhardwaj
      on Feb 21 2012 13:33 PM
      Expert7330 points

      Angamuthu,

      Classical PLL consists of PD, LF (PI) , VCO. If you look at the small signal model of a PLL the BW of the PLL is determied by how you tune the LF(PI). The small signal model assumes the 2w frequency is high and will be cancelled out by the low pass characteristics of the LF(which is tuned for the BW and not to filter out the 2w).

      For grid tied applications the 2w is low enough that the low pass characteristics of the system cannot be banked upon alone, Hence a notch filter was added to  cancel the 2w. LPF -. loop filter in some cases , sorry for the confusion. 

      The PLL is resilient to polluted grid and harmonics,

      What are your affiliations?

      Regards

      Manish Bhardwaj

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • li li98090
      Posted by li li98090
      on Feb 25 2012 02:54 AM
      Prodigy10 points

      hi  Manish ,

            From  Solar HV DC-AC Kit User Guide_Rev1.0.pdf ,It seems the project has an anti-islanding function,But I can't find related code in .

      ...:\TI\controlSUITE\development_kits\HV_SOLAR_DC_AC_v1.0\SolarHv_DCAC_PiccoloB_Rev_02 

      Do you know when the related code will be released?    Thanks!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Sofia Alegre
      Posted by Sofia Alegre
      on Apr 17 2012 13:10 PM
      Prodigy80 points

      Hello Manish,

      I have read some post you have done, seems that you have work a lot with SPLL.h, maybe you can help me working on my code.

      I need to create another theta that will take an user input to change the phase (in degrees) of my system. Do you have any hints for me??

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Manish Bhardwaj
      Posted by Manish Bhardwaj
      on Apr 17 2012 14:09 PM
      Expert7330 points

      WHat is the application you are trying to write the PLL for? single phase? 3 phase... grid connected?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Sofia Alegre
      Posted by Sofia Alegre
      on Apr 17 2012 14:27 PM
      Prodigy80 points

      I am using a single phase. I  have actually two solar kits, one of the is the grid simulation which will be feeding into the other's battery.  Anyhow, that will be the long run, now I am just working on the PLL lock an input phase .

      I am working on the float file.

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