How To Use Addressable RGB WS2812B LED Strips With a Raspberry Pi Single Board Computer

  Рет қаралды 131,915

Core Electronics

Core Electronics

Күн бұрын

Full Article - core-electronics.com.au/guide...
We are getting our Blinkies Popping Off Today ✨! Our latest UPDATED guide will demonstrate the fastest and most customizable way to have WS2812B LEDs controlled by your Raspberry Pi. Learn the simplest way to drive a small LED strip, multiple LED strips, and how to externally power a very long strip (150 Nodes).
Related Information
Raspberry Pi Workshop for Beginners - core-electronics.com.au/guide...
Raspberry Pi Types - core-electronics.com.au/guide...
Control a Raspberry Pi From your Phone - core-electronics.com.au/tutor...
RGB Colour Code Chart Website - coolors.co/palette/ffbe0b-fb5...
Extra WS2812B LED Strip Dancing Patterns GitHub - github.com/lit-illumination-t...
LED GUI Control GitHub (Advanced) - github.com/jackw01/led-control
Sound Reactive LED Control GitHub - github.com/naztronaut/dancyPi...
Standard Practices for Powering 1000+ LEDs - learn.adafruit.com/1500-neopi...
LUMA Project (Which has Sound Reactive LED Control) - core-electronics.com.au/proje...
The name WS2812B Strip usually refers to a long length of flexible PCB with many specific RGB LED Nodes evenly spaced and dotted along the top side of the PCB. Furthermore, WS2812B strips are fully addressable. This means each RGB LED node can display a different colour and intensity than its neighbours. WS2812B strips will do everything that non-addressable RGB strips do. In almost all regards WS2812B Strips are better as they allow for more creative LED light shows. Fancier animation/striping/chasing effects become possible when you can decide exactly what each LED Node will do. WS2812B can be referred to as NeoPixels or GlowBit LEDs. For the above reasons, WS2812B Strips are the best LEDs to choose in this form factor.
WS2812B stands for | World Semi | which is the name of the OEM (Original Equipment Manufacturer), followed by the name of the IC chip | 2812 |, followed by | B | indicating it is the 2nd big revision of this design. The IC Chips are built into each LED Node. Whether your WS2812B LED Nodes are connected on a rigid PCB or a flexible long strip the control system built in this guide can accommodate both. If you have never used a Raspberry Pi before, we have got you covered with our free, online Raspberry Pi for Beginners Workshop.
No Logic Level Converter or Diode Faff Required!
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - core-electronics.com.au/raspb...
Raspberry Pi: core-electronics.com.au/raspb...
RPI 4, 8GB: core-electronics.com.au/catal...
RPI 4, 2GB: core-electronics.com.au/catal...
WS2812B RGB Strip LEDs (Used Here): core-electronics.com.au/catal...
GlowBit 8x8 Module : core-electronics.com.au/catal...
0:00 Intro
0:22 What WS2812B Are
0:52 Hardware You Need
2:00 Assembly for One LED Strip
3:40 Software Set Up
4:50 Success! One Bright LED Strip!
5:37 Script 1 Exploration
7:30 Assembly for Multiple LED Strips
8:08 Success 2! Two Bright LED Strips!
8:37 Script 2 Exploration
9:21 Assembly for Long LED Strip
11:40 Success 3! A Long LED Strip
12:18 Where To Now
12:57 Outro

Пікірлер: 180
@SirTrollingham
@SirTrollingham Жыл бұрын
Very comprehensive tutorial. I've been looking for something exactly like this. Great job guys!
@bekay7663
@bekay7663 7 күн бұрын
Thank you, at no point did I get lost with your explanation. As others have said this was very comprehensible.
@scaramonga
@scaramonga 8 ай бұрын
A BIG thanks to you indeed! I was having no end of troubles getting these working, and you have solved that very problem, so much appreciated. THANK YOU!!! x
@kriswempa5171
@kriswempa5171 8 ай бұрын
Thanks for the video ! This was exactly what I was looking for !
@warrenlead
@warrenlead Жыл бұрын
Great job, just what I have been looking for!
@PattyCali
@PattyCali 8 ай бұрын
Finally got mine working!!! It came alive like magic 😍😍 thank youuu!!
@_Nikko_-cz8mi
@_Nikko_-cz8mi 4 ай бұрын
Excellent video! I'm going to try and controll 2 externally powered LED strips!
@crusherjones6809
@crusherjones6809 Жыл бұрын
Fantastic video that approaches some real "but how do I do *this*" questions that I have yet to see acknowledged. Good lookin' out.
@wbeimar1002
@wbeimar1002 Жыл бұрын
Thanks to your tutorial I was able to control a 16x16 matrix on Raspberry pi 4. I created animations on it. Thanks a lot my friend!!! Greetings from Medellín-Colombia
@Core-Electronics
@Core-Electronics Жыл бұрын
Nice work!
@nickcocca2210
@nickcocca2210 9 ай бұрын
Any videos of the end result? That sounds pretty interesting!
@peterr9854
@peterr9854 Жыл бұрын
Fantastic video.
@BohdanTrotsenko
@BohdanTrotsenko Жыл бұрын
I've watched only about 20seconds, but kudos and like for a concise introduction, - I'll revisit later when needed.
@davidlu5921
@davidlu5921 Жыл бұрын
thank you so much!
@JoeMcBroom
@JoeMcBroom Жыл бұрын
Thanks for this!
@Core-Electronics
@Core-Electronics Жыл бұрын
No worries 😊
@allgoblog
@allgoblog Жыл бұрын
very helpful video, thank you
@Core-Electronics
@Core-Electronics Жыл бұрын
Cheers for kind words 😊
@mer9706
@mer9706 2 ай бұрын
Love Tim's Explaining Computers impression 😂
@silversurfer8057
@silversurfer8057 Жыл бұрын
i think this would be perfect to build a led controller for the pc. you could use the raspberry-pi directly as a host for your own resource monitor. That brings me back to a point that I would be very interested in: the smartest way to realize that the raspberry ->starts
@polybius10
@polybius10 6 ай бұрын
Awesome video. Super easy to follow and very informative. I am a Software Engineer but not the best at wiring and/or electrical so I have a question. Is there any way that you can control more than 4 strips with a raspberry Pi despite only having 4 GPIO pins? Thanks in advance!
@andrewsmith8388
@andrewsmith8388 Жыл бұрын
KZfaq served me this video and I bought 5 m led strip from you next day! The code looks easy too.
@Core-Electronics
@Core-Electronics Жыл бұрын
Aww sweet! Hope you have fun and if you need any extra help come hit up our forum 😊 forum.core-electronics.com.au/latest
@andrewsmith8388
@andrewsmith8388 Жыл бұрын
@@Core-Electronics daughter wants led strip with remote, this looks more fun.
@Core-Electronics
@Core-Electronics Жыл бұрын
Nothing stopping you from adding a remote to your system to control the lights 😊
@andrewsmith8388
@andrewsmith8388 Жыл бұрын
@@Core-Electronics Even better. Part two is remote. Part three could be small screen...
@patrickrobinson317
@patrickrobinson317 Жыл бұрын
Great tutorial 😀 Thanks for making it. Patrick from Bethesda, Maryland, USA 😀😀😀
@Core-Electronics
@Core-Electronics Жыл бұрын
Glad it was helpful! Happy Making :D
@Gempanda2012
@Gempanda2012 Жыл бұрын
Excellent
@honeyapple4511
@honeyapple4511 Жыл бұрын
Hello! Thank you so so so much for this video, I am a complete beginner to this and found it super helpful to understand the basics. I do have a question that may seem a bit simple, but I am planning on using WS2811 LEDS that are still addressable and come in strands of 50, and I wanted to double check that I do not need to use specifically WS2812B with any of the python scripts? Apologies if the terminology is a bit off, thanks so much again!!
@Core-Electronics
@Core-Electronics Жыл бұрын
The Python scripts will still work mate 😊 Also come check out this guide too - kzfaq.info/get/bejne/fb-olteb2tHJmI0.html
@HaimPeretz
@HaimPeretz 8 ай бұрын
Thank you! Can I use the WLED to control these LEDs with raspberry pi?
@you166mhz
@you166mhz Жыл бұрын
this guy is great ... ty ... :)
@Core-Electronics
@Core-Electronics Жыл бұрын
😊 Cheers mate!
@pskouson
@pskouson 9 ай бұрын
I was able to use your One Strand program, modify it (with help from ChatGPT), and now use a Pi Zero W to light up my CPU fan. Thanks!
@scaramonga
@scaramonga 8 ай бұрын
Tell us more please.
@skylerbowerbank5847
@skylerbowerbank5847 8 ай бұрын
I COULD WRITE A PROGRAM FOR THIS!!!!! I AM SOOO EXCITED NOW 😁😁😁
@Core-Electronics
@Core-Electronics 8 ай бұрын
Enjoy your colourful journey, share your results we'd love to see what you come up with.
@MegaBlox_YT
@MegaBlox_YT Ай бұрын
Good video 👍🏻
@Nicos.Piano.Jurney
@Nicos.Piano.Jurney Жыл бұрын
Do you know anything to make it reactable with midi and piano do when I click a piano button the led blinks up? Would be nice and thanks for thst nice tutorial!
@krishnamoorthijayakumar951
@krishnamoorthijayakumar951 4 ай бұрын
Hi, thanks for the tutorial. How many individual LED strips can be controlled with raspberry pi?
@ados380
@ados380 8 ай бұрын
1:39 "General Rule of Thumb: A 5V 4A power supply can comfortably handle 150 LED nodes, at full brightness" 150 white LEDs at full brightness would take 9 amps. I haven't done any projects with LEDs yet, but I don't understand how this (5v 4a) would be the recommended power supply. Is it likely that someone is going to go full bright white with their LEDs? Nope. But if they did, bad things would happen, wouldn't it?
@devkigodara8778
@devkigodara8778 12 күн бұрын
No . If your supply limits current then the strip will use only 4 amps but if its not then it depends on the metal in the strips . It might heat up or melt ! 😅
@nitzkit
@nitzkit 11 ай бұрын
Pro-Tip: if powering the LED strip through a power brick, use a step down buck converter or a resistor to bring the 5 volts down to 3.6 volts. 3.6 volts is the actual voltage usage from the data sheet for these LEDs.
@nickcocca2210
@nickcocca2210 9 ай бұрын
While it's always good to match the voltage, what is the actual benefit of doing this? Considering it's more material and setup, I don't see much point unless I'm getting a real benefit out of it. Would it use less power long term? Would it help the LED's last longer? Thanks in advance by the way =)
@nitzkit
@nitzkit 5 ай бұрын
@@nickcocca2210 The color accuracy is better and it will help your LEDs from burn out. Power consumption in my opinion is negligible.
@turbocharged213
@turbocharged213 4 ай бұрын
How many amps?
@nitzkit
@nitzkit 4 ай бұрын
@@turbocharged213 You'd be pulling more amps the bigger your LED strips is, so it depends on the size of your LED strip. I've managed to have good results with a power supply rated for at least 2 amps for a 120 LED strip, with room to spare.
@JeffsTechOfficial
@JeffsTechOfficial Жыл бұрын
Would it be possible to do this on something other than a "real" Pi? Such as the Libre PC S905X. I'd have to probably mess with the setup of GPIO pins, but I have some individual LEDs that I believe are the same chip as used in the video, I'm just trying to see where I can get started.
@robertchirica7463
@robertchirica7463 10 ай бұрын
Hello. I found this video very helpful for my project. But I have one question. I have an WS2812b led strip of 5 meter. What power supply do I need if there are 60 leds/m? There would be a total of 300 leds on the strips
@chazaddum
@chazaddum 7 ай бұрын
It's really cool approach connecting through the raspberry. I have a question: Is it possible to connect 10meters of ws2812 LED via external power supply of 3A but to reduce the LED count. I have 10meters (5 meters * 2) of 60 LED/m LED stripe. So due to the power consumption I want to reduce the LED count from total of 600 to 50. So 50 LED per 10meters. so instead of 60 LED in 1m I want to use only 5. Or to reduce power consumption in half. Because I don't have a 36A power supply
@massimoplatteau3874
@massimoplatteau3874 Жыл бұрын
Thank you for this great tutorial! Question: what would be a good solution to power both the raspberri pi and about 150 led nodes together off the same power supply, to have a single wall plug solution? Ive been looking around for dc to female barrel jack and micro usb splitters but cant find many reliable parts that seem to do this job. Any suggestions on parts and what amperage I should go for in terms of power supply? Thank you!
@sellwapp
@sellwapp Жыл бұрын
you can try DC 5A Step-down Power Supply like this 9-36V to 5V Power Converter XY-3606, and it gives you one power cable and connecton 5V to rPI and 12v for leds ;)
@carrollcreighton3264
@carrollcreighton3264 Жыл бұрын
Ok. So next question. Controlling the strip by using a 4x4 Matrix keypad? I see tutorials for using buttons, or using the Keypad and one LED, but nothing to use the keypad to pick an animation or a certain segment. This video got my LEDs up and running perfectly AND explained the reasoning behind some of the code, which the notes were fantastic, BTW.
@Core-Electronics
@Core-Electronics Жыл бұрын
I totally understand what your looking for. Now this linked guide isn't exactly what your looking for but it does teach you how to use Curses Library which is a great Python to use to make keyboard inputs cause an effect to hardware. In the example of this link the arrow keys on the keyboard move a Pan-Tilt HAT. core-electronics.com.au/guides/pan-tilt-hat-raspberry-pi/#Keeb You can then create a custom light loop show in the script which then get activated when you press a keystroke. Come pop by our Forum if you would like some more help, ask for Tim and Ill be right there 😊 forum.core-electronics.com.au/
@jawadkarim1156
@jawadkarim1156 4 ай бұрын
Hello, I just want to ask if I can use the SMD 5050 strip instead but without adjusting the color, thanks!
@BeardBarians
@BeardBarians 8 ай бұрын
On other tutorials I've seen, sound is disabled when using these. Do I have to disable sound when using this tutorial?
@paulvicgatt4383
@paulvicgatt4383 Жыл бұрын
Keep up the good work. Is it possible to turn on led strip to a particular colour using joy buttons? Thanks
@Core-Electronics
@Core-Electronics Жыл бұрын
Of course! you'll just need to write the code to do so. Hit us up on the forums if you need technical help forum.core-electronics.com.au/
@user-jz2jx5ig6t
@user-jz2jx5ig6t 10 күн бұрын
Did the female ends of the LED strip come with the strip itself? Or did you add some kind of short 3 male to female jumper? The strips I bought have have standard wires with no connector. I'm finding it hard to find a jumper that looks as convenient as that.
@michaelthompson657
@michaelthompson657 3 ай бұрын
So how would I then connect this to home assistant? Which I believe has native support for wled
@kibbycabbit
@kibbycabbit 11 ай бұрын
Latest Bullseye Pi OS does not have adafruit-blinka in resp.. is it still needed for it to work properly? what will I miss if I don't have it installed? I may have to roll back to Buster.
@itolond
@itolond 2 ай бұрын
can a fuel gauge / % countdown effect be programmed?
@MxS820
@MxS820 6 ай бұрын
I need a C++ tutorial, what do you recomend?
@audigex
@audigex 4 ай бұрын
"1 Amp per 50 LEDs" is my general rule for 5V 12V strips/supply roughly doubles that to 1A per 100 LEDs (really more like 120 but it's easier to go with 100 for a rule of thumb)
@nickclothier7032
@nickclothier7032 Ай бұрын
11:06, the green arrow in the picture is pointing to Ground not GPIO 18. Almost blew mine up!
@joelrggizmo1373
@joelrggizmo1373 Жыл бұрын
I always solder & heat shrink all my projects no tape!
@itolond
@itolond 2 ай бұрын
can you control wifi addressable led sets?
@chriscuzzzz
@chriscuzzzz Жыл бұрын
With the script can you do times events? Such as a certain light flashing every 10 seconds?
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely! If you need a hand setting it up to run like that come give our forum a bop, we'll best be able to help there 😊 forum.core-electronics.com.au/
@MegaBlox_YT
@MegaBlox_YT Ай бұрын
Can you make a tutorial on how to make Home assistant led strips with a raspberry pi?
@thienlamminh8435
@thienlamminh8435 Жыл бұрын
The video is very useful and I have one question, at 11:13 do I need to connect the last red pin to the 5v raspberry board or 5v from the power brick 5v-4A is enough ?
@Core-Electronics
@Core-Electronics Жыл бұрын
Heyya mate, excellent question 😊. You only need one power connection to the LED Strip, so the power brick will be enough. Check this image if you need - core-electronics.com.au/media/wysiwyg/tutorials/Tim/ws2812B-RASPI/GPIO_Set_up_Hardware_for_Loong_strip.png - Note that they share the same ground (and as such have a ground wire going to both the power-supply and the Raspberry Pi)
@thienlamminh8435
@thienlamminh8435 Жыл бұрын
@@Core-Electronics Thanks for the detail, that helps me a lot. I just have one more curious question. Since I'm going to put the pi and the led strip all into a computer case. I wonder if possible to use my 5v-18A from my PSU for the pi400 and the led strip too ? If yes then it would be great, I won't have to use another power supply.
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely mate, your Raspberry Pi runs at 5volts which is perfect for your PSU. It will only pull the current it needs from your PSU and 18 Amps is more than enough for the Raspberry Pi and your LEDs 😊. Come check here to learn some golden rules when it comes to selecting a power supply, read through that and you'll feel confident forever more - core-electronics.com.au/guides/power-supply-which-to-choose/
@thienlamminh8435
@thienlamminh8435 Жыл бұрын
@@Core-Electronics Thank you very much, it solves a lot of my problems and now I can simply use my PSU for my project :D
@johnvonhorn2942
@johnvonhorn2942 Жыл бұрын
I love this! We can actually have a Raspberry Pi, inside our computer, running off the power supply, powering some custom LED lighting. I'm on it!
@user-bc5cb3zi7b
@user-bc5cb3zi7b Ай бұрын
can i use this library with Rasberry pi pico ?
@shrimpinpat
@shrimpinpat Жыл бұрын
I got really cheap strip thats like 12 feet and only uses 5v but they are RGB SMD 5050 not addressable. any ideas if i could get them working?
@user-hz3xj1td1w
@user-hz3xj1td1w Жыл бұрын
I want to use a 144 pixel LED strip with a battery pack. Can anyone recommend a battery pack? Also, will this work with Raspberry Pi 3 or 3B? Or Pi Zero v1.3?
@FlorianTakacs
@FlorianTakacs Жыл бұрын
nice :)
@Core-Electronics
@Core-Electronics Жыл бұрын
Cheers for popping by mate 😊
@charlieisgnarly
@charlieisgnarly Ай бұрын
I'm trying to do this with 12v WS2815 addressable LEDs and a Pi Pico is it possible with an external 12v source? I've done this already with a neo pixel ring that only required 5v I have 3 x IRFZ44n hooked up to GND, RGB(strip) and also to GPIO on the Pico but I don't know how make the code work / ;
@stressed_garage
@stressed_garage Жыл бұрын
Hey, quick question I've been trying to figure it out. Would it be possible to use two different controller inputs into the same strip? Would one signal just override the previous signal or will it be a whole jumbled mess? I've been using these strips on my car and want everything to match
@Core-Electronics
@Core-Electronics Жыл бұрын
sounds like a pretty niche application. Head over to the forums for some more in-depth help forum.core-electronics.com.au/
@zardipaulo
@zardipaulo 8 ай бұрын
this led is 12V?
@IbrahimDeTorrosellaDelFito
@IbrahimDeTorrosellaDelFito 3 ай бұрын
I have a question, my LED strips have 4 channels and a blue channel. Which ports can I connect it to?
@alexpugh3217
@alexpugh3217 Жыл бұрын
Edit: fixed it, broken gpio pin! Really intuitive video with great explanations but I’ve been having an issue where the 3 first leds will come at varying brightnesses, with seemingly random colours. (this is when running the downloaded script.) after a bit of flashing they turn off. im running a 5v 10A power supply and a 150 led strip with a raspberry pi 3b+. im wondering if this is to do with the gpio output of the pi being 3.3v rather than 5v. It could also be as they are RGBW. Any ideas? Thanks
@Core-Electronics
@Core-Electronics Жыл бұрын
Glad you fixed your issue! Thanks for commenting too 😊
@thebestnerd4444
@thebestnerd4444 Жыл бұрын
how did you find out that your gpio pin is broken?
@max86sony46
@max86sony46 6 ай бұрын
My thonny give me some errors. OneStripNeopixel.py Line 34 in >Module< Adafruit_pixelbuf.py. Line 309 & 273 in _set_item I have no idea 😢
@DeLegend27
@DeLegend27 Жыл бұрын
Can this still work on a raspberry pi pico or pi pico W? The smaller form factor is a high priority for my planned project.
@BrinkGG
@BrinkGG Жыл бұрын
Hey! I didn't make the video, but I am currently using a Raspberry Pi Zero W with 120 LEDs and it's working. I don't know if the Pico would work because it cannot run Raspberry Pi OS.
@billionairemaker
@billionairemaker 4 ай бұрын
I have a 3 wire 5v LED strip... what do i do?
@lorenzocozzolino389
@lorenzocozzolino389 4 ай бұрын
On my terminal when I enter the pip command it tells me that I can't use it and advises me to use sudo apt, but if I use this other one I can't find the library. how can I solve it?
@jo820
@jo820 5 ай бұрын
Hello I am struggling and am not sure who to ask or where to look for info. When i get to installing my packet were you copy and past into the terminal I get an error telling me that tells me I should use a pip install or something but I cant get the packets to download.
@dragontube7995
@dragontube7995 2 ай бұрын
How do i do this with a screen
@joelrggizmo1373
@joelrggizmo1373 Жыл бұрын
So as a reference, if I was running to 65 foot five old strips, how far apart wood I have to put Power injection.
@Core-Electronics
@Core-Electronics Жыл бұрын
Best method is to test it and inject the power once you see the light start to fade. Depending on how the light are displaying changes the results so best method is the pragmatic practical approach 😊
@robertop2311
@robertop2311 Ай бұрын
I need handle 6 leds strip. Exists a Raspeberry version able to do that?
@Core-Electronics
@Core-Electronics Ай бұрын
You can actually do this all on the same Pi! There is a little setup required though. The data terminals of all 6 strips can be connected together to form one long "chain" of LEDs. The issue is powering them as you can't power too many LEDs in a row. You will need to do something called "power injecting", which is basically where you just power the strips individually, but have the data lines connected. Then your Pi will see all of these strips as one long led strip it can control. I hope this helps, if you need any additional guidance, feel free to chuck us a post on your forums: forum.core-electronics.com.au/
@DJMaxK89
@DJMaxK89 Жыл бұрын
Can you power 1 m of LED pixels straight from the raspberry pie with out external power supply and also do you guys sell that external power supply in the video?
@Core-Electronics
@Core-Electronics Жыл бұрын
All depends on how many nodes of LEDS are on the 1 Metre of strip. You will be able/okay to power around ~30 LED Nodes without an external power supply. And we definitely have that external power supply in stock, check it here - core-electronics.com.au/catalog/product/view/sku/AM8911B
@DJMaxK89
@DJMaxK89 Жыл бұрын
Thank you for answering my question I just had one more question these longer LED strips used in the video are they 5 m long and the power supply you linked is that perfect for them?
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely 😊 the density of that long LED strip is 30 per metre, making a total of 150 LED nodes.
@lucydemonlord5553
@lucydemonlord5553 4 ай бұрын
Whenever i try to install the packages i get an error for externally managed environment and when i run it with apt install i get the error that it cant find the package. Any ideas?
@seanpletz2391
@seanpletz2391 Жыл бұрын
Will this work if you connect multiple long strips together?
@Core-Electronics
@Core-Electronics Жыл бұрын
Totally 😊 but note here - The longer a wire is, the more resistance it has. The more resistance, the more voltage drops along its length. Lower Voltage = Dimmer LED Nodes. So if you notice the Nodes at the end of your Huge LED strip are dim know that you can always provide power at both ends or at multiple parts along it to fix it. WS2812B do not mind what end/direction they receive power from. The data line moves in only one direction, but powering electricity can go either way.
@aarontrumachine
@aarontrumachine 11 ай бұрын
Is there any reason that GPIO21, GPIO18, GPIO12 and GPIO10 are used in particular for WS2812B LED Strips? Is there anything stopping me from using any other GPIO pin?
@richardsedman8531
@richardsedman8531 7 ай бұрын
I believe it’s due to how the strip accepts its data signal - as it’s a high speed, fixed rate, continuous stream of bits - and how the Pi can achieve that while also doing all the other things it needs to do (such as run the operating system). The libraries cleverly use the PWM of the GPIO along with DMA to be able to stream all of the data without getting interrupted. I’m only just starting on my journey of understanding these ARGB strips and how they communicate, but I think that’s the reason.
@graphguy
@graphguy Жыл бұрын
Can't use just directly use the p400 instead of connecting the 4b to the p400?
@Core-Electronics
@Core-Electronics Жыл бұрын
I see whats happened here and its such an easy mistake. On the table with me is the Raspberry Pi 4 Model B and the official Raspberry Pi Mouse and Keyboard. The Raspberry Pi 400 looks almost exactly the same as the Keyboard, you can see them both being used in our guide here - kzfaq.info/get/bejne/q8eHdpN439y-g30.html. So to be clear, only one Raspberry Pi Single Board computer is used in this guide here 😊.
@club311gaming
@club311gaming Жыл бұрын
Hey, nice video. Tough I'm facing the following Problem: Everything works for roughly 20 seconds and then the gpio pin stops sending any data. And the LED are just stuck at where they are. This stays like this until I restart the script. Do you have any solutions for this?
@Core-Electronics
@Core-Electronics Жыл бұрын
Very weird indeed! Come make a forum post here at our forum and post some images of your set up. That way we will best be able to help you - forum.core-electronics.com.au/
@club311gaming
@club311gaming Жыл бұрын
@@Core-Electronics Thanks for the fast reply, I will have another look tomorrow, maybe it's some stupid little mistake on my side. Then I'll try to ask in the forum :)
@fabrizioesposito256
@fabrizioesposito256 Жыл бұрын
How about managing simple white led strip which only use 2 wires? Thank's in advance for feedback
@Core-Electronics
@Core-Electronics Жыл бұрын
When it comes to two wire LED strips you only need to provide it with power (5Volts and Ground Normally). You wont be able to get a single node to switch on with all the others off. It will be either completely on or off. Use any 5V power supply with a DC barrel jack adapter wired in and you'll be off to the races 😊 Hit us up at the forum if you need any more help - forum.core-electronics.com.au/latest
@fabrizioesposito256
@fabrizioesposito256 Жыл бұрын
@@Core-Electronics thank's for your replay. And what about code to turn on/off led or dimmering them?
@Core-Electronics
@Core-Electronics Жыл бұрын
Come hit up our Python Workshop 😊 That'll teach you about loops and how to dim lights by using them in your code - core-electronics.com.au/courses/python-workshop/
@jayvie381
@jayvie381 Жыл бұрын
Great tutorial! but, I have issue why is my ws2812b is flashing other color for example i'm running the rainbow command but it flashes white for a certain time while the rainbow still running
@Core-Electronics
@Core-Electronics Жыл бұрын
Hey buddy, the best way for me to help you would be to write up a forum post here, that way you can send through pictures of your wiring and the weird LED effect - forum.core-electronics.com.au/
@jayvie381
@jayvie381 Жыл бұрын
@@Core-Electronics I have post a forum
@Core-Electronics
@Core-Electronics Жыл бұрын
And successfully troubleshooted there too ! Yay 😊 forum.core-electronics.com.au/t/ws2812b-flickering-problem-solved/15527/7
@elvinshibu3194
@elvinshibu3194 Жыл бұрын
I have lost a raspberry pi... By not doing this 😂😂😂 mentioning how things could go wrong, what to avoid and how it affects the project is helpful and entertaining 😊
@Core-Electronics
@Core-Electronics Жыл бұрын
@taranagnew436
@taranagnew436 7 ай бұрын
is there a hat (with power injection and smt connector)?
@Core-Electronics
@Core-Electronics 7 ай бұрын
Hey Taran, that is a bit of a unique hat you are looking for. If you chuck us that question over at the forums as we have staff checking it multiple times a day and if it exists, someone will be able to find it for you: coreelec.io/forum Best of luck!
@rfengr1
@rfengr1 Жыл бұрын
Can I get the code to work on older rpi Model B+ v1.2? The code and libraries can load, but I don't get proper output on GPIO.
@Core-Electronics
@Core-Electronics Жыл бұрын
I'll look into it mate, come check our comment section of the bottom of the written up guide. That might help you too. Also the GPIO pins are numbered different with the original Raspberry Pis If I remember correctly. core-electronics.com.au/guides/fully-addressable-rgb-raspberry-pi/
@brianamyjohnston
@brianamyjohnston Жыл бұрын
I was trying with the same raspberry pi version, same problem. Everything runs without problem, but no action on the led strip.
@Core-Electronics
@Core-Electronics Жыл бұрын
Have written the fix in the written up article, you can see it at the bottom of | Flashy Demonstration | chapter.
@aarondahl108
@aarondahl108 Жыл бұрын
Does this work for WS2811 strings?
@Core-Electronics
@Core-Electronics Жыл бұрын
Voltages are higher for those WS2811 Strings, which isn't a big problem you just need to be careful not to accidentally fry your Raspberry Pi as 12V will burn it out. Hit up our forum if you need a wiring guide 😊 forum.core-electronics.com.au/
@themagic8ball
@themagic8ball 6 ай бұрын
Where and how do I even find this thing to screw down two cables and connect it to this power? And also where do I find cable to connect it to the wall?
@Core-Electronics
@Core-Electronics 6 ай бұрын
Hey 8ball, all the parts are listed in our written article here: core-electronics.com.au/guides/raspberry-pi/fully-addressable-rgb-raspberry-pi/
@spacewurm4793
@spacewurm4793 7 ай бұрын
Noob question , 4:12 Any of these that I try to install get an error message “This Environment is externally managed”, any way to fix?
@lucydemonlord5553
@lucydemonlord5553 4 ай бұрын
I'm having the same issue, were you able to figure it out?
@lenny4195
@lenny4195 21 күн бұрын
hey guys i have this problem too, did you find a solution?
@calfisher1586
@calfisher1586 3 ай бұрын
Running pip3 commands results in an error now: "error: externally-managed-environment". What is your recommendation for working around this?
@Core-Electronics
@Core-Electronics 3 ай бұрын
If you are running bookworm os, they now require you to use a virtual environment. Here is a guide on how to do that: core-electronics.com.au/guides/raspberry-pi/using-virtual-environments-in-thonny-on-a-raspberry-pi/
@theonlygamer5423
@theonlygamer5423 Жыл бұрын
Where did you find a LED strip with a Male 3-pin connector as the data input wire? I am in the US and I can't find a single one.
@RobertLipe
@RobertLipe Жыл бұрын
They're the same physical size as the two pin, power-only configurations. The third pin is used as the clock/data pin in the individually addressable versions. The non-addressible strips use R, G, B, Ground for 4 pins.
@theonlygamer5423
@theonlygamer5423 Жыл бұрын
@@RobertLipe It's not about the pins. It's the fact that in the US nobody sells a Male 3-pin connector as the data input wire. Instead I can only find Female 3-pin connectors.
@arctic1439
@arctic1439 Жыл бұрын
i have a 5V and 3 Amp power supply for the LED strip. Is that enough?
@Core-Electronics
@Core-Electronics Жыл бұрын
Depends on how many LED nodes your powering + the type. But if your powering ~150 WS2812B LEDs then your absolutely going to be able to power them all 😊
@arctic1439
@arctic1439 Жыл бұрын
@@Core-Electronics im running one with 300
@Core-Electronics
@Core-Electronics Жыл бұрын
Each RGB LED draws approximately 50mA when it is set to full brightness and powered at 5V. So your not going to get full brightness but truthfully they will be very bright anyhows. Come check this guide on powering heaps of LEDs from Adafruit - learn.adafruit.com/1500-neopixel-led-curtain-with-raspberry-pi-fadecandy/power-topology
@user-hz3xj1td1w
@user-hz3xj1td1w Жыл бұрын
@@Core-Electronics So a 5v 3a battery pack should be sufficient for a 144 LED Strip?
@will300c
@will300c Жыл бұрын
mmm are you sure about the power needed. Taking 144 in a 1 meter led strip will take 8.6 amps to run those leds at full brightness "white"
@Core-Electronics
@Core-Electronics Жыл бұрын
Cheers for bringing this up. The provided code for the long strip drive the system at a quarter brightness. So we have 50mA Per Node * 144 Nodes * 1/4 = 1.8 Amps. That keeps us in a safe range for the power supply even if they get driven full white all done the line (a rare situation best suited to high power LEDs like these - kzfaq.info/get/bejne/qKqbg5xokqisiH0.html)
@richleviness4621
@richleviness4621 Ай бұрын
it would be so much easier with way more options to use wled on a esp32
@Core-Electronics
@Core-Electronics Ай бұрын
We have a guide on WLED for the ESP32 as well, it's a fantastic system
@3rdeye914
@3rdeye914 Жыл бұрын
Are fully addressable LEDs essentially useless if you can’t use raspberry pi? If I only wanted to use an IOS app for color changing
@Core-Electronics
@Core-Electronics Жыл бұрын
Come take a look at this video here, great App Control (IOS or Android) for fully addressable LEDs - kzfaq.info/get/bejne/fb-olteb2tHJmI0.html
@johnconnor6735
@johnconnor6735 3 ай бұрын
i keep getting an error that i have to create a virtual environment to download the libraries. what can i do to get around this?
@Core-Electronics
@Core-Electronics 3 ай бұрын
With the new bookworm OS, you need to create and work in a virtual environment, its a bit of a pain but its easy to setup: core-electronics.com.au/guides/raspberry-pi/using-virtual-environments-in-thonny-on-a-raspberry-pi/
@samishiikihaku
@samishiikihaku Жыл бұрын
Alas doesn't seem to work with my led strip. also, kind of vague... since this is the only 'tutorial' i see on the internet. everyone seems to be using the same exact code. When I plug my roll of leds into it, none of the code seems to work right. oddly enough also having a hard time deciphering the docs for the adafruit code. =\
@Core-Electronics
@Core-Electronics Жыл бұрын
We can definitely help you over at our forum - forum.core-electronics.com.au/ Write up a post over there with some pictures and well get your system running as it should 😊
@xgqfrms
@xgqfrms Жыл бұрын
How to check which BCM GPIO PIN support the WS2812B LED strip? where is the document?
@xgqfrms
@xgqfrms Жыл бұрын
GPIO 21 GPIO 18 GPIO 10 GPIO 12
@user-oq3jf8rq5l
@user-oq3jf8rq5l 11 ай бұрын
hi, was curious to ask, can i make a led scanner want to start at red, then white, then blue and start the process over again red,wht blue etc. i have 12v RGB led light strips. do you think this can be done with the raspberry pi 3? Ill be honest i didnt watch the video before asking lol. doin so now but any advice would be appreciated
@hanspeterbestandig2054
@hanspeterbestandig2054 Жыл бұрын
I managed driving such a strip of WS2812B LED this with an Arduino Uno (ATmega328, 8 bit AVR uC). Firmware ~1kB, 420 Bytes of SRAM used... No need for such an heavyweight platform...
@raymwelselibio1089
@raymwelselibio1089 5 ай бұрын
Im getting an error: /dev/mem permission denied on the strandtest.py. Why is this happening?
@robinreuther9965
@robinreuther9965 3 ай бұрын
same
@robinreuther9965
@robinreuther9965 3 ай бұрын
Got it: Use "sudo thonny" in terminal to open thonny, this way it has all the neccessary rights to use the GPIO pins. BBOOOOOOM it lights up!!!!
@kingpenha
@kingpenha 3 ай бұрын
Why 30 nodes?
@joelrggizmo1373
@joelrggizmo1373 Жыл бұрын
I will start off with 5V power supply at 5 A
@bertogonzalez7057
@bertogonzalez7057 5 ай бұрын
Can you power multiple LONG strips with this method?
@Core-Electronics
@Core-Electronics 5 ай бұрын
Yes you can! The only issue will be powering all the LEDs.
@bertogonzalez7057
@bertogonzalez7057 5 ай бұрын
@@Core-Electronics so if I were to use your method of powering them and copy that twice on the board, I’d be able to get two long strips powered?
@shaggygoooxide
@shaggygoooxide 8 ай бұрын
Strange choice of wire colors.
@Mystic-gs2nt
@Mystic-gs2nt Жыл бұрын
I follow the guide and I get index errors why?
@PattyCali
@PattyCali Жыл бұрын
Plz help! This is my first time using a pi, and didnt know about the jumper wires, which ones do i need for these lights (M-M, M-F, F-F) thank you
@PattyCali
@PattyCali Жыл бұрын
Also my led strips have wires coming out both ends… urs just has 1 set of wires coming out, plz help!!
@Jelsommino
@Jelsommino Жыл бұрын
Raspberry PI ? Why not Xeon W-3175X-based server ???
@Core-Electronics
@Core-Electronics Жыл бұрын
Heyya mate, maybe you'd prefer this guide here - kzfaq.info/get/bejne/fb-olteb2tHJmI0.html
@encryptedemail8272
@encryptedemail8272 2 ай бұрын
has anyone gotten pi 5 to work?!! Nothing works on the latest PI 5
Watch this before buying LEDs
19:47
Fix This Build That
Рет қаралды 2,1 МЛН
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 19 МЛН
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
What’s Behind the Light? - How WS2812B LED Strips Work
20:45
Intermation
Рет қаралды 48 М.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,2 МЛН
Light Strips: have I been doing it WRONG for years?
7:49
Smart Home Solver
Рет қаралды 291 М.
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
I’m Never Buying LEDs Again! EASY DIY WLED!
13:11
TechFlow
Рет қаралды 1,2 МЛН
13 Stunning Raspberry Pi Projects for 2024!!!
10:23
ToP Projects Compilation
Рет қаралды 197 М.
When Did Raspberry Pi become the villain?
21:54
Jeff Geerling
Рет қаралды 1,4 МЛН