Monday, December 17, 2018

Final Project


My inspiration for the final project was initially to force myself to make a musical instrument using left over parts and sensors that I had lying around from my other musical projects where I had a shopping list for. So it was going to be a "Stone Soup" type of instrument.

I also wanted to use the Teensy 3.2 micro controller board because I really have fallen in love with it's small size, copious inputs, and capacitive touch pins. I just so happen to have had one lying around from a different project so I went to work removing the headers so I could get to more of the pins on the back side of the board.... An hour later I put in an order to Amazon for a new Teensy because I totally mauled some of the copper inserts on the board and rendered a few of the TouchSense pins unusable...Derp
All was not lost though I had enough working pins to put together I small touch keyboard!


Ordering a new Teensy also gave me the chance to splurge for some LED buttons because I had to spend 35$ for next-day shipping. While I waited for Amazon I got to work in Adobe Illustrator planning out the template for the instrument to laser cut. I took an inventory of buttons, sliders, dials, lasers, light sensors, and copper tape and went to town.




I was thankful for the work I put into learning how to laser cut and laser print earlier in the semester because I was pleasantly surprised for everything to some out nicely on the first try. Yay practice!





I mounted the buttons and some pots to see if they would fit and then I got to the grind of it... wiring and solder. Luckily for me I find it sort of therapeutic. It feels rewarding to take pieces and make wholes. I remembered to take lots of pictures because I knew a lot of things would be connecting to this tiny board. 
Big plans for a small thing

TouchSense Soldering First

Early Mockup

Pots and buttons next

Getting messy

Buttons are lit, copper tape is live!
I couldn't keep myself from trying it out as it was at this point in the build. 



It was all going together so well... until the lasers.
I had issues with the lasers shorting themselves out and damaging the diodes which made them useless in triggering the light sensors I was using to trigger the notes....Another order to Amazon.

I got the lasers a wired up but the grab bag of photoresistors were proving difficult to work with. Let me correct myself...The photoresistors were working exactly how they were supposed to, but not how I wanted them to work. After consulting Prof. Dec I was able to use a multimeter to choose resistors that are better suited for the mystery photosensors. The photosensors are normally analog sensors but I wired them as a digital on/off sensor using a voltage divider but I was using resistors that were too high and no light could be bright enough to trigger the sensors the way I had wired (3)them. A minor setback, but a real learning experience.

I had planned on coving the lasers and light sensors up after learning the hard way with my laser harp. I would use hot glue to aim the lasers and would not have to worry about aesthetics because they would be out of sight! Hopefully it would all work out according to plan.
Poking out through the top with a little hot glue

Secured with hot glue!

Nestled in their laser-cave
The last part was getting the drum pads to work. They can't flop about but they also need some breathing room to move when hit/tapped because the movement of the sensor generates a small electrical signal that signals a note-on message. After some trial and error I got them working to a point where you could get away with a light tap instead of a whack.

I also had a goal of writing the code myself, or as much by myself as I could as a test of what I have learned. I found the using the MIDI_Controller.h library was easy to work with and allowed me to change MIDI channels as necessary(because I would want to assign a separate instrument for the harp, buttons, drums, etc.).

At this point in the build the meat and potatoes were all ready(meaning all of the electrical things were working and I needed a bottom(something I hadn't planned out before. I printed a bottom and had a think about how I might use spacers or dowels to bridge the top and bottom.

I headed to the Thingspace to put everything together(maybe) and chopped up some dowel rods and glued them into place. I took some inspiration from Jackson Pollock and drove the "Palette" idea home with some paint splatters.







Here is the Final Product:






Rube Goldberg Machine

I'll start out by saying OKGO is a inspiration in many ways to me. The way they think and brainstorm in creating their music videos is fodder for my own creativity as well as my students. I particularly love their video Needing/Getting. I would show This to Shall Pass to my classes when I taught EFL in Korea once a year for a summer camp lesson. We always had a fun time planing and explaining them. 



I decided to keep it simple because I know that there would be some troubleshooting needed when the group was going to be putting it all together during class the following week. I erred towards reliability and predictability in my servo code. I had envisioned some sort of ball or cylinder rolling along to hit a button that would trigger the code on the servo...which would trigger something else!




During class we started out with a plan on paper and then pieced it together. I had a lot of fun trying things out and seeing where we needed to tweak and reenforce. The first time we did a run through it worked perfectly to our surprise! When we tried it a 2nd time the balloon didn't pop, though... oh no!





Scratch Day

 On December 1st I attended the Scratch Day at TC. I wasn't sure what to expect but I knew that people where going to be there because the registration was filling up quickly and some of the workshops were already at capacity by the time I signed up which was less than a day after registration opened.

 I opted to sign for a double session music-themed workshop that featured the Circuit Playground Express. This is a micro controller that has a lot of built-in capabilities like velocity, gravity, light and temperature sensors in addition to the 10 RGB LEDs on the front of the controller. It's form factor is similar to the LilyPad Arduino I had used before, but after looking at the pinout diagram I saw that this was a very versatile controller.

The theme of the session was to make a "trumpet" that responded to pitch and volume by tilting the controller on it's X-axis and Y-axis. While it is possible to program the controller with the Arduino IDE software we used the Makecode website that had a browser based block dragging coding format similar to what the microbit uses.


I followed the tutorial on Adafruit's website for this, and it was a lot like following some Lego instructions. The instrument itself leaves something to be desired as far as being a responsive musical tool, but I think that the controller could have the potential for some very creative musical projects.