Reading 433Mhz RF Key Fob without long hold

Hi,

I'm not a developer, I'm an escape room owner. We are using a 433Mhz RF key fob with 4 buttons that is read by an Adruino. I need to read each button accurately, but I don't want people to have to hold each button down. I want it to be like my car remote that I press unlock and no matter how quickly I press and release, the key press is read.

The developer who set this up has the key presses being read, but only if each button is held down for about a second. Is there a way to make it work regardless of how quickly the keys are pressed and released? Is this a coding issue or a hardware issue?

Thank you in advance.

Please send a crystal ball, or post the code using the function.

Conceptually speaking, your case could be a HW problem or a SW issue .

The HW problem is caused by an unwanted effect called bouncing.

All "switches", including electrical buttons, have a mechanical effect of contact vibration when pressed, generating several on/off.
To minimize the problems caused by "bouncing", it is common to use a delay, waiting for the "bouncing" to finish. (Debouncing effect).

This feature is necessary when a button is used in routines that repeat the on/off caused by "bouncing" increments values, but this does not seem to be your case.

Your case appears to be simply a software issue.

The programmer probably put a routine to wait 1 second after the button was pressed before continuing the other routines of the program.

We can only confirm this with certainty by seeing a copy of the program that runs on your arduino.

Bouncing image example.

I'll have to get the code, but I know he didn't add a wait because he knows we do not want that. We have discussed at length that I want it to work like a car lock / unlock that you can press it and immediately release and register the button press. We have an mp3 for each button press that says A, B, C, D depending on which button is pressed, but it only works when you press and hold for about a second. If you press and release quickly, nothing happens. All the videos I've seen on Youtube on how to use these kinds of key fobs with arduino also show them pressing and holding the buttons. It's very frustrating for players because they expect to be able to just press and release and have something happen.

Perhaps that is because the keyfob only sends when the button is held depressed!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.