Programming Robotics Art
For a while we have been working on electrical circuits with resistors, bulbs and alligator clip wires. We continued to work on electrical circuits with smaller wires, capacitors, potentiometers, 555 timers, and breadboards. Also, we have been working on programming with python. Another part of this project was to program a robot with raspberry pie boards.
Concepts:
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"
For a while we have been working on electrical circuits with resistors, bulbs and alligator clip wires. We continued to work on electrical circuits with smaller wires, capacitors, potentiometers, 555 timers, and breadboards. Also, we have been working on programming with python. Another part of this project was to program a robot with raspberry pie boards.
Concepts:
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"
This robot above was the exact robot we made and programmed.
Reflection:
When we first started this part I thought I would be completely confused and just give up, but I didn't. I tried to learn this section as much as I could. I gained so much knowledge I never thought I would know. I learned so much about electrical circuits and how to complete them. In this project you also had to have a lot of patience. Many times when I was working the circuit would not fully complete and it always was some small mistake that we had to redo many times over and over.
Programming was one of a very difficult part. It took many hours and hard work to complete python. It took me a long time to get through each lesson when it should have taken a little less time. I should have tried staying more on track, but I was still able to complete it. This section was very fun and frustrating at the same time.
When we first started this part I thought I would be completely confused and just give up, but I didn't. I tried to learn this section as much as I could. I gained so much knowledge I never thought I would know. I learned so much about electrical circuits and how to complete them. In this project you also had to have a lot of patience. Many times when I was working the circuit would not fully complete and it always was some small mistake that we had to redo many times over and over.
Programming was one of a very difficult part. It took many hours and hard work to complete python. It took me a long time to get through each lesson when it should have taken a little less time. I should have tried staying more on track, but I was still able to complete it. This section was very fun and frustrating at the same time.