jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.78k stars 622 forks source link

WS2812B Strip not lighting up with Raspi 2 Model B #302

Open alakaiVoid opened 6 years ago

alakaiVoid commented 6 years ago

I have a Raspi 2, heres all the wiring: https://drive.google.com/folderview?id=1UXDPYXyKkWudv3kN7SAvm4OLvB0IC06K I have a 74AHCT125 logic level shifter and i have the Pi GPIO pin 18 going to 1A on the IC and i have the DIN on the strip going to 1Y on the IC. This should be correctly wired as i followed Adafruits wiring guide. i have the library installed and the strandtest.py file edited to my needs. Im not the best with lunix but i just followed guide to get all the software side done and when i do: "sudo python strandtest.py" it will say the annimations it is doing but nothing comes on on my led strip. Any help would be greatly appreciated. Thanks!

alakaiVoid commented 6 years ago

Could this be because the library doesn't support Raspi 2?

BruceMardle commented 6 years ago

I first tried using the PWM0 interface on my Pi 2 (i.e. BCM pin 18, which is physical pin 12). It didn't work, so I tried the SPI interface, which did work.I later read that the Pi 2's audio uses PWM0. You can probably disable that; I don't know; I'm happy using SPI.

  From: Vioxe <notifications@github.com>

To: jgarff/rpi_ws281x rpi_ws281x@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Sent: Tuesday, 24 July 2018, 5:02 Subject: [jgarff/rpi_ws281x] WS2812B Strip not lighting up with Raspi 2 Model B (#302)

I have a Raspi 2, heres all the wiring: https://drive.google.com/file/d/1fuZobCAEKu5-_xNCtb_3BH2-0b3GgtVJ/view?usp=sharing I have a 74AHCT125 logic level shifter and i have the Pi GPIO pin 18 going to 1A on the IC and i have the DIN on the strip going to 1Y on the IC. This should be correctly wired as i followed Adafruits wiring guide. i have the library installed and the strandtest.py file edited to my needs. Im not the best with lunix but i just followed guide to get all the software side done and when i do: "sudo python strandtest.py" it will say the annimations it is doing but nothing comes on on my led strip. Any help would be greatly appreciated. Thanks!— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

alakaiVoid commented 6 years ago

Okay I want to try that. I'm not particularly sure how though. I'm assuming you would just change the pin to SPI in the strandtest.py correct? I'll try that and see if it works. Thanks!

BruceMardle commented 6 years ago

Yes, connect the first LED's Din to the Pi's SPI0 MOSI (master out, serial in; physical pin 19). I can't remember if you have to tell the software to use SPI. Maybe it figures it out from which pin it's using.

  From: Vioxe <notifications@github.com>

To: jgarff/rpi_ws281x rpi_ws281x@noreply.github.com Cc: BruceMardle marblypup@yahoo.co.uk; Comment comment@noreply.github.com Sent: Wednesday, 25 July 2018, 17:19 Subject: Re: [jgarff/rpi_ws281x] WS2812B Strip not lighting up with Raspi 2 Model B (#302)

Okay I want to try that. I'm not particularly sure how though. I'm assuming you would just change the pin to SPI in the strandtest.py correct? I'll try that and see if it works. Thanks!— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

BruceMardle commented 6 years ago

... and when I say "connect the first LED's Din to the Pi's SPI0 MOSI", I mean via a level-shifter (unless you've got a diode in series with the LEDs' power supply)! But you knew that already :-)

  From: Vioxe <notifications@github.com>

To: jgarff/rpi_ws281x rpi_ws281x@noreply.github.com Cc: BruceMardle marblypup@yahoo.co.uk; Comment comment@noreply.github.com Sent: Wednesday, 25 July 2018, 17:19 Subject: Re: [jgarff/rpi_ws281x] WS2812B Strip not lighting up with Raspi 2 Model B (#302)

Okay I want to try that. I'm not particularly sure how though. I'm assuming you would just change the pin to SPI in the strandtest.py correct? I'll try that and see if it works. Thanks!— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

alakaiVoid commented 6 years ago

Alright I switched the DIN to the appropriate pin on the PI and commented out the pwm pin in strandtest.py and uncommented the SPI pin in strandtest.py and I went to run the test and my leds are still not lighting up.

alakaiVoid commented 6 years ago

I do not know what the issue could be anymore. I've tried anything I could've thought of. Nothing has worked. I even have the audio forced to HDMI and I have the ground of the power supply to pin 6 on the Pi. Can I supply you with any other info to help me solve this annoying issue. Or do you have any other advice. Thank you so much for your help so far.

alakaiVoid commented 6 years ago

Some of my thoughts: -The version of Debian stretch lite I'm using is the newest and because of that the library doesn't work on it? -The led strip I'm using is faulty? -The Pi I'm using is faulty? -The power supply is faulty? -The wiring is not correct? -The logic level shifter is bad? -There is too much noise on the DIN line? Those are all the possible faults I could think of.

alakaiVoid commented 6 years ago

Could you maybe tell me your exact setup?

BruceMardle commented 6 years ago

I don't have my Pi with me at the moment. It's running Jessie.

  From: Vioxe <notifications@github.com>

To: jgarff/rpi_ws281x rpi_ws281x@noreply.github.com Cc: BruceMardle marblypup@yahoo.co.uk; Comment comment@noreply.github.com Sent: Wednesday, 25 July 2018, 21:36 Subject: Re: [jgarff/rpi_ws281x] WS2812B Strip not lighting up with Raspi 2 Model B (#302)

Could you maybe tell me your exact setup?— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

alakaiVoid commented 6 years ago

Alright Ill try jessie out and see if that works.