Creating a physical game controller with Arduino
September 3rd, 2019—
His custom device employs a pair of pressure pads on the ground to sense a player standing on one or the other, and when one’s feet leave the mat, the on-screen player jumps to the opposite wall. Players must then recover and balance on the other mat, and jump back when needed.
An Arduino senses this interaction using the standard Firmata firmware, and a PC running the Johnny-Five library and a Node server passes commands onto the game itself via WebSockets.