Giter Club home page Giter Club logo

Comments (6)

miccgn avatar miccgn commented on July 20, 2024 2

(Of course I will contribute and implement the smoothing, if accepted)

from pixelit.

miccgn avatar miccgn commented on July 20, 2024

I created a PR for the LDR library. After the owner of the library accepts the PR, @o0shojo0o would need to

  • add a parameter in the photocell constructor specifying the number of readings to be used for smoothing (I'd recommend at least 10, which would smooth along 10 readings, taking 10 seconds to fully adapt for permanent changes, but maybe even 20 or 30).
  • replace calls to getCurrentLux() by getSmoothedLux()

from pixelit.

miccgn avatar miccgn commented on July 20, 2024

I still have trouble with my LDR, but will continue this in a discussion.

from pixelit.

hamster65 avatar hamster65 commented on July 20, 2024

Fluctuations could be because of unstable supply / voltage drop or unstable voltage reference of the ESP.

Mine is mostly stable, but sometimes PixelIt changes back and forth between two brighness levels. I did some smoothing in node-red before the brighness regulation feature got built in.

from pixelit.

miccgn avatar miccgn commented on July 20, 2024

Added BH1750 support, which partly mitigates this issue.

I'll keep this issue open, as smoothing still might be helpful (only available with LDR, not with BH1750).

from pixelit.

miccgn avatar miccgn commented on July 20, 2024

Solved by 0.3.16

from pixelit.

Related Issues (20)

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.