Thursday, February 24, 2011

Lab 3 Circuit Pictures!

Well, now that Paul's stolen my thunder, I think that another introduction is kind of repetitious! But hello to everyone who's reading this blog =)

So, Lab 3 involved using the Serial.read() command to control the Arduino. Being as fond of music as we are, we created a musical keyboard to input characters to output different notes. Paul already shoddied posting the code, so as self-designated group photographer, I am just going to post the picture of our circuits on the Arduino. I'll try to make them more artistic as we become more regular in our blogging.


So essentially, we had the positive end of the buzzer (which is the sound emitter) connected to the digital pin and the negative end was then connected to the ground.

The second half of Lab 3 involved using the ColorPal setup to figure out the color of an object placed near it. The red, green, and blue LEDs flash in sequence and measuring the reflected light intensity for each of the three colors using a photodiode.




What is interesting about this circuit is that the ColorPal serves both as an input and output device. As such, the digital pins 2 and 3 are connected in the above diagram. The pin 2 is then connected to a 2K ohm resistor, which is then connected to the 5 V. The ColorPal also have three pins that are appropriately connected to the 5V, ground, and signal as necessary.

Well, look out for Paul's blog on the actual code and Fritzing diagrams for the circuits that we used!

No comments:

Post a Comment