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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Help Using WS2811 to drive 12v RGB LED strip
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 41 replies
  • Answers 11 answers
  • Subscribers 296 subscribers
  • Views 8072 views
  • Users 0 members are here
  • driver
  • mosfet
  • strip
  • led
  • ws2811
  • rgb
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Help Using WS2811 to drive 12v RGB LED strip

dmilton2004
dmilton2004 over 10 years ago

Greetings all,

 

I am creating a lighting project that I want to have a wall display with large (15" x 20") panels and each panel acts as its own "pixel" (controlled by one WS2811).

 

I had purchased 12v RGB LED strips with 30 LEDs per meter. What I want do is control a section of the RGB strip (about 15 LEDs). I have been scouring the web for possible solutions. One avenue I was looking at was using MOSFETs to drive the strip from the PWM outputs from the WS2811. There is an example in the WS2811 datasheet that shows using 3 LEDs per color with 12v. I do know that the WS2811 is a constant current source device. My thought was to use a logic level N-channel MOSFET to drive the LED strip. This is just based upon the research that I have done. What I have not found was any schematic to go from. I am looking at possible 3 MOSFETs per WS2811.

 

Any help and schematics would greatly help!

 

Thanks in advance!

 

Don

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago +3 suggested
    I was able to make this work by using a simple NOT gate between the WS2811 chip and the mosfet. I believe this works because it is using TTL (transistor based logic). The WS2811 requires some kind of load…
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to michaelkellett +2
    More LEDS in series means less current, thinner wires and a single switch, so 12V = 3-4 LEDS per channel, using a chip like ULN2003 will provide all the drive for a single board probably Using logic levels…
  • dmilton2004
    dmilton2004 over 10 years ago in reply to dragonstyne +2 suggested
    Thanks Steve. I have not tried to trigger the MOSFETs yet, but that was my next plan. I should be able to do that by applying +5v to the Gate and connecting the Source to GND. I should see voltage flow…
  • michaelkellett
    0 michaelkellett over 10 years ago

    Wouldn't it be much easier to use strips where each point is a set of LEDs and a chip and just put 15 in each panel and drive them with the same data ?

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to michaelkellett

    More LEDS in series means less current, thinner wires and a single switch, so 12V = 3-4 LEDS per channel, using a chip like ULN2003 will provide all the drive for a single board probably

     

     

     

    Using logic levels to drive the inputs to the ULN2003 ?

     

     

     

    Peter

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dougw
    0 dougw over 10 years ago

    Hi Don,

    Here is a series of pages that explain how to work with these LED strips:

    https://learn.adafruit.com/rgb-led-strips/schematic

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dmilton2004
    0 dmilton2004 over 10 years ago in reply to michaelkellett

    That might work, however that would mean more data for each panel. I know through experimentation that I can branch the data in parallel paths so that multiple pixels get the same data so on set of data can drive multiple pixels. I have already have the WS2811s and the RGB strips. In addition buying digital pixel strips is more expensive as well.

     

    Thanks for the input though!  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dmilton2004
    0 dmilton2004 over 10 years ago in reply to dougw

    Thanks Douglas! I looked at the guide and I was helpful. I am going to try the same basic thing with the outputs of the WS2811. I have some N Channel MOSFETs and they are logic level so I will test it out and let you know.

     

    Thanks! image@

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dmilton2004
    0 dmilton2004 over 10 years ago

    Hi all!

     

    Ok after some experimenting I tried using the logic level N-Channel MOSFETs I have (which are IRL540). I will try to post a schematic. From the outputs of the WS2811 I connected each to the Gate of the MOSFET. I connected the Source of each MOSFET to GND. Then as a simple test I connected the cathode of a LED to the Drain of the MOSFET and the anode to +5v. A couple of times the LED barely glowed and then nothing. I reconnected the LED back to the output of the WS2811 and the LED worked fine.

     

    I could use some help. I did take a look at the guide on Adafruit's site and used the basic info there to apply the same circuit design to the WS2811 instead of the Arduino. I am not certain that the PWM mode of the WS2811 is working the same as the Arduino. Although it seems that it is in theory.

     

    Thanks again in advance for any help! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dragonstyne
    0 dragonstyne over 10 years ago in reply to dmilton2004

    With ws2811's, primary power is provided externally.  All you need from the control is clock, data and a comon ground. I control 30 with an Arduino Uno R3.

     

    The Arduino only sends control and a clock information. It does not have to drive the LEDs. That done with a 2amp 5VDC power supply, which also powers the Arduino.

     

    You are on the right track with the modfets, you will need three per Ws2811. The ws2811 has three outputs to drive all three LED colors.  This way you can effectively increase the current carrying capabilities of the  WS2811s and a common supply can be used.

    Make sure limiting resisters are used.  Chech to see if the ws2811 is not satisfying the mosfet. You may need an isolation stage between the two.

     

    Have you tried to trigger the mosfets without the ws2811 connected.  Also, since the color intensity is controlled by PWM, is it possible mosfet can't keep up and the result is a dim LED?

     

    -Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to dragonstyne

    Yup, there pretty straight forward to control, look at my profile picture, that’s a string of WS2812B’s controlled from an UNO and a batter for when I go to hacker nest events and the like.

     

     

     

    I will open up the circuit and code and share soon if you like

     

     

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dragonstyne
    0 dragonstyne over 10 years ago in reply to Robert Peter Oakes

    You do have a cool hat band. The code I used originally appeared at adafruit. I'll dig some pics as well.

     

    -Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dmilton2004
    0 dmilton2004 over 10 years ago in reply to dragonstyne

    Thanks Steve. I have not tried to trigger the MOSFETs yet, but that was my next plan. I should be able to do that by applying +5v to the Gate and connecting the Source to GND. I should see voltage flow between the Drain and the Source using a resistor or LED as a load. The data sheet indicated that the switching speed should allow me to use this for PWM.

     

    image

     

    I am looking for just a WS2811 so I can post what I have.

     

    Thanks in advance,

     

    Don

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • 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