1 00:00:00,000 --> 00:00:00,820 All right. 2 00:00:00,820 --> 00:00:03,420 So today we're going to talk about how to make badges. 3 00:00:04,200 --> 00:00:05,880 So you're probably wondering who am I? 4 00:00:06,140 --> 00:00:07,520 My name is Coldbrew. 5 00:00:07,720 --> 00:00:10,220 I am a solutions architect at my day job. 6 00:00:10,820 --> 00:00:14,420 The founder and lead hacker at ROT13 Labs. 7 00:00:14,880 --> 00:00:17,900 And I am the organizer of HyRollerCon, or one of the organizers. 8 00:00:18,260 --> 00:00:22,160 If you see those little ducks everywhere for HyRollerCon, those were us. 9 00:00:22,660 --> 00:00:24,440 I'm also a hardware hacker noob. 10 00:00:24,440 --> 00:00:25,320 And why do I say that? 11 00:00:25,320 --> 00:00:28,620 I say that because I am not an electrical engineer. 12 00:00:28,680 --> 00:00:31,060 I am not someone who's been doing this for ten years. 13 00:00:31,060 --> 00:00:34,080 I'm just a dude who figured out how to do it by tinkering. 14 00:00:34,360 --> 00:00:36,140 And that means that all of you can do it, too. 15 00:00:36,140 --> 00:00:39,620 This is not something that requires you to be some kind of crazy wizard. 16 00:00:39,800 --> 00:00:43,240 It's stuff that anybody can do if you just take the time and tinker with it. 17 00:00:43,240 --> 00:00:45,920 And that's kind of what a lot of this talk is about. 18 00:00:46,880 --> 00:00:53,140 If you'd like to follow me on things, this is kind of a list of all the social networks I'm on, basically in order of how often I'm on them. 19 00:00:53,240 --> 00:00:56,460 So if you're trying to hit me up on Discord, I may not respond for a week or two. 20 00:01:02,960 --> 00:01:03,440 All right. 21 00:01:03,440 --> 00:01:05,000 So what are we going to talk about during this talk? 22 00:01:05,520 --> 00:01:10,500 I'm going to try to go through as much of it as I can because we've got a live demo at the end and I really want to get to that. 23 00:01:11,580 --> 00:01:13,800 First we're going to talk about how to come up with an idea. 24 00:01:14,080 --> 00:01:16,300 If you're going to make a badge, you've got to have an idea for it. 25 00:01:16,320 --> 00:01:22,900 The next thing is planning out the hardware, making sure that you know exactly how it's going to work and all of those kind of things. 26 00:01:23,120 --> 00:01:27,160 Planning out your firmware to make sure that the hardware can actually do the things you want it to do. 27 00:01:27,740 --> 00:01:31,520 Coming up with packaging and accessories if you want to include things like that with it. 28 00:01:31,980 --> 00:01:37,880 Planning out the budget, making sure that you've got kind of all your T's crossed and all your I's dots. 29 00:01:38,500 --> 00:01:40,080 And then making the badge. 30 00:01:40,240 --> 00:01:42,440 So we're going to try and get through as much of this as we can. 31 00:01:43,300 --> 00:01:46,020 So a quick disclaimer before we dive into this too much. 32 00:01:46,280 --> 00:01:49,000 This is not like the right way to make a badge. 33 00:01:49,000 --> 00:01:50,660 There is no right way. 34 00:01:50,820 --> 00:01:53,220 Everyone has a different way they like to make badges. 35 00:01:53,260 --> 00:01:56,220 Every time I talk to a badge maker, I learn some new way to do it. 36 00:01:56,380 --> 00:01:58,200 This is just how I make them. 37 00:01:58,200 --> 00:02:02,240 I have a lot of people after DEF CON usually coming up and asking me about how I do it. 38 00:02:02,460 --> 00:02:03,900 This is how I do it. 39 00:02:05,820 --> 00:02:06,280 Okay. 40 00:02:06,280 --> 00:02:08,240 So the first thing is coming up with the idea. 41 00:02:09,420 --> 00:02:16,980 In a conversation with Alt Beer about a year ago, we were talking about badges and he said the hardest part of making badges is coming up with a good idea. 42 00:02:17,340 --> 00:02:19,680 And this just stuck with me. 43 00:02:19,680 --> 00:02:21,380 Because this is so true. 44 00:02:21,400 --> 00:02:23,040 This is the hardest part. 45 00:02:23,180 --> 00:02:26,600 Once you know what you're going to build, rest of the steps happen easily. 46 00:02:26,600 --> 00:02:28,200 You can read documentation. 47 00:02:28,200 --> 00:02:29,160 You can figure things out. 48 00:02:29,160 --> 00:02:30,000 You can tinker. 49 00:02:30,340 --> 00:02:32,980 However you're going to do it, you can make the badge. 50 00:02:32,980 --> 00:02:38,980 But the idea, that's the part that you really have to work on and make sure it's something you're really going to be excited to build. 51 00:02:40,600 --> 00:02:43,540 So some things to think about when you're coming up with your design. 52 00:02:43,740 --> 00:02:44,920 How do you want it to look? 53 00:02:44,920 --> 00:02:46,540 What shape do you want it to be in? 54 00:02:46,540 --> 00:02:47,600 Do you want it to be abstract? 55 00:02:47,600 --> 00:02:49,020 Do you want it to look like a dog? 56 00:02:49,080 --> 00:02:50,600 Whatever you want it to be. 57 00:02:51,000 --> 00:02:56,200 Once you know that, then you're going to have to figure out, okay, the shape, the color, the size of it. 58 00:02:56,200 --> 00:02:57,180 Do you want it to be huge? 59 00:02:57,180 --> 00:02:58,400 Do you want it to be a little tiny thing? 60 00:02:58,400 --> 00:02:59,520 Maybe an SAO? 61 00:03:00,100 --> 00:03:01,460 Where's the lanyard going to go? 62 00:03:01,460 --> 00:03:03,280 If it's going to have a lanyard . 63 00:03:03,320 --> 00:03:06,200 Do you want to do the dual hook ones or do you want to do the single hooks? 64 00:03:06,420 --> 00:03:09,120 All of these things are going to affect your design on this. 65 00:03:10,080 --> 00:03:12,320 The next thing is what do you want it to actually do? 66 00:03:12,480 --> 00:03:13,780 Or do you want it to do anything at all? 67 00:03:13,780 --> 00:03:15,260 Sometimes people just like the blinky. 68 00:03:15,260 --> 00:03:16,360 And that's fine , too. 69 00:03:16,660 --> 00:03:19,200 Sometimes they want it to have really, really intense features. 70 00:03:20,040 --> 00:03:24,360 Whatever it is, you need to know what it's going to do before you start really diving into this. 71 00:03:25,080 --> 00:03:26,820 How are you going to power all this? 72 00:03:27,040 --> 00:03:28,220 You might need a big lipo. 73 00:03:28,220 --> 00:03:30,660 You might be able to get away with the little 2032s. 74 00:03:31,000 --> 00:03:32,680 And the last thing is what's your budget? 75 00:03:32,700 --> 00:03:36,600 You got to make sure that whatever you're trying to build is realistic for that budget. 76 00:03:36,880 --> 00:03:40,740 And think about the fact that you're not, or probably not at least, just going to be making one or two of these. 77 00:03:40,740 --> 00:03:42,300 You might be making hundreds of them. 78 00:03:42,440 --> 00:03:44,300 So these are all things to consider. 79 00:03:45,100 --> 00:03:48,280 And the last thing about that is be prepared to dump some money into this. 80 00:03:48,660 --> 00:03:49,980 It's not cheap. 81 00:03:49,980 --> 00:03:54,220 I'm not trying to scare you away from it or anything, because you can do it on a budget. 82 00:03:54,220 --> 00:04:01,800 But if you're trying to make something really intense, and you might have to iterate a few times, and usually places don't like to fulfill orders of just one badge. 83 00:04:01,800 --> 00:04:03,540 So you're probably making five at a time. 84 00:04:03,540 --> 00:04:06,960 And when it comes to your house and it doesn't work, all that money is down the drain. 85 00:04:06,960 --> 00:04:11,800 You got to figure out how it should work and then order another batch and hope that one works. 86 00:04:11,800 --> 00:04:15,600 So make sure that you're ready to actually put some money into this. 87 00:04:16,840 --> 00:04:21,360 Okay, so these are some of the badges that I've made in the past, just to kind of give you some idea of things. 88 00:04:21,520 --> 00:04:27,060 I mean, some of these are, I try to get kind of a good range of like different sizes, different styles, different things. 89 00:04:27,200 --> 00:04:32,560 But it's something where you got to think about the coloring, the size, the shape, all of that. 90 00:04:32,700 --> 00:04:35,140 And these are some good examples of things that I've made. 91 00:04:35,340 --> 00:04:40,000 We can kind of get into them as we keep going, but just a few ideas. 92 00:04:41,120 --> 00:04:44,980 So now that you've got your idea, you've decided exactly what you're going to make. 93 00:04:44,980 --> 00:04:46,800 Now you can start to plan out that hardware. 94 00:04:47,420 --> 00:04:48,680 Is it just going to blink? 95 00:04:49,320 --> 00:04:54,880 If so, all you need is some LEDs and the CH2032 is probably enough for you. 96 00:04:55,460 --> 00:04:59,140 Those are the little coin cells that sometimes the DEF CON badges run off of. 97 00:05:00,120 --> 00:05:01,600 You got to think about your LEDs. 98 00:05:01,660 --> 00:05:05,160 They have those self blinking LEDs, they're dead simple to use. 99 00:05:05,160 --> 00:05:09,160 I love using those in badges because it gives you some functionality. 100 00:05:09,160 --> 00:05:14,040 It gives you something that's blinking or flashing or whatever without having to use a microcontroller. 101 00:05:15,020 --> 00:05:17,220 Those usually also have a built-in resistor. 102 00:05:17,220 --> 00:05:19,260 So that's another part that you don't have to use. 103 00:05:19,260 --> 00:05:20,660 It makes your bomb tiny. 104 00:05:20,660 --> 00:05:23,100 It makes the amount of parts you have to acquire tiny. 105 00:05:23,140 --> 00:05:27,460 It just makes your life a lot easier, especially if you're trying to build something simple. 106 00:05:29,000 --> 00:05:30,220 SMD versus through-hole. 107 00:05:30,220 --> 00:05:32,020 SMD is surface mount devices. 108 00:05:32,020 --> 00:05:35,120 Those are the ones that mount on the surface. 109 00:05:35,180 --> 00:05:37,700 Through-hole is the ones that are actually going through the board. 110 00:05:38,160 --> 00:05:41,160 These can kind of change your design pretty wildly. 111 00:05:41,160 --> 00:05:46,340 For the little duck SAOs this year, we did the through-hole ones because we thought it'd be easier for people to solder on their own. 112 00:05:46,340 --> 00:05:52,100 But now when it comes time for us to solder 30,000 of these, you know, we just can't do it easily. 113 00:05:52,100 --> 00:05:54,920 So we end up only soldering 1,000 of them ourselves. 114 00:05:55,040 --> 00:05:57,220 But 1,000 ducks is a lot to solder. 115 00:05:57,220 --> 00:05:58,880 So we're kind of regretting that decision. 116 00:05:58,880 --> 00:06:01,020 But it's something to think about. 117 00:06:01,780 --> 00:06:05,260 If you're doing the SMD stuff, you can also do things like reverse mounting. 118 00:06:05,440 --> 00:06:16,160 So this badge here is a perfect example where we did reverse mount LEDs on the back of the board so that it shines through the board and kind of gives you that little effect you can see there with the blue and the red. 119 00:06:16,180 --> 00:06:19,820 And those were the self-blinking ones, so we couldn't catch all four of them lit up at the same time. 120 00:06:19,820 --> 00:06:21,300 But you get the idea. 121 00:06:21,460 --> 00:06:25,120 You can do a lot with just LEDs and still make a really cool badge. 122 00:06:26,020 --> 00:06:36,180 Another thing I always tell people is that if you're making a very, very simple badge but you want to give it a little more flexibility or give it just a little something extra, consider an SAO port. 123 00:06:36,400 --> 00:06:47,020 Technically the SAO standard is supposed to have all six pins doing different things, but if you just put power and ground, that's all most SAOs use in the first place anyway. 124 00:06:47,020 --> 00:06:52,880 So it gives you a very easy way to add a little extra functionality for people to expand upon your badge. 125 00:06:55,300 --> 00:07:04,720 Okay, so if you do want to go with functionality, you want it to do something, you want it to have Wi-Fi, Bluetooth, whatever it is, you got to think about how much processing power you're going to need for this. 126 00:07:06,240 --> 00:07:08,380 There's tons and tons of MCUs out there. 127 00:07:08,380 --> 00:07:10,040 I'm not going to talk about all of them. 128 00:07:10,180 --> 00:07:19,100 But the ones that I like to use for the larger power things where I need more processing power is something like the ATmega328P or the RPi2040. 129 00:07:19,220 --> 00:07:24,240 These are really, I'm just giving these examples so you've got at least an idea in your head if you're starting to look into these things. 130 00:07:24,240 --> 00:07:27,260 Those are the ones that I have found are very easy to work with. 131 00:07:27,360 --> 00:07:31,160 They're very simple, they're beginner friendly, but they give you a lot of power. 132 00:07:31,940 --> 00:07:34,840 The next thing to think about is things like Wi-Fi and Bluetooth. 133 00:07:35,400 --> 00:07:37,580 A lot of badges these days have those things. 134 00:07:37,580 --> 00:07:43,260 Something like that, you're going to have to go for something like the ESP8266 or the ESP32 series. 135 00:07:43,300 --> 00:07:48,200 The 8266 is going to give you Wi-Fi, the 32 will usually give you Wi-Fi and Bluetooth. 136 00:07:48,500 --> 00:07:54,600 Make sure you're checking the documentation though, because not all of them are going to give you those exact things. 137 00:07:54,760 --> 00:07:56,840 You've got to make sure you check the documentation. 138 00:07:57,120 --> 00:08:03,400 I have done this before where I ordered a chip thinking it had something, ordered the boards, got them in, soldered it all up. 139 00:08:03,400 --> 00:08:06,200 Turns out it doesn't work because I ordered the wrong chips. 140 00:08:06,540 --> 00:08:10,580 So learn from my mistakes and make sure you're reading the docs on these things. 141 00:08:11,280 --> 00:08:14,880 The last thing to think about is how many GPIO do you need? 142 00:08:15,440 --> 00:08:24,980 So on that one, if you're going to need a lot of GPIO, something like the ATmega32 or that CH32V003, that's the new RISC-V chip. 143 00:08:25,020 --> 00:08:29,700 It gives you a ton of GPIO for like 10 cents a chip or something like that. 144 00:08:29,700 --> 00:08:32,160 They're super cheap, but they're pretty new. 145 00:08:32,160 --> 00:08:38,680 So they're a little bit harder to work with, which is another thing you want to consider when you're picking your MCU is how long has this been around? 146 00:08:38,680 --> 00:08:40,040 Is there a lot of documentation? 147 00:08:40,340 --> 00:08:42,240 Is there a lot of community support? 148 00:08:42,720 --> 00:08:45,080 Those are the big things you want to be looking at. 149 00:08:47,180 --> 00:08:49,260 Okay, so what is a GPIO? 150 00:08:49,540 --> 00:08:51,360 I know someone's going to be asking this. 151 00:08:51,360 --> 00:08:53,420 That is a general purpose input output. 152 00:08:53,420 --> 00:08:55,520 Those are the pins on the MCU. 153 00:08:55,700 --> 00:08:57,660 Those are the things that actually do something. 154 00:08:57,660 --> 00:09:06,040 So if you want to put a sensor or you want to blink an LED, anything that is an input or an output, you're going to need a GPIO for that. 155 00:09:06,280 --> 00:09:16,260 You can do some tricky things to get extra GPIO out of your badges, but realistically you want to have one GPIO per thing that you want it to do. 156 00:09:18,460 --> 00:09:21,940 Here's some quick examples of pins that have a lot of GPIO. 157 00:09:21,940 --> 00:09:23,100 Some of those are through holes. 158 00:09:23,100 --> 00:09:29,000 Some of those are surface mount, but it at least gives you an idea of all those pins are different things you can do. 159 00:09:29,000 --> 00:09:37,280 For these keyboards here, you have to use one GPIO for each row of keys and for each column of keys. 160 00:09:37,380 --> 00:09:39,840 And that way you can pinpoint which key was clicked. 161 00:09:39,920 --> 00:09:44,020 So obviously for the larger keyboards, you're going to need a lot more GPIO. 162 00:09:44,620 --> 00:09:48,240 So it's just something to think about if you're building something that has a lot of functionality. 163 00:09:50,500 --> 00:09:52,380 Okay, so you've got your idea. 164 00:09:52,880 --> 00:09:54,620 You can plan out your hardware now. 165 00:09:54,840 --> 00:09:56,480 Now you can look at the power. 166 00:09:56,680 --> 00:09:59,260 Okay, so how long do you want it to run for? 167 00:09:59,260 --> 00:10:08,140 My rule of thumb is usually if it's rechargeable, I want it to last at least 24 hours so that people can play with it at the con. 168 00:10:08,260 --> 00:10:13,520 They can go home at night when they're about to pass out and plug it in to recharge it and have it for the full next day. 169 00:10:14,520 --> 00:10:19,200 If it's not going to be a rechargeable battery, I want it to last the whole con. 170 00:10:19,340 --> 00:10:25,220 I want people to be able to leave it on, forget about it, fall asleep with it turned on, and still be running the next day. 171 00:10:25,220 --> 00:10:26,180 Okay. 172 00:10:26,700 --> 00:10:29,680 I mean, realistically, you could make things that power for months. 173 00:10:29,680 --> 00:10:32,580 I really doubt you need that, but it's an option. 174 00:10:33,800 --> 00:10:39,620 When it comes to using power, the heavy hitters are usually things like NeoPixels and Wi-Fi. 175 00:10:39,940 --> 00:10:51,020 NeoPixels, there's a lot of tricks you can do to make them use a little bit less power, but if you really want that color cycling where you control what colors they are and how they move, it's going to cost you a bit of power. 176 00:10:51,940 --> 00:10:54,940 The last thing to think about is, do you need a charge circuit? 177 00:10:55,260 --> 00:10:58,820 And that's going to be if you're doing the LiPo batteries and you want to be able to recharge that. 178 00:10:59,000 --> 00:11:01,460 Some MCUs will have that built in. 179 00:11:01,540 --> 00:11:08,220 So again, you'll have to read the documentation and see, is this something that I need to build on my own, or is this something that my MCU comes with? 180 00:11:09,240 --> 00:11:17,240 Now, I chose this badge for this slide because this is one of the spaces where I really screwed up and I really regretted it. 181 00:11:17,240 --> 00:11:20,400 So this is a lesson for y'all to learn from my mistake here. 182 00:11:20,640 --> 00:11:29,260 I used one of these, I think it was called a CH123 battery, and they're not rechargeable, so you have to click it out and click a new one in every time you want to use it. 183 00:11:29,260 --> 00:11:34,540 I was using Wi-Fi and NeoPixels on this badge, and it did not last a day. 184 00:11:34,980 --> 00:11:39,000 And once it died, where are you supposed to get one of these? 185 00:11:39,300 --> 00:11:40,940 So this was for Wild West Hack'n Fest. 186 00:11:40,940 --> 00:11:46,420 Those who have been to that, you know there's not a lot of places to get batteries out there in the Deadwood. 187 00:11:46,540 --> 00:11:51,020 So when these badges died, you were just kind of out of luck. 188 00:11:51,120 --> 00:11:57,320 So I included an extra battery with each one, but you know, it was an area where I regret that. 189 00:11:57,320 --> 00:12:07,200 So make sure if you're going to use a battery that can be swapped out, make sure you're using something that people can actually get their hands on when they want to get new, you know, replace that battery. 190 00:12:09,660 --> 00:12:13,280 Okay, so we're ready to build our thing, whatever it may be. 191 00:12:14,880 --> 00:12:17,440 So I usually skip this part. 192 00:12:17,640 --> 00:12:19,660 You should not skip this part. 193 00:12:19,660 --> 00:12:26,140 This is just me being lazy and not wanting to do it, but just for full disclosure, I usually end up skipping this. 194 00:12:26,160 --> 00:12:28,560 I do regret it later most of the time. 195 00:12:28,920 --> 00:12:39,080 This is going to save you a lot of headaches, and this is going to allow you to be able to send your circuit to other badge makers or other, you know, electrical engineers or whatever and say, hey, why is this not working? 196 00:12:39,080 --> 00:12:40,960 Or hey, is this going to work? 197 00:12:41,620 --> 00:12:46,260 So we'll talk a bit more about these later on, but you're going to want to draw it out, okay? 198 00:12:46,260 --> 00:13:00,820 And this is something where you can see there is the ATtiny85, and it's going to some resistors, and it's going to a USB port, and it allows you to actually check out what your circuit's going to do and how it's going to do it to make sure all the connections are there, 199 00:13:00,820 --> 00:13:02,520 you know, and it's going to work. 200 00:13:06,130 --> 00:13:14,050 So shameless plug, a buddy of mine, RelayMoth, he actually sells t-shirts of that circuit, so I've got one right here. 201 00:13:14,610 --> 00:13:21,030 We have a few of them over at the Cyber Swamplord's booth, but most of them are sold out, but you can get them online if that's something that you guys like. 202 00:13:22,030 --> 00:13:27,150 So once you have built out your circuit, now is when you're going to want to breadboard that. 203 00:13:27,150 --> 00:13:30,410 So you're going to build it with actual parts, but without a PCB. 204 00:13:30,410 --> 00:13:35,030 You're just jamming wires into a breadboard and connecting everything up to make sure that it works. 205 00:13:35,790 --> 00:13:40,870 You can kind of do little tricks like just touching wires together to simulate clicking a button. 206 00:13:41,090 --> 00:13:55,430 You can start to build out your firmware at this phase if it actually needs firmware, like if you're using an MCU and you want it to have Wi-Fi or Bluetooth or whatever, this is when you can start building that and make sure that the hardware that you're choosing can actually do the things you want it to do. 207 00:13:57,110 --> 00:13:59,770 Also, I usually skip this step, too. 208 00:14:00,330 --> 00:14:03,270 So don't listen to me. 209 00:14:03,810 --> 00:14:05,690 Just do what you're supposed to do. 210 00:14:07,090 --> 00:14:09,490 So that leads into planning out the firmware. 211 00:14:09,970 --> 00:14:13,350 Usually Arduino IDE is a great place to start for this. 212 00:14:13,350 --> 00:14:18,410 They have ways to be able to test out all kinds of functionality on all kinds of different chipsets. 213 00:14:18,750 --> 00:14:22,710 They just make it a lot easier to develop on, especially if you're just getting started. 214 00:14:23,710 --> 00:14:31,410 What I always tell people is if you just Google the functionality that you want, chances are someone else has done something that's very close to that. 215 00:14:31,630 --> 00:14:40,550 Even if it's not super close to it, even if it's kind of a little bit off, you can usually just steal chunks of that and start mashing things together to build out the firmware you want. 216 00:14:40,570 --> 00:14:50,910 Those Fox badges that I built a few years ago, if anybody knows about those, they were really just a hop gobble of a bunch of other people's code that I was able to string together and make it work. 217 00:14:52,130 --> 00:14:56,270 It's a simple way to start, especially if you're not great with writing firmware like me. 218 00:14:56,370 --> 00:14:58,110 It's a good way to get it going. 219 00:14:58,970 --> 00:15:09,710 So as long as you're using an MCU, some other ideas to think about adding in there is things like a CTF, things like feature flags, things like a debug mode, and again, the SAO. 220 00:15:09,710 --> 00:15:17,710 Things like that are a great way to add functionality onto your badge without really needing to change the hardware at all. 221 00:15:19,250 --> 00:15:22,070 So we had talked before about how SAO is a standard. 222 00:15:22,070 --> 00:15:24,170 This is the actual pinout for it. 223 00:15:24,170 --> 00:15:29,290 So you've got your 3 volt in your ground, then you've got a data and clock, and then you've got two GPIO. 224 00:15:29,630 --> 00:15:35,450 And that's just something where this is if you want it to be a full SAO, this is what people are referring to. 225 00:15:35,490 --> 00:15:39,990 But again, you can just do that 3 volt in the ground and you're probably going to be just fine. 226 00:15:40,090 --> 00:15:43,590 Also, some badge makers do not necessarily do 3.3 volt. 227 00:15:43,590 --> 00:15:46,010 I've seen badges that are sending 6 volt here. 228 00:15:46,730 --> 00:15:52,150 Maybe don't do that because that might blow up someone's SAO, but people do it. 229 00:15:54,610 --> 00:15:56,570 Okay, so packaging and accessories. 230 00:15:56,570 --> 00:15:59,710 This is an area where I always like to do a lot more. 231 00:15:59,710 --> 00:16:04,050 I know some badge makers, they just like to hand you a bag and that's fine too. 232 00:16:04,190 --> 00:16:10,750 But I always think it's a lot more fun when badges come with really cool packaging and they come with cool accessories. 233 00:16:11,210 --> 00:16:15,830 It's this whole experience that you've built for someone rather than just handing them the badge. 234 00:16:15,950 --> 00:16:19,590 I always like doing that, so I always encourage others to do the same thing. 235 00:16:20,030 --> 00:16:26,190 If you're going to do this, the thing to think about when you're doing it is what do you actually need to use this badge? 236 00:16:26,190 --> 00:16:31,130 Like if I handed you the badge, what would you need to just turn it on and use it right now? 237 00:16:31,630 --> 00:16:34,690 And then there's things like what would you want to get with this badge? 238 00:16:35,150 --> 00:16:46,430 So the needs, I have things like USB cable, batteries, antenna, any of those kinds of things where it's like to be able to use this badge straight out the gate, those are the kinds of things you would need. 239 00:16:46,750 --> 00:16:54,110 The things that are wants are things like the sticker or, you know, an extra SAO that comes with the badge or the case for it or whatever. 240 00:16:54,110 --> 00:16:58,990 Any of those things are things that it would be great to have that but you don't really need it. 241 00:17:00,810 --> 00:17:08,430 Okay, so you've got all your ideas, you know what parts you're going to use, you know what accessories you're going to include and all that, where the hell do you find it all? 242 00:17:08,950 --> 00:17:14,310 So I always tell people there's basically three tiers that you can go through to actually get this. 243 00:17:14,310 --> 00:17:19,890 There's your fast shipping kind of highest cost tier and obviously that's Amazon. 244 00:17:20,110 --> 00:17:26,110 These are the kind of parts where you don't want to be buying your production parts off of Amazon. 245 00:17:26,310 --> 00:17:27,670 You're going to pay an arm and a leg. 246 00:17:27,670 --> 00:17:31,170 You're going to get them tomorrow but you're going to pay an arm and a leg for it. 247 00:17:31,310 --> 00:17:35,850 But these are perfect if you get in a jam or when you're prototyping. 248 00:17:35,990 --> 00:17:42,590 When you're prototyping you probably don't want to have to sit around waiting two weeks to get some parts just to try them out and be like oh that wasn't what I needed. 249 00:17:43,010 --> 00:17:47,630 Use Amazon, get them on there real quick because you're only buying one or two of them. 250 00:17:48,310 --> 00:17:51,870 The mid-tier stuff is usually takes around a week of shipping. 251 00:17:51,910 --> 00:17:55,390 You can get them faster but it's usually going to be sometime around a week. 252 00:17:55,390 --> 00:17:57,990 And these are things like Digikey, Mouser, Aero. 253 00:17:58,450 --> 00:18:02,350 I know there's plenty more but those are the ones that I've used and had good luck with. 254 00:18:02,770 --> 00:18:08,570 These ones are going to be very reliable parts distributors but they do take a little bit more time. 255 00:18:08,570 --> 00:18:13,550 You're going to get bulk pricing and things like that and the more you buy the more you're going to save on those ones. 256 00:18:14,230 --> 00:18:22,030 Those are usually where you want to go for things like MCUs where it needs to be solid, it needs to work, it needs to be authentic. 257 00:18:22,730 --> 00:18:27,890 And the final one is the low cost long ship times and this is things like AliExpress. 258 00:18:28,010 --> 00:18:38,250 You can also use Teemu or Alibaba or any of those as well but any of these you're going to have to wait for these parts but they're going to be dirt cheap no matter how many you're buying. 259 00:18:38,370 --> 00:18:43,790 The one problem with this tier is that they're not necessarily authentic. 260 00:18:43,910 --> 00:18:51,090 I've had friends that have ordered a bunch of parts from AliExpress, they get them and three quarters of them don't work and they're obvious fakes. 261 00:18:51,350 --> 00:19:00,210 This is something where to me I like to order simple things that are like resistors or LEDs or things like that. 262 00:19:00,210 --> 00:19:11,370 I like to order those from AliExpress to get the better deal on them but anything like an MCU where I need it to be good, I need it to work, and I need it to be authentic, I'll order that from that mid tier. 263 00:19:11,890 --> 00:19:15,550 You can kind of choose to slice this however you want, that's just how I like to do it. 264 00:19:17,150 --> 00:19:20,090 Okay, so what is all this going to actually cost you? 265 00:19:20,590 --> 00:19:35,250 I've drawn out the way that I plan budgets and these numbers are just made up but this is how I like to do it is I like to get all of my different things that I'm going to buy, so the PCBs, the components, batteries, lanyards, accessories, cases, whatever, 266 00:19:35,250 --> 00:19:39,230 and put down how much the complete order of that thing is going to cost. 267 00:19:39,690 --> 00:19:43,870 Then how many units I'm going to make and the total cost to make it. 268 00:19:43,870 --> 00:19:55,250 So that is like if I had to invest, you know, in this case $325 to prototype this out, you know, I ordered that many parts and boards and, you know, whatever to build this thing. 269 00:19:56,190 --> 00:19:58,870 Oh, whoops, sorry, that's time spent on dev. 270 00:19:58,870 --> 00:20:04,310 Total cost to make would be all of those items totaled up, which gives me that cost per unit. 271 00:20:04,350 --> 00:20:14,930 From there you can kind of estimate your shipping if you want to include that, put what price you're planning on charging, and have this calculate like how much profit are you going to make off of these badges if you sell all of them. 272 00:20:15,090 --> 00:20:17,210 And also what is your break-even point? 273 00:20:17,210 --> 00:20:22,970 How many of these badges do you have to sell to just offset the cost that you spent to make it? 274 00:20:25,710 --> 00:20:26,730 Let's see here. 275 00:20:26,730 --> 00:20:32,530 Yeah, so another thing is kind of your prototyping and discovery costs, but also your equipment costs. 276 00:20:32,530 --> 00:20:34,310 Some people like to include that. 277 00:20:34,310 --> 00:20:39,550 I usually consider equipment that I bought to build a badge something that I would probably buy anyway for my hobbies. 278 00:20:39,550 --> 00:20:43,790 So I don't usually include them, but it is something to think about. 279 00:20:45,810 --> 00:20:51,410 Okay, so we're finally about to get to the demo here soon, but there's a couple things we want to go over before we do that. 280 00:20:52,630 --> 00:20:55,170 So I had mentioned we'd come back to designing the circuit. 281 00:20:55,170 --> 00:21:00,750 So this is the circuit that we're going to try to kind of get as far into as we can with building. 282 00:21:00,750 --> 00:21:03,430 So with this one, we're going to use the ESP-01S. 283 00:21:03,430 --> 00:21:11,430 This is kind of a very small ESP unit that gets us just a few I.O., but it gets us Wi-Fi, which is what we're going to do with this. 284 00:21:11,970 --> 00:21:13,110 It's easy to work with. 285 00:21:13,110 --> 00:21:16,310 It's very simple to solder, especially for first-time solderers. 286 00:21:17,070 --> 00:21:18,390 So we're going to go with that one. 287 00:21:18,390 --> 00:21:22,930 We're going to go with a little one-inch OLED screen so we can actually see what we're working with. 288 00:21:22,930 --> 00:21:25,890 We're going to go with the AAA batteries because they're simple. 289 00:21:26,010 --> 00:21:29,070 AAA batteries are going to give us 4.5 volts. 290 00:21:29,070 --> 00:21:31,950 All of this stuff we're using needs 3.3 volts. 291 00:21:31,950 --> 00:21:39,010 So we're going to have to use a linear regulator to cut that power down from 4.5 to that 3.3 that we need. 292 00:21:40,110 --> 00:21:47,550 Then we're going to include a little header so that we can actually program this thing and, you know, simple things like buttons, LED, and switch. 293 00:21:49,770 --> 00:21:50,130 Okay. 294 00:21:50,130 --> 00:21:55,150 So you're probably thinking, how do I know which of those GPIO I need to be using to do this? 295 00:21:55,590 --> 00:21:56,670 And the answer is simple. 296 00:21:56,670 --> 00:21:58,750 It's the documentation. 297 00:21:59,210 --> 00:21:59,490 Okay. 298 00:21:59,490 --> 00:22:08,770 So when you're looking through this documentation for your MCU or whatever it is that you're going to actually be using, they are very long documents. 299 00:22:08,770 --> 00:22:13,630 And especially if you're just getting started, they can be really, really overwhelming to look at. 300 00:22:13,830 --> 00:22:22,090 So even if you skip 99% of it, the things that you really need to look at is the pin definitions. 301 00:22:22,610 --> 00:22:28,430 This is going to show you what each pin does and what it or I should say what it can do. 302 00:22:28,430 --> 00:22:31,130 Because not every pin can do everything. 303 00:22:31,130 --> 00:22:36,610 So this shows you all the pins that your board offers or your MCU offers. 304 00:22:36,610 --> 00:22:38,410 And then the list of things that it can do. 305 00:22:38,410 --> 00:22:43,690 But it also shows you what they call the active and the boot time for those pins. 306 00:22:44,110 --> 00:22:46,350 These are important because it's going to say high or low. 307 00:22:46,350 --> 00:22:54,470 And that tells you that it's going to be putting out power or not putting out power during the boot time or while it's turned on. 308 00:22:54,830 --> 00:23:04,170 So this is important because if it's supposed to be held high at boot time, but you have it cut off, that it's not going to boot. 309 00:23:04,490 --> 00:23:08,690 So make sure that you're paying attention to these things and understanding how they're going to work. 310 00:23:09,170 --> 00:23:14,090 The next thing you need to pay attention to in this is the typical application section. 311 00:23:14,290 --> 00:23:19,030 Usually it's going to show a more circuit diagram, kind of like that bottom left there. 312 00:23:19,030 --> 00:23:22,410 But it could also show just a picture of the unit itself. 313 00:23:22,730 --> 00:23:29,150 But what this is going to show you is what you need to provide to this chip just to make it work. 314 00:23:29,450 --> 00:23:33,630 You can add your own stuff after this to make it do whatever it is you need it to do. 315 00:23:33,630 --> 00:23:38,050 But these are the bare minimum of what you need to make this thing turn on. 316 00:23:38,410 --> 00:23:48,390 So you'll see in the top one there, which is the ESP-01, they've got a couple resistors there going from enable and reset to that 3.3 volt. 317 00:23:48,630 --> 00:23:53,650 But on the ESP-01S, which is the one that we're going to use, they've eliminated those. 318 00:23:53,650 --> 00:23:57,630 They built those internally on the MCU, so you no longer need those. 319 00:23:57,630 --> 00:24:04,930 So for us, our minimal circuit is literally just that ground and the 3 volt, and then we need the RX and TX to be able to program it. 320 00:24:04,930 --> 00:24:07,150 That is all we need to make this thing work. 321 00:24:07,710 --> 00:24:10,870 Now they also have a recommended circuit section sometimes. 322 00:24:10,910 --> 00:24:18,110 This is not always there, but in this particular one, they had that recommended circuit there of that power supply reference design. 323 00:24:18,250 --> 00:24:24,990 That's how we know that we're going to need that 3.3 volts if we're giving our badge significantly over that, which we are. 324 00:24:24,990 --> 00:24:28,970 So we essentially lifted out that one as well that we're going to use for this badge. 325 00:24:30,650 --> 00:24:35,550 Okay, so when you design a PCB, there's going to be tons of layers that it shows on here. 326 00:24:35,550 --> 00:24:43,250 And we'll show this once we get to the demo, but the layers, some of them are additive and some of them are subtractive. 327 00:24:43,250 --> 00:24:50,370 And so this is kind of the hardest part to get used to when you start using something like EasyEDA, which is the one that I'm going to be showing you guys today. 328 00:24:50,830 --> 00:24:55,570 So there's the top and bottom layer, and this is the actual copper layer on your board. 329 00:24:55,570 --> 00:25:06,190 These are additive, which means that whatever I draw on my board on the top and bottom layers, they're going to put copper in that shape or in that design or connecting those things. 330 00:25:06,670 --> 00:25:09,050 Then there's the top silk and bottom silk layer. 331 00:25:09,050 --> 00:25:16,010 These are the silk screen, so if you have the traditional green PCB with the white writing on it, the silk screen is that white writing. 332 00:25:16,010 --> 00:25:23,870 And this one is additive as well, so anything that I write or draw or whatever, it's all going to show up in white or whatever my silk screen layer is. 333 00:25:24,250 --> 00:25:27,750 Then there's the top paste mask and bottom paste mask layers. 334 00:25:27,750 --> 00:25:29,810 These are what's known as the stencil layer. 335 00:25:29,810 --> 00:25:39,610 This is where if you were ordering a stencil for SMT, so you could just squeegee your solder paste on there, this is the layer that they would cut out for that. 336 00:25:39,850 --> 00:25:43,970 So this is when you want to expose the copper or expose the PCB itself. 337 00:25:43,970 --> 00:25:51,610 These are subtractive, so anything that you draw on these layers, it's going to cut that off of the stencil layer. 338 00:25:52,430 --> 00:25:56,930 Top solder mask and bottom solder mask is very similar to this. 339 00:25:56,930 --> 00:26:01,370 This is the actual solder mask, so on the green and white PCB, this is the green part. 340 00:26:01,850 --> 00:26:11,830 Usually in EasyEDA, if you draw something on either the top paste mask or top solder mask, they're just going to cut it out anyway, so they effectively work the same way, but they are separate layers. 341 00:26:11,830 --> 00:26:13,430 So this one is also subtractive. 342 00:26:13,430 --> 00:26:15,590 It's going to cut out whatever you draw. 343 00:26:16,390 --> 00:26:22,450 Then there's a couple of different layers that are kind of more used for like the actual building of the PCB itself. 344 00:26:22,450 --> 00:26:27,350 So this is the board outline layer, where that's actually the shape of your badge. 345 00:26:27,670 --> 00:26:33,430 And there's multi-layer, which is things like through-hole components or if you drill a hole in the badge or things like that. 346 00:26:33,710 --> 00:26:35,170 Then there's the RAT lines. 347 00:26:35,170 --> 00:26:48,850 RAT lines is if you have all of your pins set up in such a way where you have labeled the nets, so if you have a ground pin over here and a ground pin over here, but you didn't connect them, a RAT line is where it's going to draw a big blue line across your screen saying, 348 00:26:48,850 --> 00:26:51,790 hey, these are supposed to be connected, but you haven't connected them yet. 349 00:26:52,010 --> 00:26:53,250 So that's just to help you. 350 00:26:53,250 --> 00:26:55,210 It's not going to be printed on the board or anything. 351 00:26:55,210 --> 00:26:56,750 It's just to help you design it. 352 00:26:57,410 --> 00:26:59,050 And that's same with the document layer. 353 00:26:59,050 --> 00:27:05,370 The document layer is there so that you can make labels for things that will not be printed onto the board. 354 00:27:05,830 --> 00:27:08,490 Now, a special note about that one. 355 00:27:08,670 --> 00:27:10,950 It's not supposed to be printed on the board. 356 00:27:10,950 --> 00:27:15,550 That doesn't mean that your FAB will not screw up and accidentally print it on the board. 357 00:27:15,690 --> 00:27:25,370 So make sure before you click go on a massive order that they have not put the document layer on there because I've had some friends that it just happened to recently. 358 00:27:27,010 --> 00:27:28,570 Okay, so here's the demo time. 359 00:27:28,570 --> 00:27:29,690 We're going to see if this works. 360 00:27:29,690 --> 00:27:31,450 Everyone pray to the demo gods. 361 00:27:31,550 --> 00:27:34,710 We're going to try and crank through as much of this badge as possible. 362 00:27:34,870 --> 00:27:37,690 And yeah, we'll see how it goes. 363 00:27:42,610 --> 00:27:49,330 Okay, so I said earlier that the program that I like to use to build these is called EasyEDA. 364 00:27:49,350 --> 00:27:52,850 I usually use the online one, but just so I wouldn't have to worry about internet. 365 00:27:54,110 --> 00:27:56,890 I've got the local one here. 366 00:27:57,070 --> 00:28:04,530 So when you're first starting out, you're going to come in here and you're going to say you want a new project. 367 00:28:05,390 --> 00:28:08,950 We're going to call this Nibbler because we're going to build Nibbler from Futurama. 368 00:28:09,950 --> 00:28:13,030 So the first thing it's going to give you is this to draw your circuit diagram. 369 00:28:13,030 --> 00:28:15,870 We've already done that, so we're just going to go ahead and skip past that. 370 00:28:16,030 --> 00:28:18,670 We're going to come over here and say that we want a new PCB. 371 00:28:19,510 --> 00:28:24,190 Now it's going to show you a lot of things here about, okay, how do you want this PCB to look? 372 00:28:24,190 --> 00:28:26,210 So it's going to tell us that we're doing millimeters. 373 00:28:26,210 --> 00:28:27,530 We're going to do two layers. 374 00:28:27,530 --> 00:28:29,770 This means there's copper on the top and on the bottom. 375 00:28:29,890 --> 00:28:32,710 You can actually do tons of layers if you want. 376 00:28:32,710 --> 00:28:34,950 And it's going to put those copper layers in the middle. 377 00:28:35,190 --> 00:28:38,590 This gets really, really expensive really quick. 378 00:28:38,930 --> 00:28:42,210 Most people that I know of just do the top and bottom layers. 379 00:28:42,770 --> 00:28:46,410 I know there is some badge makers out there that go crazy and do like eight layers and things. 380 00:28:46,790 --> 00:28:48,170 I stick with two. 381 00:28:48,430 --> 00:28:49,350 That's just me. 382 00:28:49,810 --> 00:28:54,470 So board outline, this is where you can pick if you want it to be a circle, round, rectangle, whatever. 383 00:28:54,850 --> 00:28:57,290 I just start out by leaving this as rectangular. 384 00:28:57,410 --> 00:29:02,190 I'm going to tinker with it in just a bit and you'll see how I do that, but I leave it as rectangular. 385 00:29:02,770 --> 00:29:04,970 And because of that, I leave these the same way too. 386 00:29:04,970 --> 00:29:06,950 I'm going to mess around with that board on my own. 387 00:29:06,950 --> 00:29:08,290 I don't care what they make. 388 00:29:09,090 --> 00:29:11,150 Oops, I think I just clicked cancel on that. 389 00:29:12,890 --> 00:29:14,950 So we'll just leave these as defaults for now. 390 00:29:14,950 --> 00:29:19,150 So now we have our pink board outline here. 391 00:29:20,390 --> 00:29:24,410 Okay, so we're going to go to the document layer real quick. 392 00:29:26,430 --> 00:29:29,230 And we're going to click that we want to add an image. 393 00:29:30,130 --> 00:29:34,770 Now on the desktop, I've got this Nibbler folder here where I've kind of picked out all of these. 394 00:29:34,830 --> 00:29:38,890 So we've got our document layer file that I've kind of preset to this. 395 00:29:40,450 --> 00:29:42,390 And there it shows us our little picture of Nibbler. 396 00:29:42,390 --> 00:29:44,350 So this is what our badge is going to look like. 397 00:29:44,650 --> 00:29:50,030 I'm going to set this to 150 because I've already tested this out and that seems to be a pretty good size for us. 398 00:29:50,510 --> 00:29:52,830 So now we have our Nibbler and we put it on here. 399 00:29:53,170 --> 00:29:57,130 So we want this board to match that Nibbler. 400 00:29:57,670 --> 00:30:01,570 Now again, there are lots of ways to do this in lots of different editors. 401 00:30:01,730 --> 00:30:03,510 This is just how I do it. 402 00:30:03,650 --> 00:30:08,050 I have been told this is the absolute caveman method, which it does kind of seem that way. 403 00:30:08,050 --> 00:30:09,850 But this is what I do. 404 00:30:09,950 --> 00:30:12,690 I just start dragging and dropping. 405 00:30:13,110 --> 00:30:17,730 I usually start out by making it pretty extreme like this where it doesn't go very close. 406 00:30:17,730 --> 00:30:24,230 But you can just drag these things and pull them all the way to where you want them to go. 407 00:30:24,890 --> 00:30:30,090 So I'm going to pull them all super gnarly right now just so we can at least see it. 408 00:30:34,100 --> 00:30:40,040 But then once we get this kind of close to how we want it, then we can start getting it tighter and tighter and we'll go over that too. 409 00:30:40,040 --> 00:30:42,560 But I'll just try and do this as quickly as I can. 410 00:30:42,560 --> 00:30:47,760 Now one of these is not actually connected and we're about to reach it right now. 411 00:30:47,780 --> 00:30:51,360 So this one here is the one to look at because now I've opened it up. 412 00:30:51,360 --> 00:30:55,180 If I try and print this, JLCPCB is going to get real mad. 413 00:30:55,660 --> 00:31:03,840 So when we do this, we got to make sure that we connect these two properly and zoom in here to make sure they're actually touching. 414 00:31:06,870 --> 00:31:08,410 Okay, so let's say that's good enough. 415 00:31:08,410 --> 00:31:09,950 We're going to call it good enough for now. 416 00:31:10,130 --> 00:31:16,610 Once it is close, that's when I zoom in and start making this really close. 417 00:31:18,170 --> 00:31:22,650 So I've had people ask me like, hey how good do you need to make this? 418 00:31:22,930 --> 00:31:25,410 The answer is as good as you want it to be. 419 00:31:25,990 --> 00:31:36,730 The tighter you make it and the closer you make it to exactly how your design looks, the better those angles are going to look when you print that PCB. 420 00:31:37,810 --> 00:31:40,530 So right there you can see there's tons of little dots there. 421 00:31:41,010 --> 00:31:43,790 And it's really just how extreme do you want to take this. 422 00:31:43,790 --> 00:31:45,230 That's really all it is. 423 00:31:45,410 --> 00:31:47,390 So let's say that we had that thing all done. 424 00:31:47,470 --> 00:31:49,970 We can come over here to view and click 3D view. 425 00:31:50,270 --> 00:31:52,230 And now it shows us there is our PCB. 426 00:31:53,050 --> 00:31:54,890 Right now they call it blue apparently. 427 00:31:54,890 --> 00:31:57,730 We can make it green, we can make it purple, whatever we want. 428 00:31:57,730 --> 00:32:00,810 And we can select the surface finish here too if we want it to be gold or silver. 429 00:32:00,810 --> 00:32:03,430 But for now, this is our PCB. 430 00:32:04,550 --> 00:32:09,110 So let's come back here and now we can say, okay we want to add another layer. 431 00:32:09,110 --> 00:32:10,710 This time we're going to add the top layer. 432 00:32:11,670 --> 00:32:14,830 So we come over here and we go to copper. 433 00:32:16,190 --> 00:32:24,450 And these are all just files where I took a picture of Nibbler and I put it into GIMP and I colored in each layer with like say green or something like that. 434 00:32:24,630 --> 00:32:29,150 Selected everything that was green, chopped out everything else, and just saved just that one part. 435 00:32:29,650 --> 00:32:31,510 Okay, so that's how I made these things. 436 00:32:31,590 --> 00:32:35,150 Once we have this, I've already forgotten the name that I selected or the number. 437 00:32:35,690 --> 00:32:39,630 So this one says 62 and I'll show you how I got to that one as well. 438 00:32:39,630 --> 00:32:43,150 Is when I'm putting these in here, I essentially just guess at first. 439 00:32:43,150 --> 00:32:44,550 I say, okay, how about 60? 440 00:32:44,730 --> 00:32:47,610 And I put it over here and I say, well, that's a little bit too small. 441 00:32:48,090 --> 00:32:53,410 Now I can place it like that and I can readjust it over here and just say like, you know, okay, that's pretty close. 442 00:32:53,410 --> 00:32:57,390 Let's try 84 and just kind of adjust slowly that way. 443 00:32:57,470 --> 00:33:02,070 Or I can just delete that and re-enter it as a slightly different size. 444 00:33:02,970 --> 00:33:09,790 And this time I'll put in 62 and now it fits. 445 00:33:10,830 --> 00:33:11,230 Okay. 446 00:33:11,230 --> 00:33:14,790 So you really just kind of slowly adjust these things until they look the way you want. 447 00:33:16,050 --> 00:33:16,550 Okay. 448 00:33:16,550 --> 00:33:19,890 So now if I was to, I'm going to cancel out of this. 449 00:33:19,990 --> 00:33:28,510 Now if I'm to go over here and go to my 3d view, you can kind of vaguely see his little cape there because that is covered copper. 450 00:33:28,750 --> 00:33:30,450 We've added that copper layer. 451 00:33:30,450 --> 00:33:33,510 So now they're going to add copper in that spot on just the front. 452 00:33:33,510 --> 00:33:37,350 So on the back, there's nothing, but on the front we can see that copper. 453 00:33:38,330 --> 00:33:40,750 So let's say we want to expose that copper. 454 00:33:41,930 --> 00:33:45,190 So let's come back here and we do another copper layer. 455 00:33:46,610 --> 00:33:52,850 Actually, well, yeah, so you can do it like this and just make it match the same size. 456 00:33:54,030 --> 00:33:59,590 And now we're going to change this from the top layer to the top solder mask layer. 457 00:33:59,830 --> 00:34:01,950 Now it becomes subtractive. 458 00:34:02,390 --> 00:34:08,770 So if we put this on there and we go to our 3d view, now we've exposed that copper. 459 00:34:09,850 --> 00:34:13,710 So this is how you start designing out how you want that thing to look. 460 00:34:15,490 --> 00:34:19,590 Okay, so the next one we're going to do is we come in here and we go to our FR4 layer. 461 00:34:19,590 --> 00:34:22,430 This is the one where we're going to expose all of this as well. 462 00:34:22,430 --> 00:34:24,110 So it's still going to be that top silk. 463 00:34:24,130 --> 00:34:26,830 Let me cancel this so I can actually go to the right thing. 464 00:34:28,570 --> 00:34:32,050 So we come over here and we change this to the top solder mask layer. 465 00:34:33,210 --> 00:34:37,990 We come back, we go back to that FR4 and this one says 94. 466 00:34:37,990 --> 00:34:39,330 So I'm going to set that. 467 00:34:41,110 --> 00:34:44,810 Okay, we're going to go ahead and put this right here. 468 00:34:45,190 --> 00:34:50,450 And now when we view that again, there he goes. 469 00:34:50,490 --> 00:34:53,490 Now he's starting to look a little bit more like Nibbler. 470 00:34:54,410 --> 00:34:57,630 So the last one we're going to add is that top silk layer. 471 00:34:59,150 --> 00:35:00,590 Okay, so now once we add this... 472 00:35:02,650 --> 00:35:06,070 Oh, I didn't look at the number... 142. 473 00:35:07,690 --> 00:35:14,430 And again, each one of these, I just found the numbers ahead of time because I didn't want to sit there adjusting in front of y'all and have it be really, really boring. 474 00:35:15,550 --> 00:35:19,310 But once we slap that in there, now we've got our Nibbler. 475 00:35:19,310 --> 00:35:25,250 Now this document layer, we can come in here and we can turn that off. 476 00:35:25,730 --> 00:35:27,310 And this is what our badge looks like. 477 00:35:27,750 --> 00:35:31,710 Now when we go to that 3D view, let's make this black. 478 00:35:32,250 --> 00:35:36,110 And now we've got a vague shape of what Nibbler is going to look like. 479 00:35:37,030 --> 00:35:42,750 Okay, so now that we have the art and we're going to call that done, now we can start adding components. 480 00:35:43,550 --> 00:35:46,250 So we need that ESP-01S. 481 00:35:46,370 --> 00:35:49,530 So we're going to come over here and say place footprint. 482 00:35:50,970 --> 00:35:54,630 And we can do ESP-01S. 483 00:35:58,470 --> 00:36:04,130 Now, once you do this, there's a user contributed section. 484 00:36:04,190 --> 00:36:09,450 And these are things that other people have made and submitted their own footprints that they use. 485 00:36:09,610 --> 00:36:12,050 This isn't really that sketchy. 486 00:36:12,050 --> 00:36:17,010 I haven't had any of these that were bad yet, but they are all a little different. 487 00:36:17,010 --> 00:36:25,130 And some people do make some of these very, custom, where it's obvious that they were using this in some very unique way that is not how you want to use it. 488 00:36:25,150 --> 00:36:28,270 So just be careful to look at these and make sure it makes sense. 489 00:36:28,730 --> 00:36:36,070 The better one that I like to use is this one over here, JLCPCB Assembled, because these are the ones that are actually from JLC. 490 00:36:36,330 --> 00:36:43,370 And this is where if you change your mind about soldering it yourself, and you say, no, no, I want them to do it, you have to be using these footprints. 491 00:36:43,750 --> 00:36:48,050 So make sure that if you're going to have them populate this for you, that these are the ones you're using. 492 00:36:49,050 --> 00:36:51,610 Also, these tend to be a little higher quality, in my opinion. 493 00:36:52,310 --> 00:36:54,610 So we're going to choose this one here and we're going to place it. 494 00:36:54,610 --> 00:36:56,010 So it shows it right here. 495 00:36:56,650 --> 00:36:58,290 So we're going to pop it down here. 496 00:36:58,730 --> 00:37:00,410 We're going to kind of zoom in a little bit. 497 00:37:00,670 --> 00:37:04,730 So once we grab this, we can kind of rotate it however we want. 498 00:37:05,050 --> 00:37:06,490 You can move it wherever you want. 499 00:37:06,490 --> 00:37:08,890 So let's put this right here. 500 00:37:08,890 --> 00:37:13,230 So it kind of stays in these lines here and makes it look like it's part of our design. 501 00:37:13,250 --> 00:37:21,310 So now let's take this and let's put it on the back layer because we don't want this to be showing, which means I got to rearrange it again. 502 00:37:22,990 --> 00:37:27,730 Okay, so now if we go to our 3D view, we've got our nibbler just the way we saw them before. 503 00:37:27,730 --> 00:37:29,170 You can see those little holes there. 504 00:37:29,170 --> 00:37:33,350 But when we turn them around, oh, I guess this one doesn't do it. 505 00:37:33,350 --> 00:37:34,590 Some of them will actually show. 506 00:37:34,590 --> 00:37:35,370 There it is. 507 00:37:36,030 --> 00:37:38,530 So now we can see, okay, this is how it's going to look. 508 00:37:38,530 --> 00:37:42,510 There's our little part exactly where it's going to be if we put it there. 509 00:37:44,850 --> 00:37:54,250 Okay, so now we're going to add a 0.96 LED. 510 00:38:03,380 --> 00:38:06,500 Just trying to make sure this is the right part before I actually place it. 511 00:38:07,040 --> 00:38:09,560 Yep, that, no, we want the four-pin version. 512 00:38:10,580 --> 00:38:11,580 There we go. 513 00:38:12,760 --> 00:38:15,540 Okay, so now this screen, we want this to be on the front side. 514 00:38:15,740 --> 00:38:18,640 Now if I put it right here, you see it's on that red. 515 00:38:18,640 --> 00:38:19,860 That's the copper layer. 516 00:38:19,860 --> 00:38:22,000 So we're going to be bridging those pins together. 517 00:38:22,000 --> 00:38:25,300 So we've got to be careful where we put this to make sure we're not touching any copper. 518 00:38:26,340 --> 00:38:28,200 So I'm going to place that over here. 519 00:38:28,720 --> 00:38:31,040 We'll go ahead and rotate it a little bit. 520 00:38:32,120 --> 00:38:34,580 Nope, don't want to do that. 521 00:38:37,750 --> 00:38:38,830 There we go. 522 00:38:39,390 --> 00:38:41,810 Let's put it right about there. 523 00:38:43,050 --> 00:38:49,250 Okay, so I can't remember for sure what these pins are, but let's say that this pin right here is a ground pin. 524 00:38:49,670 --> 00:38:53,650 So we come over here to net, and we can put that we want that to be part of ground. 525 00:38:54,510 --> 00:38:57,910 Let's say that this one right here is our 3.3 volt. 526 00:38:59,230 --> 00:39:01,850 So on this one, let's say that this one is ground. 527 00:39:02,910 --> 00:39:05,010 That next one is 3.3 volt. 528 00:39:07,930 --> 00:39:16,250 Okay, now if we turn on RAT lines, you can see, hopefully you can see, there's those blue lines showing me, hey, you haven't connected these yet. 529 00:39:16,810 --> 00:39:19,230 So let's go ahead and go over how to connect those. 530 00:39:20,250 --> 00:39:27,490 So we're going to start on the back layer here, because we've got this red copper here, so we can't go through that with a front layer. 531 00:39:28,090 --> 00:39:34,950 So we'll go from the back, and we're going to come over here, and this one right here, it says track. 532 00:39:35,250 --> 00:39:38,410 So we want to build a track, and it kind of snaps on here. 533 00:39:38,490 --> 00:39:45,270 We're going to build a track that comes up, comes over, and then comes down. 534 00:39:45,830 --> 00:39:47,470 Now we need one over here. 535 00:39:48,050 --> 00:39:53,950 So we're going to come like this, pull that over, and connect it like that. 536 00:39:53,950 --> 00:40:02,670 And now our RAT lines are gone, because now we've connected all ground nets to all other grounds, and all of our 3 volt nets to all of the other ones. 537 00:40:02,950 --> 00:40:10,350 Now let's say that this right here was our data line, and this one here is our data line. 538 00:40:12,290 --> 00:40:23,070 And we still want to stay on the back there, but now when we go to connect this, we can't actually make it through here, because if we do that, we're now connecting those two. 539 00:40:23,070 --> 00:40:24,570 They're going to become one net. 540 00:40:24,630 --> 00:40:26,190 So how do we get around that? 541 00:40:27,090 --> 00:40:32,950 Well, realistically, I should have just started from the front on this, but if we weren't going to go that route, we can stop this right here. 542 00:40:33,130 --> 00:40:37,730 We're going to stop it shy of where we're trying to go, and we can come over here to this one here. 543 00:40:37,730 --> 00:40:46,070 This one says via, and what this is, is this says, I want to build a little tiny hole that goes from the front of the board to the back of the board. 544 00:40:46,510 --> 00:40:55,770 So now I can go on the red, and I can start at my via, and move it over here, and connect it like that. 545 00:40:56,330 --> 00:41:05,570 So these vias are how you can get around all of the other lines you've built, or the design that you've built, because now you're able to swap between that front layer and that back layer. 546 00:41:13,890 --> 00:41:18,110 All right, I'm trying to think if there was anything else that was major to be showing on this. 547 00:41:19,510 --> 00:41:23,470 But so, anyway, I guess, actually, let's look at this real quick. 548 00:41:23,470 --> 00:41:27,210 So there is now our badge, as far as that goes. 549 00:41:28,510 --> 00:41:30,930 So let's say, okay, let's say this was done. 550 00:41:30,930 --> 00:41:32,170 We put on the rest of the components. 551 00:41:32,170 --> 00:41:33,090 We were happy with this. 552 00:41:33,090 --> 00:41:34,150 We like the way it looks. 553 00:41:34,150 --> 00:41:36,130 We like the way the functionality is looking. 554 00:41:36,330 --> 00:41:38,210 We want to print it. 555 00:41:39,250 --> 00:41:43,910 So we'd come over here, and we would go to, well, first we have to save it. 556 00:41:45,350 --> 00:41:48,870 Then we come over here and say generate Gerber file. 557 00:41:50,050 --> 00:41:53,270 When you do this, it's going to ask you if you want to check the DRC. 558 00:41:53,270 --> 00:41:55,050 This is your design rule checking. 559 00:41:55,150 --> 00:42:07,490 These are the rules where they tell you how close you can put things to each other, and how large you can drill or how small you can drill, but also things like, are you crossing nets? 560 00:42:07,490 --> 00:42:09,530 It's going to check for all of that kind of stuff. 561 00:42:09,970 --> 00:42:12,050 So you can say, yes, you want to do it. 562 00:42:12,190 --> 00:42:13,710 And in our case, we passed. 563 00:42:13,890 --> 00:42:17,190 All of our nets are not bridging and nothing like that. 564 00:42:17,190 --> 00:42:22,790 But when you get to that step, there is sometimes when that design rule checking is going to show you something and say, hey, this is wrong. 565 00:42:22,790 --> 00:42:24,010 You can't do this. 566 00:42:24,410 --> 00:42:27,470 But you know that it's what you're trying to do, and you don't care. 567 00:42:27,490 --> 00:42:31,350 You can just click that no and just say, YOLO, I want to order it anyway. 568 00:42:31,550 --> 00:42:32,770 And they'll let you. 569 00:42:33,450 --> 00:42:37,010 So from here, you can select how many you want and what color you want. 570 00:42:37,010 --> 00:42:41,710 But really, that's going to be more, it's going to show you that once you get into JLC. 571 00:42:41,750 --> 00:42:44,170 Now, again, you can order these from anywhere you want. 572 00:42:44,310 --> 00:42:46,330 I like using JLCPCB. 573 00:42:46,330 --> 00:42:47,950 I've always had good luck with them. 574 00:42:47,950 --> 00:42:48,890 They do great work. 575 00:42:48,890 --> 00:42:49,910 They have good prices. 576 00:42:49,910 --> 00:42:52,790 And they can do the fab for you if you want them to. 577 00:42:52,790 --> 00:42:57,390 But you can send them off to anywhere by clicking this generate Gerber button. 578 00:42:57,390 --> 00:43:01,370 This one right here is just going to download the files for you and ask you where you want to put them. 579 00:43:01,370 --> 00:43:03,230 And now you can send those out to someone else. 580 00:43:03,230 --> 00:43:04,090 You can share them with friends. 581 00:43:04,090 --> 00:43:08,470 You can send them to any fab shop, and they'll be able to build those boards for you. 582 00:43:09,350 --> 00:43:12,790 Okay, so let's say we had clicked to have JLC do that for us. 583 00:43:13,170 --> 00:43:14,550 Let's come back here. 584 00:43:15,670 --> 00:43:17,410 We'll go ahead and click go. 585 00:43:17,990 --> 00:43:21,090 So this is what it's going to show you in JLCPCB. 586 00:43:21,090 --> 00:43:24,530 It also shows you a little picture of your board up there at the top. 587 00:43:24,530 --> 00:43:26,150 But this is what you're going to see. 588 00:43:26,670 --> 00:43:28,450 There's a lot to go over on here. 589 00:43:28,590 --> 00:43:34,410 But the big ones to look at is checking the dimensions to make sure it looks like what you built. 590 00:43:34,410 --> 00:43:39,410 Sometimes those can be wildly off, especially if you didn't connect those two board outlines together. 591 00:43:40,330 --> 00:43:43,090 PCB quantity, obviously, you're going to want to look at that. 592 00:43:44,930 --> 00:43:50,670 The next big ones to look at is down a little bit further there, where it says PCB thickness and PCB color. 593 00:43:51,050 --> 00:43:54,330 So the thickness is literally just how thick the board is. 594 00:43:54,330 --> 00:43:57,070 If you leave that at 1.6, that's your standard badge. 595 00:43:57,070 --> 00:43:58,790 That's pretty much what everybody uses. 596 00:43:58,850 --> 00:44:06,910 You're really only going to want to adjust that if you're trying to do something special with the PCB, where it needs to be significantly thinner or significantly thicker for whatever reason. 597 00:44:06,910 --> 00:44:10,750 But it is going to adjust the cost pretty heavily if you change that. 598 00:44:11,590 --> 00:44:16,370 PCB color, obviously, that's the color of your actual badge itself that you're creating. 599 00:44:16,370 --> 00:44:24,810 And in Silkscreen on JLC, they don't usually have any other option other than white, unless you're printing a white PCB, in which case your only option is black. 600 00:44:24,810 --> 00:44:28,270 More than likely, you won't need to adjust that because you can't. 601 00:44:28,770 --> 00:44:30,970 The next one under that is surface finish. 602 00:44:30,970 --> 00:44:34,390 This is what's going to determine the color of that copper layer. 603 00:44:34,390 --> 00:44:38,330 If you want to do a black and gold badge, then you need to do that ENIG. 604 00:44:38,330 --> 00:44:40,050 That is immersion gold. 605 00:44:40,050 --> 00:44:47,650 I can't remember what ENIG actually stands for, but if you want the silver, that's where you're going to go with either the hassle or the lead-free hassle. 606 00:44:47,650 --> 00:44:51,190 Either one of those two is going to be that silver color that you see on PCBs. 607 00:44:51,990 --> 00:44:56,690 Now, the last one that you need to make sure you look at is that remove order number. 608 00:44:56,950 --> 00:45:02,870 This one, I don't know why they do not click yes by default, but they do not. 609 00:45:02,870 --> 00:45:04,170 The default is no. 610 00:45:04,170 --> 00:45:07,390 They're going to print your PCB number directly on it. 611 00:45:07,410 --> 00:45:11,010 And the reason for this is that they want you to be able to reorder that exact batch. 612 00:45:11,010 --> 00:45:19,010 So later on when they say, you know, would you like to reprint, you know, your previous batch, you can look at the badge and you can say, okay, this is the batch number from the one that I made. 613 00:45:19,010 --> 00:45:20,610 Yes, I want that exact one. 614 00:45:21,390 --> 00:45:25,870 Realistically, you don't want that, especially because they're going to put it in the worst possible spot. 615 00:45:25,970 --> 00:45:28,990 They're going to put it dead center front and center of your badge. 616 00:45:29,830 --> 00:45:31,350 Just check that box. 617 00:45:31,350 --> 00:45:35,790 It does add, like, I think it's $1.50 to remove the order number from your badge. 618 00:45:36,070 --> 00:45:37,430 It's worth it. 619 00:45:37,610 --> 00:45:38,550 Just do that one. 620 00:45:41,900 --> 00:45:46,060 So that's all I've got for you, but go out there and make some badges. 621 00:45:46,340 --> 00:45:47,860 Seriously, it's not that hard. 622 00:45:47,860 --> 00:45:48,900 It's a lot of fun. 623 00:45:48,900 --> 00:45:52,160 We wouldn't keep doing this year after year after year if it wasn't. 624 00:45:52,540 --> 00:45:54,780 So anyway, feel free to reach out to me. 625 00:45:54,780 --> 00:45:59,260 If you have any questions whatsoever after this, feel free to come chat with me in the vendor booth. 626 00:45:59,260 --> 00:46:00,660 I love meeting new people. 627 00:46:00,840 --> 00:46:02,440 Do not hesitate to ask. 628 00:46:02,880 --> 00:46:04,620 Hope you guys all have a good DEF CON.