Skip to content
Discussion options

You must be logged in to vote

That's an interesting idea! Have a look at openrowingmonitor/app/gpio/GpioTimerService.js to change the gpio sensor settings.

All that you would have to change is the initialization call for the sensor:

// read the sensor data from one of the Gpio pins of Raspberry Pi
    const sensor = new Gpio(config.gpioPin, 'in', 'rising')

For your scenario you probably want to set it to falling. There are also a bunch of additional options (like denouncing) that you could set if needed, see here for the available options: https://github.com/fivdi/onoff#gpiogpio-direction--edge--options

If it works out nicely we can make it a configurable option and describe the sensor setup in the docs...

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants