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

RPi + OpenELEC Anybody tried ESP8266 ?

Discussion in 'Hardware Support' started by povezi, 27 May 2016.

  1. povezi

    povezi New Member

    Messages:
    2
    Hardware:
    RPi2, +Arduino
    How fast would be the refresh rate with arduino code? I get 500 Mhz on Arduino Nano... but I think ESP have much faster clock?
     
  2. René Arts

    René Arts New Member

    Messages:
    19
    Hardware:
    RPi2
    500 MHz would be... erhm, fast... way faster than remotely possible with an Arduino (or ESP) :) I'd guess you are meaning a 500 kbps SPI communication rate?
    As the ESP runs a bit faster than an Arduino (80/160MHz vs 16Mhz) it might be possible to be a bit faster. Do remind however that the ESP cannot guarantee realtime requirements; it needs some time now and then to do its wifi housekeeping tasks.
     
    Last edited: 27 May 2016
  3. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,890
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    I use 2x ESP8266 with 24(?) ws2812b, it works good! some few hardware related bugs (my fault->lazy :p ) but it is good!

    I will start a Thread in Showcase when i'm back at home :) have only limited access at work, but here is a preview
     

    Attached Files:

    • Like Like x 1
  4. Rick164

    Rick164 Administrator Staff Member Administrator

    Messages:
    189
    Hardware:
    RPi2, +Arduino, +AtmoOrb
  5. povezi

    povezi New Member

    Messages:
    2
    Hardware:
    RPi2, +Arduino
    Nope, not SPI, USB (/dev/ttyUSB0) 3$ Arduino Nano connected to my rPi2, runs rock solid for a year on 500KHz (sorry no MHz) even with latest hyperion beta (thanks to brindosch!) Technical explanation (arduino cpu is a clock multiply of 500k bps) and guide is available here:

    http://ai.rs/reviews/rgb-delight-raspberry-pi2-arduino-nano-ws2812b-using-hyperion-on-openelec/

    but I still think that I should try ESP8266 when I catch a little time, I would try 1.000.000 bps ;)

    BTW Rick164, nice project! I have already started similar project but I also think WIFI latency is a problem if you need realtime video effects.. for a mood light, or effects run directly from ESP, it should work
     
  6. René Arts

    René Arts New Member

    Messages:
    19
    Hardware:
    RPi2
    It might be nice to have an ESP in between instead of an arduino. It can do almost the same, but faster. Added benefit might be that the ESP can be kept online while the RasPi running Hyperion can be powered down. It is then possible to let the ESP run some effects, i.e. projecting some time features like Light Clock (they also have a moon phase display) or home automation status stuff (current power usage/notifications).



    Just thinking of the Light Clock... I guess that should be possible with a hyperion effect as well?
     
  7. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I have used ESP - both USB serial attached and as a wifi target.
    This is precisely why I wrote the UDP driver and you might be interested in my https://github.com/penfold42/stuff/blob/master/README.md

    As for the clock - I did this also with nothing more than the same ESP led listener but with a perl script on a Linux box writing the colours - I'll port it to a python Hyperion script soon
     
    Last edited: 29 May 2016
    • Thank you Thank you x 2
  8. René Arts

    René Arts New Member

    Messages:
    19
    Hardware:
    RPi2
    Wow, that's awesome! Let's just say great minds think alike :)
    The clock script would be great to have in python... my Perl isn't that good, ha.
    Don't know if it's another coincidence; but the Penfold's wines are marvellous!
     
  9. Brindosch

    Brindosch Active Member

    Messages:
    658
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
    This clock is a nice idea. Also for notification extensions. Maybe worth a tutorial later to build your own? Whilst it is not that Hyperion related :)
    Sad that there is much work to do for a cleanup of Hyperion in general. Or things that are really necessary, like our own iOS and WindowsPhone App. I noticed at the iOS App you need to pay for calibration. This is a no go i think.

    @penfold42
    cain´t wait to see new additions! :)
     
  10. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    • Like Like x 1
  11. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,890
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    i will give your udp a try this week @penfold42 :) feedback after that :) I'm very excited about how good/fast it works :)
     
  12. darkside40

    darkside40 New Member

    Messages:
    23
    Hardware:
    RPi1/Zero, 32/64bit, +nodeMCU/ESP8266
    Hi there, the solution with the ESP8266 sound very interesting for me. So i could run Hyperion on my 24/7 Ubuntu Server and just stick an ESP8266 behind my TV?
    @TPmodding have you tested the latency?
     
  13. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I've moved my recent efforts to https://github.com/penfold42/ESPixelStick

    As well as adding e1.31 sACN support to Hyperion.ng I've also added udpraw protocol to my fork of espixelstick.

    I've not found any latency problems unless I try to fire packets at it faster than it can draw.
    The problem here is physical devices naturally limit the rate. A UDP send is instant and buffered by the receiver.
     
  14. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,890
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    can also found no latency that would disturb me... its fast enough to match the picture and the colors :)
     
  15. darkside40

    darkside40 New Member

    Messages:
    23
    Hardware:
    RPi1/Zero, 32/64bit, +nodeMCU/ESP8266
    Thats great. Thanks for the info.