on my CS build I recognize regular button bounces (unwanted multiple button presses). Can you please give your experience about this on your builds?
If helpfully for everybody maybe KITE can add a slight bounce feature to the Arduino script for update.
Re: Circuit Sword button bouncing
Posted: Sat Oct 13, 2018 4:28 am
by Hellweaver666
I saw someone complaining about bouncy buttons on start/select so maybe there could be a need for a little software tuning there!
Re: Circuit Sword button bouncing
Posted: Sat Oct 13, 2018 5:38 am
by Killar
i have the same problem with my d-pad and start button.. i got the newest version of kites cm3 board. i use buttons and rubber membranes from retromodding. contact pads on the board and rubbber membranes have been cleaned without any improvement. i even used 2 different membranes from a cheap chinese vendor. no change
when i press the start button, it recognizes 2-3 button pushes in a split second. the dpad not so much
Re: Circuit Sword button bouncing
Posted: Sat Oct 13, 2018 8:17 am
by kite
Just replied to Killars post, perhaps i need to implement de-bouncing sooner then..
Re: Circuit Sword button bouncing
Posted: Wed Oct 17, 2018 10:52 am
by Tomatopaste
Noticed the same thing as well,
As my day job is problem management I thought I would just let you know what I am seeing so you can gauge how many people are seeing this and give what info I can.
Super easy to spot in Tetris as a single push will spin the blocks several times.
Is the Arduino running like a refresh on the buttons looking for presses or is is binary on/off?
Not that I am much of an expert but it seems like it’s recognizing the same push over and over as opposed to a single press.
Anyway I’m sure Kite or even another user on these boards knows what the deal is and can fix it.
It is possible to integrate this function into the arduino script.
It would be quite convenient for us if Kite add this to the script on the server and we only need to update
The only theoretical disadvantage if your button with this debounce enabled: your affected button will be "blocked" for maybe 100ms before a second press will be recogniced. So the debounce time value should be not chosen too high.
See here: http://www.sudomod.com/forum/viewtopic. ... lit=Bounce
The only theoretical disadvantage if your button with this debounce enabled: your affected button will be "blocked" for maybe 100ms before a second press will be recogniced. So the debounce time value should be not chosen too high.
That's exactly what I was thinking... If the solution is some sort of low-frequency-pass filtering, it may end limiting games in which you have to push repeatedly and/or very quickly some buttons (fighting arcades, etc.)
Re: Circuit Sword button bouncing
Posted: Fri Oct 19, 2018 3:28 am
by McGyver
A value of 100ms still allows you 10 keypresses a second!
Edit:
Here you see how 16 keypress on a pad looks like
Re: Circuit Sword button bouncing
Posted: Mon Oct 22, 2018 4:32 am
by kite
Thanks for the feedback guys. The arduino code polls the buttons at about 60hz and transmits any changes in the same period. I can look in to adding some de-bounce logic but if someone does happen to make changes they can submit a pull request or even email me what they have done and I can integrate it.
Obviously I want to make sure it's still responsive, especially for timing critical things. But even if i limited the debounce to technically only allow 20 button changes per second, that should at least have everything covered.. also, going forward I'm going to change the PCBs to be ENIG finished (gold) which should mean a quicker change and less bouncing in the first place..
Re: Circuit Sword button bouncing
Posted: Thu Nov 01, 2018 6:12 am
by Tomatopaste
Has anyone come up with a solution to this yet? I’ve fiddled with and cleaned my connections, replaced all the pads and still have pretty frequent bouncing issues.
Thanks!