GithubHelp home page GithubHelp logo

Glitch filtering about pigpio HOT 12 CLOSED

fivdi avatar fivdi commented on August 24, 2024
Glitch filtering

from pigpio.

Comments (12)

fivdi avatar fivdi commented on August 24, 2024

Currently this isn't possible.

from pigpio.

fivdi avatar fivdi commented on August 24, 2024

It looks like it would be relatively easy to add.

from pigpio.

marcinbudny avatar marcinbudny commented on August 24, 2024

This is good news. Similar to glitch filtering is the gpioNoiseFilter.
Unfortunately I have no experience with native bindings in node, so I will have to catch up on that before attempting a PR.

from pigpio.

DvdBerg avatar DvdBerg commented on August 24, 2024

I also needed this feature, so I've decided to add it: #50

from pigpio.

fivdi avatar fivdi commented on August 24, 2024

@DvdBerg @marcinbudny [email protected] was just published on npm has a new glitchFilter method.

@DvdBerg Thank you very much to taking the time to create the pull request.

from pigpio.

louisvangeldrop avatar louisvangeldrop commented on August 24, 2024

What about the gpioNoiseFilter? Using a RF433 receiver will cause thousands of noise interrupts per seconds killing the cpu of my Rasperry Pi.

from pigpio.

fivdi avatar fivdi commented on August 24, 2024

As mentioned above gpioNoiseFilter is supported. Please take a look at the documentation.

from pigpio.

louisvangeldrop avatar louisvangeldrop commented on August 24, 2024

Please point me to the document in https://github.com/fivdi/pigpio? I can't find it in the npm project

from pigpio.

fivdi avatar fivdi commented on August 24, 2024

Sorry, my mistake, the title of this issue is "Glitch Filtering" so I assumed you were asking about glitch filtering and now see that you are asking about noise filtering. gpioNoiseFilter isn't actually supported by this Node.js module at this time. Only glitch filtering is supported.

Please note that the documentation for the pigpio C library functions gpioGlitchFilter and gpioNoiseFilter state that calling these functions has no affects on interrupts. Calling them does however have affects on alerts.

from pigpio.

louisvangeldrop avatar louisvangeldrop commented on August 24, 2024

I am using the alert function.

from pigpio.

fivdi avatar fivdi commented on August 24, 2024

Would you like to create a PR for adding gpioNoiseFilter?

from pigpio.

louisvangeldrop avatar louisvangeldrop commented on August 24, 2024

No idea how to do that. I have no experience in C++ programming

from pigpio.

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.