Friday, April 8, 2016

Arduino Programming
This week we acquired our arduino from the ExCITe center during Design Lab and Emily began coding. To start off the arduino programming, we checked out some arduino citation, at https://www.arduino.cc/en/Reference/HomePage . First, we needed to figure out the pin assignments on the arduino. It was decided that pin 1 would be the pneumatic solenoid on the headpiece, and the remaining 7 pins would be assigned to 7 of the holes on the recorder. Once assigned we could start writing up the solenoid combination needed for each note. The end result for a given note looks something like this:

In this case, D4 (the first D above middle C) requires that all the solenoids be on, plugging the recorder holes. This is done by setting that pin to "low" which switches the relay into its open position and pushes the solenoid down.

We repeated this for all notes playable by our recorder, changing pin settings to "low" or "high" depending on which holes need closed or open, respectively.