Code Monkey home page Code Monkey logo

Comments (2)

marmilicious avatar marmilicious commented on July 19, 2024

Hello @francoisoudot
Honestly I'm not actually sure where the 5 comes from in the 5/NUM_LEDS/2 part. Chris Thodey's original setup had 78 pixels and he might have determined that a multiplier of 5 gave the "correct look" when taking into consideration the average time for a heartbeat QRS interval (or maybe it was the heartbeat QT interval?).

With his 78 pixels that first part would give around 5/78/2 = .128
With my 32 pixel example that first part would give 5/32/2 = .3125

Of course if you only had 2 pixels or 200 pixels it would be very different (giving 5 and .05 respectively). If you aren't getting a nice "heartbeat" look, maybe try changing that multiplier a tiny bit?
Also try setting your NUM_LEDS to 32 to see the heartbeat look I'm getting if you didn't try that yet.

Here's the original G+ thread (which also has Mark's thoughts and Chris's code) which I based mine on.
https://plus.google.com/+ChrisThodey/posts/UdyqYt318gF

Let me know what you discover and I would be curious to know how may pixels you have in your setup.

And of course feel free to make a new FastLED G+ post too showing off what you're working on or if you want more people to see your question. (If you post in that old G+ thread only those that originally commented would be likely to see it, so probably best to start a new one.)
Cheers,
marc

from fastled_examples.

francoisoudot avatar francoisoudot commented on July 19, 2024

from fastled_examples.

Related Issues (4)

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.