Almost End of Project 2
Well, it’s nearing the end of the road. With less than 24 hours to go til our projects need be handed in, in as complete as form as possible, I present my last blog post on this process.
As of last Thursday, I was anticipating a long weekend of studying. Some major projects and finals were to occupy my time and I was to get a solid chunk of work out of the way…. Unfortunately, I forgot about a major event to which my parents contacted me on Thursday night to warn me about– I was to have a throat-scope procedure done Friday afternoon. Without realizing it, I had lost a solid day and a half of work due to the fact that I forgot to put an appointment on my calendar, justly raising my stress level. Therefore, Thursday evening I put aside my plans to work on the project. I made some progress. Some. A relative term.
Before this, however, I got some interesting work done earlier that week. We decided to see if our Arduino Pro Mini’s would be an acceptable alternative to just a working concept project instead of the inconsistent Spark Core. After soldering in headers, I had believed it would work well. However, after several tests, I reached the conclusion that something had gone wrong in the soldering process. Of course it would! After consulting with others, I tried wiring some headers together. What I had not realized is that the two other parts of the board had the same connections in order to make things work. Connections like ground and power, the TXO and the RXI, the CTS and the DTR. So, simply wiring them together, at a first glance, appeared to be a solid workaround.
After working the Wednesday before on soldering and making sure my connections working on the replacement Arduino, I came home Thursday night to discover that yes, my sound sensor was recognizing the power. However, the output was a consistent value of 250 to 260, and would reflect zero change to actual sound input. 
There was power getting through, but it just wasn’t sending the right signals to get the damn thing to work. Could one of the ends of the driver side be messed up? Or one of the sides on the actual Arduino? What about the pins to connect to the sound sensor? So many possibilities. That is how my Thursday evening turned into a night of messing around with wires for hours to figure out what exactly was going on.
First, I tried messing the wires with how they connected. According to some information I found online, some of the connections could be messed up and needed to be connected in a certain order. So I tried that.

Suffice to say, that didn’t solve the problem. Next step was to try the same order again and see if I had just not pushed some wiring in all the way. Power was sent to the board, but still, no progress.

So, next was to figure out some work around. I was convinced that the FTDI driver portion was the part that wasn’t working properly. So, I dug around in my magic kit of old parts from my Wearables class and found another driver port. Suitably in a nice purple color. I wired that sucker up to the Arduino and gave it a whirl. It looked neat at the very least, and it was a creative workaround.

Ahh, so as you can sorta see in the picture, the light on the sound sensor lit up. It was receiving sound and broadcasting a signal. However, it wasn’t the signal I had been hoping for.
Yep, definitely static values. So that was unsuccessful. At this time, I reached the conclusion that the FTDI driver side was working just fine, on both the red and purple drivers. So, what was the next option? There were other pins around the board that could work to supply power to the Arduino. Why not try those and see if those would provide the necessary power to the board and sound sensor? Well, I gave it a shot. It was a much more tangly-mess than I had anticipated, but I got it hooked up… and…

No go. Still didn’t provide the necessary signal to allow the sensor to print variable values of sound sensor. So, the conclusion I reached was that I solidly messed up with the Arduino Pro Mini. Well that sucks.
So, what are my other options? If the board that was supposed to be a workaround for the board that doesn’t work, doesn’t work, what else do I have the time to figure out how to use? I decided to fall back and try everything I could to make this project at least a proof of concept. Lets go with the SparkCore.
Actual End of Project 2.
So, how did I spend my last weekend working on the project with the SparkCore?
First things first, I tried to create some code to measure my results, whether that be an actual publishable tweet, or simply a println. To do that, I had to set up a timer for the system to count up until it hits a specific allotted time. After a minute of hearing sounds, the sketch would print the total number of sounds heard, and then reset back to 0.

At the time of publication, these were two events I measured while typing this very blog post. Well that’s some proof that my code works, I think?
This is the code that I used for a proof of concept:
// Create a variable that will store the sound value
double sound = 0.0;
#include "math.h";
float n;
//int counter;
int j;
int savedTime;
int totalTime = 60000;
void setup()
{
// Register a Spark variable here
Spark.variable("sound", &sound, DOUBLE);
Serial.begin(9600);
// Connect the sound sensor to A7 and configure it
// to be an input
pinMode(A7, INPUT);
savedTime = millis();
j = 1;
}
void loop()
{
// Calculate how much time has passed
int passedTime = millis() - savedTime;
// Has five seconds passed?
if (passedTime > totalTime) {
Serial.println( " Total Tallied Sounds Heard: " );
Serial.println(n);
savedTime = millis(); // Save the current time to restart the timer!
}
int reading = 0;
double voltage = 0.0;
// Keep reading the sensor value so when we make an API
// call to read its value, we have the latest one
reading = analogRead(A7);
// The returned value from the Core is going to be in the range from 0 to 4095
// Calculate the voltage from the sensor reading
voltage = (reading * 3.3) / 4095;
// Calculate the sound and update our static variable
sound = (20 * (log(15.00 / voltage) ) );
delay(200);
if (reading = 100 && reading < 150)
Serial.println("lower");
if (reading = 100)
Serial.println("low");
if (reading = 150)
Serial.println("medium-low");
if (reading = 300)
Serial.println("medium");
if (reading = 450)
Serial.println("medium-high");
if (reading = 600)
Serial.println("high");
if (reading = 750)
Serial.println("higher");
if (reading > 900 )
Serial.println("highest");
Serial.println (reading);
if (reading >150 && reading totalTime) {
Serial.println( " Total " );
Serial.println(n);
Serial.println("----------------------------------------------");
savedTime = millis(); // Save the current time to restart the timer!
// j = 0;
n = 0;
Serial.end();
}
}
As a whole, I tried to do my best to make it an Internet of Things program. But problems kept arising. The biggest being Temboo. I wanted my project, at the very least, as a proof of concept to tally up the total number of sounds, and publish a tweet, with the total number of sounds heard. This hasn’t worked. In fact, for whatever reason, Temboo won’t work within the SparkCore sketches, despite importing the data. When verified I get a bunch of terrifying nonsense. 
Well this seems to be problematic. From my basic understanding, I believe this means that my Temboo code for printing a Tweet on Twitter doesn’t work or isn’t compatible with either Spark or the Arduino kit. So, I started messing around.
I tried using the same Temboo code and libraries found within Spark to see if any of their examples could work. I entered my username, my key, the app name, everything required. Still, nothing would work, except for my simple dummy sketch. Which I’m going to roll with.
At the end of the day, all these tech failures have left me feeling quite discouraged. I couldn’t get the damn project anywhere close near completion, or even proof of concept. As a senior preparing to go into the real world, it is incredibly disheartening to become so overwhelmed by code that you don’t know what to do. It’s frustrating, but growth comes out of failure, right? Like that phoenix rises from the ashes in that one Harry Potter film, it’s possible, right?
Final Thoughts and some wrap up.
The intention of the project was to analyze sound based on keyboard presses. Setting up a timer for a minute and measuring the amount of key presses in that minute would create a total number of keypresses. That number then, would be sent to a blog post or a Twitter feed, and publish the results. However, the total number of characters would be separated into random words of random length–all whose value would tally up to the total number of keypresses originally calculated.
That was the intention of what it would look like and the process of it.
Instead, the end result was a sketch that read each keypress and added them up. Then, that tally would simply be printed in a serial monitor associated with that sketch. It was a final effort in making things come together, and while it didn’t in a brilliant way, it was made possible by the impossible object, the Spark Core. The code ended up working, albeit not in my intentional manner, but it worked. It is what it is. At the very least, I’m damn proud of getting something to work, even when it all went oh so horribly wrong.
Thanks for reading along.
__________________________________________________________
Cultural Events
Event 1: VTOL
My first cultural event I went to was one hosted by our very own program, hosting digital artist VTOL. From the time that I arrived, I found his creations to be quite interesting. VTOL uses numerous mediums in his work to create some meaningful artwork. It was also evident to see how much passion he puts into his work. At one point, it was said that he puts about a month’s work into each one of his pieces. And based on the relative complexity of each piece, you would say he spent months on each one.
Throughout his talk, he discussed a lot about the process of making each piece, the difficulties, the successes. He focused on several of his works, most of which he showed video of working and the methods used to create.
After everything he showed us, his work still struck me as incredible. I found it quit daunting to see some of his projects, but the fact that he gets each one done in roughly a months time, struck me as absolutely mind-boggling.
There were two works he focused on that particularly struck me as interesting. The first was a work he entitled as “Division by Zero.” This work was interesting as it was a speaker suspended by a magnet, leaving it floating in the air. This sound object seemed quite interesting from his statements that he made in the talk. It uses bluetooth to send sound to the ariel speaker, and uses data in numbers to project rather uncomfortable and glitchy sound. From an outsider view, seeing the project is really interesting based on the pure floating idea. Additionally, it was interesting to see in the videos to see the speaker move based on the sounds output. It was quite the interesting cool project.

The second project that really caught my interest was entitled “Financial Risks.” What VTOL created was an interesting standing machine, with several arms each containing a swipe card reader. This piece largely seemed to be a comment on societies continued and willing use to swipe items with confidential information anywhere. For the installation, any time a user swipes their credit card along the six card readers, the machine would save the order in which the card readers were swiped, and create a generative image. Once the user is done, they may type in their pin, and print a receipt, containing an image of the generated picture from the user’s input. On printing, it will also play tones in the order that the card was swiped as well. It creates a very interesting compositional piece.

Those two pieces were two that VTOL focused on and talked about in his session, and definitely two that struck me incredibly interesting. As a whole, I came away from the talk a bit confused I suppose. When I see creators make work likes this, it makes me personally worried if I could ever create anything as interesting. I find creating to sometimes to be daunting, and the magnitude of VTOL’s work is a bit intimidating to say the least.
Event 2: Mark Mothersbaugh
The second event I attended was Mark Mothersbaugh’s talk at the university. It was hosted by Phi Beta Kappa honor society here at DU. He was there to promote his upcoming art exhibit, entitled “Myopia.” From the start, I was treated to some jokes between Mark and his friend who helped him produce his work, Adam Lerner. So that made the atmosphere significantly more welcoming. The talk began with Mark talking all about his life and his works and how he has practiced art throughout the years, with playful quips from Adam every now and then. He talked his college days, his days with the 80’s band DEVO and their social experiment of music. He states that as a college student, he and his friends were tired of the norms of culture, and liked to focus on the devolution of human society. He and these friends then formed DEVO as a manifestation of this frustration with society. They were interested in using technology to manipulate something to create something more interesting and focused on exploration of results, rather than quickness of results. It was interesting to hear about his life and involvement with music.
What was even more interesting about the talk as a whole, was his discussion on him getting into print art and drawing. From a young kid, he had a hard time seeing, and once he received glasses, he believed he was seeing a whole new world. This inspired him, at least at a young age, to start drawing. And that was the beginning of him drawing. He told the audience that he’s been drawing nearly every single day since. Its with kinda of practice that he’s used to create his works for his show Myopia. While drawing was the root of his creation, he used drawing as a connection to other types of media, from music, to painting. Drawing was his means to access a creative world and make those connections.
As a whole, the artist talk was far more enjoyable than I had anticipated, especially due to Mark’s relaxing demeanor and willingness to describe pretty much is whole process to where he was at. It was a great experience to hear about his work and how it has progressed throughout the years and evolved into his exhibition.
Event 3: Max 7 Preview and Launch
Not as “cultural” per say as the other two events I went to, but an event very relevant to classes I’m currently taking and relevant to our field. I attended a brief session lead by EDP Professor Cory Metcalf on the release of Cycling 74’s Max 7. The program after several years of the release of Max 6, received an upgrade that makes it both look more professional, and function more properly for the visual artists current needs. Cory showed off several new functions of the program, from objects to other new elements. From the get go, one can recognize that the program has taken a turn to be competitive with other programs, just based on looks. It takes a new darker grey color scheme, along with new icons and buttons along the top and sides of the screen to maximize workflow. It is a great and needed addition, especially one that may help others get into the product better. This new design just consolidates some of the tedium of the past version.
Additionally, Max7 includes many behind the scenes technical upgrades. The one that I praised the most when discussed, was the ability to autosave. From working with Max6 in the past, it would notoriously not save anything were your patchers to crash. Max7 carries that new feature that allows the program to recover your data were it to crash. Its a brilliant new addition.
Other new features include full HD video support, new objects that consolidate other older objects. The only problem that I could see and have been warned about is the workflow changes. Apparently, it could take a few minutes to get used to the layout of everything. But that doesn’t seem to be a problem for most EDP students. As a whole, it was awesome to see the product get launched and be able to hear about many of the new features first hand.
















