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

SOLVED Begginers question (Arduino + APA102 + PC)

Discussion in 'Hardware Support' started by Dinth, 20 August 2020.

  1. Dinth

    Dinth New Member

    Messages:
    8
    Hardware:
    32/64bit
    Hi. Im trying to build a Hyperion setup.
    I have already got the following equipment:
    * A x86 Windows HTPC running Kodi
    * Arduino UNO v3
    * Rasperry Pi3
    * APA102 strip already placed behind the screen and with power connected.

    What are next steps? Firstly, do i need to use a RPi3 at all? Can Hyperion be installed directly on HTPC and use the Kodi plugin to control the strip through Arduino?
    Secondly, which pins on Arduino Uno i should use to connect LED strips and what firmware i should upload on Arduino
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    This firmware for the arduino
    https://github.com/hyperion-project...assets/firmware/arduino/adalight/adalight.ino
    you have 4 wire leds so you have to comment out the 3 wire line and use the 4 wire line, should be look like this

    //#define LED_PINS 6 // 3 wire leds
    #define LED_PINS 6, 13 // 4 wire leds
    // DATA_PIN, or DATA_PIN, CLOCK_PIN

    then pin 6 would be data and pin 13 would be clock

    and a few more things, but just have a look at it

    we have hyperion for windows
    https://github.com/hyperion-project...ha.7/Hyperion-2.0.0-alpha.7-Windows-AMD64.exe

    but please be aware, this is in alpha status, if you have some bugs or problems, just ask for help here
     
  3. Dinth

    Dinth New Member

    Messages:
    8
    Hardware:
    32/64bit
    I mean i can use RPi3 if its better or more feasibile, i just thought that the Kodi plugin has already Hyperion built in and I wont need.
     
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    just give the windows version a try..
     
  5. Dinth

    Dinth New Member

    Messages:
    8
    Hardware:
    32/64bit
    [edit] I have managed to get it working. Many thanks!
    My only problem is that in Windows, the max baud rate i can select (in "Device Manager" -> USB Serial device (COM3) -> Properties) is 115200 and im not sure if its only me, but Hyperion feels little bit laggy.
     
    Last edited: 22 August 2020
  6. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    what exactly feels laggy
     
  7. Dinth

    Dinth New Member

    Messages:
    8
    Hardware:
    32/64bit
    Hi. I have adjusted baudrate to 1000000, unfortunately i am still feeling that there's a lag. Here's the video i made - ive got a feeling that the backlight has 1/4 second delay to the screen.
     
  8. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    i guess you only changed the baudrate in hyperion but NOT on your adalight.ino for the arduino?

    if you would provide a config or more infos...may we could help you more
     
  9. Dinth

    Dinth New Member

    Messages:
    8
    Hardware:
    32/64bit
    Nah, i changed both ino file and hyperion (otherwise it doesnt work at all), only left it as it was in Windows Device Manager, as this one cannot be changed to higher value. Maybe it will be better to create a new thread on software support forum
     
  10. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    ok good, but i would recommend 115200 as the baudrate...there are other things we can optimize...with wich resolution do you grab your screen?
     
  11. Dinth

    Dinth New Member

    Messages:
    8
    Hardware:
    32/64bit
    Many thanks! I have increased the screen graber resolution to 2.5 times number of leds and increased refresh rate to 30fps and now it works perfectly fine!
     
    • Like Like x 1