1 00:00:00,000 --> 00:00:05,600 Introduction to hardware hacking. Earlier today, Joe Grand gave a great talk about some advanced topics. 2 00:00:05,880 --> 00:00:09,800 But I'm going to step back a little bit and talk about sort of some introductory skills 3 00:00:09,800 --> 00:00:13,780 and introduction to hardware hacking if you want to start in on it. 4 00:00:15,340 --> 00:00:17,260 So why hardware hacking, for me anyway? 5 00:00:18,760 --> 00:00:23,520 Hardware hacking doesn't seem to get near the publicity as much publicity as computer or software hacking. 6 00:00:23,700 --> 00:00:27,800 I'd like to change that. I'd like to make hacking a more positive thing. 7 00:00:27,800 --> 00:00:30,280 Get more people introduced to it and more people doing it. 8 00:00:31,480 --> 00:00:34,260 So I always sort of start off with a definition. What is a hardware hack? 9 00:00:34,360 --> 00:00:36,900 And this is a little bit long, but bear with me. 10 00:00:37,300 --> 00:00:42,800 To me, a hardware hack is a sometimes clever modification or fix made to a piece of equipment 11 00:00:42,800 --> 00:00:47,120 that improves its performance or makes the equipment do something for which it was not originally intended. 12 00:00:48,220 --> 00:00:51,320 The results of the hack need not be useful in the strict sense of the word. 13 00:00:51,380 --> 00:00:51,960 They can just be fun. 14 00:00:52,780 --> 00:00:54,980 You can use the word hack as a noun or a verb. 15 00:00:55,120 --> 00:00:57,780 As a noun, you can say, well, that hack you made to your token. 16 00:00:57,800 --> 00:00:58,520 That toaster was great. 17 00:00:59,240 --> 00:01:03,800 Or, as a verb, you can say, let's hack your brother's TV set tonight so it can only tune to channel 13. 18 00:01:06,240 --> 00:01:08,240 Well, for me, hardware hacking has always been easier. 19 00:01:08,420 --> 00:01:09,220 Why is that? 20 00:01:09,700 --> 00:01:12,680 Well, when you buy a piece of hardware, let's say a toaster, for example, 21 00:01:12,840 --> 00:01:15,520 you can open it up and you can see exactly what's inside. 22 00:01:15,820 --> 00:01:18,180 You know, there's nothing obscured inside of it. 23 00:01:18,560 --> 00:01:21,640 Very often, repair manuals are available for most equipment. 24 00:01:22,920 --> 00:01:26,600 And your girlfriend's significant other can benefit from your skills as a hacker. 25 00:01:26,740 --> 00:01:27,620 You can fix stuff. 26 00:01:27,800 --> 00:01:28,260 You can go around the house. 27 00:01:29,480 --> 00:01:33,800 You know, when's the last time your girlfriend or significant other asked you to fix their copy of Word? 28 00:01:35,200 --> 00:01:35,560 Okay. 29 00:01:36,820 --> 00:01:38,320 So software skills are useful, too. 30 00:01:38,400 --> 00:01:41,300 But for me, you can fix electrical stuff. 31 00:01:42,180 --> 00:01:45,740 When you buy a piece of commercial software, you can't open it up and see how it works. 32 00:01:45,820 --> 00:01:49,180 Now, of course, the exception to this is open source, and open source is a great thing. 33 00:01:50,000 --> 00:01:53,500 But most pieces of software, you're stuck with an executable file and no source code. 34 00:01:53,680 --> 00:01:55,180 You can't see how it works or change it. 35 00:01:55,380 --> 00:01:56,860 Its behavior is fixed, usually. 36 00:01:56,920 --> 00:01:57,620 And, you know, 37 00:01:57,800 --> 00:02:00,520 to which things the original programmer intended it to do. 38 00:02:00,920 --> 00:02:02,580 You can't examine it and change it. 39 00:02:03,200 --> 00:02:07,300 Again, open source is sort of an example, is an exception to this, and is a very good thing. 40 00:02:08,200 --> 00:02:09,120 A little bit about me. 41 00:02:09,240 --> 00:02:12,300 I graduated too many years ago from MIT with a couple of degrees. 42 00:02:13,080 --> 00:02:14,580 I've been hacking since I was a kid. 43 00:02:14,700 --> 00:02:21,280 When I was probably eight years old, my father bought me one of those 101 electronics kits from Radio Shack. 44 00:02:21,360 --> 00:02:25,460 You know, it said ages 13 and above, but he didn't bother reading the recommended ages. 45 00:02:25,580 --> 00:02:27,140 So I just sort of put stuff together. 46 00:02:27,280 --> 00:02:27,700 You know, at first. 47 00:02:27,800 --> 00:02:28,480 Most of it didn't work. 48 00:02:28,680 --> 00:02:31,620 But as I got into it, I got more and more of the little circuits to work. 49 00:02:32,060 --> 00:02:33,460 And just enjoyed that. 50 00:02:33,580 --> 00:02:35,420 I also enjoyed taking apart stuff around the house. 51 00:02:35,520 --> 00:02:37,460 Old radios, toasters, stuff like that. 52 00:02:38,600 --> 00:02:40,180 I failed a bunch of different day jobs. 53 00:02:40,420 --> 00:02:42,580 I've been a toy designer many years ago. 54 00:02:42,860 --> 00:02:44,700 I designed digital cameras for Apple. 55 00:02:45,080 --> 00:02:47,440 I started a company a number of years ago called Pocket Science. 56 00:02:47,620 --> 00:02:52,220 And I'm a writer of the hardware hacking book, of which it is an example here. 57 00:02:53,260 --> 00:02:54,520 Took me about two years to write. 58 00:02:54,700 --> 00:02:57,640 And in it, I gather a number of hacks that I did and some other stuff. 59 00:02:57,680 --> 00:02:57,780 I've done. 60 00:02:57,780 --> 00:02:59,640 I thought it was cool and put it together. 61 00:03:01,100 --> 00:03:01,500 Okay. 62 00:03:01,600 --> 00:03:03,100 In this talk, we're going to cover a number of items. 63 00:03:03,660 --> 00:03:06,380 We're going to talk about some basic electrical engineering concepts. 64 00:03:06,920 --> 00:03:11,400 We're going to talk about some basic components, electronic components you'll see and what they do. 65 00:03:11,680 --> 00:03:13,700 We'll talk about cracking the case. 66 00:03:13,800 --> 00:03:16,080 How to open up electronics without really destroying it. 67 00:03:16,220 --> 00:03:19,620 Many times, you want the piece of equipment to be cosmetically clean when you're done, 68 00:03:19,660 --> 00:03:24,460 either for your own purposes or for purposes of not having it seen as being opened up. 69 00:03:24,760 --> 00:03:26,400 We'll talk a little bit about building circuits. 70 00:03:27,160 --> 00:03:27,760 How to restore. 71 00:03:27,760 --> 00:03:28,480 How to read a schematic diagram. 72 00:03:28,720 --> 00:03:32,920 How to breadboard, which is a way to quickly prototype circuits without picking up a soldering iron. 73 00:03:33,080 --> 00:03:38,100 And then we'll talk a little bit about soldering irons, how to solder stuff together, how to connect to different integrated circuits. 74 00:03:38,480 --> 00:03:42,840 We'll talk a little bit about where to get parts, some places online and some places offline. 75 00:03:43,220 --> 00:03:46,180 And then we'll walk through a couple of projects, stuff that I've worked on. 76 00:03:46,260 --> 00:03:51,100 I'll describe some of the parts and some of the motivations behind it, both some small-scale stuff. 77 00:03:51,260 --> 00:03:52,940 I've got a toaster I hacked up. 78 00:03:53,140 --> 00:03:56,460 I hacked up a self-cooling beer mug. 79 00:03:56,580 --> 00:03:57,620 And electronics. 80 00:03:57,620 --> 00:04:01,960 Electronic flashlight, where I've taken an incandescent flashlight and did a quick hack and changed it to use LEDs. 81 00:04:02,460 --> 00:04:08,700 And finally, I'll walk through a semi-famous hack by a group called the Chaos Computer Club over in Germany, called Blinkenlights, 82 00:04:08,800 --> 00:04:11,780 where they took an eight-story building and turned it into a giant display. 83 00:04:11,960 --> 00:04:13,860 So I'll talk about a few of the technical details behind that. 84 00:04:15,340 --> 00:04:15,780 Okay. 85 00:04:16,420 --> 00:04:20,880 There's sort of two basic classes of components that you can use when you build circuits. 86 00:04:21,060 --> 00:04:22,340 It's called passive and active. 87 00:04:22,820 --> 00:04:24,060 Passive parts are just that. 88 00:04:24,100 --> 00:04:26,920 They don't do anything active to a signal. 89 00:04:26,920 --> 00:04:28,220 Or do anything active to electricity. 90 00:04:28,540 --> 00:04:32,520 And there's sort of four that I'll call out right now that we can talk about. 91 00:04:32,800 --> 00:04:37,280 Resistors, capacitors, inductors, and transformers, which are actually a type of inductor. 92 00:04:37,760 --> 00:04:38,860 And then there's active parts. 93 00:04:38,980 --> 00:04:45,560 And that's sort of pretty much everything else, which is transistors, diodes, and integrated circuits, which are basically just a bunch of transistors. 94 00:04:47,460 --> 00:04:47,820 Okay. 95 00:04:48,040 --> 00:04:48,400 Resistors. 96 00:04:48,580 --> 00:04:49,480 What does a resistor do? 97 00:04:49,980 --> 00:04:52,280 It limits or resists the flow of electricity. 98 00:04:52,700 --> 00:04:56,640 A lot of times people like to think about the water pipe analogy when you think about electronics. 99 00:04:56,920 --> 00:05:06,080 Well, if you think about a pipe as a piece of wire with water flowing through it, a resistor would be a difference in diameter of that pipe that would either resist or allow more water to flow through it. 100 00:05:07,180 --> 00:05:09,120 Resistor values are measured in ohms. 101 00:05:10,080 --> 00:05:19,180 The equation that governs the flow of electricity through a resistor is V equals IR, where V is the voltage, I is the current, and resistance is measured as R. 102 00:05:19,920 --> 00:05:25,480 An example of how a resistor is used, a simple example, is that you can use it to limit current through a light-emitting diode or LED. 103 00:05:26,920 --> 00:05:30,120 LEDs are, you can't just hook them to a battery and let them light up. 104 00:05:30,180 --> 00:05:32,820 You need to resist or limit the flow of current through them. 105 00:05:32,900 --> 00:05:35,640 If you don't limit this flow, the LED will typically blow up. 106 00:05:35,820 --> 00:05:37,140 So that's what you use a resistor for. 107 00:05:37,660 --> 00:05:39,440 And what you do is you typically hook it in series. 108 00:05:39,540 --> 00:05:40,620 And I'll cover this in another slide. 109 00:05:41,320 --> 00:05:45,040 Resistors themselves, let me see, get a pointer here, come in lots of different packages. 110 00:05:45,180 --> 00:05:47,780 These are through-hole components. 111 00:05:48,020 --> 00:05:51,180 These are probably, you know, maybe five, six millimeters long. 112 00:05:51,320 --> 00:05:52,560 They've got little metal leads coming out. 113 00:05:52,800 --> 00:05:55,200 This other one over here is a surface mount part. 114 00:05:55,400 --> 00:05:56,900 It's a little tiny chip. 115 00:05:56,920 --> 00:05:58,720 And they're getting smaller every day. 116 00:05:59,000 --> 00:06:04,440 Joe in an earlier talk mentioned that resistors are getting so small that you can actually inhale them and not know. 117 00:06:04,600 --> 00:06:05,720 They're actually getting that small. 118 00:06:06,960 --> 00:06:10,600 The schematic symbol for resistor here is a line with a bunch of squiggly things. 119 00:06:11,060 --> 00:06:12,680 And we'll get into schematics in a little bit. 120 00:06:12,840 --> 00:06:17,540 But next to every component in a schematic diagram is typically what's called a reference designator. 121 00:06:17,580 --> 00:06:19,800 That's that letter R standing for resistor. 122 00:06:20,240 --> 00:06:21,940 And a number telling you which resistor. 123 00:06:22,140 --> 00:06:22,860 And then a value. 124 00:06:22,920 --> 00:06:26,820 Right here it says resistor, which is a default for a schematic capture package I use. 125 00:06:28,680 --> 00:06:29,120 Capacitors. 126 00:06:30,080 --> 00:06:32,740 Capacitors store energy in the form of an electric field. 127 00:06:33,080 --> 00:06:35,360 They act basically like small batteries in a circuit. 128 00:06:36,660 --> 00:06:41,860 The value of a capacitor is measured in farads, which is named after Michael Faraday. 129 00:06:42,740 --> 00:06:45,620 Voltage, current, and capacitance follow a slightly different equation. 130 00:06:45,740 --> 00:06:50,540 You'll probably have to dig out your calculus books and your old math books to really work with this equation. 131 00:06:50,700 --> 00:06:55,280 But basically, the current that flows through a resistor is equal to the capacitance, the capacitive value, 132 00:06:55,860 --> 00:06:56,900 times the change in the resistance. 133 00:06:56,900 --> 00:06:58,300 And then the change in voltage with respect to time. 134 00:06:58,940 --> 00:07:03,780 So basically what this means is, if you put a slowly increasing voltage across a capacitor, 135 00:07:04,460 --> 00:07:06,060 you can get current to flow through it. 136 00:07:06,100 --> 00:07:09,480 But if you put a constant voltage, just like if you touch a battery to the terminals, 137 00:07:09,780 --> 00:07:12,620 current will flow through it for a short amount of time. 138 00:07:12,700 --> 00:07:14,060 And then it will charge up like a battery. 139 00:07:15,900 --> 00:07:17,180 Capacitors are sometimes polarized. 140 00:07:17,560 --> 00:07:20,540 And what this means is that it has a plus side and a minus side. 141 00:07:20,720 --> 00:07:22,840 And if you hook it up backwards, it will pop. 142 00:07:23,060 --> 00:07:24,220 It will actually explode. 143 00:07:24,580 --> 00:07:26,600 So you need to look at the capacitor. 144 00:07:26,600 --> 00:07:27,240 You need to look at the capacitor you're using. 145 00:07:27,320 --> 00:07:29,660 Typically they have a little plus marked on one side. 146 00:07:31,580 --> 00:07:35,040 Capacitors are often used to filter noisy circuits. 147 00:07:35,420 --> 00:07:37,940 Most capacitors are used in power supplies. 148 00:07:38,220 --> 00:07:44,740 When you convert power in a battery to use from a laptop or power from the wall current, 149 00:07:44,920 --> 00:07:46,740 used to usually filter it. 150 00:07:47,200 --> 00:07:48,740 Okay, so let me get the pointer up here. 151 00:07:48,920 --> 00:07:51,100 So capacitors come in lots of different packages. 152 00:07:51,280 --> 00:07:54,660 This can here is a type of capacitor called an electrolytic capacitor. 153 00:07:55,400 --> 00:07:56,580 Electrolytic basically refers to a capacitor. 154 00:07:56,600 --> 00:07:58,080 It refers to the chemistry used to build it. 155 00:07:58,780 --> 00:08:00,720 Electrolytic capacitors are almost always polarized. 156 00:08:01,500 --> 00:08:04,340 This capacitor over to the left of it, this little yellow blob, 157 00:08:04,560 --> 00:08:05,620 is called a tantalum capacitor. 158 00:08:07,360 --> 00:08:10,380 They use a small dot of a metal called tantalum 159 00:08:10,380 --> 00:08:14,040 placed onto one of the metal pins inside of it. 160 00:08:14,180 --> 00:08:16,900 And it actually stores quite a bit of energy for a small package. 161 00:08:17,080 --> 00:08:18,180 And then they encapsulate it. 162 00:08:18,540 --> 00:08:20,360 Tantalums are almost always polarized. 163 00:08:20,480 --> 00:08:22,640 And if you do run a tantalum capacitor backwards, 164 00:08:23,400 --> 00:08:24,920 you'll get a nice little bang on the board. 165 00:08:25,340 --> 00:08:26,580 So if you want to have a capacitor like that, 166 00:08:26,600 --> 00:08:27,120 with an exploding circuit, 167 00:08:27,260 --> 00:08:29,380 you can put the capacitors in backwards and watch the fireworks. 168 00:08:31,260 --> 00:08:33,780 Capacitors also come in little tiny chip-scale packages. 169 00:08:33,960 --> 00:08:35,640 Let me get the pointer here again, which is over here. 170 00:08:35,900 --> 00:08:37,520 These are called surface-mount capacitors. 171 00:08:38,440 --> 00:08:40,580 The schematic symbol for a capacitor is here. 172 00:08:40,700 --> 00:08:42,600 It looks like two lines, like two plates. 173 00:08:43,260 --> 00:08:45,920 And that actually represents sort of the structure inside the capacitor. 174 00:08:46,200 --> 00:08:49,320 There's no wires that short across the two terminals of a capacitor. 175 00:08:49,520 --> 00:08:50,380 They're used to store energy. 176 00:08:50,680 --> 00:08:53,160 And again, you see the C1, C standing for capacitor, 177 00:08:53,440 --> 00:08:54,520 1, the reference designator. 178 00:08:54,760 --> 00:08:56,420 And the value would be replaced 179 00:08:56,600 --> 00:08:57,160 with the word cap. 180 00:08:59,000 --> 00:08:59,480 Inductors. 181 00:09:00,380 --> 00:09:02,400 Inductors store energy in a slightly different manner. 182 00:09:02,460 --> 00:09:04,080 They store it in the form of a magnetic field. 183 00:09:04,540 --> 00:09:07,840 The value for inductors is measured in Henry's. 184 00:09:08,240 --> 00:09:11,380 The equation that governs the current and voltage 185 00:09:11,380 --> 00:09:13,920 and inductance of an inductor is given by the equation, 186 00:09:14,100 --> 00:09:17,460 the voltage equals the inductance times the change in current 187 00:09:17,460 --> 00:09:18,440 with respect to time. 188 00:09:19,140 --> 00:09:20,220 Now what that means is, 189 00:09:20,800 --> 00:09:22,820 an inductor, if you just took a battery across it 190 00:09:22,820 --> 00:09:24,520 and wait some amount of time, 191 00:09:24,520 --> 00:09:25,960 it looks like a piece of wire. 192 00:09:26,120 --> 00:09:27,740 And you get lots of current to flow through it. 193 00:09:28,060 --> 00:09:29,080 But if you were to suddenly, 194 00:09:29,220 --> 00:09:31,380 after you've connected this inductor across a battery, 195 00:09:31,480 --> 00:09:32,640 if you were to suddenly disconnect it, 196 00:09:32,720 --> 00:09:35,480 the inductor, because of the way it's built, 197 00:09:35,560 --> 00:09:37,880 would want the current to keep flowing through it. 198 00:09:38,020 --> 00:09:40,120 And you can actually get a fairly large spark 199 00:09:40,560 --> 00:09:42,440 from one end of the inductor to the battery 200 00:09:42,440 --> 00:09:44,720 as it attempts to keep current flowing through it. 201 00:09:44,940 --> 00:09:46,980 A lot of the hand shockers and stun guns 202 00:09:46,980 --> 00:09:49,120 use inductors extensively in just this way. 203 00:09:49,340 --> 00:09:52,180 They switch the voltage up by using this principle. 204 00:09:53,980 --> 00:09:54,500 Inductors are very powerful. 205 00:09:54,520 --> 00:09:55,400 They're often used to filter out 206 00:09:55,400 --> 00:09:56,700 what's called radio frequency interference. 207 00:09:59,280 --> 00:10:03,340 Lots of 80211 radios and other pieces of radio frequency equipment 208 00:10:03,340 --> 00:10:06,220 emit energy that sometimes you don't want your circuit to pick up. 209 00:10:06,320 --> 00:10:07,660 So you can use these to filter inputs. 210 00:10:08,700 --> 00:10:10,720 Inductors are used extensively in power supplies, 211 00:10:10,860 --> 00:10:13,860 typically to convert energy from one voltage to another efficiently. 212 00:10:16,100 --> 00:10:17,920 Transformers are a type of inductor. 213 00:10:18,060 --> 00:10:19,800 It's an inductor wound in a different way. 214 00:10:19,940 --> 00:10:20,860 I'll get to that in a moment. 215 00:10:21,400 --> 00:10:23,680 Basically what inductors do is they couple energy 216 00:10:23,680 --> 00:10:25,440 from one side of it to the other. 217 00:10:25,540 --> 00:10:30,080 You can see the diagram here where you have two terminals going in 218 00:10:30,080 --> 00:10:31,140 and two terminals going out. 219 00:10:31,280 --> 00:10:34,320 So you can basically send energy across the transformer. 220 00:10:34,700 --> 00:10:36,180 And you say, well, why is this interesting? 221 00:10:36,480 --> 00:10:37,860 Well, you can use it to isolate signals. 222 00:10:38,820 --> 00:10:42,980 There are times when you have circuits where there's an area 223 00:10:42,980 --> 00:10:45,340 where there's a very high potential voltage, 224 00:10:45,420 --> 00:10:46,840 a very high voltage on one side, 225 00:10:46,900 --> 00:10:49,040 and you want to protect the other side of the circuit from that. 226 00:10:49,080 --> 00:10:49,960 So you can use a transformer. 227 00:10:50,300 --> 00:10:51,820 A lot of times when you get hum, 228 00:10:51,820 --> 00:10:55,580 when you connect a PC to, say, a sound card or an external sound device, 229 00:10:55,700 --> 00:10:58,120 you'll get a buzz or a hum that can sometimes couple through. 230 00:10:58,200 --> 00:11:00,660 They often use audio transformers to isolate that. 231 00:11:01,520 --> 00:11:04,480 Transformers are also used in step-up voltage converters. 232 00:11:04,540 --> 00:11:05,560 And I won't get into the details of that, 233 00:11:05,640 --> 00:11:07,500 but there's lots of resources you can look up for that. 234 00:11:09,540 --> 00:11:11,500 Okay, let's talk a little bit about active components. 235 00:11:12,360 --> 00:11:15,580 Transistors, sort of a very basic element of an integrated circuit. 236 00:11:16,700 --> 00:11:18,280 Transistors basically act as a switch. 237 00:11:18,560 --> 00:11:20,580 And there's sort of two basic classes. 238 00:11:20,580 --> 00:11:23,580 And there's other types of transistors that we won't get into here, 239 00:11:23,700 --> 00:11:24,800 but that are related to these. 240 00:11:24,880 --> 00:11:25,720 But there's two basic types. 241 00:11:25,860 --> 00:11:26,880 One is called bipolar, 242 00:11:27,220 --> 00:11:29,560 and one is called a metal oxide semiconductor transistor. 243 00:11:31,460 --> 00:11:33,460 Diodes are another type of active device. 244 00:11:33,660 --> 00:11:35,180 They basically act as a one-way gate. 245 00:11:35,320 --> 00:11:36,960 And in that class of diodes, 246 00:11:37,000 --> 00:11:39,540 a number of physicists years ago found out that 247 00:11:39,540 --> 00:11:42,220 if you make a diode a certain way, you can get it to emit light, 248 00:11:42,340 --> 00:11:44,980 thus the emergence of the light-emitting diode. 249 00:11:45,460 --> 00:11:46,580 And then integrated circuits, 250 00:11:46,700 --> 00:11:48,420 which are basically lots and lots of transistors 251 00:11:48,420 --> 00:11:50,120 on a small piece of silicon. 252 00:11:50,860 --> 00:11:52,380 Okay, let's talk about transistors a little bit. 253 00:11:52,900 --> 00:11:54,540 Like I said, they're electronic switches. 254 00:11:54,980 --> 00:11:56,020 Two basic types. 255 00:11:56,380 --> 00:11:59,240 Bipolar, and this will be a little bit detailed here, 256 00:11:59,360 --> 00:12:00,940 but what bipolar transistors are, 257 00:12:01,040 --> 00:12:03,300 they're what's called a current-controlled current source. 258 00:12:03,720 --> 00:12:06,680 And what that means is you actually use flowing current 259 00:12:06,680 --> 00:12:08,240 to switch it on and off. 260 00:12:09,060 --> 00:12:11,820 There's two flavors, if you will, of transistors. 261 00:12:12,000 --> 00:12:13,520 There's NPN and PNP. 262 00:12:13,620 --> 00:12:15,640 And these refer to how the transistors are made 263 00:12:15,640 --> 00:12:16,920 and how they can be used in the circuit. 264 00:12:18,580 --> 00:12:20,560 Transistors typically have three terminals. 265 00:12:20,580 --> 00:12:22,380 Although some exotic types have more. 266 00:12:22,540 --> 00:12:24,580 They have what's called the emitter, the base, and the collector. 267 00:12:25,480 --> 00:12:28,880 The base is the input switch that controls current 268 00:12:28,880 --> 00:12:31,080 from the collector to the emitter. 269 00:12:32,440 --> 00:12:34,840 The other type of basic transistor is what's called a MOS transistor, 270 00:12:35,220 --> 00:12:36,180 a metal oxide semiconductor. 271 00:12:36,800 --> 00:12:39,260 And what these are, these are voltage-controlled current sources. 272 00:12:40,580 --> 00:12:44,120 The reason that MOS transistors are used extensively in integrated circuits 273 00:12:44,120 --> 00:12:46,300 is because they take very little energy to turn them on. 274 00:12:46,480 --> 00:12:47,660 Let me bring the pointer up here. 275 00:12:47,860 --> 00:12:50,160 If you think about when you build a large integrated circuit, 276 00:12:50,160 --> 00:12:52,460 you don't want to, excuse me, a lot of, 277 00:12:52,500 --> 00:12:55,280 you want to minimize the amount of energy used in the circuit. 278 00:12:55,440 --> 00:12:58,140 Well, with a bipolar transistor, you actually have to push energy 279 00:12:58,800 --> 00:13:01,100 into the base to make the transistor turn on. 280 00:13:01,740 --> 00:13:05,080 With an MOS transistor, you simply need to present a voltage. 281 00:13:05,240 --> 00:13:07,380 Current doesn't, or very little current actually flows 282 00:13:07,840 --> 00:13:09,360 into the transistor to turn it on. 283 00:13:09,440 --> 00:13:10,500 So you can save a great deal of energy. 284 00:13:10,620 --> 00:13:14,600 That's why most, in fact, all ICs are made using CMOS these days, 285 00:13:14,620 --> 00:13:16,080 most highly integrated circuits. 286 00:13:16,680 --> 00:13:18,960 There's two basic flavors, as there were for bipolar. 287 00:13:19,400 --> 00:13:21,080 There's P-channel and there's N-channel. 288 00:13:21,420 --> 00:13:23,180 And they have three terminals as well. 289 00:13:23,240 --> 00:13:24,180 And these call them different things. 290 00:13:24,300 --> 00:13:26,000 There's the drain, the source, and the gate. 291 00:13:26,120 --> 00:13:27,900 The gate is the switch that turns it off. 292 00:13:28,000 --> 00:13:30,040 And the drain and the source are where the current flows 293 00:13:30,040 --> 00:13:31,120 when you switch it on and off. 294 00:13:33,140 --> 00:13:36,020 Diodes are, actually, diodes, I believe, were invented first. 295 00:13:36,280 --> 00:13:38,740 But they're basically a one-way gate for electricity. 296 00:13:40,380 --> 00:13:42,440 There's different flavors of them, three common types. 297 00:13:42,560 --> 00:13:43,760 One is just a standard diode. 298 00:13:44,140 --> 00:13:45,760 Another type was called a Schottky diode. 299 00:13:45,900 --> 00:13:47,220 Another type was called a Zener diode. 300 00:13:47,840 --> 00:13:51,340 Diodes have a plus and minus side indicating which way current will flow through them. 301 00:13:52,240 --> 00:13:54,720 Diodes can often be used to protect a circuit. 302 00:13:54,840 --> 00:13:59,260 Let's say, for example, you want to keep someone from plugging in a circuit backwards 303 00:13:59,260 --> 00:14:00,480 where they apply power. 304 00:14:00,760 --> 00:14:04,160 You would actually be able to use a diode to keep current flowing only one direction 305 00:14:04,160 --> 00:14:05,160 and thus protect the circuit. 306 00:14:06,660 --> 00:14:07,180 Let's see. 307 00:14:08,860 --> 00:14:10,080 Diodes have what's called a drop. 308 00:14:10,220 --> 00:14:12,660 They actually lose a little bit of energy when you push current through them. 309 00:14:12,960 --> 00:14:15,580 Typically, it's 0.6 volts and above, depending on the style. 310 00:14:15,580 --> 00:14:19,560 And then there's actually a little bit more interesting type of diode, the light-emitting diode. 311 00:14:19,720 --> 00:14:21,380 When you put energy through it, it lights up. 312 00:14:22,240 --> 00:14:24,400 These have a little bit more of a forward voltage drop. 313 00:14:24,800 --> 00:14:28,800 But the good news today is they're available in all colors, including white, blue, red. 314 00:14:29,000 --> 00:14:31,000 The white is one of the newer types invented. 315 00:14:31,200 --> 00:14:35,160 In fact, most PDAs utilize white LEDs to backlight the screen. 316 00:14:35,320 --> 00:14:36,600 It's a very efficient light source. 317 00:14:36,840 --> 00:14:38,800 They're expensive, but the cost is dropping. 318 00:14:39,280 --> 00:14:42,760 A lot of people have been producing light-emitting diode flashlights. 319 00:14:43,320 --> 00:14:44,160 They're also very popular. 320 00:14:45,020 --> 00:14:48,780 There's a lot of work going on in actually replacing incandescent bulbs with LEDs. 321 00:14:49,060 --> 00:14:54,440 And once the cost gets below a certain point, light bulbs in your house will run for tens and tens of years 322 00:14:54,440 --> 00:14:58,140 with a fraction of the energy expended of an incandescent or even a fluorescent bulb. 323 00:14:59,440 --> 00:15:04,840 On LEDs, the way you can tell the plus and minus side is there's typically a flat spot on the minus side, 324 00:15:04,940 --> 00:15:07,060 as you can see here in the – let's see, this one here. 325 00:15:09,900 --> 00:15:10,260 Okay. 326 00:15:11,080 --> 00:15:14,000 When you're taking apart a circuit to try to figure out how it works, 327 00:15:14,160 --> 00:15:15,800 or, you know, for curiosity or other reasons, 328 00:15:15,940 --> 00:15:19,120 you often want to know what the different integrated circuits do. 329 00:15:19,600 --> 00:15:22,520 So it's often useful to be able to read the package, 330 00:15:22,600 --> 00:15:24,480 the numbers on the package to determine what it is. 331 00:15:25,000 --> 00:15:27,560 One of the first things I do is you look for the logo of the manufacturer. 332 00:15:28,760 --> 00:15:33,780 Typically, most manufacturers have a logo that's typically the first letter of their company. 333 00:15:33,860 --> 00:15:35,260 I'll show you a couple examples in a moment. 334 00:15:35,420 --> 00:15:36,740 And you can look for that on the package, 335 00:15:36,820 --> 00:15:41,020 and that will sort of give you a starting point of where to look to gather more information. 336 00:15:41,380 --> 00:15:42,760 And then there'll be a string of numbers. 337 00:15:45,060 --> 00:15:47,540 Typically, the first part of the numbers – let's see here – 338 00:15:48,120 --> 00:15:49,720 indicate the actual part number. 339 00:15:50,200 --> 00:15:52,920 And the rest of the numbers are typically production dates, 340 00:15:53,000 --> 00:15:56,140 you know, when it was built, maybe what batch it came from. 341 00:15:56,300 --> 00:15:58,600 And you can use this information to then go, you know, 342 00:15:58,600 --> 00:16:00,780 from the manufacturer's website once you've identified the logo. 343 00:16:01,320 --> 00:16:03,100 You can then go and look the part number up. 344 00:16:03,160 --> 00:16:06,360 And here's an example from – let's see the pointer up here. 345 00:16:06,500 --> 00:16:09,920 This is actually a Toshiba part number for a logic of buffer. 346 00:16:10,160 --> 00:16:14,140 And so Toshiba often uses the letters TC in their part numbers. 347 00:16:14,140 --> 00:16:16,640 So you can see the TC here, and that can give you a pointer. 348 00:16:16,800 --> 00:16:17,820 And then they have the part number here. 349 00:16:18,240 --> 00:16:20,300 And they often give the package type. 350 00:16:20,600 --> 00:16:21,940 And this is actually an ordinary number. 351 00:16:22,320 --> 00:16:24,980 But in this number, typically the first part actually is the part number. 352 00:16:26,600 --> 00:16:31,420 Here's just a few examples of some of the labels you'll see on the ICs stamped on it. 353 00:16:31,560 --> 00:16:34,160 And again, there's, you know, there's hundreds of companies out there, 354 00:16:34,260 --> 00:16:38,080 even more now that Taiwan and China are actually opening up foundries. 355 00:16:38,100 --> 00:16:39,980 So there's lots and lots of different logos. 356 00:16:40,140 --> 00:16:43,380 But after a while, you'll get a feel for what these logos – 357 00:16:43,380 --> 00:16:44,120 what the logo looks like. 358 00:16:44,140 --> 00:16:46,520 What the letter logos mean, which company they're referring to. 359 00:16:46,760 --> 00:16:47,760 And you'll be able to look it up yourself. 360 00:16:50,380 --> 00:16:51,500 Okay, cracking the case. 361 00:16:52,660 --> 00:16:55,760 Very often when you buy a piece of electronics that you want to hack 362 00:16:55,760 --> 00:16:58,640 or you have an old piece of equipment that you'd like to repurpose by hacking, 363 00:16:58,800 --> 00:17:01,060 you want to open up the enclosure without destroying it. 364 00:17:01,820 --> 00:17:02,780 Okay, well, how do you do this? 365 00:17:02,960 --> 00:17:04,620 Well, first is to have the right tools. 366 00:17:05,060 --> 00:17:08,520 I like to have lots and lots of small screwdrivers. 367 00:17:08,760 --> 00:17:13,080 Very often these PDAs and laptops use tiny, tiny screwdrivers, 368 00:17:13,080 --> 00:17:14,100 both Phillips and Flathead. 369 00:17:15,060 --> 00:17:18,320 The other thing that's important is to know how most enclosures are fastened together. 370 00:17:18,800 --> 00:17:22,140 They're typically fastened together with screws, very small screws. 371 00:17:22,800 --> 00:17:26,000 Plastic snaps molded into the sides of the case are often very popular. 372 00:17:26,480 --> 00:17:29,820 Glue is used, and in some cases, double-sided tape is often used. 373 00:17:31,420 --> 00:17:34,640 Okay, well, hacking the case is sort of like surgery. 374 00:17:35,140 --> 00:17:37,880 You wouldn't want – well, for example, you wouldn't want your doctor 375 00:17:37,880 --> 00:17:39,980 to use a battle axe to perform an appendectomy. 376 00:17:40,080 --> 00:17:41,200 Get good tools. 377 00:17:41,200 --> 00:17:43,520 I prefer hardened steel tools. 378 00:17:43,900 --> 00:17:47,640 One of the most frustrating things is to use an inexpensive tool you bought 379 00:17:47,640 --> 00:17:51,060 for a dollar or two to have it only strip the heads of the screws, 380 00:17:51,200 --> 00:17:52,660 ruining the screw and your screwdriver. 381 00:17:53,060 --> 00:17:55,140 So I recommend that you get some really good tools. 382 00:17:56,340 --> 00:17:59,220 A lot of the different cases, the electronics cases, 383 00:17:59,320 --> 00:18:03,420 are held together with some sort of obscure type of screwdriver or screw. 384 00:18:03,620 --> 00:18:04,740 And Joe mentioned this before. 385 00:18:04,880 --> 00:18:06,780 There's lots of different ones that are used out there. 386 00:18:06,820 --> 00:18:07,840 They call them security screws. 387 00:18:08,060 --> 00:18:11,080 And basically what they are is they're sort of security through obscurity. 388 00:18:11,200 --> 00:18:15,600 Most of these security screwdrivers are available through most Internet stores. 389 00:18:15,860 --> 00:18:19,080 But the common ones you'll find out there that are a little obscure are Torx drivers, 390 00:18:19,320 --> 00:18:20,860 which are star-headed screws. 391 00:18:21,160 --> 00:18:25,100 And they're not so much a security reason, but they actually provide a way 392 00:18:25,100 --> 00:18:27,620 to provide more torque onto the screws. 393 00:18:27,760 --> 00:18:30,980 So you can crank it harder without stripping the screw head itself. 394 00:18:32,080 --> 00:18:34,940 Hex drivers are also popular with lots of equipment. 395 00:18:35,160 --> 00:18:36,560 They have a hexagonal-shaped head. 396 00:18:36,680 --> 00:18:38,740 And again, the reason is because you can apply – 397 00:18:38,740 --> 00:18:40,840 you can crank down the screws harder without stripping it. 398 00:18:41,520 --> 00:18:43,840 I like to have a good pair of steel tweezers. 399 00:18:44,480 --> 00:18:46,180 And they're good for lots of different stuff – 400 00:18:46,180 --> 00:18:49,260 placing components, but also if you drop a screw into a case, 401 00:18:49,320 --> 00:18:51,420 you can use it to fish the screw out from the bottom of the case. 402 00:18:51,940 --> 00:18:55,360 The flat end can also be used as a very good pry bar if you need to pop the case open. 403 00:18:55,820 --> 00:18:57,940 I carry a set of dental picks with me from time to time. 404 00:18:58,000 --> 00:19:02,820 These are very often useful for opening up the seams on the side of a case when you crack it. 405 00:19:03,320 --> 00:19:05,240 I carry some razor blades as well. 406 00:19:05,360 --> 00:19:06,540 I prefer the X-Acto style. 407 00:19:06,660 --> 00:19:08,160 These are often very useful, again, 408 00:19:08,740 --> 00:19:10,820 if you need to cut a small piece of plastic open, 409 00:19:10,960 --> 00:19:15,280 pick open a small cover that's placed over screws very often. 410 00:19:16,400 --> 00:19:18,120 Collecting good tools can be an obsession. 411 00:19:18,480 --> 00:19:19,940 By having the better tools, 412 00:19:20,000 --> 00:19:23,380 you can often show off that perhaps you're a little bit better than someone else. 413 00:19:23,400 --> 00:19:24,040 You know what you're doing. 414 00:19:24,260 --> 00:19:28,100 I love the latest German hardened steel stuff is also very – is good to have. 415 00:19:29,640 --> 00:19:34,560 So common fasteners, screws, plastic snaps, glue, double-sided tape. 416 00:19:34,900 --> 00:19:37,180 The Palm 5 was actually completely held together. 417 00:19:37,220 --> 00:19:38,200 The case was held together 418 00:19:38,200 --> 00:19:39,480 with double-sided tape. 419 00:19:39,800 --> 00:19:41,140 And the way you would open it up 420 00:19:41,140 --> 00:19:42,400 is either you stick it in the oven 421 00:19:42,400 --> 00:19:44,440 or use a hair dryer for about five minutes 422 00:19:44,440 --> 00:19:46,240 and then the glue would soften and peel away. 423 00:19:46,460 --> 00:19:47,680 That's how you put it back together again. 424 00:19:47,980 --> 00:19:49,580 A lot of people who upgraded memory 425 00:19:49,580 --> 00:19:50,740 or tried to replace their batteries, 426 00:19:50,820 --> 00:19:52,380 you know, spent days cracking the case. 427 00:19:52,400 --> 00:19:53,600 You know, pulling on it would bend the metal. 428 00:19:53,700 --> 00:19:55,260 No, just stick it in the oven for 20 minutes. 429 00:19:58,980 --> 00:20:01,060 Screws are often placed in obscure places, 430 00:20:01,580 --> 00:20:03,120 not so much for security reasons 431 00:20:03,120 --> 00:20:05,680 but to make the product cosmetically attractive. 432 00:20:06,280 --> 00:20:08,000 They're often placed on the bottom of a product. 433 00:20:08,200 --> 00:20:09,140 Under labels. 434 00:20:09,520 --> 00:20:11,140 Under the little feet of the product. 435 00:20:12,600 --> 00:20:14,760 So it often pays to peel open 436 00:20:14,760 --> 00:20:16,580 those little round circles you see 437 00:20:16,580 --> 00:20:18,480 that look like they're the same colour 438 00:20:18,480 --> 00:20:19,600 as the plastic of the case 439 00:20:19,600 --> 00:20:20,800 but maybe a little bit different texture. 440 00:20:20,900 --> 00:20:22,160 You'll often find a screw behind those. 441 00:20:23,740 --> 00:20:25,720 So good ways to open up a case. 442 00:20:25,860 --> 00:20:27,620 I'm gonna switch over to a video here. 443 00:20:27,700 --> 00:20:29,000 I can show you some of the techniques I use. 444 00:20:29,820 --> 00:20:31,540 Clear a nice big tabletop. 445 00:20:32,080 --> 00:20:33,940 The screws on the small electronics 446 00:20:33,940 --> 00:20:35,260 are actually very easy to lose. 447 00:20:36,080 --> 00:20:38,180 I often place sheets of white paper on the table first. 448 00:20:38,180 --> 00:20:42,340 Simply because the screws are more easy to see 449 00:20:42,340 --> 00:20:43,620 when you drop it on a piece of white paper. 450 00:20:44,900 --> 00:20:47,780 Obviously you want to power down whatever you're taking apart. 451 00:20:47,960 --> 00:20:49,600 You want to unplug it and or remove the batteries 452 00:20:49,600 --> 00:20:51,360 lest you get a shocking surprise. 453 00:20:53,100 --> 00:20:54,840 The first step I take is you carefully remove 454 00:20:54,840 --> 00:20:56,260 all the screws you can find. 455 00:20:57,020 --> 00:20:58,740 Make sure you look under all the labels and feet. 456 00:21:00,020 --> 00:21:01,540 One of the techniques I found 457 00:21:01,540 --> 00:21:03,360 if you intend to put it back together again 458 00:21:03,360 --> 00:21:04,720 is to take a piece of paper 459 00:21:04,720 --> 00:21:07,320 and sketch out a crude outline of the product 460 00:21:07,320 --> 00:21:09,660 and tape the screws to the relative location 461 00:21:09,660 --> 00:21:11,240 from which you put them. 462 00:21:11,360 --> 00:21:12,360 And that way you know where they're gonna go 463 00:21:12,360 --> 00:21:12,900 when you put it back. 464 00:21:13,320 --> 00:21:14,380 If you'll excuse me for just a moment 465 00:21:14,380 --> 00:21:15,020 I'll bring up a webcam 466 00:21:15,020 --> 00:21:16,200 and show you what I mean here. 467 00:21:19,520 --> 00:21:21,320 Picture is often worth a thousand words. 468 00:21:21,500 --> 00:21:22,400 So let's see if I can show you this. 469 00:21:30,840 --> 00:21:31,780 That gets a little better. 470 00:21:34,220 --> 00:21:37,140 No, but there was no stand for it. 471 00:21:37,320 --> 00:21:38,320 So I had some black tape 472 00:21:38,320 --> 00:21:40,220 and I black taped it to the microphone stand 473 00:21:40,220 --> 00:21:42,120 creating a hacked up camera stand 474 00:21:42,120 --> 00:21:43,280 for just this purpose. 475 00:21:50,000 --> 00:21:51,240 Okay, so a good idea here. 476 00:21:51,780 --> 00:21:53,900 So this is actually from a digital camera 477 00:21:53,900 --> 00:21:54,960 I took apart a little while ago. 478 00:21:55,180 --> 00:21:57,520 I drew just a crude outline of the camera itself 479 00:21:57,520 --> 00:21:58,520 and I started... 480 00:21:58,520 --> 00:21:58,720 Sorry? 481 00:21:59,460 --> 00:22:00,420 Oh, it's not showing up? 482 00:22:01,000 --> 00:22:01,580 Uh-oh. 483 00:22:02,360 --> 00:22:03,040 Uh-oh. 484 00:22:04,120 --> 00:22:05,080 Yeah, okay. 485 00:22:05,920 --> 00:22:06,520 Oh well. 486 00:22:07,320 --> 00:22:07,540 I tried. 487 00:22:09,120 --> 00:22:10,160 Let's get back to this then. 488 00:22:11,620 --> 00:22:12,820 Well, you can come up after which 489 00:22:12,820 --> 00:22:13,420 and I'll show you what I mean. 490 00:22:13,540 --> 00:22:16,500 But basically I took a sheet of white paper 491 00:22:16,500 --> 00:22:18,100 I drew an outline of the product 492 00:22:18,100 --> 00:22:19,300 and I started taping the screws 493 00:22:19,300 --> 00:22:20,520 as I took them out one by one. 494 00:22:20,640 --> 00:22:22,240 And that way I knew exactly where they go. 495 00:22:22,440 --> 00:22:23,760 I sometimes number it as well 496 00:22:23,760 --> 00:22:24,500 so you know the steps. 497 00:22:25,060 --> 00:22:27,160 These things can have 10, 20, 30 screws 498 00:22:27,160 --> 00:22:29,180 and if you get even halfway through it 499 00:22:29,620 --> 00:22:30,940 you forget where things go. 500 00:22:35,660 --> 00:22:37,720 One of the things is once you pull all the screws out 501 00:22:37,720 --> 00:22:39,040 the case still may be stuck together. 502 00:22:39,800 --> 00:22:41,400 So what I do is you look for the seams 503 00:22:41,400 --> 00:22:44,140 and the key phrase is you gently pull at them. 504 00:22:44,260 --> 00:22:45,000 Don't force it. 505 00:22:45,080 --> 00:22:46,720 If you force it you're likely to break something. 506 00:22:47,500 --> 00:22:51,260 I use tweezers or a pick to open up the seams sometimes. 507 00:22:52,320 --> 00:22:54,000 Once you pull all the screws out that you found 508 00:22:54,000 --> 00:22:55,520 there's probably one or two you didn't. 509 00:22:55,800 --> 00:22:58,500 And the way I generally approach the problem is 510 00:22:58,500 --> 00:23:00,340 you pull at the two halves of the product 511 00:23:00,340 --> 00:23:01,700 and feel for resistance. 512 00:23:02,120 --> 00:23:03,840 If you see it coming from one corner 513 00:23:03,840 --> 00:23:05,100 you know there's either a screw there 514 00:23:05,100 --> 00:23:06,660 or a snap of some sort. 515 00:23:06,880 --> 00:23:08,740 And then you can go in with more detail 516 00:23:08,740 --> 00:23:09,980 with either a pair of tweezers 517 00:23:09,980 --> 00:23:11,520 or your dental picks 518 00:23:11,520 --> 00:23:13,740 and push and pull until it's released. 519 00:23:15,420 --> 00:23:16,680 Once you've released the electronics 520 00:23:16,680 --> 00:23:17,680 from inside the assembly 521 00:23:18,200 --> 00:23:19,300 it's careful that you don't damage 522 00:23:19,300 --> 00:23:21,100 the actual circuit boards with static electricity. 523 00:23:21,880 --> 00:23:23,620 Now there's a number of ways you can prevent this. 524 00:23:23,660 --> 00:23:25,420 One is you can use what's called static wrist strap 525 00:23:25,420 --> 00:23:27,460 which is basically an elasticized band 526 00:23:27,460 --> 00:23:28,400 that sits around your wrist 527 00:23:28,400 --> 00:23:30,160 with a metal plate that touches 528 00:23:30,340 --> 00:23:31,100 your skin somewhere 529 00:23:31,100 --> 00:23:33,520 and then it runs a wire to a grounding point. 530 00:23:33,680 --> 00:23:35,060 And this grounding point is often just 531 00:23:35,060 --> 00:23:36,160 a three-pronged plug assembly 532 00:23:36,160 --> 00:23:37,200 that plugs into the wall. 533 00:23:37,600 --> 00:23:38,960 Well if you don't have one of those around 534 00:23:38,960 --> 00:23:40,500 and you want to be a little bit dangerous 535 00:23:40,500 --> 00:23:41,300 what you can do 536 00:23:41,300 --> 00:23:43,640 is you can take a probably 537 00:23:43,640 --> 00:23:45,420 three, four foot piece of wire 538 00:23:45,420 --> 00:23:47,420 you can strip about eight inches from the end 539 00:23:47,420 --> 00:23:48,480 and you can wrap it around your wrist 540 00:23:48,480 --> 00:23:50,120 and you can take the other side 541 00:23:50,120 --> 00:23:51,300 strip maybe three, four inches 542 00:23:51,300 --> 00:23:52,820 and go to the wall plate 543 00:23:52,820 --> 00:23:54,640 and just pull the center screw out a little bit. 544 00:23:54,720 --> 00:23:55,420 That center screw 545 00:23:55,420 --> 00:23:58,480 if the plug plate was wired to code 546 00:23:58,480 --> 00:23:59,660 will be connected to 547 00:23:59,660 --> 00:24:00,920 actual neutral ground 548 00:24:00,920 --> 00:24:03,560 which is in theory plugged into the ground of the earth. 549 00:24:03,840 --> 00:24:04,880 Screw it back in 550 00:24:04,880 --> 00:24:06,880 such that the wire at that one end 551 00:24:06,880 --> 00:24:07,620 touches the wire 552 00:24:07,620 --> 00:24:09,560 and you've got a nice hacked up wrist strap 553 00:24:09,560 --> 00:24:10,900 that'll keep you from damaging the circuit 554 00:24:10,900 --> 00:24:11,520 with static electricity. 555 00:24:12,840 --> 00:24:13,720 Do not 556 00:24:13,720 --> 00:24:14,500 I repeat 557 00:24:14,500 --> 00:24:15,820 do not plug the wire 558 00:24:15,820 --> 00:24:17,320 into any one of the three sockets. 559 00:24:17,760 --> 00:24:20,100 You might think that neutral plug on the third one 560 00:24:20,100 --> 00:24:21,740 is ground and it typically is 561 00:24:21,740 --> 00:24:24,380 but it's safer to use that screw on the case 562 00:24:24,380 --> 00:24:25,900 on the outside of the wall plate. 563 00:24:27,740 --> 00:24:29,360 Okay, building circuits. 564 00:24:30,360 --> 00:24:32,220 Well, there's a couple of skills involved 565 00:24:32,220 --> 00:24:33,160 that you need to build circuits. 566 00:24:33,460 --> 00:24:34,680 The first one would be 567 00:24:34,680 --> 00:24:35,880 if you want to build stuff 568 00:24:35,880 --> 00:24:37,000 that other people have designed 569 00:24:37,000 --> 00:24:38,140 is how to read a schematic diagram. 570 00:24:39,320 --> 00:24:41,040 Another skill that's often useful 571 00:24:41,040 --> 00:24:42,040 for quick prototyping 572 00:24:42,040 --> 00:24:43,260 is what's called breadboarding. 573 00:24:43,400 --> 00:24:44,820 This allows you to quickly assemble circuits 574 00:24:44,820 --> 00:24:45,940 without actually soldering. 575 00:24:46,040 --> 00:24:46,620 It has some limitations 576 00:24:46,620 --> 00:24:47,420 which we'll talk about. 577 00:24:47,700 --> 00:24:48,480 And the third is 578 00:24:48,480 --> 00:24:49,400 once you want to build a circuit 579 00:24:49,400 --> 00:24:51,060 that's semi-permanent or permanent 580 00:24:51,060 --> 00:24:52,500 you need to use solder 581 00:24:52,500 --> 00:24:54,600 to connect the different wires and ICs together. 582 00:24:55,280 --> 00:24:58,320 We'll touch on different types of irons 583 00:24:58,320 --> 00:25:00,340 bench style, portable, cordless. 584 00:25:00,460 --> 00:25:02,080 There's some great cordless solderings out there 585 00:25:02,080 --> 00:25:03,860 that are powered off of butane gas. 586 00:25:04,180 --> 00:25:05,400 Don't require any plug-ins. 587 00:25:05,560 --> 00:25:06,860 We'll talk a little bit about solder 588 00:25:06,860 --> 00:25:08,560 and we'll talk about another type of material 589 00:25:08,560 --> 00:25:09,320 called a perfboard 590 00:25:09,320 --> 00:25:10,920 which is another prototyping tool. 591 00:25:11,160 --> 00:25:12,440 And we'll talk about some of the tools 592 00:25:12,440 --> 00:25:14,720 you can use to work with these items. 593 00:25:16,720 --> 00:25:18,620 Okay, I hope you can see this up here. 594 00:25:18,720 --> 00:25:19,120 Yeah, okay. 595 00:25:19,320 --> 00:25:21,680 So this is a simple schematic diagram 596 00:25:21,680 --> 00:25:23,960 for a little pick-based project I worked on. 597 00:25:24,140 --> 00:25:24,580 Okay. 598 00:25:25,420 --> 00:25:26,760 So let's walk through a couple of items 599 00:25:26,760 --> 00:25:27,540 in the schematic diagram. 600 00:25:27,820 --> 00:25:29,520 So down here is typically 601 00:25:29,520 --> 00:25:30,460 what's called the title block 602 00:25:30,460 --> 00:25:32,000 and this has typically the guy 603 00:25:32,000 --> 00:25:33,020 who designed it, his name, 604 00:25:33,060 --> 00:25:33,720 the project name, 605 00:25:33,900 --> 00:25:34,840 the revision number, 606 00:25:34,980 --> 00:25:35,740 when it was drawn. 607 00:25:36,220 --> 00:25:37,000 Around the outside 608 00:25:37,000 --> 00:25:39,000 you'll see a set of numbers and letters. 609 00:25:39,180 --> 00:25:40,700 And what this allows you to do is 610 00:25:41,340 --> 00:25:43,820 call out coordinates of an object 611 00:25:43,820 --> 00:25:44,660 within the diagram 612 00:25:44,660 --> 00:25:45,600 if you want to find it. 613 00:25:45,680 --> 00:25:46,660 So along the top 614 00:25:46,660 --> 00:25:47,540 I think there are numbers 615 00:25:47,540 --> 00:25:48,500 and along the side are letters. 616 00:25:48,580 --> 00:25:49,860 You could say A3 617 00:25:49,860 --> 00:25:51,420 might be this area right here. 618 00:25:51,520 --> 00:25:52,300 So if you're communicating 619 00:25:52,300 --> 00:25:54,020 with someone else on a problem 620 00:25:54,020 --> 00:25:54,980 or a change to the circuit, 621 00:25:55,080 --> 00:25:55,960 they don't have a piece of paper 622 00:25:55,960 --> 00:25:56,340 in front of them, 623 00:25:56,360 --> 00:25:57,220 you can use these coordinates 624 00:25:57,220 --> 00:25:58,240 to tell them where to look. 625 00:25:59,560 --> 00:26:00,540 Let's look at a couple things 626 00:26:00,540 --> 00:26:01,200 in the circuit here, 627 00:26:01,300 --> 00:26:02,120 the schematic diagram. 628 00:26:03,420 --> 00:26:04,360 Every part will have 629 00:26:04,360 --> 00:26:05,500 what's called a part reference. 630 00:26:05,760 --> 00:26:07,260 And here on this integrated circuit 631 00:26:07,260 --> 00:26:07,740 it says, 632 00:26:07,840 --> 00:26:08,540 it's a little hard to read, 633 00:26:08,600 --> 00:26:09,120 but U2. 634 00:26:09,720 --> 00:26:12,020 The letter U is universally used 635 00:26:12,020 --> 00:26:13,020 to refer to any type 636 00:26:13,020 --> 00:26:13,820 of integrated circuit. 637 00:26:14,220 --> 00:26:15,240 And the number 2 means 638 00:26:15,240 --> 00:26:17,320 it's the second integrated circuit 639 00:26:17,320 --> 00:26:18,260 that was probably placed 640 00:26:18,260 --> 00:26:18,880 when it was drawn. 641 00:26:20,480 --> 00:26:20,980 Let's see, 642 00:26:21,000 --> 00:26:21,740 oops, where's the pointer again? 643 00:26:22,560 --> 00:26:22,920 Oops. 644 00:26:24,940 --> 00:26:25,380 Okay. 645 00:26:27,000 --> 00:26:28,260 Along the sides of the IC 646 00:26:28,260 --> 00:26:29,080 will be the pins 647 00:26:29,080 --> 00:26:30,820 that actually provide connectivity 648 00:26:30,820 --> 00:26:31,920 to the outside world. 649 00:26:32,540 --> 00:26:33,500 They have numbers 650 00:26:33,500 --> 00:26:34,360 and they have names 651 00:26:34,360 --> 00:26:35,040 inside the box 652 00:26:35,040 --> 00:26:35,960 that describes the IC. 653 00:26:37,680 --> 00:26:39,200 One of the connections 654 00:26:39,200 --> 00:26:40,240 that you need to give 655 00:26:40,240 --> 00:26:41,020 to almost every IC 656 00:26:41,020 --> 00:26:41,540 is power. 657 00:26:41,820 --> 00:26:42,900 And you can see here, 658 00:26:43,080 --> 00:26:43,880 and I apologize 659 00:26:43,880 --> 00:26:44,760 if it's a little hard to read, 660 00:26:44,960 --> 00:26:46,360 but it indicates a voltage 661 00:26:46,360 --> 00:26:47,300 connected to this pin. 662 00:26:47,360 --> 00:26:48,060 It's a number, 663 00:26:48,160 --> 00:26:51,300 usually 3.3, 5, 1.2, 12, 664 00:26:51,440 --> 00:26:53,020 and a letter V for volts. 665 00:26:53,200 --> 00:26:53,940 And a line 666 00:26:53,940 --> 00:26:54,000 indicates the voltage 667 00:26:54,020 --> 00:26:54,460 and a line connecting it 668 00:26:54,460 --> 00:26:54,860 to the IC. 669 00:26:55,040 --> 00:26:55,920 This is the power supply. 670 00:26:57,420 --> 00:26:57,860 Typically, 671 00:26:57,860 --> 00:26:58,880 every package 672 00:26:58,880 --> 00:27:00,100 will also have a ground 673 00:27:00,100 --> 00:27:01,420 to allow the current 674 00:27:01,420 --> 00:27:02,060 to flow through it 675 00:27:02,060 --> 00:27:02,780 and back out again. 676 00:27:03,200 --> 00:27:03,640 Now, 677 00:27:03,660 --> 00:27:04,500 not every schematic 678 00:27:04,500 --> 00:27:05,180 will have ground 679 00:27:05,180 --> 00:27:06,800 because some assume 680 00:27:06,800 --> 00:27:08,020 that the schematics 681 00:27:09,120 --> 00:27:10,000 are communicated 682 00:27:10,000 --> 00:27:10,720 within a company 683 00:27:10,720 --> 00:27:12,060 often in electronic form. 684 00:27:12,200 --> 00:27:13,020 So they often hide 685 00:27:13,020 --> 00:27:13,940 that ground connection. 686 00:27:14,100 --> 00:27:15,020 So you won't always find it 687 00:27:15,020 --> 00:27:16,180 on every schematic diagram 688 00:27:16,180 --> 00:27:17,380 you encounter. 689 00:27:18,720 --> 00:27:19,280 Let's see, 690 00:27:19,300 --> 00:27:20,220 get the pointer back here. 691 00:27:20,320 --> 00:27:20,800 Where did it go? 692 00:27:20,840 --> 00:27:21,080 There we go. 693 00:27:22,160 --> 00:27:22,600 Sometimes, 694 00:27:22,740 --> 00:27:23,780 you'll see words 695 00:27:23,780 --> 00:27:24,000 or letters 696 00:27:24,000 --> 00:27:25,260 attached to wires 697 00:27:25,260 --> 00:27:26,180 just floating in space. 698 00:27:26,380 --> 00:27:26,960 These are what are called 699 00:27:26,960 --> 00:27:27,500 net names. 700 00:27:27,760 --> 00:27:28,320 And basically, 701 00:27:28,440 --> 00:27:30,140 if you see two of the same word 702 00:27:30,140 --> 00:27:31,200 on different wires, 703 00:27:31,320 --> 00:27:32,140 that means those two wires 704 00:27:32,140 --> 00:27:32,460 are connected. 705 00:27:32,680 --> 00:27:33,240 It just keeps 706 00:27:33,240 --> 00:27:33,960 the schematic diagram 707 00:27:33,960 --> 00:27:35,040 from getting cluttered. 708 00:27:35,580 --> 00:27:36,320 And obviously, 709 00:27:36,780 --> 00:27:37,520 lines that connect 710 00:27:37,520 --> 00:27:38,120 two points 711 00:27:38,120 --> 00:27:39,480 indicate a wire. 712 00:27:39,920 --> 00:27:40,680 A dot 713 00:27:40,680 --> 00:27:41,180 at a connection 714 00:27:41,180 --> 00:27:41,960 indicates that 715 00:27:41,960 --> 00:27:43,300 those three wires 716 00:27:43,300 --> 00:27:43,920 should be connected. 717 00:27:44,660 --> 00:27:45,520 If there's 718 00:27:45,520 --> 00:27:46,500 two wires that cross 719 00:27:46,500 --> 00:27:47,160 without a dot, 720 00:27:47,240 --> 00:27:47,980 it means they should not 721 00:27:47,980 --> 00:27:48,380 be connected. 722 00:27:49,600 --> 00:27:50,640 So this is some basics 723 00:27:50,640 --> 00:27:51,660 on reading a diagram. 724 00:27:51,820 --> 00:27:52,540 These are different types 725 00:27:52,540 --> 00:27:53,820 of gates 726 00:27:54,000 --> 00:27:54,420 of the circuit. 727 00:27:54,660 --> 00:27:55,500 in the name 728 00:27:55,500 --> 00:27:57,040 of the integrated circuit, 729 00:27:57,100 --> 00:27:57,580 there'll be a letter 730 00:27:57,580 --> 00:27:58,960 A, B, C, D. 731 00:27:59,200 --> 00:28:00,320 What this indicates is 732 00:28:00,800 --> 00:28:01,860 a part, 733 00:28:02,040 --> 00:28:02,980 it's one of the 734 00:28:03,780 --> 00:28:04,600 logic elements 735 00:28:04,600 --> 00:28:06,840 or integrated circuit elements 736 00:28:06,840 --> 00:28:07,840 within one package. 737 00:28:08,080 --> 00:28:08,440 So, 738 00:28:08,460 --> 00:28:09,120 for example, 739 00:28:09,140 --> 00:28:10,000 these all will have 740 00:28:10,000 --> 00:28:11,760 the same U7, 741 00:28:11,860 --> 00:28:12,240 I believe. 742 00:28:12,560 --> 00:28:13,120 I'm sorry, 743 00:28:13,680 --> 00:28:14,120 U1. 744 00:28:14,260 --> 00:28:14,860 But they're labeled 745 00:28:15,340 --> 00:28:16,920 U1, A, B, C, and D. 746 00:28:17,040 --> 00:28:17,360 Well, 747 00:28:17,400 --> 00:28:17,720 these are all 748 00:28:17,720 --> 00:28:18,760 in the same electronic package, 749 00:28:18,840 --> 00:28:19,240 but they have, 750 00:28:20,060 --> 00:28:21,440 they're independently connected. 751 00:28:22,180 --> 00:28:22,900 And here's 752 00:28:22,900 --> 00:28:23,520 an example 753 00:28:24,000 --> 00:28:24,100 of what 754 00:28:24,100 --> 00:28:24,460 to transistor. 755 00:28:24,760 --> 00:28:25,500 These pieces, 756 00:28:25,600 --> 00:28:26,400 these blocks over here 757 00:28:26,400 --> 00:28:27,400 typically will be connectors 758 00:28:27,400 --> 00:28:28,120 and these allow you 759 00:28:28,120 --> 00:28:28,500 to get signals 760 00:28:28,500 --> 00:28:29,360 on and off the board. 761 00:28:31,120 --> 00:28:32,100 Okay, building circuits. 762 00:28:32,440 --> 00:28:32,620 Well, 763 00:28:32,720 --> 00:28:33,460 a quick and dirty way 764 00:28:33,460 --> 00:28:34,580 to build circuits 765 00:28:34,580 --> 00:28:34,940 is to use 766 00:28:34,940 --> 00:28:35,360 what's called 767 00:28:35,360 --> 00:28:35,820 a breadboard. 768 00:28:36,120 --> 00:28:37,180 What breadboard is, 769 00:28:37,180 --> 00:28:37,600 is basically, 770 00:28:37,660 --> 00:28:38,800 it's a piece of plastic 771 00:28:38,800 --> 00:28:40,180 with a bunch of holes in it. 772 00:28:40,280 --> 00:28:41,100 And underneath the holes 773 00:28:41,100 --> 00:28:43,000 are little metal trays 774 00:28:43,000 --> 00:28:44,060 that connect 775 00:28:44,060 --> 00:28:45,500 a series of these 776 00:28:46,160 --> 00:28:46,920 holes together. 777 00:28:47,120 --> 00:28:47,560 And what it allows you 778 00:28:47,560 --> 00:28:47,840 to do 779 00:28:47,840 --> 00:28:49,180 is take DIP style 780 00:28:49,180 --> 00:28:50,500 or dual inline packets. 781 00:28:50,740 --> 00:28:51,640 These are the integrated circuits 782 00:28:54,000 --> 00:28:54,280 that you can plug 783 00:28:54,280 --> 00:28:54,860 them in directly 784 00:28:54,860 --> 00:28:55,740 and then use 785 00:28:55,740 --> 00:28:56,820 just solid core wire 786 00:28:56,820 --> 00:28:57,600 to make jumpers 787 00:28:57,600 --> 00:28:58,260 between connections. 788 00:28:58,540 --> 00:28:59,140 These holes 789 00:28:59,140 --> 00:28:59,880 will actually hold 790 00:28:59,880 --> 00:29:00,560 the wire in place. 791 00:29:00,740 --> 00:29:00,880 So, 792 00:29:00,880 --> 00:29:01,880 within a few minutes 793 00:29:01,880 --> 00:29:02,560 you can breadboard 794 00:29:02,560 --> 00:29:03,240 simple circuits. 795 00:29:03,920 --> 00:29:04,380 Now, 796 00:29:04,420 --> 00:29:05,200 it's not particularly useful 797 00:29:05,200 --> 00:29:06,400 for high frequency circuits, 798 00:29:06,520 --> 00:29:06,960 radios, 799 00:29:06,960 --> 00:29:07,420 and so forth, 800 00:29:07,560 --> 00:29:08,340 but you can build 801 00:29:08,340 --> 00:29:09,580 microprocessor based stuff 802 00:29:09,580 --> 00:29:10,840 and simple audio circuits 803 00:29:10,840 --> 00:29:11,560 as long as they're not 804 00:29:11,560 --> 00:29:12,220 too high frequency. 805 00:29:12,460 --> 00:29:13,240 The reason is 806 00:29:13,240 --> 00:29:14,380 because these wires 807 00:29:14,380 --> 00:29:15,940 are hanging out in space 808 00:29:15,940 --> 00:29:16,580 and when you get 809 00:29:16,580 --> 00:29:17,440 to high frequency circuits 810 00:29:17,440 --> 00:29:18,160 those wires actually 811 00:29:18,160 --> 00:29:19,300 look like circuit elements 812 00:29:19,300 --> 00:29:20,160 and can alter 813 00:29:20,900 --> 00:29:21,840 the way the circuit works. 814 00:29:22,580 --> 00:29:23,200 These days, 815 00:29:23,220 --> 00:29:24,160 a lot of integrated circuits 816 00:29:24,160 --> 00:29:24,720 don't come in 817 00:29:24,720 --> 00:29:25,680 DIP packages anymore. 818 00:29:26,000 --> 00:29:26,020 So, 819 00:29:26,440 --> 00:29:27,080 breadboarding is 820 00:29:27,080 --> 00:29:28,460 not so popular anymore. 821 00:29:29,000 --> 00:29:29,700 There are a number 822 00:29:29,700 --> 00:29:30,120 of companies 823 00:29:30,120 --> 00:29:31,040 that make adapters. 824 00:29:31,120 --> 00:29:31,240 So, 825 00:29:31,300 --> 00:29:31,660 you can take 826 00:29:31,660 --> 00:29:33,540 that big flat part 827 00:29:33,540 --> 00:29:34,060 that has, 828 00:29:34,080 --> 00:29:34,280 you know, 829 00:29:34,340 --> 00:29:35,780 150 pins around the edges 830 00:29:35,780 --> 00:29:36,260 and you can actually 831 00:29:36,260 --> 00:29:37,320 convert it to some sort 832 00:29:37,320 --> 00:29:38,020 of package 833 00:29:38,020 --> 00:29:38,920 that has lots of pins 834 00:29:38,920 --> 00:29:39,340 and you can then 835 00:29:39,340 --> 00:29:39,940 use breadboarding. 836 00:29:41,260 --> 00:29:41,620 Well, 837 00:29:41,700 --> 00:29:42,020 if you want to make 838 00:29:42,020 --> 00:29:42,480 something a little bit 839 00:29:42,480 --> 00:29:42,980 more permanent, 840 00:29:43,540 --> 00:29:44,240 you're going to want 841 00:29:44,240 --> 00:29:45,280 to solder the elements 842 00:29:45,280 --> 00:29:45,700 together. 843 00:29:46,420 --> 00:29:46,860 Well, 844 00:29:46,980 --> 00:29:47,900 what do you need? 845 00:29:48,000 --> 00:29:48,140 Well, 846 00:29:48,160 --> 00:29:49,460 you need a soldering iron, 847 00:29:49,660 --> 00:29:50,520 you need solder, 848 00:29:50,680 --> 00:29:51,380 flux, 849 00:29:51,620 --> 00:29:52,020 and then, 850 00:29:52,060 --> 00:29:52,820 it's not required 851 00:29:52,820 --> 00:29:54,120 but it's very helpful 852 00:29:54,120 --> 00:29:54,620 to have what's called 853 00:29:54,620 --> 00:29:55,280 some sort of 854 00:29:55,280 --> 00:29:57,200 solder remover system. 855 00:29:59,020 --> 00:29:59,460 Soldering. 856 00:29:59,580 --> 00:29:59,700 Well, 857 00:29:59,760 --> 00:30:00,980 there's two basic types. 858 00:30:01,160 --> 00:30:01,480 There's electric 859 00:30:01,480 --> 00:30:02,300 and there's gas 860 00:30:02,300 --> 00:30:02,960 or butane iron. 861 00:30:03,080 --> 00:30:03,160 So, 862 00:30:03,200 --> 00:30:03,840 electric irons obviously 863 00:30:03,840 --> 00:30:04,760 plug into the wall 864 00:30:04,760 --> 00:30:05,820 and butane 865 00:30:05,820 --> 00:30:06,780 or gas powered irons 866 00:30:06,780 --> 00:30:07,340 are like basically 867 00:30:08,140 --> 00:30:09,240 souped up cigarette lighters. 868 00:30:09,380 --> 00:30:09,780 So, 869 00:30:09,780 --> 00:30:10,380 here's a couple examples 870 00:30:10,380 --> 00:30:10,820 of these. 871 00:30:10,840 --> 00:30:11,420 These are very useful 872 00:30:11,420 --> 00:30:12,720 to have when you know 873 00:30:12,720 --> 00:30:13,560 you're not going to be near 874 00:30:13,560 --> 00:30:14,100 an electric power, 875 00:30:14,180 --> 00:30:15,040 electrical power outlet 876 00:30:15,040 --> 00:30:16,360 or where it's difficult 877 00:30:16,360 --> 00:30:16,980 to get the cord. 878 00:30:17,060 --> 00:30:17,600 You don't want the cord 879 00:30:17,600 --> 00:30:17,920 in the way. 880 00:30:18,800 --> 00:30:19,760 Lots of different types 881 00:30:19,760 --> 00:30:20,140 of solder. 882 00:30:20,260 --> 00:30:21,080 I'll touch on a few types. 883 00:30:21,220 --> 00:30:22,180 The most traditional type 884 00:30:22,180 --> 00:30:23,220 is a tin-lead mix. 885 00:30:24,640 --> 00:30:25,560 The lead gives it 886 00:30:25,560 --> 00:30:26,380 the little melting point. 887 00:30:26,440 --> 00:30:27,120 The tin gives it 888 00:30:27,120 --> 00:30:28,160 some electrical characteristics 889 00:30:28,160 --> 00:30:30,220 that are desirable. 890 00:30:30,540 --> 00:30:31,620 It obviously has lead 891 00:30:31,620 --> 00:30:33,240 so it's not being used 892 00:30:33,240 --> 00:30:34,300 as much these days. 893 00:30:34,420 --> 00:30:35,440 There's lead-free solder 894 00:30:35,440 --> 00:30:36,520 that uses other materials. 895 00:30:37,520 --> 00:30:38,740 There's silver-based solder 896 00:30:38,740 --> 00:30:39,700 that some people 897 00:30:39,700 --> 00:30:39,760 like to use. 898 00:30:39,780 --> 00:30:42,140 When you do solder, 899 00:30:42,220 --> 00:30:42,640 I often use 900 00:30:42,640 --> 00:30:42,940 what's called 901 00:30:42,940 --> 00:30:43,500 a tip cleaner. 902 00:30:43,960 --> 00:30:44,700 When you solder, 903 00:30:44,820 --> 00:30:46,800 you'll get solder blobs 904 00:30:46,800 --> 00:30:47,840 onto the end of the iron 905 00:30:47,840 --> 00:30:48,620 and the iron will actually 906 00:30:48,620 --> 00:30:49,600 oxidize a little bit 907 00:30:49,980 --> 00:30:50,920 because it's so hot 908 00:30:50,920 --> 00:30:51,540 and has all these 909 00:30:51,540 --> 00:30:52,240 chemicals on it. 910 00:30:52,540 --> 00:30:52,720 So, 911 00:30:52,780 --> 00:30:53,360 you can either use 912 00:30:53,360 --> 00:30:53,900 a sponge. 913 00:30:53,980 --> 00:30:54,800 You can take a kitchen sponge, 914 00:30:54,980 --> 00:30:55,600 cut it in half, 915 00:30:56,000 --> 00:30:56,900 put a little bit of water 916 00:30:56,900 --> 00:30:57,440 in it and you can quickly 917 00:30:57,440 --> 00:30:58,600 wipe the tip on it 918 00:30:58,600 --> 00:30:59,080 or you can use 919 00:30:59,080 --> 00:30:59,860 a copper sponge 920 00:30:59,860 --> 00:31:01,220 which is basically 921 00:31:01,220 --> 00:31:03,360 a scrunched up copper 922 00:31:03,360 --> 00:31:03,760 and you can dip 923 00:31:03,760 --> 00:31:04,300 the tip in that 924 00:31:04,300 --> 00:31:04,820 and that will clean 925 00:31:04,820 --> 00:31:05,260 the tip. 926 00:31:07,080 --> 00:31:07,900 Before you solder 927 00:31:07,900 --> 00:31:08,540 two things together, 928 00:31:08,540 --> 00:31:09,080 you can often, 929 00:31:09,120 --> 00:31:10,060 you want to make 930 00:31:10,060 --> 00:31:10,760 the surfaces clean 931 00:31:10,760 --> 00:31:11,880 and what you use 932 00:31:11,880 --> 00:31:12,620 that for is flux. 933 00:31:12,800 --> 00:31:13,600 It's a slightly 934 00:31:13,600 --> 00:31:14,320 acidic material 935 00:31:14,320 --> 00:31:15,300 that essentially 936 00:31:15,300 --> 00:31:16,360 cleans off any oils 937 00:31:16,360 --> 00:31:16,880 on the surface 938 00:31:16,880 --> 00:31:17,680 of the two things 939 00:31:17,680 --> 00:31:18,360 you want to solder together. 940 00:31:19,540 --> 00:31:20,460 Lots of different types. 941 00:31:20,560 --> 00:31:21,260 There's the traditional 942 00:31:21,260 --> 00:31:21,880 rosin core 943 00:31:21,880 --> 00:31:23,040 but there's newer types, 944 00:31:23,140 --> 00:31:24,340 ones called water-soluble. 945 00:31:24,620 --> 00:31:24,980 Basically, 946 00:31:25,000 --> 00:31:25,700 you can wash it away 947 00:31:25,700 --> 00:31:27,100 with deionized water. 948 00:31:27,280 --> 00:31:27,980 You don't want to use 949 00:31:27,980 --> 00:31:28,520 regular water 950 00:31:28,520 --> 00:31:29,040 to clean circuits 951 00:31:29,040 --> 00:31:30,040 because it has impurities 952 00:31:30,040 --> 00:31:30,660 and it can actually 953 00:31:30,660 --> 00:31:31,580 interfere with the circuit 954 00:31:31,580 --> 00:31:32,680 once you've cleaned it. 955 00:31:32,860 --> 00:31:33,160 So, 956 00:31:33,180 --> 00:31:34,120 if you use water-soluble, 957 00:31:34,160 --> 00:31:38,520 water-soluble and no-clean 958 00:31:38,540 --> 00:31:39,380 you can use the flux 959 00:31:39,380 --> 00:31:40,480 to clean the circuit 960 00:31:40,480 --> 00:31:40,940 when you're, 961 00:31:40,940 --> 00:31:42,060 the surfaces before 962 00:31:42,060 --> 00:31:42,660 you solder them 963 00:31:42,660 --> 00:31:43,300 and you don't need 964 00:31:43,300 --> 00:31:43,860 to wipe it away 965 00:31:43,860 --> 00:31:44,320 when you're done. 966 00:31:44,700 --> 00:31:46,000 If you use a rosin core 967 00:31:46,000 --> 00:31:47,320 or acid-based solder, 968 00:31:47,520 --> 00:31:48,320 you need to use 969 00:31:48,320 --> 00:31:49,340 a flux remover 970 00:31:49,340 --> 00:31:50,500 which comes in a spray can. 971 00:31:51,580 --> 00:31:52,200 Very often, 972 00:31:52,240 --> 00:31:52,800 you'll make a mistake 973 00:31:52,800 --> 00:31:53,420 in the circuit. 974 00:31:53,600 --> 00:31:54,660 You'll solder two things 975 00:31:54,660 --> 00:31:55,060 you didn't mean 976 00:31:55,060 --> 00:31:55,680 to solder together 977 00:31:55,680 --> 00:31:56,640 and need to remove 978 00:31:56,640 --> 00:31:57,140 that solder. 979 00:31:57,280 --> 00:31:57,460 Well, 980 00:31:57,500 --> 00:31:58,460 there's two basic ways 981 00:31:58,460 --> 00:31:58,840 to do that. 982 00:31:58,920 --> 00:31:59,320 There's a material 983 00:31:59,320 --> 00:32:00,660 called solder wick 984 00:32:00,660 --> 00:32:01,560 which is basically 985 00:32:01,560 --> 00:32:04,080 a braided piece of copper 986 00:32:04,080 --> 00:32:04,960 that acts like a sponge 987 00:32:04,960 --> 00:32:06,160 and they have what's called 988 00:32:08,540 --> 00:32:08,960 a spring 989 00:32:08,960 --> 00:32:11,420 or electrically-powered pump 990 00:32:11,420 --> 00:32:12,260 that you, 991 00:32:12,320 --> 00:32:13,160 that you cock, 992 00:32:13,460 --> 00:32:14,680 you put next to the two items 993 00:32:14,680 --> 00:32:15,180 in question 994 00:32:15,180 --> 00:32:15,760 that you wish to remove 995 00:32:15,760 --> 00:32:16,120 the solder, 996 00:32:16,360 --> 00:32:17,320 heat the joint, 997 00:32:17,440 --> 00:32:18,320 hit the button 998 00:32:18,320 --> 00:32:19,420 and it sucks the solder away. 999 00:32:20,140 --> 00:32:21,600 Solder wick can be more precision 1000 00:32:21,600 --> 00:32:22,620 because you can place it 1001 00:32:22,620 --> 00:32:23,760 at the exact point you want, 1002 00:32:23,860 --> 00:32:24,260 you heat it 1003 00:32:24,260 --> 00:32:24,700 and again, 1004 00:32:24,720 --> 00:32:25,500 it acts like a sponge 1005 00:32:25,500 --> 00:32:27,040 but solder suckers 1006 00:32:27,040 --> 00:32:27,520 will often remove 1007 00:32:27,520 --> 00:32:28,380 more solder in bulk. 1008 00:32:30,140 --> 00:32:30,540 Okay, 1009 00:32:30,580 --> 00:32:30,740 well, 1010 00:32:31,460 --> 00:32:32,300 if you're soldering 1011 00:32:32,300 --> 00:32:32,800 things together, 1012 00:32:32,880 --> 00:32:33,500 you can't obviously 1013 00:32:33,500 --> 00:32:35,240 use the proto-boards. 1014 00:32:35,680 --> 00:32:36,440 You need to use 1015 00:32:36,440 --> 00:32:37,200 something called perfboard 1016 00:32:37,200 --> 00:32:38,200 and what perfboard is, 1017 00:32:38,540 --> 00:32:39,040 basically it's a blank 1018 00:32:39,040 --> 00:32:40,180 circuit board 1019 00:32:40,180 --> 00:32:40,900 that you can solder to. 1020 00:32:41,000 --> 00:32:41,900 It's made out of fiberglass 1021 00:32:41,900 --> 00:32:42,240 typically 1022 00:32:42,240 --> 00:32:43,740 and it will typically have 1023 00:32:43,740 --> 00:32:45,160 evenly spaced metal holes 1024 00:32:45,160 --> 00:32:46,060 that are plated through 1025 00:32:46,060 --> 00:32:46,680 on both sides. 1026 00:32:46,920 --> 00:32:47,740 So you can insert 1027 00:32:47,740 --> 00:32:49,100 your components 1028 00:32:49,100 --> 00:32:50,300 and then solder 1029 00:32:50,300 --> 00:32:51,080 to the plated holes 1030 00:32:51,080 --> 00:32:52,520 and use wires 1031 00:32:52,520 --> 00:32:52,880 to connect 1032 00:32:52,880 --> 00:32:53,380 your different 1033 00:32:53,380 --> 00:32:54,000 integrated circuits. 1034 00:32:54,300 --> 00:32:55,240 It holds it in place 1035 00:32:55,240 --> 00:32:56,500 and makes it a clean 1036 00:32:56,500 --> 00:32:57,380 and even layout. 1037 00:32:59,000 --> 00:32:59,480 Tools. 1038 00:33:00,140 --> 00:33:00,620 Well, 1039 00:33:00,700 --> 00:33:01,300 you typically want 1040 00:33:01,300 --> 00:33:02,540 a set of wire strippers 1041 00:33:02,540 --> 00:33:03,260 if you'll be connecting 1042 00:33:03,260 --> 00:33:03,940 circuits together. 1043 00:33:05,040 --> 00:33:05,940 There's lots of different 1044 00:33:05,940 --> 00:33:06,520 types out there, 1045 00:33:06,580 --> 00:33:07,360 expensive, inexpensive. 1046 00:33:08,540 --> 00:33:09,160 Wire of some sort, 1047 00:33:09,220 --> 00:33:09,940 various gauges, 1048 00:33:10,020 --> 00:33:10,700 both stranded 1049 00:33:10,700 --> 00:33:11,860 and solid core wire 1050 00:33:11,860 --> 00:33:12,640 are useful to have around. 1051 00:33:13,000 --> 00:33:13,600 And a set of 1052 00:33:14,080 --> 00:33:14,800 wire cutters 1053 00:33:14,800 --> 00:33:15,500 are useful as well. 1054 00:33:16,200 --> 00:33:17,340 Wire strippers often include 1055 00:33:17,340 --> 00:33:18,120 the cutters with them 1056 00:33:18,120 --> 00:33:19,280 but it's nice to have 1057 00:33:19,280 --> 00:33:20,000 a small pair that's 1058 00:33:20,000 --> 00:33:20,780 a little bit more precision 1059 00:33:20,780 --> 00:33:22,340 to clip away leads. 1060 00:33:22,540 --> 00:33:23,200 You notice the resistors 1061 00:33:23,200 --> 00:33:24,440 had two metal wires 1062 00:33:24,440 --> 00:33:25,220 coming out the sides. 1063 00:33:25,460 --> 00:33:25,820 Well, 1064 00:33:25,860 --> 00:33:26,500 once you solder them 1065 00:33:26,500 --> 00:33:27,480 to a circuit board, 1066 00:33:27,580 --> 00:33:28,220 those wires are hanging 1067 00:33:28,220 --> 00:33:28,620 out in space. 1068 00:33:28,800 --> 00:33:29,620 You want to clip those away. 1069 00:33:30,240 --> 00:33:31,260 And I like a set of 1070 00:33:31,260 --> 00:33:32,100 needle nose pliers again 1071 00:33:32,100 --> 00:33:32,940 to bend things around 1072 00:33:32,940 --> 00:33:33,680 to move them around 1073 00:33:33,680 --> 00:33:34,280 once they've been 1074 00:33:34,280 --> 00:33:34,720 soldered down. 1075 00:33:35,960 --> 00:33:36,400 Okay, 1076 00:33:36,560 --> 00:33:37,320 where to go to get parts? 1077 00:33:37,940 --> 00:33:39,020 I have a couple of 1078 00:33:39,020 --> 00:33:39,840 favorite places online 1079 00:33:39,840 --> 00:33:40,460 that I go to. 1080 00:33:40,600 --> 00:33:41,320 A place, 1081 00:33:41,360 --> 00:33:42,360 a company called Digikey. 1082 00:33:42,780 --> 00:33:43,560 There's the website. 1083 00:33:43,920 --> 00:33:46,180 They have tens of thousands 1084 00:33:46,180 --> 00:33:47,320 of different components 1085 00:33:47,320 --> 00:33:48,300 most available 1086 00:33:48,300 --> 00:33:49,020 for shipment 1087 00:33:49,020 --> 00:33:50,720 within 24 hours. 1088 00:33:51,160 --> 00:33:51,800 Another company 1089 00:33:51,800 --> 00:33:52,300 I like to use 1090 00:33:52,300 --> 00:33:52,800 is Mouser. 1091 00:33:52,900 --> 00:33:53,480 They also have 1092 00:33:53,480 --> 00:33:54,880 a large stock of products. 1093 00:33:55,720 --> 00:33:57,060 A slightly smaller company 1094 00:33:57,060 --> 00:33:57,760 called Jameco. 1095 00:33:58,440 --> 00:33:59,440 They have a large stock 1096 00:33:59,440 --> 00:34:00,200 of electronic components. 1097 00:34:00,880 --> 00:34:01,680 A little bit more 1098 00:34:01,680 --> 00:34:02,420 on the surplus side 1099 00:34:02,420 --> 00:34:03,020 is a company called 1100 00:34:03,020 --> 00:34:04,140 American Science and Surplus. 1101 00:34:04,260 --> 00:34:04,700 They often have 1102 00:34:04,720 --> 00:34:05,960 not just components 1103 00:34:05,960 --> 00:34:06,880 but they'll sell 1104 00:34:06,880 --> 00:34:08,520 the circuit board 1105 00:34:08,520 --> 00:34:09,260 from an old toy 1106 00:34:09,260 --> 00:34:09,980 that didn't make it 1107 00:34:09,980 --> 00:34:11,160 or an old 1108 00:34:11,800 --> 00:34:12,920 video camera components. 1109 00:34:13,240 --> 00:34:13,980 So they're kind of fun 1110 00:34:13,980 --> 00:34:14,600 to pick up pieces 1111 00:34:14,600 --> 00:34:15,140 that you can use 1112 00:34:15,140 --> 00:34:16,080 to hack yourself. 1113 00:34:16,640 --> 00:34:18,100 And then there's 1114 00:34:18,100 --> 00:34:18,900 a company called Halted. 1115 00:34:19,140 --> 00:34:20,060 They have a website 1116 00:34:20,060 --> 00:34:21,160 called HSA. 1117 00:34:21,260 --> 00:34:21,840 They also have 1118 00:34:21,840 --> 00:34:24,200 a real world store 1119 00:34:24,200 --> 00:34:25,240 in Santa Clara, California. 1120 00:34:25,380 --> 00:34:25,740 And it's almost 1121 00:34:25,740 --> 00:34:26,340 like a museum. 1122 00:34:26,420 --> 00:34:26,760 They've got 1123 00:34:26,760 --> 00:34:27,740 computer equipment, 1124 00:34:27,860 --> 00:34:28,440 circuit boards 1125 00:34:28,440 --> 00:34:29,640 back to probably 1126 00:34:29,640 --> 00:34:30,540 the 70s. 1127 00:34:30,540 --> 00:34:31,760 They buy out 1128 00:34:31,760 --> 00:34:32,300 surplus equipment 1129 00:34:32,300 --> 00:34:33,020 from companies 1130 00:34:33,020 --> 00:34:33,320 that are either 1131 00:34:33,320 --> 00:34:33,960 going out of business 1132 00:34:34,720 --> 00:34:34,840 or they've got 1133 00:34:35,160 --> 00:34:35,920 So it's actually 1134 00:34:35,920 --> 00:34:36,340 a great place 1135 00:34:36,340 --> 00:34:36,940 just to sort of 1136 00:34:36,940 --> 00:34:37,520 wander around. 1137 00:34:38,160 --> 00:34:39,440 In California in parts 1138 00:34:39,440 --> 00:34:40,260 I think out here 1139 00:34:40,260 --> 00:34:41,620 they have a big store 1140 00:34:41,620 --> 00:34:42,340 called Fry's. 1141 00:34:42,620 --> 00:34:43,540 They actually carry 1142 00:34:43,540 --> 00:34:44,340 electronic components. 1143 00:34:44,600 --> 00:34:45,300 Although it's shrinking 1144 00:34:45,300 --> 00:34:45,880 they still have 1145 00:34:45,880 --> 00:34:46,540 a pretty good selection 1146 00:34:46,540 --> 00:34:47,000 of parts. 1147 00:34:47,240 --> 00:34:47,920 And of course 1148 00:34:47,920 --> 00:34:48,720 Radio Shack. 1149 00:34:48,800 --> 00:34:49,440 We all know about 1150 00:34:49,440 --> 00:34:49,900 Radio Shack 1151 00:34:49,900 --> 00:34:50,360 and the quality 1152 00:34:50,360 --> 00:34:50,800 of their stuff. 1153 00:34:50,980 --> 00:34:51,960 But they're everywhere 1154 00:34:51,960 --> 00:34:53,280 and they can often 1155 00:34:53,280 --> 00:34:54,100 be used to do the job. 1156 00:34:55,740 --> 00:34:56,420 We'll do a couple 1157 00:34:56,420 --> 00:34:57,360 project walkthroughs. 1158 00:34:59,340 --> 00:35:00,180 A little while ago 1159 00:35:00,180 --> 00:35:01,160 I hacked up a toaster. 1160 00:35:01,940 --> 00:35:02,800 A little while ago 1161 00:35:04,720 --> 00:35:04,820 I got a little buzz 1162 00:35:04,820 --> 00:35:05,600 about in the UK 1163 00:35:05,600 --> 00:35:06,660 about a design student 1164 00:35:06,660 --> 00:35:07,180 who put together 1165 00:35:07,180 --> 00:35:08,000 a weather toaster. 1166 00:35:08,080 --> 00:35:08,780 Basically would toast 1167 00:35:08,780 --> 00:35:09,680 a picture of a cloud 1168 00:35:09,680 --> 00:35:10,240 or the sunshine 1169 00:35:10,240 --> 00:35:11,020 on a piece of bread. 1170 00:35:11,560 --> 00:35:12,380 And he got a lot 1171 00:35:12,380 --> 00:35:13,000 of press for it. 1172 00:35:13,040 --> 00:35:13,780 It was pretty complicated. 1173 00:35:13,900 --> 00:35:14,640 All kinds of motors 1174 00:35:14,640 --> 00:35:15,180 and gears 1175 00:35:15,180 --> 00:35:15,920 and there was a little 1176 00:35:15,920 --> 00:35:17,360 it was a Java based system 1177 00:35:17,360 --> 00:35:17,900 so it would go out 1178 00:35:17,900 --> 00:35:18,780 and grab weather 1179 00:35:18,780 --> 00:35:19,560 from some website. 1180 00:35:19,860 --> 00:35:20,480 I thought this was 1181 00:35:20,480 --> 00:35:21,020 kind of complicated 1182 00:35:21,020 --> 00:35:21,480 and there might be 1183 00:35:21,480 --> 00:35:22,300 an easier way to do it. 1184 00:35:22,520 --> 00:35:23,560 So I made sort of 1185 00:35:23,560 --> 00:35:24,280 design trade offs 1186 00:35:24,280 --> 00:35:25,020 and I hacked something 1187 00:35:25,020 --> 00:35:25,720 together in a weekend. 1188 00:35:26,380 --> 00:35:27,300 And basically what I did 1189 00:35:27,300 --> 00:35:28,280 is I opened up the toaster 1190 00:35:28,280 --> 00:35:29,380 and I clipped 1191 00:35:29,380 --> 00:35:30,240 the toasting elements 1192 00:35:30,240 --> 00:35:30,860 inside it. 1193 00:35:30,920 --> 00:35:32,040 This is an example here 1194 00:35:32,720 --> 00:35:35,420 of one of the sort of toasting 1195 00:35:35,420 --> 00:35:37,000 walls inside your toaster. 1196 00:35:37,000 --> 00:35:37,440 If you look inside 1197 00:35:37,440 --> 00:35:38,100 when it's going 1198 00:35:38,100 --> 00:35:38,800 you'll see these wires 1199 00:35:38,800 --> 00:35:39,640 glow red hot. 1200 00:35:40,060 --> 00:35:41,480 Well this is an example 1201 00:35:41,480 --> 00:35:42,700 of how they're wired 1202 00:35:42,700 --> 00:35:43,520 inside your toaster. 1203 00:35:43,580 --> 00:35:44,460 So what I did is I cut it 1204 00:35:44,460 --> 00:35:45,300 such that you would 1205 00:35:45,300 --> 00:35:46,040 either be able to switch 1206 00:35:46,040 --> 00:35:46,960 on the top elements 1207 00:35:46,960 --> 00:35:47,980 or the bottom elements. 1208 00:35:48,160 --> 00:35:49,820 And I used a high voltage relay 1209 00:35:49,820 --> 00:35:51,060 so it could switch 1210 00:35:51,060 --> 00:35:52,420 the wall currents through it. 1211 00:35:52,460 --> 00:35:53,500 And rewired it slightly 1212 00:35:53,500 --> 00:35:54,480 so that you would 1213 00:35:54,480 --> 00:35:55,460 either select the top 1214 00:35:55,460 --> 00:35:56,340 or the bottom 1215 00:35:56,340 --> 00:35:56,960 to toast onto. 1216 00:35:57,160 --> 00:35:58,200 And I put a switch 1217 00:35:58,280 --> 00:35:59,080 and then I also put 1218 00:35:59,080 --> 00:36:00,180 a computer controlled 1219 00:36:00,180 --> 00:36:01,760 relay to control it 1220 00:36:01,760 --> 00:36:02,280 so you could actually 1221 00:36:02,280 --> 00:36:03,360 toast two different patterns. 1222 00:36:03,780 --> 00:36:05,500 And the other part 1223 00:36:05,500 --> 00:36:05,980 of the trick was 1224 00:36:05,980 --> 00:36:06,720 I created what's called 1225 00:36:06,720 --> 00:36:07,400 a toast mask. 1226 00:36:07,780 --> 00:36:08,600 And what this toast mask 1227 00:36:08,600 --> 00:36:09,600 would do is it would sit 1228 00:36:09,600 --> 00:36:10,580 in front of the toasting 1229 00:36:10,580 --> 00:36:11,020 elements here 1230 00:36:11,020 --> 00:36:12,200 and prevent the bread 1231 00:36:12,200 --> 00:36:12,960 from being toasted 1232 00:36:12,960 --> 00:36:14,280 along the lines of 1233 00:36:14,280 --> 00:36:15,260 whatever your mask 1234 00:36:15,260 --> 00:36:15,820 looked like. 1235 00:36:16,020 --> 00:36:16,960 So you'd have a piece 1236 00:36:16,960 --> 00:36:17,620 of bread with the 1237 00:36:17,620 --> 00:36:18,960 that would be mostly brown 1238 00:36:18,960 --> 00:36:19,760 with the word hot 1239 00:36:19,760 --> 00:36:21,080 or cool toasted onto it. 1240 00:36:21,600 --> 00:36:22,500 And then you basically 1241 00:36:22,500 --> 00:36:23,840 use wires that you 1242 00:36:23,840 --> 00:36:24,840 hold on the inside 1243 00:36:24,840 --> 00:36:25,320 of the toaster. 1244 00:36:25,420 --> 00:36:26,380 This is in my book 1245 00:36:26,380 --> 00:36:27,060 so there's some more 1246 00:36:28,280 --> 00:36:28,840 but this was sort of 1247 00:36:28,840 --> 00:36:29,800 a fun hack I put together. 1248 00:36:32,040 --> 00:36:32,740 I've also been reading 1249 00:36:32,740 --> 00:36:33,680 about overclocking 1250 00:36:33,680 --> 00:36:35,160 and the use of these 1251 00:36:35,160 --> 00:36:36,000 solid state coolers. 1252 00:36:36,040 --> 00:36:36,260 They're called 1253 00:36:36,260 --> 00:36:37,100 Peltier junctions. 1254 00:36:37,440 --> 00:36:38,180 And I thought wow 1255 00:36:38,180 --> 00:36:38,820 that's a little miniature 1256 00:36:38,820 --> 00:36:39,760 solid state refrigerator. 1257 00:36:39,960 --> 00:36:40,680 What could you do with that? 1258 00:36:41,200 --> 00:36:41,800 Well I did a little 1259 00:36:41,800 --> 00:36:42,280 more searching 1260 00:36:42,280 --> 00:36:43,600 and I found a website 1261 00:36:43,600 --> 00:36:44,760 of a German fellow 1262 00:36:44,760 --> 00:36:45,460 or a Danish fellow 1263 00:36:45,460 --> 00:36:46,100 who had put together 1264 00:36:46,100 --> 00:36:46,720 a beer glass 1265 00:36:46,720 --> 00:36:48,040 that ran with one of these. 1266 00:36:48,180 --> 00:36:49,380 And he basically sort of 1267 00:36:49,380 --> 00:36:50,180 mounted it on the bottom 1268 00:36:50,180 --> 00:36:51,020 and didn't make real good 1269 00:36:51,020 --> 00:36:51,940 contact with the glass. 1270 00:36:52,080 --> 00:36:52,400 And I thought there's 1271 00:36:52,400 --> 00:36:53,220 a better way to do this. 1272 00:36:53,540 --> 00:36:54,220 So what I did is 1273 00:36:54,220 --> 00:36:54,700 I had one of these 1274 00:36:58,280 --> 00:36:58,660 that conducted heat 1275 00:36:58,660 --> 00:36:59,840 a lot better than glass did. 1276 00:36:59,900 --> 00:37:01,620 So I mounted the cooler 1277 00:37:01,620 --> 00:37:02,220 to the bottom 1278 00:37:02,220 --> 00:37:04,320 of a pewter beer stein. 1279 00:37:04,560 --> 00:37:05,300 And I created 1280 00:37:05,300 --> 00:37:06,440 these self-chilling beer mugs. 1281 00:37:06,540 --> 00:37:07,300 And here's how it's connected. 1282 00:37:07,960 --> 00:37:08,920 So you've got your 1283 00:37:08,920 --> 00:37:09,600 oops 1284 00:37:10,480 --> 00:37:11,640 your beer mug here. 1285 00:37:12,880 --> 00:37:13,640 Mounted to the bottom 1286 00:37:13,640 --> 00:37:14,100 of the beer mug 1287 00:37:14,100 --> 00:37:15,980 is a layer of 1288 00:37:15,980 --> 00:37:17,100 thermally conductive grease 1289 00:37:17,100 --> 00:37:18,320 or thermally conductive adhesive. 1290 00:37:18,980 --> 00:37:19,800 There's a heat pipe 1291 00:37:19,800 --> 00:37:20,460 which is basically 1292 00:37:20,460 --> 00:37:21,140 a block of metal. 1293 00:37:21,320 --> 00:37:21,900 And then there's 1294 00:37:21,900 --> 00:37:22,280 what's called 1295 00:37:22,280 --> 00:37:23,420 the Peltier junction cooler 1296 00:37:23,420 --> 00:37:25,080 which is the device that 1297 00:37:25,080 --> 00:37:26,320 it's actually a heat pump. 1298 00:37:26,420 --> 00:37:27,360 It moves heat from one side 1299 00:37:27,360 --> 00:37:27,800 to the other. 1300 00:37:29,100 --> 00:37:30,500 So you stack these up. 1301 00:37:30,560 --> 00:37:31,440 This device is connected 1302 00:37:31,440 --> 00:37:31,960 to the block 1303 00:37:32,640 --> 00:37:33,640 which is glued 1304 00:37:33,640 --> 00:37:34,120 to the bottom 1305 00:37:34,120 --> 00:37:35,000 of the mug. 1306 00:37:35,440 --> 00:37:36,120 And then there's 1307 00:37:36,120 --> 00:37:36,540 a heat sink 1308 00:37:36,540 --> 00:37:37,300 to pull the 1309 00:37:37,300 --> 00:37:38,240 basically the bottom 1310 00:37:38,240 --> 00:37:38,920 of the Peltier junction 1311 00:37:38,920 --> 00:37:39,400 gets hot 1312 00:37:39,400 --> 00:37:40,220 and the top gets cool. 1313 00:37:40,500 --> 00:37:41,420 So you put a heat sink 1314 00:37:41,420 --> 00:37:42,060 on this because you've 1315 00:37:42,060 --> 00:37:42,580 got to remove the heat 1316 00:37:42,580 --> 00:37:43,160 some way or else 1317 00:37:43,160 --> 00:37:43,620 it won't work. 1318 00:37:43,760 --> 00:37:44,400 And then a fan 1319 00:37:44,400 --> 00:37:44,840 on the bottom. 1320 00:37:44,960 --> 00:37:45,480 And the whole thing 1321 00:37:45,480 --> 00:37:46,800 is powered from a 12-volt 1322 00:37:46,800 --> 00:37:47,560 cigarette lighter adapter 1323 00:37:47,560 --> 00:37:49,260 or an old PC power supply. 1324 00:37:51,380 --> 00:37:52,160 And you can come up 1325 00:37:52,160 --> 00:37:52,900 and look at it afterwards 1326 00:37:52,900 --> 00:37:53,820 but here it is. 1327 00:37:53,840 --> 00:37:54,520 It'll keep your beer 1328 00:37:54,520 --> 00:37:54,960 very cold. 1329 00:37:55,340 --> 00:37:56,300 And if you're in your car 1330 00:37:58,280 --> 00:37:58,480 you're cool 1331 00:37:58,480 --> 00:37:59,180 and you're driving along. 1332 00:38:01,120 --> 00:38:02,040 Or other beverages. 1333 00:38:04,000 --> 00:38:05,000 So here are some other views of it. 1334 00:38:05,040 --> 00:38:05,740 You can see the large 1335 00:38:05,740 --> 00:38:06,360 fan on the bottom. 1336 00:38:06,420 --> 00:38:07,060 I just used an extra 1337 00:38:07,060 --> 00:38:07,980 PC fan I had. 1338 00:38:08,100 --> 00:38:08,880 And you can see that 1339 00:38:08,880 --> 00:38:09,760 it's completely metal 1340 00:38:09,760 --> 00:38:10,300 on the inside. 1341 00:38:10,460 --> 00:38:10,640 And again, 1342 00:38:10,680 --> 00:38:11,960 this was to allow it 1343 00:38:11,960 --> 00:38:12,640 to get the maximum 1344 00:38:12,640 --> 00:38:13,340 cooling capacity 1345 00:38:13,340 --> 00:38:14,060 for the mug. 1346 00:38:15,180 --> 00:38:16,160 A little while ago 1347 00:38:16,160 --> 00:38:17,240 I had an extra flashlight 1348 00:38:17,240 --> 00:38:18,020 and someone asked me 1349 00:38:18,020 --> 00:38:18,680 if I could convert it 1350 00:38:18,680 --> 00:38:19,340 to use an LED 1351 00:38:19,340 --> 00:38:20,600 instead of an incandescent bulb. 1352 00:38:20,760 --> 00:38:21,080 And I said, 1353 00:38:21,100 --> 00:38:21,920 sure you can. 1354 00:38:22,380 --> 00:38:23,140 It's a real quick, 1355 00:38:23,220 --> 00:38:23,680 easy hack. 1356 00:38:23,940 --> 00:38:24,740 Basically you replace 1357 00:38:24,740 --> 00:38:25,300 the bulb. 1358 00:38:28,280 --> 00:38:29,380 I covered the last part 1359 00:38:29,380 --> 00:38:29,700 of the bulb 1360 00:38:29,700 --> 00:38:30,500 with a towel 1361 00:38:30,500 --> 00:38:31,620 and took a pair of pliers 1362 00:38:31,620 --> 00:38:32,440 and crushed the glass. 1363 00:38:32,680 --> 00:38:33,500 And then used some 1364 00:38:33,500 --> 00:38:34,000 dental picks 1365 00:38:34,000 --> 00:38:35,500 and needle nose pliers 1366 00:38:35,500 --> 00:38:36,360 and I removed all the glass. 1367 00:38:36,760 --> 00:38:37,400 Hollowed it out 1368 00:38:37,400 --> 00:38:37,960 and you can see 1369 00:38:37,960 --> 00:38:39,720 here's the bottom 1370 00:38:39,720 --> 00:38:40,740 of the light bulb. 1371 00:38:41,040 --> 00:38:41,920 And then I simply 1372 00:38:41,920 --> 00:38:43,880 added an ultra bright 1373 00:38:43,880 --> 00:38:44,760 white LED 1374 00:38:44,760 --> 00:38:45,400 in series 1375 00:38:45,400 --> 00:38:46,020 with a resistor. 1376 00:38:46,760 --> 00:38:47,980 And I wired it into 1377 00:38:48,440 --> 00:38:49,300 the metal parts 1378 00:38:49,300 --> 00:38:49,900 of the can here. 1379 00:38:49,960 --> 00:38:50,220 And you can see 1380 00:38:50,220 --> 00:38:50,880 the resistors here. 1381 00:38:50,960 --> 00:38:51,640 I actually did a cluster 1382 00:38:51,640 --> 00:38:52,480 to get it a little bit brighter. 1383 00:38:53,300 --> 00:38:54,340 I then mounted 1384 00:38:54,340 --> 00:38:55,060 the whole system 1385 00:38:55,060 --> 00:38:56,620 back into the flashlight 1386 00:38:56,620 --> 00:38:57,280 bulb holder 1387 00:38:57,280 --> 00:38:58,140 so I wouldn't have to 1388 00:38:58,280 --> 00:38:58,700 modify anymore 1389 00:38:58,700 --> 00:38:59,540 the flashlight itself. 1390 00:39:00,020 --> 00:39:00,740 And oops. 1391 00:39:00,960 --> 00:39:01,680 And voila. 1392 00:39:01,880 --> 00:39:02,820 You have a flashlight 1393 00:39:02,820 --> 00:39:03,860 that's been converted. 1394 00:39:05,040 --> 00:39:06,200 How bright is it? 1395 00:39:06,300 --> 00:39:07,320 Why is it half volt? 1396 00:39:07,700 --> 00:39:08,400 This is actually 1397 00:39:08,400 --> 00:39:10,500 a 4.5 volt flashlight. 1398 00:39:10,800 --> 00:39:11,260 For this hack 1399 00:39:11,260 --> 00:39:12,060 I actually used 1400 00:39:12,060 --> 00:39:12,980 a three cell flashlight 1401 00:39:12,980 --> 00:39:13,760 to make it bright. 1402 00:39:14,660 --> 00:39:15,780 There's been some articles 1403 00:39:15,780 --> 00:39:16,480 published recently 1404 00:39:16,480 --> 00:39:17,080 in a couple websites. 1405 00:39:17,360 --> 00:39:18,920 To use a two cell 1406 00:39:18,920 --> 00:39:19,700 or one cell flashlight 1407 00:39:19,700 --> 00:39:20,260 you have to use 1408 00:39:20,260 --> 00:39:20,560 what's called 1409 00:39:20,560 --> 00:39:21,520 a DC-DC converter. 1410 00:39:21,880 --> 00:39:22,520 The reason is 1411 00:39:22,520 --> 00:39:24,260 because the LEDs 1412 00:39:24,260 --> 00:39:25,080 need a certain 1413 00:39:25,080 --> 00:39:25,820 threshold voltage 1414 00:39:25,820 --> 00:39:26,360 to turn on. 1415 00:39:26,500 --> 00:39:27,520 And that threshold voltage 1416 00:39:28,280 --> 00:39:29,140 1.7 to 2 volts. 1417 00:39:29,600 --> 00:39:30,400 So that's why 1418 00:39:30,400 --> 00:39:31,340 a lot of people 1419 00:39:31,340 --> 00:39:33,500 use multi-cell 1420 00:39:33,500 --> 00:39:34,340 flashlights this 1421 00:39:34,340 --> 00:39:35,240 or a DC-DC converter. 1422 00:39:35,460 --> 00:39:35,800 But this is just 1423 00:39:35,800 --> 00:39:36,500 a quick and dirty hack. 1424 00:39:36,660 --> 00:39:36,940 So again, 1425 00:39:37,060 --> 00:39:38,160 this is about as bright 1426 00:39:38,160 --> 00:39:39,220 as the bulb was before. 1427 00:39:39,420 --> 00:39:40,320 It's not as directional 1428 00:39:40,320 --> 00:39:41,740 because the flashlight 1429 00:39:41,740 --> 00:39:42,480 reflector was not 1430 00:39:42,480 --> 00:39:43,440 designed to use LEDs. 1431 00:39:43,620 --> 00:39:44,020 It was designed 1432 00:39:44,020 --> 00:39:44,800 to use an incandescent bulb. 1433 00:39:45,020 --> 00:39:45,960 But it was a quick 1434 00:39:45,960 --> 00:39:46,380 and dirty hack 1435 00:39:46,380 --> 00:39:47,000 and there's obviously 1436 00:39:47,000 --> 00:39:47,600 more room for me 1437 00:39:47,600 --> 00:39:48,140 to play with this. 1438 00:39:51,460 --> 00:39:51,960 Let's see. 1439 00:39:53,400 --> 00:39:54,100 So we'll quickly 1440 00:39:54,100 --> 00:39:54,680 the last project 1441 00:39:54,680 --> 00:39:55,200 to walk through 1442 00:39:55,200 --> 00:39:56,100 is the Blink and Lights 1443 00:39:56,100 --> 00:39:56,440 project. 1444 00:39:56,680 --> 00:39:57,340 And I just thought 1445 00:39:58,280 --> 00:39:58,420 it was interesting. 1446 00:39:58,480 --> 00:39:59,240 It sort of captured 1447 00:39:59,240 --> 00:40:00,060 my imagination. 1448 00:40:00,940 --> 00:40:01,340 Basically, 1449 00:40:01,520 --> 00:40:02,300 a group of hackers 1450 00:40:02,300 --> 00:40:03,260 took an eight-story building 1451 00:40:03,260 --> 00:40:03,840 and turned it 1452 00:40:03,840 --> 00:40:04,500 into a giant display. 1453 00:40:05,400 --> 00:40:06,260 They did it over 1454 00:40:06,260 --> 00:40:06,980 a couple of weekends. 1455 00:40:07,280 --> 00:40:07,920 They used about 1456 00:40:07,920 --> 00:40:08,720 5,000 meters 1457 00:40:08,720 --> 00:40:09,620 of Cat5 cable 1458 00:40:09,620 --> 00:40:10,680 to wire every single 1459 00:40:10,680 --> 00:40:11,580 light in the front 1460 00:40:11,580 --> 00:40:12,020 of the building. 1461 00:40:12,800 --> 00:40:13,440 There's basically 1462 00:40:13,440 --> 00:40:14,100 a halogen lamp 1463 00:40:14,100 --> 00:40:14,940 in front of an individually 1464 00:40:14,940 --> 00:40:16,060 controlled halogen lamp 1465 00:40:16,060 --> 00:40:16,820 in front of each window. 1466 00:40:17,140 --> 00:40:17,780 The whole system 1467 00:40:17,780 --> 00:40:18,100 was controlled 1468 00:40:18,100 --> 00:40:18,820 by a Linux PC 1469 00:40:18,820 --> 00:40:20,840 with a 192-channel 1470 00:40:20,840 --> 00:40:21,660 parallel I.O. card. 1471 00:40:22,340 --> 00:40:23,020 So here's sort 1472 00:40:23,020 --> 00:40:23,740 of their basic setup. 1473 00:40:23,860 --> 00:40:24,500 They had sort of 1474 00:40:24,500 --> 00:40:25,220 a master computer 1475 00:40:28,280 --> 00:40:28,680 to wire these lights 1476 00:40:28,680 --> 00:40:29,540 to a little relay. 1477 00:40:29,720 --> 00:40:30,320 And the relay 1478 00:40:30,320 --> 00:40:31,480 would switch on or off 1479 00:40:31,480 --> 00:40:32,600 one of these halogen lamps. 1480 00:40:33,800 --> 00:40:35,280 So lots and lots 1481 00:40:35,280 --> 00:40:35,760 of wiring 1482 00:40:35,760 --> 00:40:36,560 went into this project. 1483 00:40:36,860 --> 00:40:37,320 You can see 1484 00:40:37,320 --> 00:40:37,940 some of the pieces here. 1485 00:40:38,040 --> 00:40:38,500 They used these 1486 00:40:39,140 --> 00:40:39,940 wooden trees 1487 00:40:39,940 --> 00:40:40,560 to hold the lamps 1488 00:40:40,560 --> 00:40:40,920 in place. 1489 00:40:41,220 --> 00:40:42,280 They had to use 1490 00:40:42,280 --> 00:40:43,500 relay amplifier drivers 1491 00:40:43,500 --> 00:40:45,420 because the Cat5 wire 1492 00:40:45,420 --> 00:40:46,420 dropped too much voltage 1493 00:40:46,420 --> 00:40:47,240 across that length. 1494 00:40:47,500 --> 00:40:48,240 Here's the PC 1495 00:40:48,240 --> 00:40:48,800 that ran it. 1496 00:40:48,900 --> 00:40:50,440 Here's the rat's nest 1497 00:40:50,440 --> 00:40:50,900 of wires. 1498 00:40:52,540 --> 00:40:53,500 Here's another example. 1499 00:40:53,620 --> 00:40:53,880 You can see 1500 00:40:53,880 --> 00:40:54,400 the lights sitting 1501 00:40:54,400 --> 00:40:54,960 in front of each 1502 00:40:54,960 --> 00:40:55,380 of the windows. 1503 00:40:56,720 --> 00:40:57,620 So I like 1504 00:40:57,620 --> 00:40:58,060 to establish 1505 00:40:58,280 --> 00:40:58,880 or I'd like to inspire 1506 00:40:58,880 --> 00:40:59,780 a renaissance in hacking. 1507 00:40:59,960 --> 00:41:00,580 Hardware hacking is 1508 00:41:00,580 --> 00:41:01,200 actually pretty easy 1509 00:41:01,200 --> 00:41:01,820 and it's a lot of fun. 1510 00:41:02,020 --> 00:41:02,760 It's actually really 1511 00:41:02,760 --> 00:41:03,560 akin to recycling. 1512 00:41:03,700 --> 00:41:04,460 You take old equipment 1513 00:41:04,460 --> 00:41:05,540 that maybe doesn't have 1514 00:41:05,540 --> 00:41:05,980 a use anymore 1515 00:41:05,980 --> 00:41:07,300 and you give it new life. 1516 00:41:07,760 --> 00:41:08,620 You can learn a lot 1517 00:41:08,620 --> 00:41:09,100 while you're doing it. 1518 00:41:09,100 --> 00:41:09,820 I find the process 1519 00:41:09,820 --> 00:41:10,580 of deconstruction 1520 00:41:10,580 --> 00:41:11,500 to be highly educational. 1521 00:41:12,400 --> 00:41:13,580 But be careful when you do. 1522 00:41:13,680 --> 00:41:14,940 Make sure stuff's unplugged. 1523 00:41:15,280 --> 00:41:16,340 High voltages are bad 1524 00:41:16,340 --> 00:41:16,920 for your heart. 1525 00:41:17,240 --> 00:41:17,940 So go home 1526 00:41:17,940 --> 00:41:18,520 and hack something today. 1527 00:41:19,160 --> 00:41:19,660 Thank you.