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

SOLVED APA 104 support!

Discussion in 'LED Devices Support' started by Osmii, 28 February 2018.

Tags:
  1. Osmii

    Osmii New Member

    Messages:
    11
    Hardware:
    RPi3
    Hey guys!
    Tell me if is it possible to drive APA 104 led with Hyperion (RsPi3 OSMC)-
    At the moment i am using WS2812b. I tried to connect APA 104 but they do not work.
    Both of them are working with Arduino Artnet Node.
    Is there a problem with frequency?
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    740
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    The timing looks a bit different

    Are you using spi to drive it ?

    My spi driver has an adjustable clock rate and this might be enough to fix it
     
  3. Osmii

    Osmii New Member

    Messages:
    11
    Hardware:
    RPi3
    Uff no...
    What would be the clock rate?
     
  4. penfold42

    penfold42 Moderator Developer

    Messages:
    740
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    If you can use spi instead of pwm I might be able to help.

    It looks like the timing diffferences are more than just speed - assuming the datasheet it real
     
  5. penfold42

    penfold42 Moderator Developer

    Messages:
    740
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    2000000 will possibly work - it’s out of spec but might be ok.

    If you can build from source, I can easily add explicit support for the apa104
     
  6. penfold42

    penfold42 Moderator Developer

    Messages:
    740
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    • Like Like x 1
  7. Osmii

    Osmii New Member

    Messages:
    11
    Hardware:
    RPi3
    Thanks penfold42!
    Let me first try to fix my SPI issue...
     
  8. Osmii

    Osmii New Member

    Messages:
    11
    Hardware:
    RPi3
    Ok! So i have managed to fix my issue with spi driver. Problem was in my level converter(bypassed). Now the WS2812 works (no more funny blinking).
    AND.. APA104 also works :)

    PWM with level converter:
    -working WS2812
    -not working APA104

    SPI with level convertor:
    -not working WS2812 (funny blinkng)
    -not tested APA104

    SPI without level converter
    -working WS2812
    -working APA104
     
  9. penfold42

    penfold42 Moderator Developer

    Messages:
    740
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Thanks for the update !

    What baud rate did you use with the apa104 ?
     
  10. Osmii

    Osmii New Member

    Messages:
    11
    Hardware:
    RPi3
    As it was. I did not change anything.