Programming Concepts:
Terms:
Modulo - returns the remainder from a division (ex: 3 % 2 will return 1)
Strings - another useful data type that con contain letters, numbers, and symbolsComments - messages in the code that are not read by the computer, only for humans to see, encased by quotations. A comment that stretches over more than one line needs three quotations on either side.
Functions - one of the most basic methods in code, entered into the code by defining it
Editor - the area where you write your code
Apostrophes - these break the strings, so in Python code, we use a backslash to fix this Variable - stores piece of data and gives it a specific name
Boolean - a data type that can only have two values
White Space - used to structure code and properly indent with four spaces
Console - where the code results and/or error messages are shown
Exponents - the exponent sign (^) is not used, instead (**) is
Division - %
String methods:
1 len () = length / number of characters of a string
2. lower () = gets rid of all capitalization
3. upper () = capitalizes all letters
4. str () = changes non-strings into strings
Examples of string methods:
1. given parrot = "Norwegian Blue", len (parrot) = 14
2. "Norwegian Blue".lower () = "norwegian blue"
3. "norwegian blue".upper () = "NORWEGIAN BLUE"
4. str (2) = "2"
Terms:
Modulo - returns the remainder from a division (ex: 3 % 2 will return 1)
Strings - another useful data type that con contain letters, numbers, and symbolsComments - messages in the code that are not read by the computer, only for humans to see, encased by quotations. A comment that stretches over more than one line needs three quotations on either side.
Functions - one of the most basic methods in code, entered into the code by defining it
Editor - the area where you write your code
Apostrophes - these break the strings, so in Python code, we use a backslash to fix this Variable - stores piece of data and gives it a specific name
Boolean - a data type that can only have two values
White Space - used to structure code and properly indent with four spaces
Console - where the code results and/or error messages are shown
Exponents - the exponent sign (^) is not used, instead (**) is
Division - %
String methods:
1 len () = length / number of characters of a string
2. lower () = gets rid of all capitalization
3. upper () = capitalizes all letters
4. str () = changes non-strings into strings
Examples of string methods:
1. given parrot = "Norwegian Blue", len (parrot) = 14
2. "Norwegian Blue".lower () = "norwegian blue"
3. "norwegian blue".upper () = "NORWEGIAN BLUE"
4. str (2) = "2"
More Concepts :
Kirchoff's 1st Rule: "The total current out of a node equals the total current into the node."
Breadboards: vertical rows are connected in the outermost columns on both the left and right side; in the center columns, horizontal rows are connected
Resistors: poor conductors that reduce voltage
Series circuits: draws less electricity because each additional bulb is extra resistance. Voltage changes, but current remains the same throughout.
Parallel circuits: draws more electricity because as the number of bulbs increases, the resistance in turn goes down. Parallel circuits are independent, unless they're in series with another set of parallel circuits.
Voltage: power that electricity gives off, push/pull of electricity, pressure or Potential Energy difference
Resistor's Code:
First band: 1st digit
Second band: 2nd digit
Third band: number of zero's in the amount of resistance
Fourth band: tolerance
0 Black
1 Brown
2 Red
3 Orange
4 Yellow
5 Green
6 Blue
7 Violet
8 Gray
9 White
0.1 (+/- 5%) Gold
0.01 (+/- 10%) Silver
Reflection
In this project I learned a lot about electronics and programming. I got to understand the concepts and the logic behind electricity and how its used. Although I did not particularly enjoy this project it was a great learning experience. There was so much patience that had to be used in this project. Circuitry was a lesson learned, you always have to be careful not to short out the battery. I gained a lot of skill through learning about circuitry. Even though it wasn't the funnest project it was nice to develop that skill.
Programming is a very difficult and time consuming task, also the wiring of the bread board was also very difficult and needed to have patience in order to be completed. The robot aspect of this project was fun to build, and very easy to program. Although my group like many other groups never completed a robot we got very close, but ran out of time. On the next project I will try to manage my time more accurately so this does not happen again.