1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Direct connection ws2812b to RPI3 or use Arduino pro mini

Discussion in 'Hyperion General' started by fr3sh, 6 July 2016.

  1. fr3sh

    fr3sh New Member

    Messages:
    4
    Hardware:
    RPi3, +Arduino
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    943
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    use adalight on the arduino and connect it via usb to the pi, and then connect your leds to your arduino )
     
  3. fr3sh

    fr3sh New Member

    Messages:
    4
    Hardware:
    RPi3, +Arduino
    I'm aware of that. My question was different.

    1. How to do it without arduino (on led ws2812b )? I have found the solution above but have never tried yet. Maybe someone does?
    2. How to do it with arduino pro mini and connect to GPIO on RPI
     
  4. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I've done both with good success.

    A 2812 can de used directly with either the ws281x or ws2812spi led drivers.

    I've also written a small arduino avr program to take SPI data and resend it as 2812 data
     
  5. fr3sh

    fr3sh New Member

    Messages:
    4
    Hardware:
    RPi3, +Arduino
    Super can you share how you did it?

    Without arduino:
    How you connect leds to RPI
    What config do you use on hyperion.
    Do you use converter? What kind?

    With Arduino pro mini:
    I'm wondering is it realy necessarily to use some kind converter (5V - 3.3V) between arduino pro mini an RPI.
    How you connect them?
    What config you use in the hiperion?
    Could you share the arduino project?
     
  6. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  7. fr3sh

    fr3sh New Member

    Messages:
    4
    Hardware:
    RPi3, +Arduino
    how the hell I missed it. Thanks a lot.
    One more question. I'm trying to do it on openelec. Does I need some change in the system to activate the GPIO.
     
  8. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  9. Braulio

    Braulio New Member

    Messages:
    4
    Hardware:
    RPi3
    Hello!
    I have ws2812b strip led and I'd like to set an ambilight for my TV. I checked on internet and I saw that for this type of LED strip you need an Arduino to run. However, I algo found this Hyperion wiki explaining how to set without an Arduino. I did all the things described but I get an error and it is shown when I boot raspberry:

    ssh in: May 17 20:51:43 osmc-Theophilus systemd[1]: Failed to start Hyperion Systemd service.
    ssh in: May 17 20:51:43 osmc-Theophilus systemd[1]: hyperion.service: Unit entered failed state.
    ssh in: May 17 20:51:43 osmc-Theophilus systemd[1]: hyperion.service: Failed with result 'signal'.

    I really really wish to use just raspberry without Arduino, but I don't know what to do.. Please, anyone know what's going on? I attached the config file.

    Please! Help me!
     

    Attached Files:

  10. Braulio

    Braulio New Member

    Messages:
    4
    Hardware:
    RPi3
    I got it working using WS281X-SPI and set force_turbo on! But half of the LED Strip is ON, does someone know why???? I am using 5v 20a 100w power supply for the LED Strip
     
  11. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Wiring issue is the usual cause.

    How long is the strip ?
    What OS are you running ?

    A more obscure cause is the default maximum dma transfer size
     
  12. Braulio

    Braulio New Member

    Messages:
    4
    Hardware:
    RPi3
    Hi! Sorry for long time no reply. The one led was broken :))
     
  13. Braulio

    Braulio New Member

    Messages:
    4
    Hardware:
    RPi3
    I have another issue now!! I am using a 5v 30a supply and I want to power the LEDs (about 150) and the Raspberry together. So I plugged the LEDs and the Raspberry together but Raspberry is showing a "lightning" icon that means that I am powering less than 5v. If I disconnect the LEDs, Raspberry works without the lighting icon. So the LEDs are draining the 5v? Is there a way that I can supply in this way without drain 5v for Raspberry?

    PS: I am not powering the Raspberry to GPIO, I am powering to mini USB

    Thanks again!