Labels

Monday, 29 April 2013

MDDN 251: Lights in the Dark

This is the screen lighting up to music in complete darkness so that you can see the lights more effectively and the pattern they play. The pattern sort of links up with the music because of the analog serial number outputs the peak numbers which link the speed of the lights to the volume of the music.

MDDN 251: Video of Light response to Music



This is the final prototype of the lights responding to audio. The closer and louder the music gets to the microphone, the faster the lights begin to flash. Then once the music is silent, the lights slow to a stop. It continues to flash once ever few seconds, but that may be background noise being picked up slightly. Overall, the lights responding to Audio was quite successful and responded in a way that i had envisioned.

MDDN 251: Images of Final Prototype





Friday, 26 April 2013

MDDN 251: Process of connecting the Lights to the Microcontrollers

I completed the circuit that was posted earlier and here is the outcome:

This circuit only uses half of the LEDs on the display so in order to use the rest, i must connect the overflow of the first microcrontroller to the data of the second microcontroller and complete this circuit here and create a Dual Shift Register:

That process went relatively well and i ended up with all of the lights being able to brighten up. Then with the code provided applied, it made them flash one after another in the sequence that is shown in previous videos. This is great progress on getting the screen to work. Now i must struggle to get the microphone to connect to the screen.

MDDN 251: Faster Light Patterns and understanding of the Code


I understand the code that has been applied to create these patterns and lights. There is a simple number change to change the speed of the lights. By changing the DELAY of the lights, it can be made to go faster (when there is a low delay of 100 or less) or slower (when there is a delay of around 300, that is the speed of the previous video posted). To control these speeds, a simple IF statement is needed that states IF the number recorded on the serial monitor increases by 100, the delay will decrease by 25. So if the slowest delay speed was 300, by the time the serial monitor reaches 1023 (typical peak digital recorded number) the delay will be 50-25, which means the lights will be shining as fast as they are shown in the above video.

MDDN 251: Working Light Pattern


MDDN 251: Audio Input

So i got an electret Mic with a 100x amplifier attached that i can connect up to create the audio input. When connected to the arduino however, there is an issue with the digital output in the serial monitor. the numbers it outputs are as follows:


814
815
814
820
818
819
814
814
814
813
816
813
814
816
814
816
814
814
813
815
813
814
815
814
814
811
811
813
811
809
812
809
810
810
809
809
810
809
808
811
809
808
809
811
810
808
809
810
810
811
809
812
811
813
809
812
810
812
810
810
813
811
811
812
811
809
813
812
809
811
811
809
812
811
809
808
808
807
810
810
811
808
806
807
806
809
806
809
806
808
809
812
806
806
808
809
809
808
807
808
807
806
808

Now this is good, its actually picking up something, but at the same time, its picking up nothing. During that bracket out output, i shouted, i clapped, i turned on loud music, and yet the numbers remain the same. The code im using for it is a simple serial monitor output code:

int sensorValue;

void setup()
{
   Serial.begin(9600);
}

void loop()
{
    sensorValue = analogRead (0);
    Serial.printIn (SensorValue, DEC);
    delay (100);
}

This code seemed simple enough, and it should show results right? But no matter what i do right beside the microphone, the number output doesn't change so it isn't registering what i'm doing.. Also, i copied the diagram that it showed me on how to wire up this particular microphone to the wire. I'm stuck..