How to use WS2812B RGB LEDs with Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • NEW UPDATED GUIDE CLICK HERE - • How To Use Addressable...
    This tutorial is aimed at getting some instant gratification from your WS2812B LEDs (trade name: neopixels). I'll briefly cover a bare-bones setup for Raspberry Pi.
    The full tutorial for this video (with images and step-by-step tips) core-electronics.com.au/tutor...
    Core Electronics is your home in Australia for:
    Raspberry Pi core-electronics.com.au/raspb...
    Arduino core-electronics.com.au/brand...
    WS2812 RGB LEDs core-electronics.com.au/compo...

ความคิดเห็น • 167

  • @moy92
    @moy92 2 ปีที่แล้ว +4

    Thank you! I've been wanting to do this for the longest time! Your video is super clear and easy to understand and follow.

  • @paulmenzies9258
    @paulmenzies9258 6 ปีที่แล้ว +8

    Thanks for the tutorial! I now have a Raspberry PI Zero W driving a 144 led strip (WS2812B 5050 RGB LED Strip 1M 144 LED). It works great.

    • @FoxD13
      @FoxD13 5 ปีที่แล้ว

      This works out for you? Really strange. I only get very strange results....
      I seem to have the same setup like you. Im currently using raspbian stretch lite.
      I get the python scripts to work and everything but the leds seem to freeze at some point in time.. Not really reproducable. Im really frustrated since ive been tinkering for 3 days now.

    • @FoxD13
      @FoxD13 5 ปีที่แล้ว

      works now :D pi zero w ws2812b... problem was the level shifter. mosfet level shifter delivered strange results. now running on IC. the example from the video even ran when I only added a resistor between shifter output and DIN from the led strip

  • @djkrazay7791
    @djkrazay7791 3 ปีที่แล้ว +1

    Thanks for the refresher course.. have no played with my RP3 in a long time... here comes xmas :)

  • @T2NWM6
    @T2NWM6 6 ปีที่แล้ว

    Very good tute. helped a lot. Thanks

  • @RodHartzell
    @RodHartzell 2 ปีที่แล้ว

    Cool. I've had an old raspberry pi laying around for a few years now. I'm finally going to get off my ass and do something with it. Thanks for the inspiration.

  • @chrisjericho7123
    @chrisjericho7123 6 ปีที่แล้ว +1

    I have some 5050 led 5A 12 v ( also says 5M) led strips. Can the pi (zero) run this directly? I want to use 6 of them for a lithograph pi case. I want the led to light the lithograph from underneath while retropie runs. Just on, not flicker or anything.

  • @parad0x1cal83
    @parad0x1cal83 6 ปีที่แล้ว

    Thanks for the tutorial! I'm gonna start a project, thanks to you :)

  • @jl6693
    @jl6693 2 ปีที่แล้ว

    Thanks Michael and the team, good work, learned a lot in 7 minutes :) Cheers! quick question, before searching the almighty internet - any tutorials for driving multiple LED strips from the same raspberry pi? thanks!

  • @prz9ano5
    @prz9ano5 2 ปีที่แล้ว +1

    The wiring diagram in video has a slight mismatch to the diagram provided in the description link. Specifically, there is a ground wire bridging the two ground rails in the link version. Which is correct? (apologies if previously addressed).

  • @mumafiedmustangs
    @mumafiedmustangs 3 ปีที่แล้ว +5

    Thank you for starting the video with a good old "g'day"

  • @R4MMU5
    @R4MMU5 4 ปีที่แล้ว

    Why is the power pin (from the PI) connected to GND at the logic level shifter?
    Nevermind I just saw you have a different gpio header...

  • @rmstech9703
    @rmstech9703 6 ปีที่แล้ว +2

    Can we use these packages with DotStar LEDs?

  • @mihai17xxy
    @mihai17xxy 4 ปีที่แล้ว

    it locks GORGEOS Thank You

  • @lucianstefan7702
    @lucianstefan7702 4 ปีที่แล้ว

    Hello,
    please, is it possible with Raspberry Pi to drive more pixel strings - I think about 3 string, each with 150 LEDs?
    If yes, from which GPIO pins?
    Or, what I need still?
    Thank you, very much
    Lucian

  • @Videogame9559
    @Videogame9559 6 ปีที่แล้ว +2

    This worked very well thanks what power supply is the best one to use ?

  • @Kaoji
    @Kaoji 5 ปีที่แล้ว

    You never clarify how you use the dc barrel jack 2 pin terminal block. Are you plugging in a separate 5v adapter into its female or just running it with no additional power- straight from the breadboard to the led strip?

  • @ajthegamedev9264
    @ajthegamedev9264 6 ปีที่แล้ว +1

    Hi Michael! I followed your tutorial and have been running into segmentation faults on both a simple script of my own, and on the strandtest script. I've also reinstalled the rpi_ws281x libraries a few times to make sure that wasn't it. Do you have any advice?

    • @coreelectronicssupportteam6775
      @coreelectronicssupportteam6775 6 ปีที่แล้ว

      I don't really have any idea what could cause that - python should be pretty uncrashable.
      Perhaps try on a fresh, pristine installation of Raspbian.
      If you run into further trouble we'd love to see your results on the forums: forum.core-electronics.com.au/

    • @Bottleworksnet
      @Bottleworksnet 6 ปีที่แล้ว +1

      There is a bug that is will corrupt the SD card data if you use DMA channel 5. Change it to channel 10 when you setup your system again. They just pushed an update on January 1st.

  • @navrajsinghnavi
    @navrajsinghnavi 5 ปีที่แล้ว +4

    Nice.. what are the other components besides rpi and led strip. I have rpi and led strip and want to try it. I am not much expert in electronics so could you please update on the other parts.. thanks

    • @Octizm
      @Octizm 3 ปีที่แล้ว

      Id recommend not doing this project. He forgot a lot of information and tons of parts are missing

  • @florianrohrauer8471
    @florianrohrauer8471 5 ปีที่แล้ว

    Which power supply should i use to light up the whole 5 metres stripe?

  • @philippvogel6504
    @philippvogel6504 5 ปีที่แล้ว +11

    In my case the srtip is also working with 3.3V (without the levelshifter). ( :

    • @camsmart
      @camsmart 3 ปีที่แล้ว +1

      Did you ever harm your board without the shifter? Did you use an external power supply too?

  • @veaarthur3655
    @veaarthur3655 5 ปีที่แล้ว

    What music are you playing at the end of the video??

  • @WhatsUpHiro
    @WhatsUpHiro 2 ปีที่แล้ว +4

    Hi! Quick question. If I'm powering the light strip externally, why bother with a logic level shifter? Why not go straight from pin 18 to the LED strip? In testing this seemed to work, at least up to 32 LEDs. Is it a problem of the 3.3v signal not reaching as far as it would as 5v?

    • @frankowalker4662
      @frankowalker4662 ปีที่แล้ว

      I would also like to know. P.S. What is a Logic Level Shifter ?

  • @Swimmer-ts6yr
    @Swimmer-ts6yr 4 ปีที่แล้ว

    is there anyway to do this by using the pi to power the lights

  • @GodxPoseidon
    @GodxPoseidon 6 ปีที่แล้ว

    Hey!, I've been trying to do something I don't know if it is possible, I want to do multiple animations on same strip and synchronize them with an audio file. Do you think that's possible?

    • @T2NWM6
      @T2NWM6 6 ปีที่แล้ว

      th-cam.com/video/ZSfxKTMk26Q/w-d-xo.html

  • @Ki13M
    @Ki13M 6 ปีที่แล้ว

    Anyone knows how can I change (if its possible) to run matrix or any other tutorial how run led matrix on raspberry pi?

  • @user-bk7kl9ww8g
    @user-bk7kl9ww8g 2 ปีที่แล้ว

    Is it possible to operate without using a terminal? Thank you!!

  • @weaver2609
    @weaver2609 4 ปีที่แล้ว +3

    yo my power bank looks nothing like what you are probably using. i am so confused on what to do with my power bank and how to hook it up

  • @yippiiman9610
    @yippiiman9610 2 ปีที่แล้ว

    Thank you very much for the great video and instructions. I Just Subscribed

  • @Trynacional8
    @Trynacional8 6 ปีที่แล้ว

    can i make a screen and put a video with this?

  • @maikw91
    @maikw91 6 ปีที่แล้ว

    Will it repeat Till i turn it off? Cause i want it for my bed.

  • @OmarSanchez-ds4qh
    @OmarSanchez-ds4qh 6 ปีที่แล้ว +5

    raspberry pi 3 model b has a 5v gpio pin. Do I really nead to use a logic level shifter to translate between 3.3 and 5v or can i just keep it at 5v using this pin.

    • @TotteNesh
      @TotteNesh 6 ปีที่แล้ว +1

      The rest of the gpio is 3.3V, you might fry your pi. And, it will most likely not be able to drive a led strip as it needs from 2A and up on it's own. Depending on length of course. From what I understand about it.

    • @OmarSanchez-ds4qh
      @OmarSanchez-ds4qh 6 ปีที่แล้ว

      Thea Blanca does the Logic level shifter have proitection for fluctuations in voltage. I fed it 12v on accident. I have not been able to get the Logic level shifter to work. I only get voltage on my high side.

    • @0aristedes0
      @0aristedes0 6 ปีที่แล้ว

      you can use a 5v pin with the adafruit trinket.... its only like 7 bucks

  • @CesarGonzalez-ep2sx
    @CesarGonzalez-ep2sx 6 ปีที่แล้ว

    Whats the little red thing ? Do you have a link of where I can buy it ? Amazon possibly ?

    • @T2NWM6
      @T2NWM6 6 ปีที่แล้ว

      Thats a 3.3 - 5 v logic level converter.

  • @schimmi72
    @schimmi72 4 ปีที่แล้ว

    Hey, I followed your video. Now I am interested in letting the leds following music rythms. Did you perhaps think about that? I would like to use the same procedure you used, but I don't know how to combine the python scripts and a microphone for example. Perhaps an idea for a video of yours... Best regards,
    Frank

    • @user-ws1ob2hs5s
      @user-ws1ob2hs5s 4 ปีที่แล้ว

      have you figured it out yet

    • @mattrobinson513
      @mattrobinson513 4 ปีที่แล้ว

      I am working on some code that does this portably over a network now actually so if you wan't to standby I could get this working for you. github.com/mcrrobinson/RGB-audio-peak-visualiser

    • @mattrobinson513
      @mattrobinson513 4 ปีที่แล้ว

      @@user-ws1ob2hs5s ^^ this

  • @Videogame9559
    @Videogame9559 6 ปีที่แล้ว

    Hi would I be ok to use leds 12v with this project ?

  • @hunterg312
    @hunterg312 5 ปีที่แล้ว +50

    Can you make a video showing how you wired it?

    • @gor4200
      @gor4200 4 ปีที่แล้ว +13

      There was literally a diagram of how he wired it right there on the screen the whole time. Can't get much more cut and dry than that.

    • @erlend343
      @erlend343 4 ปีที่แล้ว

      @@gor4200 hahahaha

    • @gor4200
      @gor4200 4 ปีที่แล้ว +8

      I'm using an actual matrix 8x32 (256 LEDs) so it uses a good amount of current and operates at 5v. The raspberry pi outputs 3.3v. I'm operating mine with a 3.3v signal from the pi and is working fine, but I do have a level shifter I plan to use. Either way, the simple wiring you want to do to get a strip or matrix up and running is as follows; Connect pin 12 (GPIO18) to the DIN (signal) connection on your strip. It's recommended to have a ~430ohm resistor in series on that connection (from the end of the pin 12 wire to the DIN connection). Then take a secondary power supply that is 5v and provides sufficient current for the amount of LEDs you're using (mine is 5v, 8amp stable with 15amp peak) and connect the hot 5v (+) of the power supply to the 5v (+) connection on the LED strip. Then connect the GND (-) of the power supply to the GND (-) of the LED strip. Lastly connect pin 3 (GND) on the pi to the same GND (-) connection on the LED strip that the power supply GND is connected to. If you connected everything as I explained it, you're good to go. That's it.

    • @user-bq6ii1lh3z
      @user-bq6ii1lh3z 4 ปีที่แล้ว +2

      raspberry gnd 18(gpio) to ws2812b, 5v to 5v ws2812b and gnd to raspberry pi

    • @ClaireLoprensa
      @ClaireLoprensa 3 ปีที่แล้ว +1

      @@gor4200 It's wrong. The blue wire gets switched as the black wire when it passes through the breadboard. It confused me as I'm new but I got clarification that it doesn't make any difference IRL because it's just colors; Blue wire from RPi is ground despite it being blue instead of the conventional black.

  • @RaspberryPiGirls
    @RaspberryPiGirls 3 ปีที่แล้ว +14

    This tutorial is awesome and great. as a beginner, I like a Python IDE more than the nano editor. :)

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว

      Glad it helped!

    • @mattraines6404
      @mattraines6404 2 ปีที่แล้ว

      Can this be added to a pi4 running retroarch in an arcade cabinet?

  • @farhanrob3273
    @farhanrob3273 3 ปีที่แล้ว +1

    Great video. The new PI models have a 5V output.. does this eliminate the need for the level shifter?

    • @angelux079
      @angelux079 3 ปีที่แล้ว

      probably, I'll try it since I have a RPI 4 and the led strip is arriving today so I'll let you know

    • @angelux079
      @angelux079 3 ปีที่แล้ว +4

      it works perfectly fine without it

    • @banana4725
      @banana4725 2 ปีที่แล้ว

      @@angelux079 it is still running at lower power than it should, the rpi4 is 1.5a I believe

  • @companymen42
    @companymen42 5 ปีที่แล้ว +9

    To everyone watching this DO NOT BUY A LEVEL SHIFTIER OFF AMAZON. For critical timing applications you need one that can handle high speed applications, nanosecond rise time and delay time. Be careful and don't waste your money!

    • @kaiserking3404
      @kaiserking3404 4 ปีที่แล้ว +2

      can you recommend one to me? I'm based in germany and am looking for one

    • @poofman2341
      @poofman2341 4 ปีที่แล้ว

      @@kaiserking3404 I just connect ground to raspberry and led strip

  • @bobbysingh5666
    @bobbysingh5666 4 ปีที่แล้ว

    what was the red module in the middle

  • @xXHUGOGAMINGXx
    @xXHUGOGAMINGXx 4 ปีที่แล้ว

    can the ws2812b be replace by a ws2813 ?

  • @gleebo5276
    @gleebo5276 5 ปีที่แล้ว +5

    do you still need to buy the low level logic shiftier if i power the pi separately

    • @chinoto1
      @chinoto1 3 ปีที่แล้ว +1

      The level shifter is only for the data line, which if the voltage is too low, might not be recognized by the LED controller. I don't think a voltage that is too low will hurt anything, so you could try without, but it might not behave properly.
      I realize this is a necro response, but someone else might find it useful.

    • @peterhimmelman9241
      @peterhimmelman9241 3 ปีที่แล้ว

      @@chinoto1 I did, thank you.

    • @Cyberphunkisms
      @Cyberphunkisms 3 ปีที่แล้ว

      did you try without the Logic Level Converter?

  • @elsholz2365
    @elsholz2365 4 ปีที่แล้ว

    Please use middle mouse button to paste from primary selection, that's the most intuitive way

  • @apexmike849
    @apexmike849 6 ปีที่แล้ว

    Brilliant! Now all I want is DMX control.

    • @benhibberd6907
      @benhibberd6907 6 ปีที่แล้ว

      ApexMike hope this helps th-cam.com/video/n974jV3cJAU/w-d-xo.html

  • @crooked8168
    @crooked8168 4 ปีที่แล้ว

    Thx !

  • @devilnoxlive740
    @devilnoxlive740 2 ปีที่แล้ว

    what power supply should i use for ws2812b 5m strip

  • @Videogame9559
    @Videogame9559 6 ปีที่แล้ว

    I have 2m on my strip with 60 leds on it what power supply do i need what Amps on it and I am using 5v

  • @paulmilton7350
    @paulmilton7350 6 ปีที่แล้ว

    Where do I find the "one liner" ? What does it say? I can't read any of the text on the screen on my android tablet.

    • @TotteNesh
      @TotteNesh 6 ปีที่แล้ว

      Link in description to page with instructions

    • @christian2415
      @christian2415 4 ปีที่แล้ว

      Get a better tablet then broke boi

  • @ccf805
    @ccf805 2 ปีที่แล้ว

    Great tutorial however, I am unable to get strandtest to run on my RPi 4 (w/Raspbian). I get an error message: Traceback (most recent call last):
    File "strandtest.py", line 9, in from rpi_ws281x import * ImportError: No module named rpi_ws281x. I was unable to find a fix on Core Electronics forum.

    • @Cluffmaster1980
      @Cluffmaster1980 2 ปีที่แล้ว

      I too get this error, have you found a fix ? Thanks in advance

    • @earthworm666
      @earthworm666 2 ปีที่แล้ว

      @@Cluffmaster1980 Did you ever find a fix for this? I've run into the same problem So weird... Thank you in advance

    • @Cluffmaster1980
      @Cluffmaster1980 2 ปีที่แล้ว

      @@earthworm666 Hi, Yes I re built the raspberry pi and followed he guide again, don't forget to perform the commands as described word for word, however I have now followed the neopixel server guide which has much more functionality for my needs.

  • @keraid6516
    @keraid6516 3 ปีที่แล้ว

    Is this possible with any led strips

  • @jeremyuzan1169
    @jeremyuzan1169 3 ปีที่แล้ว

    it worked thks

  • @ddrguitarpunk
    @ddrguitarpunk 4 ปีที่แล้ว +5

    I'm trying this on a pi 2 model B with a fresh install of NOOBS, and I'm getting
    ImportError: No module named rpi_ws281x
    after sudo python strandtest.py when everything prior seems to be going as it should. pinouts and bread board are identical to the linked page's diagram. not sure what I'm doing wrong.

    • @NativeStyle1337
      @NativeStyle1337 3 ปีที่แล้ว

      I am having the same issue. Were you able to figure it out?

    • @ddrguitarpunk
      @ddrguitarpunk 3 ปีที่แล้ว

      I personally have not, but after talking to someone else, it seems like one of the packages improperly installed. I have since tried with a 3B and a zero with the same results.

    • @jimbray9862
      @jimbray9862 3 ปีที่แล้ว

      Also having same issue

    • @ariefariefshamsuddin350
      @ariefariefshamsuddin350 3 ปีที่แล้ว

      I added the HDMI option that he gave in the video and it works well for my pi 4

    • @diefloppers
      @diefloppers 3 ปีที่แล้ว

      Having the same error!

  • @nikolausborn3031
    @nikolausborn3031 4 ปีที่แล้ว

    Does it work with thonny python ide?

  • @stardreamix786
    @stardreamix786 6 หลายเดือนก่อน

    Gonna try do this with my piano to work with midi!

  • @davijhon1
    @davijhon1 4 ปีที่แล้ว

    working in sw16703p?

  • @mariocr82
    @mariocr82 6 ปีที่แล้ว +1

    Is this library compatible with the raspberry pi 3?

  • @fishworxify
    @fishworxify 5 ปีที่แล้ว

    is sudo always needed to run python code? is there a way to avoid sudo? Also, great tutorial, only neeeded the first 1:14 to get it working :)

    • @andrewmcneal1444
      @andrewmcneal1444 5 ปีที่แล้ว

      You can change the permissions to make the file executable by everyone. youll want to run "chmod 755 " but change to the name of your file. In this particular case the command you will type to make strandtest.py executable by everyone is "chmod 755 strandtest.py" without the quotes of course.

  • @josevera1535
    @josevera1535 2 ปีที่แล้ว

    Is it possible to achieve this with any other LED strip lights?

    • @engineglue
      @engineglue 2 ปีที่แล้ว

      They have to be addressable.

  • @iSpider82
    @iSpider82 4 ปีที่แล้ว

    You do not need sudo to run the script. And you can use 5V from RPi if you have few LEDs.

    • @EinfachNils02
      @EinfachNils02 4 ปีที่แล้ว +1

      Yes, ~1m Led ist possible, but you need a Solid USB Power supply

    • @iSpider82
      @iSpider82 4 ปีที่แล้ว

      @@EinfachNils02 I'm using 8 LED module.

    • @EinfachNils02
      @EinfachNils02 4 ปีที่แล้ว

      @@iSpider82 I dont know the power Draw of this modules, but 1m Led Stripe are 32 LEDs so i think it's possible

  • @stephentanner8089
    @stephentanner8089 6 ปีที่แล้ว

    Which GPIO pin was the control pin connected to?

    • @T2NWM6
      @T2NWM6 6 ปีที่แล้ว

      Pin 12, GPIO 18

  • @murena1970
    @murena1970 3 ปีที่แล้ว +4

    i followed the guide but i have this error : "strandtest.py" line 9, in from rpi_ws281x import *
    ModulenotFoundError : No module named 'rpi_ws281x' ......someone can help me? i have just installed the library ....thank you

    • @jacowaes
      @jacowaes 3 ปีที่แล้ว +1

      same here

    • @jacowaes
      @jacowaes 3 ปีที่แล้ว

      @@robertheselwood4207 i put my reply somwhere else in this thread th-cam.com/video/Pxt9sGTsvFk/w-d-xo.html&lc=UgxiYk97Q797wzB_o_B4AaABAg

    • @vrankyrule
      @vrankyrule 3 ปีที่แล้ว

      @@jacowaes what to do the link u send not working for me say here onlly

    • @dfmayes
      @dfmayes 2 ปีที่แล้ว

      Try
      sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel
      sudo python3 -m pip install --force-reinstall adafruit-blinka

  • @freakazoid9889
    @freakazoid9889 6 ปีที่แล้ว +1

    will this work with a pi model b?

  • @jerdonhelgeson6961
    @jerdonhelgeson6961 ปีที่แล้ว

    How do you do this without a breadboard?

  • @alexanderbuckley9160
    @alexanderbuckley9160 ปีที่แล้ว

    Hello, I am having a problem installing the software. It keeps saying this:
    python: can't open file 'setup.py': [Errno 2] No such file or directory
    I honestly have no idea, anything would help.

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว

      For anybody else experiencing this problem, see our update: forum.core-electronics.com.au/t/ws2812-addressable-leds-raspberry-pi-quickstart-guide/1531/131?u=michael

  • @jensschroder8214
    @jensschroder8214 ปีที่แล้ว +1

    So start an unknown script to load code from an unknown source.
    Then start it with root rights without checking. Is there a virus too?

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว

      Come check our updated version of this guide, that'll get you up and running faster and potentially answer your questions 😊 core-electronics.com.au/guides/raspberry-pi/fully-addressable-rgb-raspberry-pi/

  • @freemanfreed1581
    @freemanfreed1581 4 ปีที่แล้ว

    My LED strip has four pin !! Can you please point me something ??

    • @egg6649
      @egg6649 3 ปีที่แล้ว

      Is it +, r, g, b? If so that strip is not addressable, meaning you will only be able to have every led the same colour. If you still want to control it, dm me on Instagram, jack___irvine (that’s 3 underscores)

  • @TAKER4437
    @TAKER4437 6 ปีที่แล้ว +1

    how to control via browser or app to change color effects?

    • @T2NWM6
      @T2NWM6 6 ปีที่แล้ว

      This is just for test purpose.

    • @bjornstevens11
      @bjornstevens11 5 ปีที่แล้ว

      try hyperion, it works for me with an ws2812b and it has an app

  • @CRsquared64
    @CRsquared64 4 ปีที่แล้ว +1

    Yo I’m new to raspberry pi coding and have no clue what that white board is, can someone help?

    • @jamesrichters3517
      @jamesrichters3517 4 ปีที่แล้ว +1

      The white board is a solderless breadboard.. www.amazon.com/Breadboard-Solderless-Prototype-PCB-Board/dp/B077DN2PS1 it's not really necessary, but it is a convenient way to connect jumper wires to devices without soldering.

    • @CRsquared64
      @CRsquared64 4 ปีที่แล้ว +1

      James Richters nice thanks

  • @raj-stuff
    @raj-stuff 5 ปีที่แล้ว

    Why use the breadboard? Why not put it directly into the pi?

    • @mattjclay
      @mattjclay 5 ปีที่แล้ว

      Allows you to make sure it works before you solder anything.

  • @ashotmarjanyan9409
    @ashotmarjanyan9409 3 ปีที่แล้ว

    i have this error too : "strandtest.py" line 9, in from rpi_ws281x import *
    ModulenotFoundError : No module named 'rpi_ws281x' someone help please :)

    • @EwanWills
      @EwanWills 3 ปีที่แล้ว +1

      Try using pip to install the liberary

  • @jamesharris6062
    @jamesharris6062 3 ปีที่แล้ว

    This has stopped working? No module found

  • @jannis01
    @jannis01 6 ปีที่แล้ว +2

    i tried this with my 12v led strip. it did nothing and then my raspberry turned off and got rlly hot.

  • @Cyberphunkisms
    @Cyberphunkisms 3 ปีที่แล้ว

    why do i need a Logic Level Converter?

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      Because WS2812 LEDs are 5V devices: 3.3V logic from the RPi isn’t high enough to work properly/reliably

  • @sturrlasontwentytwo1082
    @sturrlasontwentytwo1082 3 ปีที่แล้ว

    ImportError: No module named rpi_ws281x

  • @theosims8970
    @theosims8970 2 ปีที่แล้ว

    Thanks but how to use it with a tuned car

  • @Millnoah
    @Millnoah 3 ปีที่แล้ว +1

    Parts Required for this Project
    A Raspberry Pi
    A Logic Level Converter
    Some WS2812 or NeoPixel LEDs
    A 5V Power Supply (Optional)
    A DC Barrel Jack to 2-Pin Terminal Block Adapter (Optional)

  • @jacowaes
    @jacowaes 3 ปีที่แล้ว +5

    If you get this error:
    pi@ambipi:~/rpi_ws281x/python/examples $ sudo python strandtest.py
    Traceback (most recent call last):
    File "strandtest.py", line 9, in
    from rpi_ws281x import *
    ImportError: No module named rpi_ws281x
    Then enter these commands and afterwards it should work:
    sudo apt-get install python3-pip
    sudo update-alternatives --install /usr/bin/python python $(which python2) 1
    sudo update-alternatives --install /usr/bin/python python $(which python3) 2
    sudo update-alternatives --config python
    (enter to choose default)
    sudo pip3 install RPI.GPIO
    sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel

    • @jimbray9862
      @jimbray9862 3 ปีที่แล้ว +1

      yes

    • @williamvr753
      @williamvr753 3 ปีที่แล้ว +1

      thanks man !

    • @vrankyrule
      @vrankyrule 3 ปีที่แล้ว

      use sudo python3 standtest.net
      or if this doesn't work try this site tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/#comment-47319

  • @PluffPenguin
    @PluffPenguin ปีที่แล้ว

    the example files do not exist anymore, since the devs made a separate branch for the python version

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว

      The guide has been updated! Check the link in the description 😃

    • @PluffPenguin
      @PluffPenguin ปีที่แล้ว

      @@Core-Electronics ah I see, will check it out. thanks!

  • @ROFEL
    @ROFEL 3 ปีที่แล้ว

    why are you using a breadboard?

  • @xgqfrms
    @xgqfrms ปีที่แล้ว

    Why not just use the 5V PIN of Raspberry Pi 3B or Raspberry Pi 3B+ or Raspberry Pi 4B

  • @GeekMustHave
    @GeekMustHave 6 ปีที่แล้ว

    Looks like I'm going to have to learn a new foreign language.... Python. Keep Broadcasting!!

    • @dexterflodstrom9975
      @dexterflodstrom9975 3 ปีที่แล้ว

      Did you end up learning it? (:

    • @johnhschuster
      @johnhschuster 3 ปีที่แล้ว

      @@dexterflodstrom9975 Yes I did, I know a number of other programming languages so learning wasn't that hard. The indenting and the (:) kinda threw me but, it makes sense. Thanks again for the time you spent on the video.

  • @danrandolph8517
    @danrandolph8517 3 ปีที่แล้ว

    I did the edit for my Pi 1 Model B to the /boot/config.txt file and it did not fix the problem. I bought the level shifter, and did a GPIO test to make sure it was working, but this made no difference. I got it to work perfectly after finding a tip from this Pi article. tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/#comment-47319
    In the Raspbian Buster OS, just add one line of text “blacklist snd_bcm2835” to file "/etc/modprobe.d/raspi-blacklist.conf "
    Then, to allow the USB audio device to be the default device,
    open /lib/modprobe.d/aliases.conf and comment out the line options snd-usb-audio index=-2 and reboot
    I'm using the wiring instructions from the tutorials-raspberrypi.com site with no level shifter hooked up and it works perfectly on one strand I. Plan to hook up six strands in parallel with 3 LEDs from each strand being lit at once in a moving fashion.

    • @vrankyrule
      @vrankyrule 3 ปีที่แล้ว

      did u found out how to undo those changes after commenting out snd USB index I cant find my command there

    • @danrandolph8517
      @danrandolph8517 3 ปีที่แล้ว

      @@vrankyrule do "cd /boot". Then "sudo nano config.txt". Then arrow down in file to
      # uncomment if hdmi display is not detected and composite is being output
      #hdmi_force_hotplug=1
      also delete or comment out
      #hdmi_force_edid_audio=1

    • @danrandolph8517
      @danrandolph8517 3 ปีที่แล้ว

      PROJECT UPDATE: I have 5 strands hooked up and it works great. Another tip to make it easier to solder leads on the cut strands is cut them apart at 15 lights each. That way, they come presoldered with beads of solder on top of the copper. and it is much easier to solder wires to them that way. I only ended up with one set like this since I cut them at 12 lights each.

  • @mattsavage3258
    @mattsavage3258 3 ปีที่แล้ว +5

    To be frank, this video started out with a lot of promise, but went nowhere.

  • @andreaichert8207
    @andreaichert8207 3 ปีที่แล้ว

    Piping some randomly downloaded script into bash is generally a bad idea. In addition, the title suggests that you would actually explain how to use the strip, which you are not. You're merely running a demo.

  • @harpermartin7813
    @harpermartin7813 2 ปีที่แล้ว

    Jesus is King! If you do not know Jesus as Savior please pray, “ Jesus save me. At this moment I choose to have faith that You gave Your life for me and rose from the dead. Doing this You defeated death, even though it meant You had to die. You surrendered Your life for me, so I chose to surrender my life to You. Forgive me Jesus, my God. Amen.”
    Jesus loves you so much. Please accept His love. I encourage you to read the Bible and pray.
    “For God so loved the world that he gave his one and only begotten Son into this world, that whoever believes that in him shall not perish but have eternal life.”
    John 3:16
    🙏❤️🙏
    Jesus is enough!
    Again I tell you, Jesus loves you!
    ❤️