My first ever Arduino project back in High-school days using a ball on a resistive-touchscreen to balance it on the plate using the raw position of the ball collected from the touchscreen and using a PID feedback loop. Code is openly available.
click here