OrangePi or BananaPi w/ Arduino (adalight)?

  • I was wondering if it was possible to use an OrangePi or BananaPi with a new setup i am attempting to do?


    I will be building a 450+ led setup using the WS2812B and an 'Arduino Nano' (CH340G models) by using an input from a UTV007 towards a Serial USB adalight output from Hyperion to Arduino.
    The reason ive wanted to ask is because i will be buying a Raspberry Pi strictly for hyperion, and i thought of buying a OrangePi or BananaPi with a SATA interface to also use as a media server via ethernet alongst with hyperion.
    I do not wish to resort to using USB 2.0 for my media server. Ill be sharing it between 3 computers.


    While i have done my research; i have only found a tutorial that explains a working BananaPi without the use of an Arduino and using WS2801's. I have also found a comment saying that 'Hyperion has certain Raspberry Pi libraries which do not allow it to run on other models'. I have also found an Openelec build with HW decoding working on the Orangepi.


    Just wanted to confirm if my little knowledge of linux is correct and Hyperion should technically run on any linux device/os as long as its within the same architecture and has the same distro and dependancies.


    Also, i will not be using the Pi as a media centre, i have a separate Amlogic s912 box for that. Just for Hyperion and possibly a media server


    sorry if i am posting in the wrong board, i didnt know where to post and what prefix to apply either :s

  • I'm sure it will compile and (mostly) run fine on an alternative fruit based Pi.


    I don't know what frame buffer grabber will work, but a USB grabber should work the same.


    Led devices should all work EXCEPT the rpi specific PWM driver. The SPI based driver should work great for your 2812 strip.


    Why do you want to use an arduino ?
    450 leds is getting close to the limit it can support. Just use the SPI driver off the Pi

  • thanks for your quick reply penfold42!
    I was planning on getting an arduino because ive read that the Raspberry Pi has a 'limit' on leds it can handle due to a small amount of a specific memory, also was following this tutorial. Ive also read from the same tutorial that SPI to arduino will require logic level shifters, however i will read about SPI to the WS2812b strip; i think i saw some tutorials running around here.

  • A level shifter is recommended (required in theory but many get away without one)


    The arduino used to be a requirement to drive the 2812 leds before people got creative with the Pi so lots of older tutorials still included them.


    All arduino with an atmega 328 have 2kB of ram so depending on the sketch you use the led limit will be about 600. They also slow down the max refresh rate as they have to buffer the data

  • sorry to rewake an old thread


    finally getting around to assembling the entire thing,
    Just wanted to ask if i need a logic shifter between the LEDs and the SPI on the Pi ?
    or if i completely misunderstood the above and i actually need a logic shifter if i connect the arduino and pi directly?
    (currently have an official raspberry pi 3 that i lent from a friend).


    I am currently using an "arduino nano" (328 / CH340G China Model) with the raspberry over usb serial, however would like to scrap the arduino since it would give a better refresh time from what i am supposing (although i did read interrups and other processes sharing cpu within linux will screw this up; somewhat already tackled by getting command line dirty and going for a raspbian lite installation)


    correcting the above posts however : its 264 leds total, must have miscalculated somewhere.


    Will write a tutorial and a preview when its all done, since there isnt one that i know of (and that my last month google searches) that connects the leds directly to the pi

  • then a level shifter it is, but until the shops open up from the holidays shutdown, arduino it is


    cant get a boot animation rainbow swirl however, just white, will experiment with baudrate and FastLED library instead.
    I am having an overflow on the const char prefix setting in a sketch based on adalight, maybe thats the problem (note bold/3 digit hex values at //Start prefix ada)


    Code
    //Hyperion sends prefix characters based on number of LEDs in config file
    // e.g. for 181 LEDs it will send 0xB4 and cheksum 0xE1
    // keep in mind Hyperion led counts from 0
    // if you have problems try +1 or -1 diodes when generating prefix characters
    // values to save some time: 178 B1 E4, 180 B3E6, 181 B4E1, 182 B5E0
    //hyperion code
    //_ledBuffer[3] = ((ledValues.size() - 1) >> 8) & 0xFF; // LED count high byte
    //        _ledBuffer[4] = (ledValues.size() - 1) & 0xFF;        // LED count low byte
    //        _ledBuffer[5] = _ledBuffer[3] ^ _ledBuffer[4] ^ 0x55; // Checksum
    const char prefix[] = {0x41, 0x64, 0x61, 0x00, 0x106, 0x152};  // Start prefix ADA


    also just hit a bump with hyperion systemctl service, the 'UTV007' i got shipped wasnt a UTV007 but instead an 'arkmicro' grabber
    i also had another one of these arkmicro grabbers already and i was hoping to try either one or the other that i got, but having them the same isnt going to help
    (they arent exactly the same, both have different device id's [one is 0x5555 while the other is 0x5850], doesnt make much of a difference however because i cant find any documentation/drivers on either, people have had luck mounting it in an app called cheese however with very minor edits which i have tried to no avail.)


    dmesg gives an uvc non compliant device



    journalctl gives an inappropriate ioctl for device


    Code
    Dec 31 13:05:12 raspberrypi hyperiond[1339]: started
    Dec 31 13:05:12 raspberrypi hyperiond[1339]: INFO: Json server created and started on port 19444
    Dec 31 13:05:12 raspberrypi hyperiond[1339]: INFO: Proto server created and started on port 19445
    Dec 31 13:05:12 raspberrypi hyperiond[1339]: terminate called after throwing an instance of 'std::runtime_error'
    Dec 31 13:05:12 raspberrypi hyperiond[1339]: what():  VIDIOC_S_STD ERROR 25, Inappropriate ioctl for device
    Dec 31 13:05:12 raspberrypi systemd[1]: hyperion.service: main process exited, code=killed, status=6/ABRT


    dmesg however previously also gives


    Zitat

    [ 164.249821] input: USB2.0 PC CAMERA as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input4


    so go figure i tried setting up hyperion config with this; but journalctl gives


    Code
    Dec 31 12:58:11 raspberrypi hyperiond[1275]: terminate called after throwing an instance of 'std::runtime_error'
    Dec 31 12:58:11 raspberrypi hyperiond[1275]: what():  '/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input4' is no device ERROR
    Dec 31 12:58:11 raspberrypi systemd[1]: hyperion.service holdoff time over, scheduling restart.


    is there anyway i can use these USB Capture cards or would i need another one (which is actually a UTV007 this time round)?


    ps. some extras


    also found a folder with by-path and by-id in some system folder which had the usb framegrabber device but i didnt bother trying those


    Hyperion Grabber Config

  • Friends, does somebody have a steps how to compile hyperion for orangepi please? I would like to try it. I saw there are some specific libraries for rpi (during hyperion compilation) but I have no idea how to customize it for orange. I 'd like to compile it directly on OPi (without arduino). Any idea please?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!