element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Mark's Blog Set backs and progress on developing a WS2811 LED string controller
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Instructorman
  • Date Created: 17 Nov 2013 4:39 AM Date Created
  • Views 824 views
  • Likes 0 likes
  • Comments 4 comments
  • controller
  • repair
  • led
  • ws2811
  • rgb
  • damage
Related
Recommended

Set backs and progress on developing a WS2811 LED string controller

Instructorman
Instructorman
17 Nov 2013

First the progress

 

I've developed solid PIC Basic Pro code that can reliably drive a 4m string of WS2811 RGB LEDs at 60 devices/m without spurious resets.  I'm using PBPX 3.0.7.4 compiler, MPASMX assembler and a Microchip PICKIT 3 programmer to download the code into a PIC18F4520 running at 40 MHz (10 MHz external resonator with 4x HSPLL clock multiplier turned on through configuration bits).

 

The base function that generates the necessary pulse trains is attached as a PDF.  There are still optimizations that I'd like to explore, but this chunk of code works well, so I'm building up pattern generating code on top of this function and adding IR remote control.

 

A video clip showing some of the patterns I've generated is embedded below.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Next, the set backs

 

I'm a little amazed and simultaneously disappointed at how delicate the WS2811 devices are.  Tonight I destroyed a third WS2811 LED device in a way that took me by surprise.  How did the third WS2811 get destroyed?  I turned on a light.  You can see the evil, chip-killing light in the clip below along with the repair procedure that gets the remaining LEDs working again.

 

I know that fluorescent lights can kick out pretty intense EMI when they turn on.  This light has reset many micro-controllers sitting on the desk that it illuminates.  I have replacement LEDs on order, but I think it is time for a clamping circuit on the input to the string. It seems that these are not robust devices.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Until next time,

 

Mark

Attachments:
imageWrite Array subroutine.pdf
  • Sign in to reply
  • Instructorman
    Instructorman over 11 years ago in reply to qmiteam

    Very impressive work.  I agree with your assessment of voltage drop and spikes on these devices, ignoring these issues will result in blown devices and/or annoying brightness problems.

     

    I posted a blog in test & measurement that shows how the drop in supply voltage on a 5m string of WS2811s can be measured with a good benchtop multimeter here.

    Although these strings are finiky to work with, I still think developing drivers and code for visual displays is fun.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • qmiteam
    qmiteam over 11 years ago in reply to Instructorman

    Like many things that come out of China, the WS2811's are really cool, but they are only really cool in a very narrow set of circumstances.

     

    I have built many things out of large quantities of WS2811 LED's, see below for a flexible display I made that uses 2500 of these.

    https://www.youtube.com/watch?v=pvd434dI840&list=UUwRLo1Lwswtw6YuihTl5tYw

     

    https://www.youtube.com/watch?v=m3EbqGQaGto&list=UUwRLo1Lwswtw6YuihTl5tYw


    Hooking up the LED's is the easy part, having them function reliably is a whole different animal.  By far the biggest issue is voltage drop and voltage spikes due to LED turn on.  The inductance and length of the wiring and ribbon cables that the LED's are mounted on CANNOT be ignored.  I'll give you a quick experiment to try.  If you take one of your 5m aliexpress rolls and power it from one end with 5v (you should never use anything over 5.15v with these) and light it up peak white, measure the voltage at the other end of the roll and observe the brightness from the first LED to the last.  When you have a static display (ie all LED's on white), this is very easy to overcome, but when you have dynamic effects, you have to do a little more planning on your power scheme to avoid voltage drops and voltage spikes due to inductive discharge, both of which have claimed many WS2811s.  My advice to you is to plan your power to the LED strips and data line routing separately, just because it is intended that you can daisy chain serial data indefinitely with these, don't make the assumption you can do the same with power.  Also make sure to use TVS (tranzorb transient voltage supressors) very generously on all data and power lines.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Instructorman
    Instructorman over 11 years ago in reply to michaelkellett

    Michael,

     

    I just installed replacement LED devices tonight and verified the string is working again.  I'm powering the string from a laboratory bench supply and, as mentioned, I've added a 100 Ohm resistor in series with the data line.  Each device in the string has a small surface mount capacitor physically situated on the output side that feeds into the next device in the chain.  Not sure where this cap is connected just yet.

     

    Do you have any suggestions for clamping the data signal or power supply?  I was thinking of using zeners to clamp the data line, but I wonder if they will operate quickly enough to suppress fast transients.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 11 years ago

    You may need more than one clamping device - at high frequencies one end  of the 4m string has little control over the other. Does the LED 'tape' have power supply decoupling caps ?

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube