The Raspberry Pi should have some access to internet connection ๐ in order to communicate with our game server hosted on Heroku. In order to complete this step, refer to Section 6.1 in the tutorial linked below:
Next, skip to Section 9.1 of the document to install Berryconda ๐ onto your Raspberry Pi. This will be needed to create a Python virtual environment and install the necessary packages to run our gesture classifier. ๐ช
Our gesture classifier requires the BerryIMU v3 in order to properly function. In order to send accelerometer and gyroscope data to the Raspberry Pi via I2C communication, refer to Section 2 in the tutorial linked below:
To further enrich the user experience, we whipped up a drawing tool made of a small breadboard with a push-button, and an orange pin-pong ball for color detection. Whenever the button is pressed and held, you start drawing on the canvas! Otherwise, the game does not pick up your "air-strokes". ๐ This simulates the "feeling" of drawing, and makes drawing a lot more robust!
In order to "build" ๐จ our custom drawing tool, you will need the following components:
The circuit for the drawing tool is pretty simple! It utilizes one of the Raspberry Pi GPIO pins to sense a button press seen in the circuit schematic below:

Circuit schematic of the drawing tool! โ๏ธ

The female jumper wires should be connected to **Pins 39** and **40** as seen above!