Comments (12)
Currently this isn't possible.
from pigpio.
It looks like it would be relatively easy to add.
from pigpio.
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.
I also needed this feature, so I've decided to add it: #50
from pigpio.
@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.
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.
As mentioned above gpioNoiseFilter is supported. Please take a look at the documentation.
from pigpio.
Please point me to the document in https://github.com/fivdi/pigpio? I can't find it in the npm project
from pigpio.
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.
I am using the alert function.
from pigpio.
Would you like to create a PR for adding gpioNoiseFilter?
from pigpio.
No idea how to do that. I have no experience in C++ programming
from pigpio.
Related Issues (20)
- Electron & pigpio: gpioInitialise is not a function HOT 2
- Error: The module '.../pigpio.node' was compiled against a different Node.js version HOT 4
- Unable to use package HOT 1
- Consider relaxing restrictions in binding.gyp HOT 8
- ask for help HOT 2
- Run stepper motor for a precise number of steps.
- Error: EINVAL, Invalid argument HOT 2
- how can i read data from gps from pin 15 tx 16 rx ? HOT 4
- using pigpio with 4 motors HOT 7
- High CPU usage on Pi 4B HOT 6
- Freeze when using invalid GPIO numbers HOT 1
- Issue w/ latest Node & OS HOT 1
- Could not locate bindings file HOT 22
- pigpio.gpioInitialise() in pi 4B HOT 12
- Is SPI slave mode supported? HOT 1
- "pigpio" error Maximum call stack size exceeded HOT 2
- Unable to start pigpio on RaspberryPi 3B+ - bullseye HOT 3
- Raspberry Pi 5 Support HOT 1
- Simply not working HOT 2
- Not working with lastest Raspberry pi OS 64bits (Bookworm) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pigpio.