How can we teach the relationship between math and images in an engaging way?
Manipulation of simple rules and mathematics can be used to create infinitely scalable and beautifully abstract imagery. However, without a background or an affinity towards that kind of vector math, there is a disconnect when introducing these ideas. Combining the playful interaction of an etch-a-sketch with the computing power of a Raspberry Pi, the Spiro—Sketch introduces these concepts in a fun engaging way.
The interface for the Spiro-Sketch was designed to mimic the experience of playing on an arcade machine, with minimal controls to encourage experimentation and play.
THe internal electronics
The Spiro Sketch consists of a Raspberry Pi, an Arduino Nano, and a 7” HDMI display. The code can be found below but the gist is that the Arduino reads the inputs coming off of the potentiometers on the front panel, sends that input to the Pi via serial communication, and the Pi takes that data and runs it through a Processing Sketch to generate different vector graphics based on the input.
MODIFICATIONS TO THE PI:
In addition to downloading Processing 3 and Arduino onto the Pi, a script that automatically runs a processing sketch was written and added to the autostart file using the shell command sudo nano ~/.config/lxsession/LXDE-pi/autostart. VNC was also used to establish a remote connection.