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

1. http://www.youtube.com/watch?v=SkrhCUQHKX8

2. http://www.youtube.com/watch?v=3P7JoxfNo-0

3. http://www.youtube.com/watch?v=___XwMbhV4k

4. http://www.youtube.com/watch?v=guppB4cK3oU

 

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).

Sound link –>  http://youtu.be/JGUlDB8K5LM

Here is my code though….

Continue reading

Let it be…

imageUntitled

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

BirthdaySo 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.

 

Arduino Analog Read and Tones

Class Recap:

  • Introduction to Arduino
  • Circuits, Symbols and Breadboarding

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 🙂

Analog Read:

buzzer5_bb

Analog Read: http://arduino.cc/en/Tutorial/AnalogReadSerial

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

/*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() {
sensorValue= analogRead(sensor);
sensorValue = map(sensorValue, 1, 15, 31, 3000);
tone(speaker, sensorValue);
Serial.println(sensorValue);
delay(1000/16);
noTone(speaker);
}/////////////////////////////////////////

Digital Read:

button

Serial-Begin2

Digital Read: http://arduino.cc/en/Tutorial/DigitalReadSerial

Button: http://arduino.cc/en/tutorial/button

small-circuit-solderless-breadboard-md