1 2 Previous Next 19 Replies Latest reply on Sep 12, 2016 3:10 PM by hallingstad_1513226

    WS2812 and 5LP @ 48 Mhz

    user_365962704

      Hi, is there any way to change the "Desired Frequency" of the WS2812 component?, i'm using the component on a design with the 5LP P.K., fist @ 24 MHz and it runs very good, but if i change my design to run @ 48 MHz the led's are all white.

         

      Checking other designs (at the left on the image attached) with the same component the "Desired Frequency" is setup @ 48 MHz, i'm unable to find the way to change that parameter and i'm afraid that is what i'm missing to make it work well.

        • 1. Re: WS2812 and 5LP @ 48 Mhz
          user_14586677

          The WS2812 datasheet I saw had only a typ data rate of 800K bits/sec. That is probably

             

          due to the fact chaining these devices introduces a lot of parasitics in the timing path.

             

           

             

          Regards, Dana.

          • 2. Re: WS2812 and 5LP @ 48 Mhz
            user_365962704

            So, there is no way to run the 5LP @ 48 MHz and have the led's working properly?

            • 3. Re: WS2812 and 5LP @ 48 Mhz
              user_14586677

              Not sure. Hope full MEH can comment. But I saw this discussion, author writing drivers

                 

              and had to reverse engineer chip characteristics. Might help you. Also I see no spec on

                 

              datasheets for power up delay, is there any needed. In your code you have no delay for

                 

              startup, could that be the issue ?

                 

               

                 

              https://cpldcpu.wordpress.com/2014/01/14/light_ws2812-library-v2-0-part-i-understanding-the-ws2812/

                 

               

                 

              I did not look thru MEHs code but maybe he sets speed based on clock tree settings ?

                 

              Given that he is asking for speed setting rate.

                 

               

                 

              Regards, Dana.

              • 4. Re: WS2812 and 5LP @ 48 Mhz
                user_365962704

                Hi

                   

                I had found this proyect, it's running at 48 mhz, but it's build in a PSoC 4, (i see no start-up delay), i tried changing the device to the one present on the 5 lp, but this don't work, i hope to Meh can help me out, i need to add the ws2812 component to an already done project running @ 48 MHz.

                   

                Thanks for the help.

                • 5. Re: WS2812 and 5LP @ 48 Mhz
                  user_14586677

                  Maybe MEHs email address is meh@cypress.com .......

                     

                   

                     

                  Regards, Dana.

                  • 6. Re: WS2812 and 5LP @ 48 Mhz
                    user_1377889

                    When looking at the clocks, doesn't it help to set the frequency of the "StripLights_Clock" to 24MHz by double-clicking on it?

                       

                     

                       

                    Bob

                    • 7. Re: WS2812 and 5LP @ 48 Mhz
                      user_365962704

                      No it don't, it was the first thing that i tried, it send me directly to the component configuration window on the schematic page, for now im testing the project in the pionner board.

                      • 8. Re: WS2812 and 5LP @ 48 Mhz
                        user_385543602

                        Hi,

                           

                        I am trying to run this component on a PSOC 4M, and getting the error:

                           

                        Component 'StripLights' uses component 'cy_clock_v2_10' in its implementation. 'cy_clock_v2_10' has an error: The cy_clock_v2_10 component (StripLights_HFCLK) is not compatible with the selected device. Please check the component datasheet for details on updating to a compatible component.

                           

                        Can someone point me in the right direction on how to update the clock component inside the striplight component?

                           

                        Regards,

                           

                        Tom

                        • 9. Re: WS2812 and 5LP @ 48 Mhz
                          user_14586677

                          Take a look at help, documentation in PSOC Creator, component author guide.

                             

                           

                             

                          Regards, Dana.

                          • 10. Re: WS2812 and 5LP @ 48 Mhz
                            Mark Hastings

                            I fixed the previous issue that Carlos47 had found and sent him a preliminary version.  It worked so now I'll take a look at the 4M issue.  The problem is that we sometimes handle the clocks differently between families and so I have to make a different schematic for each family.  I hadn't had time or the hardware to validate the component with the 4M parts until recently.  If it rains this weekend I will take a look at what I need to change.  If the weather is good, I'll be in the mountains.  ;^)

                               

                             

                               

                            Mark

                            • 11. Re: WS2812 and 5LP @ 48 Mhz
                              user_385543602

                              Hi Mark,

                                 

                              Thanks for looking into this.  I thank you in advance for your work, and can't wait to get it going on my CY8C4246AZI based controller.

                                 

                              Regards,

                                 

                              Tom

                              • 12. Re: WS2812 and 5LP @ 48 Mhz
                                user_385543602

                                Hi,

                                   

                                The 4M issue is easily fixed by updating the clock to the new component. 

                                   

                                I ran into another issue with using the component with the CYBLE-022001-00 module.  The error is:

                                   

                                Error in component: StripLights. Component 'StripLights_v2_2' is not supported by the selected device.

                                   

                                It only says for details that 'an error exists in an instance'.

                                   

                                If you do look into updating this component, please consider this as well.  Hard for me to look at as I don't know where to start with it's less than explicit error notice.

                                   

                                Thank you!

                                   

                                Tom

                                • 13. Re: WS2812 and 5LP @ 48 Mhz
                                  aaron.hall

                                  Hi all,

                                     

                                  I am utilizing PSoC Creator 3.3 with the target device defaulted to PSoC 4200 BLE (what I am using) and similar to a previous error, I too am getting this error:

                                     

                                  "Component 'StripLights' uses component 'cy_clock_v2_10' in its implementation. 'cy_clock_v2_10' has an error: The cy_clock_v2_10 component (StripLights_HFCLK) is not compatible with the selected device. Please check the component datasheet for details on updating to a compatible component."

                                     

                                  The details of the error include:

                                     

                                  "The named component uses another component in its implementation that has a DRC error. Consider upgrading the parent component to a newer version via the Component Update Tool. As an alternate, you could import the parent component via the Component Import Tool and address the issue in your project's copy of the component. "

                                     

                                  I am a little unsure one the "Component Update Tool" I have tried going to Project>Update Components and I have the WS2812 StripLights Component updated to 2.2 which is what I am assuming it is saying, but that is not satisfying the error. I have also read through the WS2812 component data sheet and I still have not found a solution to this error.

                                     

                                  Would anyone please be able to provide any assistance or tips on solving error?

                                     

                                  Thank you.

                                  • 14. Re: WS2812 and 5LP @ 48 Mhz
                                    user_1377889

                                    Consider upgrading the parent component to a newer version via the Component Update Tool.

                                       

                                    Because the component you use is not a "normal" Cypress component, but was created privately by MEH the support cannot be as fast when new PSoC family members get introduced. So you may try to modify the component yourself or wait until there is a corrected version.

                                       

                                     

                                       

                                    Bob

                                    1 2 Previous Next