# Arduino_Final_Inspiration

Project Proposal

The final project with Arduino is ‘LED lights responding to sounds’. When I was learning programming, I was impressed by a project used algorithm. In the project, you would see different lines, colours that were responsive to sounds on a monitor. With the concept of responding to sounds, I want to use it in my Arduino project. (so that I can display a cool light show in my room?)

Things to consider:

Rhythm, Pitch, Beat

Number of lights

The music:

Happy by Pharrell Williams

Inspiration

# TOTORO

so this little tune is a little happycode that I used at 4 o’clock in the morning sewing a skirt that is due at 9am earlier this week at a friends house. Instead of complaining about why we are still awake sewing, I decided to use this tune as a positive response whenever we need a little boost before breaking down and refusing to finish our garment (just because coffee no longer suffice to the overdosed fashion student).

Here is my code though….

# Let it be…

So I attempted to connect the potentionmeter to the Arduino but I was a little lost when it came to the programming. I think that its really cool that the pitch library parallels the scales on the piano. I tried to recreate the first verse of Let it Be, by the Beatles but the noteduration seems to be interfering with the melody.

# Birthday Beginning

So this is supposed to be my song, but I’m having trouble figuring out why it’s not playing the music. I have been trying to mix around wires but still nothing…these are the first 12 notes (I hope they’re correct) for the Happy Birthday song.

# My Tone!

So you guys should totally listen to my Arduino stuff!
I like it.

# Arduino Analog Read and Tones

Class Recap:

• Introduction to Arduino

At the end of class we learned about analog inputs, and how they can be mapped to tone values. Digital inputs work in a similar way, instead of reading various values you will only read 1s and 0s, 5 volts or 0 volts. Arduino programming is very similar to Processing, you can add if statements and for loops; utilize the logic you have learned so far. By adding a conditional statement that listens to the button presses, you can trigger a sound. It could be a piece of music you compose or maybe you can make a piano if you make every button have its own sound.

Assignment:

Create a project that uses the tones function, with your piezo buzzer, you can add either an analog or digital input to trigger the sound. In this prototype you should experiment in making an enclosure. This interface should be conceptual and also interactive, think outside the box, or inside the music box, or an instrument, or a toy 🙂

/////////////////////////////////////////

/*Class Code: This sketch listens to light! Depending on the variable resistance of your photoresistor you can map its value to tones*/

int speaker = 11;
int sensor = A0;
int sensorValue = 0;

void setup() {
Serial.begin(9600);
pinMode(sensor, INPUT);
pinMode(speaker, OUTPUT);
}

void loop() {