Touch Input in the Time of Coronavirus... (Patreon)
Content
Hi folks,
As we near the end of 2020, we're all back in lockdown again here in the UK and it's pretty unclear what things will look like when we eventually come out of it. The only thing that seems certain is that we can all expect to have to do things a bit differently for at least some time to come....
I'm trying to stay positive - while it's been an utterly heartbreaking year for so many people - especially small business owners and creative artists of all kinds - there have been glimmers of hope; for example, I've played some amazing remote/at-home escape room games that would never have been made were it not for the current situation. "Necessity is the mother of invention", after all!
With that in mind, in this project I thought I'd take a look at some technical innovations for escape rooms in a post-Covid world, and one particular area I thought of was methods to reduce the amount of shared surfaces players touch, by replacing button inputs with "touch-free" alternatives instead.
So, I've made a mini video series comparing 4 different alternative technologies: Infrared, Ultrasonic, Laser Time-of-Flight, and Capacitive sensors. You can find the playlist here: https://www.youtube.com/watch?v=Y6sGoqSujlQ&list=PLogiUurtMYtSXVFcHRQOWH4Iz2S-UrHoz
And here's a little summary table of some of the key differences:
I chose these particular sensors because they're all very popular and easy to get hold of from your favourite online supplier... e.g.:
FC-51 https://www.banggood.com/custlink/3KGdtHNjdu
HC SR-04 https://www.banggood.com/custlink/vDvdtPQLrg
CAP1188 https://www.banggood.com/custlink/3v3dtHzIyU
VL53L0X https://www.banggood.com/custlink/KvvhHITJAR
There are of course different similar boards based on these same technologies - some of which offer slightly different performance or features, but still broadly conform to the findings in the table above.
I don't think any of these sensors are quite "drop-in replacements" for buttons because, without the tactile sense of your finger touching a surface or hearing a button click, there's no built-in feedback to the player that their input has been detected. With correct calibration, I've found they are all pretty sensitive at detecting intended input, but there is also an increased risk of additional accidental inputs.
None of these problems are insurmountable, but it perhaps needs to have a little bit of additional design work to consider the best way to incorporate them - something as simple as incorporating immediate audio/visual feedback (from a speaker, or LED) when a "no-touch" input is detected would help improve the input loop significantly, and all of the code examples I use demonstrate how to do that by adding whatever additional functionality you want to the inputDetected() or inputRemoved() functions.
Speaking of code, you can find the downloads for all the examples here: https://drive.google.com/drive/folders/1-aUHfJ0XQFbEXmXfRScu4jZvpoZwQORt?usp=sharing
In cases where I've used an external library, I've included that in the /src subfolder of the Arduino project too, so you shouldn't need to do any additional installation of managing libraries from the Arduino IDE - everything you need is included above.
I'd love to hear your comments, or if you've got suggestions for any further "touch-free" input modules that I should test out and add to this list!
Stay safe.
a.