Binary Code
We were introduced to the idea of binary code with this math trick:
This trick worked like this. We would pick a number between 1 and 31 and keep it to ourself. Then we would say whether or not the number was in each respective box. Then the person demonstrating the trick, in our case Mr. Farrell, would be able to guess the number correctly, without even looking at the boxes. At first I, and the majority of the class, was baffled by this feat. Surely no one could be able to memorize the exact numbers that are in each of the boxes, and which ones were not... or could they? With the help of fellow students, we realized that it likely had something to do with binary code. The yes/no factors leant themselves perfectly for a binary centric use. We can simply assign a 0 for no and a 1 for yes. Then we took the ammount of outputs in binary (2) and put them to the power of the box number minus one. So the first box was 2^(1-1), then 2^(2-1), 2^(3-1), 2^(4-1), 2^(5-1). This would simplify to the values of 1, 2, 4, 8, and 16 respectively. We can now find any number by knowing whether or not it is in a certain box. For example for 17, it would be yes, no, no, no, and yes. We can then add the values of the two yeses and get 1 plus 16 to get 17. Try it with any number and it works!
Cedar Logic
In Cedar Logic we learned about something called "gates"
Basic gates
XNOR
A XNOR gate allows you to be able to be able to select
2bit adding
Flip-Flop
How do computers remember? Well they use something that is called a Flip-Flop gate. In this gate you are only able to create a memory if the middle switch is on, and you are only able to clear the memory by turning all of the switches are on. This allows for the outputs to be able to be changed only under specific conditions.
Soldering
Today we learned basic soldering skills and applied them to put together this little robot pin with light up LEDs. Some major takeaways from this was that:
First, in order to solder we want to make sure not to put on too much solder so that it leaks onto other contacts because then it will short out.
Second, we want to make sure that the components are very stable when you begin soldering, otherwise it will move around too much and you cant do anything.
Lastly, you want to make sure that you have a sufficient and even amount of solder, otherwise there will be no contact made.
Operating Systems
Examples of Operating Systems
Two of the main OSs out there are Microsoft Windows and Mac OSX. However there is also an OS called Linux.
Linux is special in that it is an open operating system. This means that no one really owns it and it is developed collaboratively between different companies. Linux was originally used as a server OS but is also usable as a desktop OS as well. Linux is also the most widely ported OS ever, being found in phones, tablets, onboard vehicle GPS systems and even some highend musical keyboards.
Programming Languages
A programming language is something that writes instructions in the form of programs for the computer to use. It allows the people to write code that makes sense to humans, and can be read by a computer at the same time.
One example of a programming language is Python which is an open source programming language that was developed with the philosophy of code visibility in mind. It is a high-level programming language, which means that it contains much more intuitive commands and automates a lot of the technical aspects of the code keeping it much more user friendly.
Using Python
One activity we can use python for, is to simulate the program LOGO. In order to access the commands and functions needed to simulate LOGO, you need to give the command: from turtle input*. Now we can start coding for the turtles.
The actions that you need to know for any program is to be able to loop, have functions, have variables, conditionals and comments. So we started to learn these.
In order to loop you need to use a range command. With proper syntax you type: for i in range (number of times repeated):. The ":" ends the line and also indents the next one including the indented code in the repeat.
In order to define a function, you need to type in the command "def" and then include the name of the function, with no spaces in the name, then a set of parentheses "()" and then a colon to finish it off, It should look like this. def function_name():
Transistors
Transistors are essentially a 3 pronged switch that can be turned on and of by sending and stopping power towards the base. This is extremely useful, as they can be used to create gates, which is what we did with breadboards.
Breadboards
Breadboards are a device that allows you to prototype circuits before making them permanent by soldering them. In class we prototyped these breadboards and made both an OR gate and an AND gate. But First we needed to know how to do a simple circuit.
Simple Circuit
Troubleshooting
One time my chrome book would not connect to the internet. I tried to fix by pushing the troubleshoot button, but it did not do very much. That meant that I needed to try something new. So I decided to turn off my chromebook and turn it on again. Then it was able to connect to the internet.
Troubleshooting With a Desktop
In class today we got some old desktop computers and booted them up. Ours, hwever, would not get past the IMD screen. We then troubleshooted it by going to the BIOS and found out the computer had no operating system, and therefore would not boot up to anything. We decided to look in the computer as well to see if there were any hardware issues with it. We discovered that the powersupply fan did not work, so that meant that it likely needed to be replaced. Also we discovered that the computer only had 1 GB of RAM, s