In this video I show you how to start from a hobby breadboard circuit and use the free design software KiCad to create an electrical schematic, assign component footprints, and design in 3D the layout of your first PCB!
This video is sponsored by PCBWay and be sure to check them out for all of your Hobby Circuit Board Needs! - You get a 5$ credit just for making an account here: https://pcbway.com/g/2Zlh7L
welcome back to the MasterTech and in
today's video I'm going to show you how
to take your breadboard hobby circuit
and turn it into a professional
highquality PCB or printed circuit board
now if you've ever made a hobby circuit
you probably started by making it on one
of these this is a solderless breadboard
and basically it's thin strips of metal
internally jumpered together so that you
can just easily land wires and
components on it and test your circuitry
but their flexibility and Advantage as
an extreme modular system is also their
disadvantage when it comes to wanting to
make something more or less permanent
and this is where turning an application
into a printed circuit board is an
extremely powerful option now the
simplest and fastest way to go from a
microcontroller and a breadboard circuit
to a rigid board is with one of these
this is a prototyping printed circuit
board but it's basically just a
breadboard where you solder the
components in place rather than just
sticking them in the only difference is
you technically do have a pretty rigid
more or less complete circuit when
you're done soldering in to one of those
but a far better option is a formal
printed circuit board so this video is
going to focus on how you can actually
design and create your own PCB from a
breadboard circuit and then we'll also
touch on how you can get one made by
companies that do this sort of thing for
makers like the sponsor of this video
PCB way and we'll have more about them
at the end of the video so today I'm
going to use a completely free PCB
design software Ware called key CAD
which is one of the most common free PCB
designers out there this lets you create
an electrical schematic from scratch
automatically import device components
and their footprints for 3D models then
automatically import that electrical
schematic into a PCB designer space
where you can tweak the actual traces as
well as the physical layout of your
components then at the end it lets you
export your project in a variety of
formats created for PCB creation
services one we'll be using today is
called a gerber file and it's probably
the most common PCB file that those
Manufacturing Services would ask you to
upload the circuit I'm going to use for
my example today is this one and
although there's a lot of wires going on
the functionality is actually pretty
simple I have 12 220 ohm resistors wired
into LEDs and then four capacitive touch
sensors which each need power and 5
volts as well as a signal wire to tell
us when you're touching it then the only
other output is a Servo which gets
driven by a pulse width modulation pin
and if you're really fascinated about
this circuit and the basic code I have
loaded on it I did a building gooes in
Python for Arduino video already where
we use this same circuit for that
project so if you're really curious
about this breadboard you can check that
video out for now just know that I have
four capacitive touch inputs I have 12
LED outputs and then I have one Servo
motor being driven with a pwm pin now
let's boot up key Cad and take a look at
how to turn our bread RedBoard into a
PCB so I'm going to open kecat up select
file new project give it a good name and
go right into the schematic editor if we
end up wanting to create any custom
components or any components we didn't
find in key cads already included
extensive libraries of components we
would do that in the symbol editor and
when we're ready to drop components into
a PCB layout we'll do that in the PCB
editor there's a lot of cool and useful
functions in key CAD but let's do one
thing at a time here make the electrical
schematic start by adding some symbols
relating to your physical components and
since I want to drive this project with
an Arduino Nano which I will mention is
actually a PCB itself already so that'll
be the first thing that I look up when I
press a to add symbol or click the icon
and search for Arduino Nano most stuff
that you would commonly use in a circuit
already exists in the default key CAD
included libraries if you can't find it
chances are there's a link to the key
CAD footprint or symbol available from
the manufacturer and if they don't it's
not too hard to make from scratch but
that's enough material to be a whole
different video I'll drop in 12 LEDs of
which there are tons of types and it
doesn't matter a ton during the
electrical schematic which you pick
because it's super easy to change later
before finalizing then 12 resistors and
identify them as 220 ohm then what I
actually want for my Servo and
capacitive touch sensors are pins and
sockets I want ports ready to go for me
to connect my components to them but I'm
going to be installing this in a larger
box where I'm going to have the
capacitive touch sensors and Servo a
little bit physically spaced away from
the PCB so I just want pins and sockets
to easily land my stuff on I don't want
to have my capacitive touch sensors or
Servo physically embedded in the PCB but
I do want it to be simple and easy to
connect them so I search for generic
connectors for the servo I'll do a pin
connector meaning the part on the PCB
will be male and then the four socket
connectors which will be the female
connectors for the capacitive touch
sensors I could make all five the same
but this is also a good way to keep the
servo visually distinct from the
capacitive touch sensors there will also
be labels on the board itself but no
reason not to make extra sure here now
having a pretty schematic really only
matters if you're working for a team or
you're doing this professionally or you
have an extremely large project that's
going to be hard to keep track of making
sure that all of the connections from
point to point Point our accurate is the
most important thing and then when we
build the PCB in The Next Step you'll
see the opportunity for prettying it up
sort of shows up there and that's a
little bit more important now the last
thing we want to do in the schematic
editor before we jump over to the
three-dimensional PCB editing is assign
each of our components a footprint and
this is very important because on the
electrical schematic there's just an
icon indicating what that component
relates to but we need to go into the
footprint editor we need to tell tell
the key CAD software what actual
physical component that corresponds to
so picking the symbol is one thing
picking the physical footprint that it
occupies in space is another thing and
at this point you don't really want to
copy mine exactly you want to use the
LEDs and resistors components that you
plan on buying or you can go to a
website like PCB way jlcpcb and they
have component libraries that you can
order through them so if you want to buy
a fully assembled PCB from them be sure
to check those hobbyist websites for
standard libraries that they can provide
you'll pay a little bit extra cuz you're
buying the components through them but
you also get the convenience of knowing
they have the component you're looking
for and feel free to keep playing around
with these Footprints especially after
you see your first iteration of PCB as a
3D model it's not hard to change the
footprint and then go back into the
model and see what that changed and
affected but with our Footprints
assigned we can finally pop into the PCB
editor and here we're going to start by
updating the PCB layout with all of the
components from our schematic and
anytime we make a schematic or footprint
change while we're iterating on this we
can just hit this button again to update
all of the components in our project and
a quick note about the layout of the PCB
editor we can see on the side menu all
of the various layers of design that go
into a PCB but lucky for us it's
actually pretty much this simple want to
be able to draw electrical connections
or traces on the back and front layers
of copper and add the text to the front
or back layers using the silk screens
and then Define our outer Dimensions
using Edge Cuts there are things you can
dive into about every layer and I am for
sure oversimplifying here but for basic
design and beginners this really is it
if you're looking to design a board that
has more than two layers of copper and
you want mid layer vas or anything like
that you're probably advanced enough to
figure out how to accomplish that with
this software but just know for
beginners a standard two- layer board
where you edit the text and the copper
on both sides and then Define your Edge
Cuts is typically all you have to edit
in this mode so place the components in
locations that feel fairly logical to
you and actually placing the components
is a little bit more art than science
because as you'll see when you start
drawing your traces the software is
pretty good about finding a path that
could work for your traces so long as
you're not forcing it to repeatedly jump
over existing Paths of copper at the
same time you want the physical layout
of the components to be something
logical for how you're actually going to
install it into a larger project or
connect it or whatever so for me I'm not
going to spend too long talking about
placing the components you can just see
that I'm going to have my four blue four
green and four red LEDs in three
separate rows each with a resistor
feeding them then on the other side of
my board I'll play place the four
sockets for my capacitive touch sensors
and then at the top of the board
opposite from the USB port of my Nano
that is where I will put the pins for my
servo motor and now with a basic
acceptable layout let's jump into the
trace drawing because also sometimes
when you start drawing your traces
you'll notice that you need to move some
components around so that the traces can
hit all of the points they need and I
mentioned top and bottom layers of
copper before but I didn't really dive
into what that means assuming you have a
super basic understanding of pcbs you
know that they're thin layers of copper
with dialectric material in between them
most components that are through holes
are also plated with copper so they
touch all layers of copper this means
that on a basic two- layer PCB board you
can draw wiring traces on the top or the
bottom layer and so theoretically you
could have all of your ground traces
looking from above like they're
overlapping with all of your hot 5volt
traces but you're not creating a short
because they're on different physical
layers of copper this is really really
cool this is the obvious advantage of
pcbs and this is how incredibly
complicated circuitry gets packed down
into these super simple and compact pcbs
even for a basic hobby board like mine
it would be incredibly difficult to get
all of the ground connections and all of
my pin outputs on the same layer of the
PCB when I go to draw traces all I
really have to do is go from end point
to end point and you can see the
software kind of snapping those traces
into positions they think will be
logical and into positions where they
won't interfere with other traces and
then when you find yourself unable to
make a ground connection because your
PIN connections are just too tight you
can switch to the second layer of copper
and you can do your ground traces on
there so in the software it's indicated
by a different color which is really
really useful and just know that your
back and your front layers of copper
will not touch or interfere with each
other once you've taken a crack at
getting your traces on the board this is
a good time to start using the 3D
previewer because one you might catch
something that's off or not quite right
about your board and two you get a
really good idea for what this thing is
actually going to look like and you can
use key cads built in design rules
Checker to see if they have any
suggestions for how to make your board
look a little bit better they'll also
call out things like unassigned
Footprints or overlapping traces or
unassigned traces so double check that
everything looks like it's coming from
the pin you want it to come to
everything's interconnected the way you
expect it to and be sure to double check
the front and the back in the 3D editor
and make sure there's no surprising
things popping up if you want to use a
specific manufacturer or you know that
you need a certain file format to send
to that manufacturer be sure to double
check with them what format they need
key CAD almost certainly can export it
in that format for you like I said
before most commonly you'll be looking
for a gerber file so go to file then
fabrication outputs and select Gerber
you can leave those settings essentially
as default and hit plot be sure to
choose a good directory where you can
find those files since we need to zip
them up in just a moment also from this
window hit generate drill files as well
and get those drill files there are
other things you can generate here but
Gerbers and drills are the only things
I've needed in my experience then go
into that directory compress and zip all
the drill and Gerber files together in
just one location I'm not exactly sure
if it would hurt anything but I never
include that Gerber job file and no
one's ever needed it before now with
that whole packet zipped you're ready to
upload it to a PCB hobby board
manufacturer like the sponsor of today's
video PCB way it's super easy to get a
quote on your PCB prototype if you
really dislike soldering like I do they
also have the option for PCB assembly
where you can upload a CSV file of all
of your bill of materials and they can
assemble and solder the boards for you
pricing and turnaround times are really
good and their engineering teams review
every order before production to make
sure they don't see any major issues
with the job additionally their support
is super responsive and friendly beyond
that there's a ton of cool customization
options like getting your pcbs made in
different colors with different colored
text as well and they also have high
quality CNC prototyping and 3D printing
services so you can seriously get
everything you need to make a production
quality prototype right here on their
website be sure to check them out in the
link below this video and thanks to PCB
wave for sponsoring this video when my
first boards that I designed came in
they were super high quality they looked
so cool and I'm really stoked to embed
these in the final project I'm working
on so be sure that you're subscribed
with that notification Bell rung you
don't miss any of our cool big upcoming
projects and now if you have any
questions about any part of this process
that we talked about in this video today
be sure to drop them in the comments
below and I will get back to you as soon
as as possible I think it is incredibly
cool today how even an amateur hobbyist
like myself can take a simple breadboard
circuit like this and turn into a
production quality awesome cool high
quality PCB and obviously I'm not able
to design your board for you but I hope
this video covered all of the major
steps you need to know about to create
your first printed circuit board a
massive thank you to my patreon
supporters you guys are the reason we're
able to do these cooler bigger projects
as always be sure to let me know what
you want to see more of on the channel
in the comments below until next time
good luck with all of your projects and
thanks for watching bye