Programming and Robotics Art
Programming 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
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"
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
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"
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
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
These last few weeks we've been working on wiring circuits with bulbs, resistors, alligator clip wires, and resistors. This was probaly my least favorite project because electricity and I aren't great friends. After learning about those we started using a breadboard, potentiometers, smaller wires, 555 timers, and capacitors. Using our knowledge on circuits,some people learned to solder if they already didn't know how to solder circuit boards. Then our class learned programming in the language python (its like a type of programming). Thus with the knowledge of python we programmed little robot car things.