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

RPi + Other Software Pimoroni Mote USB LED (APA102)

Discussion in 'Hardware Support' started by PaulWebster, 2 December 2016.

  1. PaulWebster

    PaulWebster New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi2, RPi3, +PhilipsHue
    Some developers who work with Pimoroni are interested in getting the Pimoroni Mote working with Hyperion.
    https://shop.pimoroni.com/products/mote

    Can you advise on which version of Hyperion they should target if they had something ready to go in December 2016?

    "ng" is described as pre-alpha and is 1.x accepting updates?
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,886
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    would be a better choice if you implement it in ng, but we cant actually say when ng will be released... if you have no problem with it you are welcome :)
     
  3. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Do both.

    Looking at the python library it should be easy to port the adalight drivers.

    Let me know if you need some pointers to get you started
     
    Last edited: 3 December 2016
  4. PaulWebster

    PaulWebster New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi2, RPi3, +PhilipsHue
    Thanks for the replies - have relayed.
     
  5. secutor

    secutor New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, RPi2, RPi3
    Hi! I am currently trying to make Pimoroni Mote work with Libreelec. Would like to get the aforementioned pointers, please!
     
  6. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    It's a very modular led device driver subsystem.

    1) duplicate these files:
    libsrc/leddevice/LedDeviceAdalight.cpp and libsrc/leddevice/LedDeviceAdalight.h

    2) Update CMakeLists.txt and LedDeviceFactory.cpp to include your new files

    3) duplicate schemas/schema-adalight.json

    4) edit your duplicated .cpp and .h files to rename all the functions and replace the framing logic to suit your device.
     
    • Like Like x 1
  7. secutor

    secutor New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, RPi2, RPi3
    Thanks a lot! I will try and see what I can do.
     
  8. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    2 things will be interesting to resolve.
    1) finding the serial device by USB vid and pid. There are a couple of USB drivers you could rip the code from.

    2) how to map Hyperion linear led numbers to the motes 4 channels.
    I would probably include in the device config up to 4 channel sections that have the number of leds in that channel and the starting Hyperion led number for that channel
     
  9. secutor

    secutor New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, RPi2, RPi3
    • Like Like x 1
  10. PaulWebster

    PaulWebster New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi2, RPi3, +PhilipsHue
    Quick update ... I now have something working.
    I found some code use Pimoroni Unicorn HAT as a Art-Net & OPC/FadeCandy network device ... so I adapted that to drive the Pimoroni Mote.
    It works (although there are some unhandled issues largely due to networking not being 100% reliable).
    I plan to put it on GitHub after it has survived some soak tests.
     
    • Like Like x 2
  11. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,886
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    Sounds good! :)
     
  12. PaulWebster

    PaulWebster New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi2, RPi3, +PhilipsHue
    Someone else has now tried it as well and it works for there as well (although that installation does not have the full complement of 4 Mote sticks so it requires some more fiddling around).
    If there is anyone else with Mote sticks who would like to try then let me know.
     
  13. dglaude

    dglaude New Member

    Messages:
    1
    Hardware:
    RPi1/Zero, RPi2, RPi3
    • Like Like x 1
  14. PaulWebster

    PaulWebster New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi2, RPi3, +PhilipsHue
    Just in case anyone else did implement this ... you might find that it is broken by the October 2020 update to OSMC.
    This is because the Python module numpy installed following the guide does not match up with the Python build included with this OSMC release.

    To resolve it simply
    sudo pip uninstall numpy
    sudo pip install numpy
    #then wait a few minutes and there will be some errors listed but it seems to work
    sudo systemctl start artnet-server

    Full guide (not verified for fresh install on OSMC Oct 2020) at
    https://github.com/PaulWebster/artnet-unicorn-hat/tree/mote
     
  15. Lord-Grey

    Lord-Grey Moderator Staff Member Developer

    Messages:
    256
    Hardware:
    RPi3, 32/64bit
    hyperion.ng has FadeCandy support. You might want to try, if this works and then you could avoid an extra component on between....
     
  16. PaulWebster

    PaulWebster New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi2, RPi3, +PhilipsHue
    I am using the FadeCandy support that is in Hyperion (pre-NG).

    My understanding is that Hyperion (NG or not) acts as a FadeCandy client ... I still need a FadeCandy server which is what this extra component is.
    This extra component (written in Python) then uses the Pimoroni Python library to drive the Pimoroni Mote sticks.

    Or ... are you saying that NG now drives Mote sticks directly?

    There have not been any Mote posts in the forum apart from mine (which I started nearly 4 years ago) so my guess is that this is a minority interest so I am not particularly keen to re-do things unless it makes it much easier/simpler.
     
  17. Lord-Grey

    Lord-Grey Moderator Staff Member Developer

    Messages:
    256
    Hardware:
    RPi3, 32/64bit
    @PaulWebster Thanks for providing more background information. I was not aware that the additional server component is required. Seems you are already set up well.
     
    • Like Like x 1