Accelerometer as PONG controller (2024)

This post provides an example and walk through of how to incorporate a novel sensor into your pong controller.

I will start with the demo circuit from class and associated PONG controller code for an analog controller. Along side this I have an accelerometer connected to a Huzzah32 (esp32, see this post for details on setup). I explain how to test the sensor and then blend the sensor code with the controller code.

Circuit

schematic of accelerometer circuit

Video