WEBVTT 00:00:08.480 --> 00:00:11.420 One of the coolest things I've discovered about circuits is 00:00:11.780 --> 00:00:18.440 circuitry can be an art form like if I have a creative idea, I can get that creative idea out using circuits. 00:00:20.300 --> 00:00:24.700 So if you have ideas, you can use technology to make those ideas come to life. 00:00:26.860 --> 00:00:32.340 Every input or output of a computer is effectively a type of information, 00:00:32.340 --> 00:00:37.240 which can be represented by on or off electrical signals 00:00:37.240 --> 00:00:39.060 or ones and zeros. 00:00:39.400 --> 00:00:46.360 In order to process the information that comes in as input, and to make the information that is output, 00:00:46.360 --> 00:00:49.920 a computer needs to modify and combine the input signals. 00:00:50.540 --> 00:00:58.520 To do this, a computer uses millions of teeny electronic components, which come together to form circuits. 00:01:03.040 --> 00:01:08.460 Let's take a closer look at how circuits can modify and process information that's represented in ones and zeros. 00:01:09.460 --> 00:01:12.280 This is an incredibly simple circuit. 00:01:12.280 --> 00:01:15.820 It takes an electrical signal, on or off, and it flips it. 00:01:15.820 --> 00:01:20.580 So if the signal you give it is a 1, the circuit gives you a 0, 00:01:20.580 --> 00:01:23.620 and if you give the circuit a 0, it gives you a 1. 00:01:23.630 --> 00:01:29.680 The signal that goes in is not the same as the signal that comes out, and so we call this circuit not. 00:01:30.040 --> 00:01:36.580 More complicated circuits can take multiple signals and combine them, and give you a different result. 00:01:36.580 --> 00:01:43.480 In this example, a circuit will take two electrical signals, now each one might be a 1 or a 0. 00:01:43.880 --> 00:01:49.580 If either of the signals coming in is a 0, then the result is also a 0. 00:01:49.580 --> 00:01:52.720 This circuit will only give you a 1, 00:01:52.780 --> 00:02:00.760 if the first signal and the second signal are both a 1, and so we call the circuit and. 00:02:01.220 --> 00:02:06.600 There are many small circuits like this that perform simple logical calculations. 00:02:06.600 --> 00:02:13.400 By connecting these circuits together, we can make more complex circuits that perform more complex calculations. 00:02:13.940 --> 00:02:19.760 For example, you can make a circuit that adds 2 bits together called an adder. 00:02:19.840 --> 00:02:27.040 This circuit takes in 2 individual bits, each one a 1 or a 0, and adds them together to calculate the sum. 00:02:27.350 --> 00:02:29.829 The sum can be 0 plus 0 equals 0, 00:02:30.340 --> 00:02:34.340 0 plus 1 equals 1, or 1 plus 1 equals 2. 00:02:34.360 --> 00:02:39.440 You need two wires coming out because it can take up to two binary digits to represent the sum. 00:02:40.060 --> 00:02:44.500 Once you have a single adder for adding two bits of information, 00:02:44.500 --> 00:02:50.340 you can put together multiples of these adder circuits side-by-side to add together much larger numbers. 00:02:51.170 --> 00:02:56.229 For example, here's how an 8-bit adder adds the numbers 25 and 50. 00:02:57.260 --> 00:03:03.730 Each number is represented using 8 bits, resulting in 16 different electrical signals that go into the circuit. 00:03:04.920 --> 00:03:10.760 The circuit for an 8-bit adder has lots of little adders inside of it, which together, calculate the sum. 00:03:12.500 --> 00:03:17.340 Different electrical circuits can perform other simple calculations like subtraction or multiplication. 00:03:17.340 --> 00:03:24.720 In fact, all the information processing your computer does is just lots and lots of small simple operations put together. 00:03:24.720 --> 00:03:30.520 Each individual operation done by a computer is so, so simple it could be done by a human, 00:03:30.520 --> 00:03:34.100 but these circuits inside computers are way way faster. 00:03:34.820 --> 00:03:38.660 Back in the day, these circuits were big and clunky, 00:03:38.660 --> 00:03:44.780 and an 8-bit adder could be as big as a fridge, and it would take minutes for them to perform a simple calculation. 00:03:45.100 --> 00:03:50.060 Today, computer circuits are microscopic in size, and way way faster. 00:03:50.580 --> 00:03:53.200 Why are smaller computers also faster? 00:03:53.200 --> 00:03:58.140 Well, because the smaller the circuit is, the less distance the electrical signal has to go. 00:03:58.360 --> 00:04:04.340 Electricity moves at just about the speed of light, which is why modern circuits can perform billions of calculations per second. 00:04:05.320 --> 00:04:10.720 So whether you're playing a game, recording a video, or exploring the cosmos, 00:04:11.860 --> 00:04:18.020 everything you could possibly do with technology requires lots of information to be processed extremely quickly. 00:04:18.860 --> 00:04:24.900 Underneath all this complexity is just lots of teeny little circuits that turn binary signals 00:04:24.900 --> 00:04:27.720 into websites, videos, music, and games. 00:04:27.720 --> 00:04:31.960 These circuits can even help us decode DNA to diagnose and cure disease. 00:04:31.960 --> 00:04:34.920 So what would you like to do with all these circuits?