Yeah... It's a mess
Matt bought a linear motorised potentiometer - basically a slider like what you find on a sound mixing desk. The position can be moved by a motor, and it can sense when you're touching it.
We thought it would be a great idea to make a game (or set of games) using this as a controller, along with another potentiometer.
What it does
You can use the pot to control the position of the putter in a golf game. When you putt, the potentiometer slides to one end, as if it was hitting the ball.
How we built it
The voltage of the pots is measured by an arduino, as well as whether or not the linear pot is being touched. These values are then sent via serial to the Raspberry Pi which is running the game. It works out what these values should correspond to in the game.
Challenges we ran into
We first tried using H-bridges with an arduino to control the position of the linear pot, but ended up wiring it up wrong, and fried 2 of the things. Then we tried to use a RPi HAT with an arduino, which (surprise, surprise) didn't work. Eventually we had to settle with using the RPi, which was way more effort.
Accomplishments that we're proud of
Everything pretty much works, and we all learned something new about python and hardware.
What we learned
How to control a linear motorised potentiometer (I love saying that).
What's next for Potentio-meter
We have a lot of room to expand, especially through making more games. It would also probably be a nice idea to put the pots in some kind of enclosure.