In this project we started with making simple circuits with light bulbs, batteries, and nicrome wire. Then we moved on to making circuits with breadboards, and looking at resistance and voltage. For the final task of this project we where given a breadboard that you attached to a computer and typed in code to make the board do what you want. The goal of this was to make a "robot art show."
For are final project we made a buzzer play yanky doodle dandy, and having lights flash to every note. Hear is the code we wrote. // put your setup code here, to run once:
const int buzzerPin = 9;
const int songLength = 28;
char notes[] = "ggabgbadggabgfggabCbagfdefgg"; // a space represents a rest
int beats[] = {1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2};
for (i = 0; i < numNotes; i++) // Step through the notes { if (names[i] == note) // Is this the one? { return(frequencies[i]); // Yes! Return the frequency } { return(0); // We looked through everything and didn't find it, } // but we still need to return a value, so return 0. } }
// put your main code here, to run repeatedly:
concepts
Circuit: A circuit is a closed loop of conductive material from one power source terminal to the other. We used circuits in almost everything in this project.
Resistance(R): The amount of slowing of the current through an obstacle. When you add a parallel circuit it decreases the resistance and when you put a circuit in series it increases the resistance. Current(I): The flow of electricity through the circuit.
Voltage(V): The potential energy difference from one side of a component to the other.
Ohm's Law(V=IR): The law of electricity in a circuit. This was used to make sure enough resistance was used in our final project.
Reflection
For this project me and my partner worked very smoothly together especially considering are lack of knowledge in this field. I also feel like we did a very good job of pushing are limited and trying to branch out and figure out new information. One thing I feel like I could have done better was staying on task, this project took quite some time to do and some days i was frustrated and did not want to work. I can improve on this by slowly grinding it out vs. one day on one day off kinda thing. Lastly I feel like I could have done a better job at helping out other groups who where struggling.