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:
    1,273
    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:
    750
    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:
    750
    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:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  9. Braulio

    Braulio Member

    Messages:
    31
    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 Member

    Messages:
    31
    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:
    750
    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 Member

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

    Braulio Member

    Messages:
    31
    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!
     
  14. Draq

    Draq New Member

    Messages:
    17
    Hello, can you send us the hyperion conf file for the WS281X to work?

    I've added on the pin 8 (GPIO 14 TXD) the converter level and then connected to the data in of the led strip.. but the leds don't light, what am I doing wrong? I am just testing hyperion + rpi3 + leds, no video capture yet.
     
  15. Arakon

    Arakon Member

    Messages:
    149
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Works for me, I just tried it quickly. Pi 3, just the LEDs with a 100 ohm resistor. I used GPIO18.


    Code:
    "device" :
        {
            "name"       : "MyHyperionConfig",
            "type"       : "ws281x",
            "leds"     : 39,
            "colorOrder" : "grb",
            "gpio"  : 18,
            "dmanum"  : 5,
            "freq"  : 800000,
            "pwmchannel" : 0
        },
     

    Attached Files:

    • Agree Agree x 1
  16. Draq

    Draq New Member

    Messages:
    17
    No way, what you using OPENELEC?

    I am so pissed, wasted days now to solve this, I have it same as you have it and its not working.

    Its some software issue here, must be.. can you tell me exact versions you use?
    I have Rasp pi 3 B
     
  17. Draq

    Draq New Member

    Messages:
    17
    Funny if I have MyHyperionConfig in "name" I get cannot connect to host.

    If I have "name" : "MyPi", it connects but has other issues..

    how is your config.txt looking like?
     
  18. Arakon

    Arakon Member

    Messages:
    149
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    I use Hyperion directly on a Stretch Lite image, I use HDMI Input, no media player or anything on it. For the test, I used a Pi 3 B, latest hyperion and hypercon.

    config.txt just has
    max_usb_current=1
    dtparam=spi=on
    added.

    Try this image, it contains a fully set up hyperion (still need to config it properly):


    For testing, I literally just flashed the image, sent the hyperion.config.json to the proper folder, and it worked.
     
  19. Draq

    Draq New Member

    Messages:
    17
    Ok, thank you a lot, will test it tonight!

    Do you have default user/password for root?
     
  20. Arakon

    Arakon Member

    Messages:
    149
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    pi/raspberry.