WEBVTT

00:00.000 --> 00:00.820
All right.

00:00.820 --> 00:03.420
So today we're going to talk about how to make badges.

00:04.200 --> 00:05.880
So you're probably wondering who am I?

00:06.140 --> 00:07.520
My name is Coldbrew.

00:07.720 --> 00:10.220
I am a solutions architect at my day job.

00:10.820 --> 00:14.420
The founder and lead hacker at ROT13 Labs.

00:14.880 --> 00:17.900
And I am the organizer of HyRollerCon, or one of the organizers.

00:18.260 --> 00:22.160
If you see those little ducks everywhere for HyRollerCon, those were us.

00:22.660 --> 00:24.440
I'm also a hardware hacker noob.

00:24.440 --> 00:25.320
And why do I say that?

00:25.320 --> 00:28.620
I say that because I am not an electrical engineer.

00:28.680 --> 00:31.060
I am not someone who's been doing this for ten years.

00:31.060 --> 00:34.080
I'm just a dude who figured out how to do it by tinkering.

00:34.360 --> 00:36.140
And that means that all of you can do it, too.

00:36.140 --> 00:39.620
This is not something that requires you to be some kind of crazy wizard.

00:39.800 --> 00:43.240
It's stuff that anybody can do if you just take the time and tinker with it.

00:43.240 --> 00:45.920
And that's kind of what a lot of this talk is about.

00:46.880 --> 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.

00:53.240 --> 00:56.460
So if you're trying to hit me up on Discord, I may not respond for a week or two.

01:02.960 --> 01:03.440
All right.

01:03.440 --> 01:05.000
So what are we going to talk about during this talk?

01:05.520 --> 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.

01:11.580 --> 01:13.800
First we're going to talk about how to come up with an idea.

01:14.080 --> 01:16.300
If you're going to make a badge, you've got to have an idea for it.

01:16.320 --> 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.

01:23.120 --> 01:27.160
Planning out your firmware to make sure that the hardware can actually do the things you want it to do.

01:27.740 --> 01:31.520
Coming up with packaging and accessories if you want to include things like that with it.

01:31.980 --> 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.

01:38.500 --> 01:40.080
And then making the badge.

01:40.240 --> 01:42.440
So we're going to try and get through as much of this as we can.

01:43.300 --> 01:46.020
So a quick disclaimer before we dive into this too much.

01:46.280 --> 01:49.000
This is not like the right way to make a badge.

01:49.000 --> 01:50.660
There is no right way.

01:50.820 --> 01:53.220
Everyone has a different way they like to make badges.

01:53.260 --> 01:56.220
Every time I talk to a badge maker, I learn some new way to do it.

01:56.380 --> 01:58.200
This is just how I make them.

01:58.200 --> 02:02.240
I have a lot of people after DEF CON usually coming up and asking me about how I do it.

02:02.460 --> 02:03.900
This is how I do it.

02:05.820 --> 02:06.280
Okay.

02:06.280 --> 02:08.240
So the first thing is coming up with the idea.

02:09.420 --> 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.

02:17.340 --> 02:19.680
And this just stuck with me.

02:19.680 --> 02:21.380
Because this is so true.

02:21.400 --> 02:23.040
This is the hardest part.

02:23.180 --> 02:26.600
Once you know what you're going to build, rest of the steps happen easily.

02:26.600 --> 02:28.200
You can read documentation.

02:28.200 --> 02:29.160
You can figure things out.

02:29.160 --> 02:30.000
You can tinker.

02:30.340 --> 02:32.980
However you're going to do it, you can make the badge.

02:32.980 --> 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.

02:40.600 --> 02:43.540
So some things to think about when you're coming up with your design.

02:43.740 --> 02:44.920
How do you want it to look?

02:44.920 --> 02:46.540
What shape do you want it to be in?

02:46.540 --> 02:47.600
Do you want it to be abstract?

02:47.600 --> 02:49.020
Do you want it to look like a dog?

02:49.080 --> 02:50.600
Whatever you want it to be.

02:51.000 --> 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.

02:56.200 --> 02:57.180
Do you want it to be huge?

02:57.180 --> 02:58.400
Do you want it to be a little tiny thing?

02:58.400 --> 02:59.520
Maybe an SAO?

03:00.100 --> 03:01.460
Where's the lanyard going to go?

03:01.460 --> 03:03.280
If it's going to have a lanyard .

03:03.320 --> 03:06.200
Do you want to do the dual hook ones or do you want to do the single hooks?

03:06.420 --> 03:09.120
All of these things are going to affect your design on this.

03:10.080 --> 03:12.320
The next thing is what do you want it to actually do?

03:12.480 --> 03:13.780
Or do you want it to do anything at all?

03:13.780 --> 03:15.260
Sometimes people just like the blinky.

03:15.260 --> 03:16.360
And that's fine , too.

03:16.660 --> 03:19.200
Sometimes they want it to have really, really intense features.

03:20.040 --> 03:24.360
Whatever it is, you need to know what it's going to do before you start really diving into this.

03:25.080 --> 03:26.820
How are you going to power all this?

03:27.040 --> 03:28.220
You might need a big lipo.

03:28.220 --> 03:30.660
You might be able to get away with the little 2032s.

03:31.000 --> 03:32.680
And the last thing is what's your budget?

03:32.700 --> 03:36.600
You got to make sure that whatever you're trying to build is realistic for that budget.

03:36.880 --> 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.

03:40.740 --> 03:42.300
You might be making hundreds of them.

03:42.440 --> 03:44.300
So these are all things to consider.

03:45.100 --> 03:48.280
And the last thing about that is be prepared to dump some money into this.

03:48.660 --> 03:49.980
It's not cheap.

03:49.980 --> 03:54.220
I'm not trying to scare you away from it or anything, because you can do it on a budget.

03:54.220 --> 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.

04:01.800 --> 04:03.540
So you're probably making five at a time.

04:03.540 --> 04:06.960
And when it comes to your house and it doesn't work, all that money is down the drain.

04:06.960 --> 04:11.800
You got to figure out how it should work and then order another batch and hope that one works.

04:11.800 --> 04:15.600
So make sure that you're ready to actually put some money into this.

04:16.840 --> 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.

04:21.520 --> 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.

04:27.200 --> 04:32.560
But it's something where you got to think about the coloring, the size, the shape, all of that.

04:32.700 --> 04:35.140
And these are some good examples of things that I've made.

04:35.340 --> 04:40.000
We can kind of get into them as we keep going, but just a few ideas.

04:41.120 --> 04:44.980
So now that you've got your idea, you've decided exactly what you're going to make.

04:44.980 --> 04:46.800
Now you can start to plan out that hardware.

04:47.420 --> 04:48.680
Is it just going to blink?

04:49.320 --> 04:54.880
If so, all you need is some LEDs and the CH2032 is probably enough for you.

04:55.460 --> 04:59.140
Those are the little coin cells that sometimes the DEF CON badges run off of.

05:00.120 --> 05:01.600
You got to think about your LEDs.

05:01.660 --> 05:05.160
They have those self blinking LEDs, they're dead simple to use.

05:05.160 --> 05:09.160
I love using those in badges because it gives you some functionality.

05:09.160 --> 05:14.040
It gives you something that's blinking or flashing or whatever without having to use a microcontroller.

05:15.020 --> 05:17.220
Those usually also have a built-in resistor.

05:17.220 --> 05:19.260
So that's another part that you don't have to use.

05:19.260 --> 05:20.660
It makes your bomb tiny.

05:20.660 --> 05:23.100
It makes the amount of parts you have to acquire tiny.

05:23.140 --> 05:27.460
It just makes your life a lot easier, especially if you're trying to build something simple.

05:29.000 --> 05:30.220
SMD versus through-hole.

05:30.220 --> 05:32.020
SMD is surface mount devices.

05:32.020 --> 05:35.120
Those are the ones that mount on the surface.

05:35.180 --> 05:37.700
Through-hole is the ones that are actually going through the board.

05:38.160 --> 05:41.160
These can kind of change your design pretty wildly.

05:41.160 --> 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.

05:46.340 --> 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.

05:52.100 --> 05:54.920
So we end up only soldering 1,000 of them ourselves.

05:55.040 --> 05:57.220
But 1,000 ducks is a lot to solder.

05:57.220 --> 05:58.880
So we're kind of regretting that decision.

05:58.880 --> 06:01.020
But it's something to think about.

06:01.780 --> 06:05.260
If you're doing the SMD stuff, you can also do things like reverse mounting.

06:05.440 --> 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.

06:16.180 --> 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.

06:19.820 --> 06:21.300
But you get the idea.

06:21.460 --> 06:25.120
You can do a lot with just LEDs and still make a really cool badge.

06:26.020 --> 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.

06:36.400 --> 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.

06:47.020 --> 06:52.880
So it gives you a very easy way to add a little extra functionality for people to expand upon your badge.

06:55.300 --> 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.

07:06.240 --> 07:08.380
There's tons and tons of MCUs out there.

07:08.380 --> 07:10.040
I'm not going to talk about all of them.

07:10.180 --> 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.

07:19.220 --> 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.

07:24.240 --> 07:27.260
Those are the ones that I have found are very easy to work with.

07:27.360 --> 07:31.160
They're very simple, they're beginner friendly, but they give you a lot of power.

07:31.940 --> 07:34.840
The next thing to think about is things like Wi-Fi and Bluetooth.

07:35.400 --> 07:37.580
A lot of badges these days have those things.

07:37.580 --> 07:43.260
Something like that, you're going to have to go for something like the ESP8266 or the ESP32 series.

07:43.300 --> 07:48.200
The 8266 is going to give you Wi-Fi, the 32 will usually give you Wi-Fi and Bluetooth.

07:48.500 --> 07:54.600
Make sure you're checking the documentation though, because not all of them are going to give you those exact things.

07:54.760 --> 07:56.840
You've got to make sure you check the documentation.

07:57.120 --> 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.

08:03.400 --> 08:06.200
Turns out it doesn't work because I ordered the wrong chips.

08:06.540 --> 08:10.580
So learn from my mistakes and make sure you're reading the docs on these things.

08:11.280 --> 08:14.880
The last thing to think about is how many GPIO do you need?

08:15.440 --> 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.

08:25.020 --> 08:29.700
It gives you a ton of GPIO for like 10 cents a chip or something like that.

08:29.700 --> 08:32.160
They're super cheap, but they're pretty new.

08:32.160 --> 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?

08:38.680 --> 08:40.040
Is there a lot of documentation?

08:40.340 --> 08:42.240
Is there a lot of community support?

08:42.720 --> 08:45.080
Those are the big things you want to be looking at.

08:47.180 --> 08:49.260
Okay, so what is a GPIO?

08:49.540 --> 08:51.360
I know someone's going to be asking this.

08:51.360 --> 08:53.420
That is a general purpose input output.

08:53.420 --> 08:55.520
Those are the pins on the MCU.

08:55.700 --> 08:57.660
Those are the things that actually do something.

08:57.660 --> 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.

09:06.280 --> 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.

09:18.460 --> 09:21.940
Here's some quick examples of pins that have a lot of GPIO.

09:21.940 --> 09:23.100
Some of those are through holes.

09:23.100 --> 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.

09:29.000 --> 09:37.280
For these keyboards here, you have to use one GPIO for each row of keys and for each column of keys.

09:37.380 --> 09:39.840
And that way you can pinpoint which key was clicked.

09:39.920 --> 09:44.020
So obviously for the larger keyboards, you're going to need a lot more GPIO.

09:44.620 --> 09:48.240
So it's just something to think about if you're building something that has a lot of functionality.

09:50.500 --> 09:52.380
Okay, so you've got your idea.

09:52.880 --> 09:54.620
You can plan out your hardware now.

09:54.840 --> 09:56.480
Now you can look at the power.

09:56.680 --> 09:59.260
Okay, so how long do you want it to run for?

09:59.260 --> 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.

10:08.260 --> 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.

10:14.520 --> 10:19.200
If it's not going to be a rechargeable battery, I want it to last the whole con.

10:19.340 --> 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.

10:25.220 --> 10:26.180
Okay.

10:26.700 --> 10:29.680
I mean, realistically, you could make things that power for months.

10:29.680 --> 10:32.580
I really doubt you need that, but it's an option.

10:33.800 --> 10:39.620
When it comes to using power, the heavy hitters are usually things like NeoPixels and Wi-Fi.

10:39.940 --> 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.

10:51.940 --> 10:54.940
The last thing to think about is, do you need a charge circuit?

10:55.260 --> 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.

10:59.000 --> 11:01.460
Some MCUs will have that built in.

11:01.540 --> 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?

11:09.240 --> 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.

11:17.240 --> 11:20.400
So this is a lesson for y'all to learn from my mistake here.

11:20.640 --> 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.

11:29.260 --> 11:34.540
I was using Wi-Fi and NeoPixels on this badge, and it did not last a day.

11:34.980 --> 11:39.000
And once it died, where are you supposed to get one of these?

11:39.300 --> 11:40.940
So this was for Wild West Hack'n Fest.

11:40.940 --> 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.

11:46.540 --> 11:51.020
So when these badges died, you were just kind of out of luck.

11:51.120 --> 11:57.320
So I included an extra battery with each one, but you know, it was an area where I regret that.

11:57.320 --> 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.

12:09.660 --> 12:13.280
Okay, so we're ready to build our thing, whatever it may be.

12:14.880 --> 12:17.440
So I usually skip this part.

12:17.640 --> 12:19.660
You should not skip this part.

12:19.660 --> 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.

12:26.160 --> 12:28.560
I do regret it later most of the time.

12:28.920 --> 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?

12:39.080 --> 12:40.960
Or hey, is this going to work?

12:41.620 --> 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?

12:46.260 --> 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,

13:00.820 --> 13:02.520
you know, and it's going to work.

13:06.130 --> 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.

13:14.610 --> 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.

13:22.030 --> 13:27.150
So once you have built out your circuit, now is when you're going to want to breadboard that.

13:27.150 --> 13:30.410
So you're going to build it with actual parts, but without a PCB.

13:30.410 --> 13:35.030
You're just jamming wires into a breadboard and connecting everything up to make sure that it works.

13:35.790 --> 13:40.870
You can kind of do little tricks like just touching wires together to simulate clicking a button.

13:41.090 --> 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.

13:57.110 --> 13:59.770
Also, I usually skip this step, too.

14:00.330 --> 14:03.270
So don't listen to me.

14:03.810 --> 14:05.690
Just do what you're supposed to do.

14:07.090 --> 14:09.490
So that leads into planning out the firmware.

14:09.970 --> 14:13.350
Usually Arduino IDE is a great place to start for this.

14:13.350 --> 14:18.410
They have ways to be able to test out all kinds of functionality on all kinds of different chipsets.

14:18.750 --> 14:22.710
They just make it a lot easier to develop on, especially if you're just getting started.

14:23.710 --> 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.

14:31.630 --> 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.

14:40.570 --> 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.

14:52.130 --> 14:56.270
It's a simple way to start, especially if you're not great with writing firmware like me.

14:56.370 --> 14:58.110
It's a good way to get it going.

14:58.970 --> 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.

15:09.710 --> 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.

15:19.250 --> 15:22.070
So we had talked before about how SAO is a standard.

15:22.070 --> 15:24.170
This is the actual pinout for it.

15:24.170 --> 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.

15:29.630 --> 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.

15:35.490 --> 15:39.990
But again, you can just do that 3 volt in the ground and you're probably going to be just fine.

15:40.090 --> 15:43.590
Also, some badge makers do not necessarily do 3.3 volt.

15:43.590 --> 15:46.010
I've seen badges that are sending 6 volt here.

15:46.730 --> 15:52.150
Maybe don't do that because that might blow up someone's SAO, but people do it.

15:54.610 --> 15:56.570
Okay, so packaging and accessories.

15:56.570 --> 15:59.710
This is an area where I always like to do a lot more.

15:59.710 --> 16:04.050
I know some badge makers, they just like to hand you a bag and that's fine too.

16:04.190 --> 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.

16:11.210 --> 16:15.830
It's this whole experience that you've built for someone rather than just handing them the badge.

16:15.950 --> 16:19.590
I always like doing that, so I always encourage others to do the same thing.

16:20.030 --> 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?

16:26.190 --> 16:31.130
Like if I handed you the badge, what would you need to just turn it on and use it right now?

16:31.630 --> 16:34.690
And then there's things like what would you want to get with this badge?

16:35.150 --> 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.

16:46.750 --> 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.

16:54.110 --> 16:58.990
Any of those things are things that it would be great to have that but you don't really need it.

17:00.810 --> 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?

17:08.950 --> 17:14.310
So I always tell people there's basically three tiers that you can go through to actually get this.

17:14.310 --> 17:19.890
There's your fast shipping kind of highest cost tier and obviously that's Amazon.

17:20.110 --> 17:26.110
These are the kind of parts where you don't want to be buying your production parts off of Amazon.

17:26.310 --> 17:27.670
You're going to pay an arm and a leg.

17:27.670 --> 17:31.170
You're going to get them tomorrow but you're going to pay an arm and a leg for it.

17:31.310 --> 17:35.850
But these are perfect if you get in a jam or when you're prototyping.

17:35.990 --> 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.

17:43.010 --> 17:47.630
Use Amazon, get them on there real quick because you're only buying one or two of them.

17:48.310 --> 17:51.870
The mid-tier stuff is usually takes around a week of shipping.

17:51.910 --> 17:55.390
You can get them faster but it's usually going to be sometime around a week.

17:55.390 --> 17:57.990
And these are things like Digikey, Mouser, Aero.

17:58.450 --> 18:02.350
I know there's plenty more but those are the ones that I've used and had good luck with.

18:02.770 --> 18:08.570
These ones are going to be very reliable parts distributors but they do take a little bit more time.

18:08.570 --> 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.

18:14.230 --> 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.

18:22.730 --> 18:27.890
And the final one is the low cost long ship times and this is things like AliExpress.

18:28.010 --> 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.

18:38.370 --> 18:43.790
The one problem with this tier is that they're not necessarily authentic.

18:43.910 --> 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.

18:51.350 --> 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.

19:00.210 --> 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.

19:11.890 --> 19:15.550
You can kind of choose to slice this however you want, that's just how I like to do it.

19:17.150 --> 19:20.090
Okay, so what is all this going to actually cost you?

19:20.590 --> 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,

19:35.250 --> 19:39.230
and put down how much the complete order of that thing is going to cost.

19:39.690 --> 19:43.870
Then how many units I'm going to make and the total cost to make it.

19:43.870 --> 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.

19:56.190 --> 19:58.870
Oh, whoops, sorry, that's time spent on dev.

19:58.870 --> 20:04.310
Total cost to make would be all of those items totaled up, which gives me that cost per unit.

20:04.350 --> 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.

20:15.090 --> 20:17.210
And also what is your break-even point?

20:17.210 --> 20:22.970
How many of these badges do you have to sell to just offset the cost that you spent to make it?

20:25.710 --> 20:26.730
Let's see here.

20:26.730 --> 20:32.530
Yeah, so another thing is kind of your prototyping and discovery costs, but also your equipment costs.

20:32.530 --> 20:34.310
Some people like to include that.

20:34.310 --> 20:39.550
I usually consider equipment that I bought to build a badge something that I would probably buy anyway for my hobbies.

20:39.550 --> 20:43.790
So I don't usually include them, but it is something to think about.

20:45.810 --> 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.

20:52.630 --> 20:55.170
So I had mentioned we'd come back to designing the circuit.

20:55.170 --> 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.

21:00.750 --> 21:03.430
So with this one, we're going to use the ESP-01S.

21:03.430 --> 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.

21:11.970 --> 21:13.110
It's easy to work with.

21:13.110 --> 21:16.310
It's very simple to solder, especially for first-time solderers.

21:17.070 --> 21:18.390
So we're going to go with that one.

21:18.390 --> 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.

21:22.930 --> 21:25.890
We're going to go with the AAA batteries because they're simple.

21:26.010 --> 21:29.070
AAA batteries are going to give us 4.5 volts.

21:29.070 --> 21:31.950
All of this stuff we're using needs 3.3 volts.

21:31.950 --> 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.

21:40.110 --> 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.

21:49.770 --> 21:50.130
Okay.

21:50.130 --> 21:55.150
So you're probably thinking, how do I know which of those GPIO I need to be using to do this?

21:55.590 --> 21:56.670
And the answer is simple.

21:56.670 --> 21:58.750
It's the documentation.

21:59.210 --> 21:59.490
Okay.

21:59.490 --> 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.

22:08.770 --> 22:13.630
And especially if you're just getting started, they can be really, really overwhelming to look at.

22:13.830 --> 22:22.090
So even if you skip 99% of it, the things that you really need to look at is the pin definitions.

22:22.610 --> 22:28.430
This is going to show you what each pin does and what it or I should say what it can do.

22:28.430 --> 22:31.130
Because not every pin can do everything.

22:31.130 --> 22:36.610
So this shows you all the pins that your board offers or your MCU offers.

22:36.610 --> 22:38.410
And then the list of things that it can do.

22:38.410 --> 22:43.690
But it also shows you what they call the active and the boot time for those pins.

22:44.110 --> 22:46.350
These are important because it's going to say high or low.

22:46.350 --> 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.

22:54.830 --> 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.

23:04.490 --> 23:08.690
So make sure that you're paying attention to these things and understanding how they're going to work.

23:09.170 --> 23:14.090
The next thing you need to pay attention to in this is the typical application section.

23:14.290 --> 23:19.030
Usually it's going to show a more circuit diagram, kind of like that bottom left there.

23:19.030 --> 23:22.410
But it could also show just a picture of the unit itself.

23:22.730 --> 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.

23:29.450 --> 23:33.630
You can add your own stuff after this to make it do whatever it is you need it to do.

23:33.630 --> 23:38.050
But these are the bare minimum of what you need to make this thing turn on.

23:38.410 --> 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.

23:48.630 --> 23:53.650
But on the ESP-01S, which is the one that we're going to use, they've eliminated those.

23:53.650 --> 23:57.630
They built those internally on the MCU, so you no longer need those.

23:57.630 --> 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.

24:04.930 --> 24:07.150
That is all we need to make this thing work.

24:07.710 --> 24:10.870
Now they also have a recommended circuit section sometimes.

24:10.910 --> 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.

24:18.250 --> 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.

24:24.990 --> 24:28.970
So we essentially lifted out that one as well that we're going to use for this badge.

24:30.650 --> 24:35.550
Okay, so when you design a PCB, there's going to be tons of layers that it shows on here.

24:35.550 --> 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.

24:43.250 --> 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.

24:50.830 --> 24:55.570
So there's the top and bottom layer, and this is the actual copper layer on your board.

24:55.570 --> 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.

25:06.670 --> 25:09.050
Then there's the top silk and bottom silk layer.

25:09.050 --> 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.

25:16.010 --> 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.

25:24.250 --> 25:27.750
Then there's the top paste mask and bottom paste mask layers.

25:27.750 --> 25:29.810
These are what's known as the stencil layer.

25:29.810 --> 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.

25:39.850 --> 25:43.970
So this is when you want to expose the copper or expose the PCB itself.

25:43.970 --> 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.

25:52.430 --> 25:56.930
Top solder mask and bottom solder mask is very similar to this.

25:56.930 --> 26:01.370
This is the actual solder mask, so on the green and white PCB, this is the green part.

26:01.850 --> 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.

26:11.830 --> 26:13.430
So this one is also subtractive.

26:13.430 --> 26:15.590
It's going to cut out whatever you draw.

26:16.390 --> 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.

26:22.450 --> 26:27.350
So this is the board outline layer, where that's actually the shape of your badge.

26:27.670 --> 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.

26:33.710 --> 26:35.170
Then there's the RAT lines.

26:35.170 --> 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,

26:48.850 --> 26:51.790
hey, these are supposed to be connected, but you haven't connected them yet.

26:52.010 --> 26:53.250
So that's just to help you.

26:53.250 --> 26:55.210
It's not going to be printed on the board or anything.

26:55.210 --> 26:56.750
It's just to help you design it.

26:57.410 --> 26:59.050
And that's same with the document layer.

26:59.050 --> 27:05.370
The document layer is there so that you can make labels for things that will not be printed onto the board.

27:05.830 --> 27:08.490
Now, a special note about that one.

27:08.670 --> 27:10.950
It's not supposed to be printed on the board.

27:10.950 --> 27:15.550
That doesn't mean that your FAB will not screw up and accidentally print it on the board.

27:15.690 --> 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.

27:27.010 --> 27:28.570
Okay, so here's the demo time.

27:28.570 --> 27:29.690
We're going to see if this works.

27:29.690 --> 27:31.450
Everyone pray to the demo gods.

27:31.550 --> 27:34.710
We're going to try and crank through as much of this badge as possible.

27:34.870 --> 27:37.690
And yeah, we'll see how it goes.

27:42.610 --> 27:49.330
Okay, so I said earlier that the program that I like to use to build these is called EasyEDA.

27:49.350 --> 27:52.850
I usually use the online one, but just so I wouldn't have to worry about internet.

27:54.110 --> 27:56.890
I've got the local one here.

27:57.070 --> 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.

28:05.390 --> 28:08.950
We're going to call this Nibbler because we're going to build Nibbler from Futurama.

28:09.950 --> 28:13.030
So the first thing it's going to give you is this to draw your circuit diagram.

28:13.030 --> 28:15.870
We've already done that, so we're just going to go ahead and skip past that.

28:16.030 --> 28:18.670
We're going to come over here and say that we want a new PCB.

28:19.510 --> 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?

28:24.190 --> 28:26.210
So it's going to tell us that we're doing millimeters.

28:26.210 --> 28:27.530
We're going to do two layers.

28:27.530 --> 28:29.770
This means there's copper on the top and on the bottom.

28:29.890 --> 28:32.710
You can actually do tons of layers if you want.

28:32.710 --> 28:34.950
And it's going to put those copper layers in the middle.

28:35.190 --> 28:38.590
This gets really, really expensive really quick.

28:38.930 --> 28:42.210
Most people that I know of just do the top and bottom layers.

28:42.770 --> 28:46.410
I know there is some badge makers out there that go crazy and do like eight layers and things.

28:46.790 --> 28:48.170
I stick with two.

28:48.430 --> 28:49.350
That's just me.

28:49.810 --> 28:54.470
So board outline, this is where you can pick if you want it to be a circle, round, rectangle, whatever.

28:54.850 --> 28:57.290
I just start out by leaving this as rectangular.

28:57.410 --> 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.

29:02.770 --> 29:04.970
And because of that, I leave these the same way too.

29:04.970 --> 29:06.950
I'm going to mess around with that board on my own.

29:06.950 --> 29:08.290
I don't care what they make.

29:09.090 --> 29:11.150
Oops, I think I just clicked cancel on that.

29:12.890 --> 29:14.950
So we'll just leave these as defaults for now.

29:14.950 --> 29:19.150
So now we have our pink board outline here.

29:20.390 --> 29:24.410
Okay, so we're going to go to the document layer real quick.

29:26.430 --> 29:29.230
And we're going to click that we want to add an image.

29:30.130 --> 29:34.770
Now on the desktop, I've got this Nibbler folder here where I've kind of picked out all of these.

29:34.830 --> 29:38.890
So we've got our document layer file that I've kind of preset to this.

29:40.450 --> 29:42.390
And there it shows us our little picture of Nibbler.

29:42.390 --> 29:44.350
So this is what our badge is going to look like.

29:44.650 --> 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.

29:50.510 --> 29:52.830
So now we have our Nibbler and we put it on here.

29:53.170 --> 29:57.130
So we want this board to match that Nibbler.

29:57.670 --> 30:01.570
Now again, there are lots of ways to do this in lots of different editors.

30:01.730 --> 30:03.510
This is just how I do it.

30:03.650 --> 30:08.050
I have been told this is the absolute caveman method, which it does kind of seem that way.

30:08.050 --> 30:09.850
But this is what I do.

30:09.950 --> 30:12.690
I just start dragging and dropping.

30:13.110 --> 30:17.730
I usually start out by making it pretty extreme like this where it doesn't go very close.

30:17.730 --> 30:24.230
But you can just drag these things and pull them all the way to where you want them to go.

30:24.890 --> 30:30.090
So I'm going to pull them all super gnarly right now just so we can at least see it.

30:34.100 --> 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.

30:40.040 --> 30:42.560
But I'll just try and do this as quickly as I can.

30:42.560 --> 30:47.760
Now one of these is not actually connected and we're about to reach it right now.

30:47.780 --> 30:51.360
So this one here is the one to look at because now I've opened it up.

30:51.360 --> 30:55.180
If I try and print this, JLCPCB is going to get real mad.

30:55.660 --> 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.

31:06.870 --> 31:08.410
Okay, so let's say that's good enough.

31:08.410 --> 31:09.950
We're going to call it good enough for now.

31:10.130 --> 31:16.610
Once it is close, that's when I zoom in and start making this really close.

31:18.170 --> 31:22.650
So I've had people ask me like, hey how good do you need to make this?

31:22.930 --> 31:25.410
The answer is as good as you want it to be.

31:25.990 --> 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.

31:37.810 --> 31:40.530
So right there you can see there's tons of little dots there.

31:41.010 --> 31:43.790
And it's really just how extreme do you want to take this.

31:43.790 --> 31:45.230
That's really all it is.

31:45.410 --> 31:47.390
So let's say that we had that thing all done.

31:47.470 --> 31:49.970
We can come over here to view and click 3D view.

31:50.270 --> 31:52.230
And now it shows us there is our PCB.

31:53.050 --> 31:54.890
Right now they call it blue apparently.

31:54.890 --> 31:57.730
We can make it green, we can make it purple, whatever we want.

31:57.730 --> 32:00.810
And we can select the surface finish here too if we want it to be gold or silver.

32:00.810 --> 32:03.430
But for now, this is our PCB.

32:04.550 --> 32:09.110
So let's come back here and now we can say, okay we want to add another layer.

32:09.110 --> 32:10.710
This time we're going to add the top layer.

32:11.670 --> 32:14.830
So we come over here and we go to copper.

32:16.190 --> 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.

32:24.630 --> 32:29.150
Selected everything that was green, chopped out everything else, and just saved just that one part.

32:29.650 --> 32:31.510
Okay, so that's how I made these things.

32:31.590 --> 32:35.150
Once we have this, I've already forgotten the name that I selected or the number.

32:35.690 --> 32:39.630
So this one says 62 and I'll show you how I got to that one as well.

32:39.630 --> 32:43.150
Is when I'm putting these in here, I essentially just guess at first.

32:43.150 --> 32:44.550
I say, okay, how about 60?

32:44.730 --> 32:47.610
And I put it over here and I say, well, that's a little bit too small.

32:48.090 --> 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.

32:53.410 --> 32:57.390
Let's try 84 and just kind of adjust slowly that way.

32:57.470 --> 33:02.070
Or I can just delete that and re-enter it as a slightly different size.

33:02.970 --> 33:09.790
And this time I'll put in 62 and now it fits.

33:10.830 --> 33:11.230
Okay.

33:11.230 --> 33:14.790
So you really just kind of slowly adjust these things until they look the way you want.

33:16.050 --> 33:16.550
Okay.

33:16.550 --> 33:19.890
So now if I was to, I'm going to cancel out of this.

33:19.990 --> 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.

33:28.750 --> 33:30.450
We've added that copper layer.

33:30.450 --> 33:33.510
So now they're going to add copper in that spot on just the front.

33:33.510 --> 33:37.350
So on the back, there's nothing, but on the front we can see that copper.

33:38.330 --> 33:40.750
So let's say we want to expose that copper.

33:41.930 --> 33:45.190
So let's come back here and we do another copper layer.

33:46.610 --> 33:52.850
Actually, well, yeah, so you can do it like this and just make it match the same size.

33:54.030 --> 33:59.590
And now we're going to change this from the top layer to the top solder mask layer.

33:59.830 --> 34:01.950
Now it becomes subtractive.

34:02.390 --> 34:08.770
So if we put this on there and we go to our 3d view, now we've exposed that copper.

34:09.850 --> 34:13.710
So this is how you start designing out how you want that thing to look.

34:15.490 --> 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.

34:19.590 --> 34:22.430
This is the one where we're going to expose all of this as well.

34:22.430 --> 34:24.110
So it's still going to be that top silk.

34:24.130 --> 34:26.830
Let me cancel this so I can actually go to the right thing.

34:28.570 --> 34:32.050
So we come over here and we change this to the top solder mask layer.

34:33.210 --> 34:37.990
We come back, we go back to that FR4 and this one says 94.

34:37.990 --> 34:39.330
So I'm going to set that.

34:41.110 --> 34:44.810
Okay, we're going to go ahead and put this right here.

34:45.190 --> 34:50.450
And now when we view that again, there he goes.

34:50.490 --> 34:53.490
Now he's starting to look a little bit more like Nibbler.

34:54.410 --> 34:57.630
So the last one we're going to add is that top silk layer.

34:59.150 --> 35:00.590
Okay, so now once we add this...

35:02.650 --> 35:06.070
Oh, I didn't look at the number... 142.

35:07.690 --> 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.

35:15.550 --> 35:19.310
But once we slap that in there, now we've got our Nibbler.

35:19.310 --> 35:25.250
Now this document layer, we can come in here and we can turn that off.

35:25.730 --> 35:27.310
And this is what our badge looks like.

35:27.750 --> 35:31.710
Now when we go to that 3D view, let's make this black.

35:32.250 --> 35:36.110
And now we've got a vague shape of what Nibbler is going to look like.

35:37.030 --> 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.

35:43.550 --> 35:46.250
So we need that ESP-01S.

35:46.370 --> 35:49.530
So we're going to come over here and say place footprint.

35:50.970 --> 35:54.630
And we can do ESP-01S.

35:58.470 --> 36:04.130
Now, once you do this, there's a user contributed section.

36:04.190 --> 36:09.450
And these are things that other people have made and submitted their own footprints that they use.

36:09.610 --> 36:12.050
This isn't really that sketchy.

36:12.050 --> 36:17.010
I haven't had any of these that were bad yet, but they are all a little different.

36:17.010 --> 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.

36:25.150 --> 36:28.270
So just be careful to look at these and make sure it makes sense.

36:28.730 --> 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.

36:36.330 --> 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.

36:43.750 --> 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.

36:49.050 --> 36:51.610
Also, these tend to be a little higher quality, in my opinion.

36:52.310 --> 36:54.610
So we're going to choose this one here and we're going to place it.

36:54.610 --> 36:56.010
So it shows it right here.

36:56.650 --> 36:58.290
So we're going to pop it down here.

36:58.730 --> 37:00.410
We're going to kind of zoom in a little bit.

37:00.670 --> 37:04.730
So once we grab this, we can kind of rotate it however we want.

37:05.050 --> 37:06.490
You can move it wherever you want.

37:06.490 --> 37:08.890
So let's put this right here.

37:08.890 --> 37:13.230
So it kind of stays in these lines here and makes it look like it's part of our design.

37:13.250 --> 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.

37:22.990 --> 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.

37:27.730 --> 37:29.170
You can see those little holes there.

37:29.170 --> 37:33.350
But when we turn them around, oh, I guess this one doesn't do it.

37:33.350 --> 37:34.590
Some of them will actually show.

37:34.590 --> 37:35.370
There it is.

37:36.030 --> 37:38.530
So now we can see, okay, this is how it's going to look.

37:38.530 --> 37:42.510
There's our little part exactly where it's going to be if we put it there.

37:44.850 --> 37:54.250
Okay, so now we're going to add a 0.96 LED.

38:03.380 --> 38:06.500
Just trying to make sure this is the right part before I actually place it.

38:07.040 --> 38:09.560
Yep, that, no, we want the four-pin version.

38:10.580 --> 38:11.580
There we go.

38:12.760 --> 38:15.540
Okay, so now this screen, we want this to be on the front side.

38:15.740 --> 38:18.640
Now if I put it right here, you see it's on that red.

38:18.640 --> 38:19.860
That's the copper layer.

38:19.860 --> 38:22.000
So we're going to be bridging those pins together.

38:22.000 --> 38:25.300
So we've got to be careful where we put this to make sure we're not touching any copper.

38:26.340 --> 38:28.200
So I'm going to place that over here.

38:28.720 --> 38:31.040
We'll go ahead and rotate it a little bit.

38:32.120 --> 38:34.580
Nope, don't want to do that.

38:37.750 --> 38:38.830
There we go.

38:39.390 --> 38:41.810
Let's put it right about there.

38:43.050 --> 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.

38:49.670 --> 38:53.650
So we come over here to net, and we can put that we want that to be part of ground.

38:54.510 --> 38:57.910
Let's say that this one right here is our 3.3 volt.

38:59.230 --> 39:01.850
So on this one, let's say that this one is ground.

39:02.910 --> 39:05.010
That next one is 3.3 volt.

39:07.930 --> 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.

39:16.810 --> 39:19.230
So let's go ahead and go over how to connect those.

39:20.250 --> 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.

39:28.090 --> 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.

39:35.250 --> 39:38.410
So we want to build a track, and it kind of snaps on here.

39:38.490 --> 39:45.270
We're going to build a track that comes up, comes over, and then comes down.

39:45.830 --> 39:47.470
Now we need one over here.

39:48.050 --> 39:53.950
So we're going to come like this, pull that over, and connect it like that.

39:53.950 --> 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.

40:02.950 --> 40:10.350
Now let's say that this right here was our data line, and this one here is our data line.

40:12.290 --> 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.

40:23.070 --> 40:24.570
They're going to become one net.

40:24.630 --> 40:26.190
So how do we get around that?

40:27.090 --> 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.

40:33.130 --> 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.

40:37.730 --> 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.

40:46.510 --> 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.

40:56.330 --> 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.

41:13.890 --> 41:18.110
All right, I'm trying to think if there was anything else that was major to be showing on this.

41:19.510 --> 41:23.470
But so, anyway, I guess, actually, let's look at this real quick.

41:23.470 --> 41:27.210
So there is now our badge, as far as that goes.

41:28.510 --> 41:30.930
So let's say, okay, let's say this was done.

41:30.930 --> 41:32.170
We put on the rest of the components.

41:32.170 --> 41:33.090
We were happy with this.

41:33.090 --> 41:34.150
We like the way it looks.

41:34.150 --> 41:36.130
We like the way the functionality is looking.

41:36.330 --> 41:38.210
We want to print it.

41:39.250 --> 41:43.910
So we'd come over here, and we would go to, well, first we have to save it.

41:45.350 --> 41:48.870
Then we come over here and say generate Gerber file.

41:50.050 --> 41:53.270
When you do this, it's going to ask you if you want to check the DRC.

41:53.270 --> 41:55.050
This is your design rule checking.

41:55.150 --> 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?

42:07.490 --> 42:09.530
It's going to check for all of that kind of stuff.

42:09.970 --> 42:12.050
So you can say, yes, you want to do it.

42:12.190 --> 42:13.710
And in our case, we passed.

42:13.890 --> 42:17.190
All of our nets are not bridging and nothing like that.

42:17.190 --> 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.

42:22.790 --> 42:24.010
You can't do this.

42:24.410 --> 42:27.470
But you know that it's what you're trying to do, and you don't care.

42:27.490 --> 42:31.350
You can just click that no and just say, YOLO, I want to order it anyway.

42:31.550 --> 42:32.770
And they'll let you.

42:33.450 --> 42:37.010
So from here, you can select how many you want and what color you want.

42:37.010 --> 42:41.710
But really, that's going to be more, it's going to show you that once you get into JLC.

42:41.750 --> 42:44.170
Now, again, you can order these from anywhere you want.

42:44.310 --> 42:46.330
I like using JLCPCB.

42:46.330 --> 42:47.950
I've always had good luck with them.

42:47.950 --> 42:48.890
They do great work.

42:48.890 --> 42:49.910
They have good prices.

42:49.910 --> 42:52.790
And they can do the fab for you if you want them to.

42:52.790 --> 42:57.390
But you can send them off to anywhere by clicking this generate Gerber button.

42:57.390 --> 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.

43:01.370 --> 43:03.230
And now you can send those out to someone else.

43:03.230 --> 43:04.090
You can share them with friends.

43:04.090 --> 43:08.470
You can send them to any fab shop, and they'll be able to build those boards for you.

43:09.350 --> 43:12.790
Okay, so let's say we had clicked to have JLC do that for us.

43:13.170 --> 43:14.550
Let's come back here.

43:15.670 --> 43:17.410
We'll go ahead and click go.

43:17.990 --> 43:21.090
So this is what it's going to show you in JLCPCB.

43:21.090 --> 43:24.530
It also shows you a little picture of your board up there at the top.

43:24.530 --> 43:26.150
But this is what you're going to see.

43:26.670 --> 43:28.450
There's a lot to go over on here.

43:28.590 --> 43:34.410
But the big ones to look at is checking the dimensions to make sure it looks like what you built.

43:34.410 --> 43:39.410
Sometimes those can be wildly off, especially if you didn't connect those two board outlines together.

43:40.330 --> 43:43.090
PCB quantity, obviously, you're going to want to look at that.

43:44.930 --> 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.

43:51.050 --> 43:54.330
So the thickness is literally just how thick the board is.

43:54.330 --> 43:57.070
If you leave that at 1.6, that's your standard badge.

43:57.070 --> 43:58.790
That's pretty much what everybody uses.

43:58.850 --> 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.

44:06.910 --> 44:10.750
But it is going to adjust the cost pretty heavily if you change that.

44:11.590 --> 44:16.370
PCB color, obviously, that's the color of your actual badge itself that you're creating.

44:16.370 --> 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.

44:24.810 --> 44:28.270
More than likely, you won't need to adjust that because you can't.

44:28.770 --> 44:30.970
The next one under that is surface finish.

44:30.970 --> 44:34.390
This is what's going to determine the color of that copper layer.

44:34.390 --> 44:38.330
If you want to do a black and gold badge, then you need to do that ENIG.

44:38.330 --> 44:40.050
That is immersion gold.

44:40.050 --> 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.

44:47.650 --> 44:51.190
Either one of those two is going to be that silver color that you see on PCBs.

44:51.990 --> 44:56.690
Now, the last one that you need to make sure you look at is that remove order number.

44:56.950 --> 45:02.870
This one, I don't know why they do not click yes by default, but they do not.

45:02.870 --> 45:04.170
The default is no.

45:04.170 --> 45:07.390
They're going to print your PCB number directly on it.

45:07.410 --> 45:11.010
And the reason for this is that they want you to be able to reorder that exact batch.

45:11.010 --> 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.

45:19.010 --> 45:20.610
Yes, I want that exact one.

45:21.390 --> 45:25.870
Realistically, you don't want that, especially because they're going to put it in the worst possible spot.

45:25.970 --> 45:28.990
They're going to put it dead center front and center of your badge.

45:29.830 --> 45:31.350
Just check that box.

45:31.350 --> 45:35.790
It does add, like, I think it's $1.50 to remove the order number from your badge.

45:36.070 --> 45:37.430
It's worth it.

45:37.610 --> 45:38.550
Just do that one.

45:41.900 --> 45:46.060
So that's all I've got for you, but go out there and make some badges.

45:46.340 --> 45:47.860
Seriously, it's not that hard.

45:47.860 --> 45:48.900
It's a lot of fun.

45:48.900 --> 45:52.160
We wouldn't keep doing this year after year after year if it wasn't.

45:52.540 --> 45:54.780
So anyway, feel free to reach out to me.

45:54.780 --> 45:59.260
If you have any questions whatsoever after this, feel free to come chat with me in the vendor booth.

45:59.260 --> 46:00.660
I love meeting new people.

46:00.840 --> 46:02.440
Do not hesitate to ask.

46:02.880 --> 46:04.620
Hope you guys all have a good DEF CON.

