Giter VIP home page Giter VIP logo

arduino-ws2811-rotary-rgb-led-strip's People

Contributors

mcgurk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

echotok98 kinlead

arduino-ws2811-rotary-rgb-led-strip's Issues

random flashes every few seconds when running at max speed

Hey, I followed your guide:
https://github.com/mcgurk/Arduino-WS2811-rotary-RGB-led-strip/blob/master/OrangePi.md
with my OrangePi 3 LTS to run a 256 led matrix

It works great, except when I'm running it at full speed without any delays, there's an occasional unexpected high intensity white flash from all LEDs.

my code is very simple:

  n = 0
  fnum = 0
  start_time = time.time()
  while True:
    ws2812.write2812(spi, data[n])
    n = (n + 1) % 6
    fnum += 1
    # time.sleep(0.02)
    now = time.time()
    if now - start_time > 1:
        print(fnum)
        fnum = 0
        start_time = now

just running through 6 preset patterns
When I'm running it like this, it prints around 111 FPS, (with numpy imported)
And I'm seeing these flashes every 4-5 seconds

if I uncomment the time.sleep(), it goes down to 33 FPS, and the flashes are less frequent but they still happen about every 20 seconds.
Any idea what's going on?

OS I installed is Ubuntu server, so there's no X or desktop running in the background and I'm connected to the OrangePi via SSH.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.