I've been playing with H8B device today and connected a momentary switch to it's input port. I also use MQTT Mosquito to publish/subscribe for the events. Quite often I didn't get the button press reported as apparently they were too short. I have noticed that I have to press and hold the button for around 0.5 sec to get it reported. Is it an expected behavior? I'm planning to use some inputs for the door bell application and short button presses are normal. It almost look like some kind of a button debounce technique was applied for the input signal, but it affected how short signals are being recognized. Please advise.
KC868-H8B input minimum time to activate
|
10-04-2021, 10:17 PM
yes, the input debounce technique was applied for the input signal. let your hold on time longer.
10-05-2021, 03:49 AM
Thank you XuWei for your prompt reply. Is this a hardware debouncer or a software one? If so, then is it something a user can have control over? It's hard to require a random guest to press on a doorbell button longer for it to trigger, so I'm trying to figure out some other solution. Do you ever plan to implement the double click feature in H8B like you did for H32B? My guess is, it can affect the minimum trigger time in a positive way, as one would expect shorter timing for double click, hence it may kill two birds with one stone here. Overall great product.
10-05-2021, 05:00 AM
it debounce by software. I think in furture can add an option in web browser can set the debounce time, such as 0.2-0.5s second. How much the time you want?
10-05-2021, 05:39 AM
If you have plans to work on that feature I would consider to leave it up to the user what value to use per input channel. Let the minimal value be bounded by hardware interrupt but let the user set the maximum value to be also as large as possible. Someone can use the same feature to set the reset timer. For example user don't want to allow more than one state change within 5 seconds. This can be accomplished within the same piece of code that handles the debouncer.
10-05-2021, 08:23 AM
when we begin to work , our engineer will confirm this function whether can be add.
11-03-2022, 12:04 AM
which controller you are using?
11-05-2022, 04:32 PM
11-05-2022, 11:40 PM
how many time of pulse do you want? such as trigger for 1 second? or ?
|
« Next Oldest | Next Newest »
|
Users browsing this thread: |