Transcript for:
Designing and Building a Board Using Altium Designer

in this tutorial you will learn how to design and build your own board using Alum designer even if you have never designed any board before by the end of this video you will be holding your own ESP C2 board you will learn how to draw schematic create libraries do PCB layout order your board sold the components test it and then write and upload your software let's get started open Alum designer go to file new project local project uh find the directory where you would like to save it select folder and I'm going to name this project I'm going to name it esp32 with USBC create now right click add schematic add also PCB and we would like to also include schematics symbol library and also right click at and BCB Library these are all the files we need now right click save our schematic I'm going to save it inside of our project directory and I'm going to call it esp32 with USBC copy this name save now right click on PCB save as just paste the name I'm going to add PCB version one issue one save save PCB Library as uh PCB lip and same for schematic symbol Library simply just save it asip save okay save our project go to Google and search for esp32 okay this is the website where we would like to go and find development kits find the module which we would like to use in our project is this one ESP C2 S3 Mini so open this user guide and uh when you scroll down there are links to all the documents what we need so I'm going to open this data sheet of the module and notice they have two this one is with the external antenna but this is the one what we need what we would like to use I'm going to copy the name of this model with PCB antenna go to D key and I'm going to find the module in dig key so paste the name of the module here search here it is and uh this is our model copy DK part number go inside of our library this is very important panels manufacture part search you have to be in the uh schematic symbol Library okay schematic sybol library has to be open in background behind this manufactur part search find dig key here and uh we are going to simply just press right click and import information about esp32 modu from DK inside of our schematic symbol Library go to schematic Library panel delete the default component this is the empty component which is always there when you create a new symbol library and this is the module this is our symbol what we have created we just we still need to create the symbol itself we need to draw it so uh I'm going to download data sheet and U inside of our project directory I'm going to create new folder I'm going to call it dots and I'm going to copy data sheet here so we have all the documents or what we need for the projects in one place I'm going to open it make it a little bit smaller and uh we are going to use a very cool trick how to create a symbol with many many pins so I'm going to adjust this view a little bit go to pin description and basically we are going to copy all the pins which are here in data sheet we are going to copy them to Excel spreadsheet I'm going to open it and then very simply we will import these pin descriptions into Alum you know so we don't have to write everything manually in this First Column I'm going to put PIN numbers okay pin number one and two are ground so I'm going to put ground here and I'm going to use underscore one and for pin number two I'm going to use underscore two because I like to have different pin names I don't like to have uh same names for multiple pins pin number three is power and this one I'm going to use a trick here hold alt down to select all the pin names like this paste them here and uh we are going to make a little adjustments this bolt pin name is the default function after reset and I would like to move it at the beginning of the pin names so I'm going to delete it from the end and just paste it here at the beginning and do it also for the second one so simply select the gpio one because this is the default function of the pin after reset and put it at the beginning I'm not going to do it in the video for everything you can just do it by yourself okay because it just would take to long uh I would like to just show you what you need to adjust uh this is another thing what we need to adjust because this uh belongs to pin number 14 so I'm going to place it here and this supposed to be pin number 14 15 so I'm going to move it here and again this supposed to be part of the pin number 15 so copy place it here same for all the other lines okay double check all the lines if there is something like this correct it okay I'm not going to do it again in the video because it takes lot of time actually I created whole file a little bit later you can just download the file another adjustment replace the comma and space with Slash because uh in pin names you would like to use slash it's very well visible okay so this is basically these are all the adjustments what you may need and once you finish it it will look like this okay so these are all the names which I finished and this is how it should look I'm going to adjust this pin names column so we can see all the pin names I'm going to save the file when you download the whole project I will attach link to uh GitHub under this video so you can download whole project including this file so you don't have to write this file by yourself and then you can simply import this you can simply open it and import these pin names into Alum you will see how to do it in later this is the file okay okay uh now notice uh all the ground pins which are here many many ground pins if I go down here uh you can see there is basically like only 45 pins in the table but if I zoom in on the footprint there are many many ground pins and some of them are actually additional some of them are here in this uh row but some of them are actually in the corners and also in the middle of the footprint so we need to add all these ground pins into our table now go to Alum tools symbol Wizard and uh we are going to create the symbol so first we would like to know how many pins are there 73 so I'm going to put here 73 and we would like to have all the pins just in one row we will be moving them around anyway so it doesn't really matter now I'm going to copy all the pin names simply just select them you know shift hold down left click and place them here so this is very simple way how you can create so many pins you can basically import them from data sheet I'm going to change the electrical type to passive for all the pins and we can place the symbol into our library perfect cool cool uh if you would like to zoom in zoom out by default you need to hold control and use Mouse wheel but I'm going to disable the control because I find it much easier just use the mouse wheel and uh to select objects you can use this uh blue rectangle or you can use green rectangle uh one you draw from top left corner the other one from bottom right Corner difference is in one case you select everything inside of the rectangle in the other case you select everything inside and touching the rectangle use X and Y to flip or mirror the selected objects X and Y on your keyboard okay and uh I'm going to make the pins a little bit uh shorter because they are quite long so I'm going to use this filter I would like to work only with pins uh select all the pins and simply make them shorter 200 Ms it looks okay don't forget to put the filter back so you can work with all the objects and I'm going to move these individual pins use space bar to rotate the pins put them up here now I would like to move it a little bit use X and Y to mirror or flip and put them like here okay I'm going to move these pins up here you can do it exactly the same way um so your symbol looks exactly same as the one what I'm drawing uh you can simply just use the grid as a reference you can see where I put the pins and how I draw them I'm going to select all these pins move it a little bit down and also I would like to move some of the pins on the right side of the symbol so I'm going to select the again use X and Y on your keyboard and place them like here move also these pins put them up here okay make this yellow box smaller and yeah it was not so difficult see I would like to make it little bit nicer so Place take inside of our symbol because this is the most important symbol in our schematic and I would like everyone to know that this is ESP 32 S3 Mini modu make it a little bit bigger and move it maybe like I don't know like this cool save our library uh add designator you question mark and add comment I'm going to put here the name of the component so this two are visible in schematic and also I'm going to add parameter I'm going to call this LCSC part number and we will use this parameter to put here uh par number from LCS company if I go on their website you will see this is a company which is selling part and this part can be used by jlcpcb so when you will be building your PCB in jlc PCB company they can use LCSC parts and fit them on your board so I'm double checking this LCS part number so we can add this number into our symbol and then jlcpcb will know oh okay this is the part which we should fit on your board I make it favorite so we can see it in every symbol what we will create in future and save the library we created schematic sybol library with one component esp32 with designator u question mark and comment esp32 S3 Mini uh there are some parameters which we imported from D we don't have to write this manufacturer manufacture part number manually it was imported and uh that's it be sure our schematic symbol library is saved go into our schematic panels components here in this list select our schematic symbol library and drag and drop the symbol what we have created into our schematic um here you can see this is the designator this is the command and this is unusual this gray background behind the pin names it's like special feature of Alum and we would like to remove it because we are not going to use it so go back into schematic symbol Library select a pin with this complicated pin name and just remove these functions okay select pin and remove all the functions just press cross to remove it I'm not going to do everything in the video I'm going to stop recording and do it because it takes long time uh but remove it for all the pins I'm finishing uh removing and now all the pins uh are corrected save schematic symbol Library go back into our schematic delete this symbol just select it and delete and drag and drop the new one now you can see the gray background is uh gone so it looks perfect this is exactly what we would like to have save our schematic and now maybe make it a little bit bigger because it's quite small so I'm going to use A2 and I'm going to move it maybe like here okay I would like to put some information into this table so I'm going to place text here and here and I'm going to change this I'm going to put here the project name esp32 with USBC and here I would like to add some information about my company so you can put here information or copyright about your company in my case designed by federal okay and also I would like to put big title on the top of this schematic page so Place text and again put here name of our project ESP 32 with USBC and make it bigger so when you open your schematic or when you print your schematic you immediately see oh this is my schematic from esp32 Project super useful place it maybe like this okay save schematic I always keep saving everything just in case now go back to esp32 website and open reference schematic you know we would like to see what other components we need to connect to our esp32 module so this is the module and we need to connect there for example this 100 narat capacitor go to D key and search for 0.1 microfarad 402 click on these keramic capacitors and we are going to use Samsung capacitors x7r 50 Vols in stock apply and let's use this first one copy the manufacturer part number go to LCSC website and double check if they have it so I'm going to search for this capacitor they have it perfect so we can copy dig par number and go back to Alum very important go inside of our schematic symbol library and click on panels manufacture part search right click paste enter and find the capacitor in dig key do right click import now we have two components in our schematic symbol Library we imported all the parameters from D key automatically so we don't have to write them and we are going to draw the symbol Place pin press tab to edit parameters of this pin and then just uh click on this post button press space bar to rotate and place the pins inside of our schematic symbol Library be sure this white end of the pin is facing out of the symbol because these are the electrical ends of the pins and uh change the grid just press G on your keyboard G on your keyboard to make it smaller and we are going to draw line press t uh be sure you are drawing blue small line and just draw it like this uh you can watch the position of my cursor okay down here you can see the position so you can draw it exactly the same way as I do it here in the video it's very simple to draw the uh schematic symbol of capacitor do it like this okay now press G put the grid but to 100 m this is very important because you always would like to have these pins plac on 100 Mil grid otherwise you will have a lot of problems when you will be creating schematic change the designator to see question mark and comment is going to be 100 narat 50 volt I'm going to copy description from the D key website because you know this is nice short description so I'm just going to put it here and we would like to also copy the name of the new parameter this lcsp number we would like to copy it and place it as a new parameter into our capacitor and also we would like to copy the LCSC part number from the from their website so I'm going to copy it for our capacitor just so copy and paste it here okay save this is very important save our library go back to our schematic components and drag and drop this new capacitor press space bar to rotate it and I can see there is comma missing in this uh comment so go back to our schematic symbol library at comma Now save the library and this is very important right click on the symbol update schematic because we already have this symbol in our schematic we need to update it there so now you can see we have the correct symbol in our schematic updated symbol go back to reference schematic and let's have a look what else we need to add for example this 10 microfarad capacitor so I'm going to search in dig key for 10 microfarad 0402 and let's click here keramic capacitors again I'm going to use Samsung 10 volt instock apply there are only two and this one is not for new design so I'm going to use this one copy the manufactur p number You' like to double check if they have it in LCSC so paste it here and search okay they have it this is the capacitor perfect so go to dig key copy dig digy part number now go to Alum very important go into schematic symbol Library panels manufacture part search right click paste enter we are going to import all the parameters from D key so find the D key box here now right click and import close this go to schematic Library tab we have new component with all the parameters from DK imported and we don't have to draw the symbol because we can simply copy the symbol what we have created for the other capacitor and we can simply just paste it into this new capacitor okay double check the PIN numbers so this is pin number one pin number two perfect update the designator to C question mark I also update the comment I'm going to put here 10 microfarad 10 volts go to dig key copy this short nice description paste it here and what else is missing we need to or we would like to copy this LCS part number name and create new parameter and paste the name here oops okay go to LCSC website copy the part number and paste it here and it's done new capacitor very quickly create save schematic symbol Library go back into our schematic and simply drag and drop this new capacitor press space bar to router and place it like this let's go back to our schematic uh we created this it's connected to 3.3 volt power we are not going to create the Z Ohm resistor so we can directly connect this capacitors and use this V drawing tool connect them to 3.3 volt pin Place power port and we would like to rename this to + 3v3 we would like to use bar and rotate this this is going to be our power and we would like like to also Place ground you can just connect it like this put it on the top of the pin and just move it hide the name of the ground we can copy it paste it and connect also to this other capacitor okay save our project next uh we would like to connect all the ground pins to ground uh so let's do it zoom in all the ground pins are here so it's going to be super simple just connect everything together and uh to speed up this process we can simply copy and paste this short tracks copy and paste this super useful feature okay almost done okay I can delete this one and copy the ground symbol and paste it save next we are going to name all the Nets we are going to connect all the pins on our symbol so we need to draw these uh connection virus from each pin on our symbol and again we will use the copy and paste feature to make it a little bit faster okay paste paste this is just one line so I can draw it and paste also here paste almost finished um these are ground so I'm going to delete this I will move this up and okay uh I will connect these two ground pins so we don't forget about this okay now we are going to name these nets so Place net label press stop and I'm going to put here gpio zero and we do it this way because then Alum will automatically increment the net name see and watch uh if you are correctly placing these uh net labels okay GPI of 20 you can see it here and now be careful okay 21 this one is 26 so 26 uh next one is 33 34 and let's continue okay 46 47 48 uh we don't need this we can delete them and this one is called chip pu so I'm going to place net label and manually I'm I'm going to name it like this okay u0 TX and U RX so I'm going to copy this and place it correctly okay don't make mistake this is very important double check the pin name and place the net label correctly this one is the RX the other one is TX okay perfect what else um everything else seems to be just gpios so don't forget to save your project now another capacitor one microfarad search in dig key we are going to use [Music] Samsung one microfarad or [Music] 402 35 volt in stock apply there is only one so I'm going to copy this manufacture part number let's have a look inside of LCSC they have it okay we will use this part number later so copy digy p number go to Alum go inside of our schematic symbol Library panels manufacture part search paste enter find D key right click import close schematic Library copy existing symbol so we don't have to Draw It Go inside of our new symbol paste it here double check the PIN numbers and uh change the designator put here the comment go to dig key copy description paste it here copy the LCSC part number parameter okay go to LCSC copy the number and paste it here save the schematic symbol Library go to our schema think go to libraries and and I'm going to adjust this column so we can very nicely see which capacitor is which so I'm going to enable this command and put it up watch what is going to happen see now I can very nicely see which capacitor is which and place it somewhere here okay we are going to build here or create here circuit very small circuit around this one microfat capacitor so just place it here go back to reference scha think we also need this 10K resistor so for very first time we are going to look for a resistor component and we will need to create the S symbol so I'm going to use this manufacturer yo plus minus 1% 10K in stock apply and we can use automotive let's use this one double check if they have this one also in LCSC so they can fit it when they will be building our boards okay they have it perfect uh go back to dig key copy digy p number open Library manufacture part search import the resistor from DG key here it is so right click import okay and we are going to draw this symbol so place a pin press t or adjust the parameter so designator one name one I'm going to leave a pin length 100 okay hide the designator and name be sure the white end of the pin is facing out of the symbol now I'm going to add grid so it's easy to draw this symbol press G change the grid to 25 Ms and watch how I'm going to draw it watch where I'm going to place the cursor press space bar to draw this way under an angle and draw resistor symbol okay perfect press g go back to 100 Ms and finish the symbol super easy uh very quick way how you can draw your own symbols little bit later we will also import some symbols you will see so this was just to show you how you can create your own symbols from scratch okay because sometimes you will not be able to find symbols for some of the components you need to know how to create them by yourself go back to LCSC copy the LCSC part number almost resistor is almost finished so paste it here and save the library go to our project uh go to our schematic and place the resistor okay press space back to rotate and let's have a look into our schematic how to connect it okay so I'm going to search where this is connected uh it goes also somewhere here and then to this button to the resistor and capacitor to header and also to our chip okay maybe we should also create this uh switch so I'm going to find a button which we could use it's called T Tech TI whiches I'm going to use this cnk surface mount and a very standard size is like this one 6 by6 mm again in stock don't forget and you can choose different colors different sizes I will use this gray one I'm going to double check if they have it in LCSC uh maybe delete this space uh they don't have them in stock but it's okay don't worry about this okay we can you can always buy them from different supplier I'm still going to use it so copy digital digit kead number uh go back to our library search um find dig key right click import and this time we are going to learn how to reuse the symbol and footprint so I'm going to download this symbol and footprint uh inside of our project I'm going to create new directory temporary directory and here I'm going to save the symbol and footprint which will be imported directly from this manufactur part search so we don't have to draw the symbol and footprint we can easily copy it okay so uh now this is the file what we have downloaded go inside and we would like to un P this PCB library and schematic library because that's what we need and uh I'm going to name these so later we can very easily find them rather than you know using name component blah blah blah I'm going to call it the right name and uh I'm going to open it so simply just drag and drop the schematic uh symbol Library into Alum and there is one component it is this switch so select everything copy it go inside of our schematic symbol liary select our switch and simply just paste the symbol from the file what we have downloaded we can close this one this uh downloaded library and we can just um finish our symbol so change the designator I'm going to call it s w question mark comment is going to be switch part number description as always I copy it from dig key and then we need to add LCSC part number parameter so let's do it and also we need to find the number copy it and paste it here okay save everything go back to our schematic now in component select our Library drag and drop the switch and now we can connect it okay so I will move these things little bit around so it looks nicer open schematic and double check how it is connected this one is not fitted so we are not going to place that the capacitor the other one we just need to connect it like this okay okay and we need to connect uh ground to the other pins and ground to the capacitor so this is connected to ground I'm going to copy the symbol and paste it very often if I I have something already in schematic I just copy and paste it so I don't make mistakes uh when creating something new and also we need to connect the resistor to the 3.3 volts okay it's it's the same 3.3 volts where the capacitors are connected so I'm going to copy paste it here okay and what else we need to connect it to the esp32 module so copy this pin name or net name and paste it here again I use copy and paste so I don't make mistake when rewriting this net name manually and save everything this is the uh we have to check which but we just created so that's what I'm looking for so it's on pin number 45 and I'm going to open this PDF and here are the buttons I just need to double check the layout so which one is pin number 45 on the model this one okay you can see this is the pin number 45 and it is connected to which one which button this one so how this one is called it's the reset button okay so I'm going to copy this text and uh I will make it smaller and I'm going to change it to reset button okay so everyone knows this is reset button save after go back to our reference here I think and we are going to add this second button and there is this 100 narat capacitor not connected capacitor what I'm going to do I'm going to do this I'm going to copy this existing circuit paste it down here or maybe delete this delete this one microfarad capacitor we would like to put that this is 100 n for capacitor just copy it and uh don't forget this one is not fitted not connected NC me means not connected so I'm going to place text over this capacitor and on the text I'm going to put a node n if not fit it I will make it a little bit bigger and red or uh change the grid press G on your keyboard make it smaller so we can very nicely place it over the capacitor put the grid back to 100 Ms and now we will know this capacitor is not fitted I'm going to copy also this uh description of this uh subcircuit so everyone knows this is what button it is boot Button and we will use this also as a user button so I'm going to put here a note like uh boot sluser Button I'm going to delete this uh don't forget to save your schematic and we are going to connect the button so go to reference schematic double check where it is connected gpio Z where everywhere is GP Z connected it's connected to the mod it's connected to the header then this circuit and to our button and this is quite important signal so what I'm going to do I'm going to connect this gpio z a little bit differently and I will need 27 Ohm resistor for this so first I'm going to create it 27 ohm 0402 uh we would like to use yako 27 plusus 1% in stock you will see a little bit later how I would like to connect it so let's use this one double check if they have it in LCSC search okay they have it perfect now copy digitad number and we are going to create it in our library so go to Library panels manufacture part search paste the 27 Ohm resistor find it and right click import it's going to be very quick because we already have resistor symbol so we can just uh copy it from here and paste it into our new 27 Ohm resistor okay double check the PIN numbers and U update designator is going to be our question mark update the comment 27r copy the description and also add the LCSC part number parameter okay go to LCSC website copy the LCSC part [Music] number and the resistor is finished okay don't forget to save the library go to our schematic track and drop the 27 Ohm resistor into our schematic and this is how we are going to connect it watch first make it a little bit nicer uh we need two of them and we are going to split this gpio zero signal through these two resistors and uh we are going to split it because uh this may help uh with improving the signal quality and also in future if you would like to disconnect part of this circuit you can very easily just unfit one of these resistors that's why we did it uh let's have a look where we need to connect it so again gpio0 is connected to the headers or the connectors and to this circuit and to this button okay so what I'm going to do I'm going to place this net labels and one of them I'm going to call con gpio0 and the other one I'm going to call what do you think Buton GP zero okay and now we can simply just copy this and connect our button okay and later we will connect the rest of the city it don't forget to save your schematic go into our reference schematic and what we are going to connect next these USB connectors and originally these are micro USB okay if you have a look on the board these are micro USB connectors and we would like to make it better we would like to use USBC connectors so search for this 99 Tech and they have boards with USBC headers I'm going to find it for example this one and we are we need to have a look how how they connect these okay you can see these are the USBC and they have also schematic here so if you are not sure how to connect something you can find a similar reference schematic with the circuit what you need and you can double check how they connected it so this is what we need to do uh this is the USB C circuit okay I'm going to find the USBC connector that's the first thing what we need and uh I'm going to use MOX connectors there are many many USBC connectors I would like to pick a specific one which is quite simple to connect on our PCB so that's what I'm what I'm doing right now I'm searching for top mount and uh only with uh 16 pins uh not this one not this one dual row we don't want dual rrow it's very hard to solder manually uh oh this one looks like a good one so I'm going to copy this part number and let's have a look if they have it in digk in stock okay we can also double check if they have it in LCSC but from my experience yeah they they have they don't really have like these MOX headers but it's okay we are going to use it anyway so copy dig part number and uh create new USBC symbol in our Library so import all the parameters from dig key and we can also use maybe later this uh footprint so I'm going to save libraries into our project uh this is the file what we have downloaded I'm going to unpack the schematic symbol and PCB library for the USBC connector I'm going to copy the name of the connector and I'm going to rename the libraries so later we can very easily find which file or which Library belongs to what component okay I can delete this we don't need this okay perfect and let's have a look on the symbol uh this symbol is not like the best one that's not really what I would like to use so I'm going to close this and uh maybe we can create the symbol by ourselves open data sheet and this is going to help us to draw the symbol let's have a look what pins we need to create in our schematic symbol so I'm going to make this data sheet a little bit smaller because we would like to see it when we will be drawing the symbol uh maybe like this okay these are all the pins we need to create I will make this a little bit bigger and uh Place pin uh where is the zero zero position Escape I'm going to find it the G Place spin okay so here is 0 0 now press St and uh I'm going to put here A1 and A1 make the pin 400 Ms and place them how many do we need up to a n maybe okay and I'll do same for B so B1 place B pins here maybe like this and then don't worry we will adjust the pin names we also need these ground pins so I'm going to call it like uh S1 like shield and we need four of them okay save everything thing and uh let's make it nicer A1 A4 B8 A5 you don't have to always order the pins as they are on footprint but in this case it's very nice to see how the pins need to be then connected also in layout that's why I'm using exactly the same order and also you can very easily visually then compare that uh you have all the pins and uh they are corre correctly named okay I will move it a little bit A1 B12 so I'm going to change the designator to A1 B12 uh this one is A4 B9 okay also this one and also update this one perfect we are going to name the pins so when we will be drawing schematic we can very nicely see where these pins are connected for example this one you can see it's supposed to be connected to ground so I'm going to call it ground A1 B12 this one needs to be connected to VBS so VB A4 B9 uh this one is SB [Music] U2 next is CC1 B7 this one is connected to dn2 so this is the negative second negative signal this is the first positive signal this is the first negative signal and this is the second positive signal there are two or differential pairs connected to this header because or there are pins for two of them because you can connect USBC in U you know you can rotate the connector when you're are connecting cable you can connect it both ways that's why there are two of them this one is ground again rename also all the shield pins we can do it all at once select more pins and do it like this okay it's much faster so this is The Shield _ 4 perfect now double check if you name everything correctly it's very important you don't make mistakes we can continue in Alum uh we can make this uh nice so I'm going to draw this yellow box we would like to move it to back so we can see the pin names okay and uh let's put some graphics inside of this symbol so you know everyone can see oh this is USBC connector so drop like this put that this uh lines and ovals and you know so it it looks a little bit like USBC play with it make it nicer okay maybe like this I like it a lot let's put USB C text here uh press G change the grid so you can place it very nicely into middle okay now press G don't forget go back to 100 Mil grid and save the symbol update the designator use J question mark as a comment I'm going to use the part number very of often I use par number in comments because then if someone is uh looking at your schematic they can very easily find the specific uh component okay copy the description from dig ke part or dig key website and don't forget to add the LCSC parameter I'm going to copy it from their website okay and uh it's done don't forget to save and now we can place it into our schematic so go into our library Dr and drop it cool see so complicated symbol and you created it very easily well done now you you know exactly how to create any kind of symbol what you will ever need in your projects we need two of them uh and uh I'm going to name them before we connect these so the first one is going to be the USB C connector one and the other one is going to be very hard to guess it's going to be USBC connector to okay I'm just going to change it perfect save go to reference schematic we would like to know how to connect this USBC connector we need to connect the VBS together ground pins together and we would like to connect also the USB pins so this is going to be very simple first uh let's connect the USB pins D and to and and dp1 we need we need to connect these two together with dn1 and dp2 pins this is not the most optimal for layout but for this very simple board it is just perfectly fine so we can connect this together uh then uh connect all the shield pins together and uh uh the ground pins of the connector so this one uh this is also ground pin and these are the shield pins and connect the vbu pins together uh like this okay and okay uh I'm going to copy the ground symbol paste it here we would like to name the Nets uh this one is going to be connector one underscore usbcore n and the other one is going to be underscore P okay I'll be sure you correctly name this net it's very important and we can uh finish this power so uh maybe I I will copy the power port and then just rename it so from this plus 3v3 I'm going to change it to plus 5 V underscore V bu one and also we would like to add this 100 narat capacitor I'm going to copy it together with the ground connection when we will be doing PCB layout we would like to place this capacitor close to the connector so we place it in the schematic we place it close to the pin this is a reminder that in the PCB layout we would like to have it close to the connector okay save it um we would like to connect the rest of the pins this sbu and CC pins let's have a look how they are connected CC pins are connected through this 5.1k to ground and sbu are not connected uh I'm going to put that this uh not connected marker on the sbu pins and I'm going to create 5.1k resistor okay we would like to use same parameters what we usually use for resistors so plusus 1% in stock all 402 Automotive I'm going to use this Automotive one I will double check if they have it in LCSC so they can fit it okay and we need to create the symbol you know exactly how to do it it's going to be simple because we already have resistor symbol already now maybe you are asking why we have to create all these individual components uh this is how it should be done for professional schematic uh because if you are designing boards with many many components having uh symbol for each specific component is going to make it much easier to manage all the components on your board that's why we are creating every single individual component on your board it's almost finished uh just update this description add this parameter and then we can use it in our schematic okay this is the last thing to paste here save it go to our schematic and place the resistors these are connected to CC pins very simple connection and the other side of the resistor do you remember where it is connected you can double check in reference schematic it's connected to ground I'm going to copy the ground symbol and paste it here do it also for the second resistor okay don't forget to save your schema think next we would like to add this uh protection so I'm going to copy the exact name of the protection what they used here and search oh they don't have it in dig key so we can just find something else I'm going to find this uh USB protection ESD protection it's for USB interface select it what do they have we can use this one I'm going to copy they don't have it in LCSC but it's okay we can solder this manually later after our board arrives and uh we need to create symbol for this protection import the parameters from D key and it doesn't have footprint and symbol uh we need to draw it this is going to be fun uh so Place pin I'm curious if you could do this by yourself without actually watching this video because by now you really should be able to create any kind of symbol so you can try it by yourself if you like uh or you can follow this video and you can create the symbol like this I'm going to draw I'm going to use very small grid and draw it like this again if you need help with drawing just watch the position of my csor and then you will know how I draw it exactly I'm going to use this polygon and um this is maybe too big so I'm going to make it smaller and we would like to have it blue color so I'm going to select blue okay how it is going to look perfect this is really nice I'll do it also for this second one okay okay cool this was very quick don't forget to change the grid back to 100 Ms and also update the designator and comment copy description and add the parameter if you would like to learn more about uh the reasons why really we are doing it this kind of like complicated way have a look on our fed.com website we have many online courses and uh they explain how to do professional design board design we need to connect this protection to VB and to the USB pins so I'm going to just drag and drop it into our schematic we need three of them [Music] okay and simply connect this so this is uh ESD protection it means for example when someone is touching the cable or the connector the uh ESD impulse will not go inside of your board and it will not damage the component connected to this connector okay same circuit is also on the other connector so we are going to draw it I'm just kidding we are going to copy it because that's much faster see super quick don't forget to rename the power this is going to be vbu 2 and also the uh USB signal these are going to be connector to USB signals okay what next go to our reference schematic and they have this diode here I'm going to instead of the diod I'm going to use a jumper so I'm going to find a header for our board and then through the jumper we will simply select uh which of the connectors we would like to use to power our board I would like to use a small one pach 1.27 uh through Hall maybe this one okay this looks like what we could use I will double check if they have it in LCSC but this is not really important because um fitting through whole components uh during uh board assembly may be unnecessary expensive so we can sold down this uh connector or Header by ourselves uh to save a little bit of money so even if they don't have it in LCSC it's fine because we will fit this after we receive our boards symbol is very simple just put there three pins I'm going to change this to one and 200 Ms now put here three pins 1 two three draw the yellow box move it back maybe make it a little bit bigger and um finish it so designator is going to be J question mark comment is the part number description from dig key and the LCSC pad number is going to be from their website okay almost done save the symbol and use it in our schema think so instead of diode we will use this jump and depends how we fit the cup on this jump we will power our board from the first USB connector or from the second one so pin one and pin three are are going to be connected to the USB connectors and pin number two is going to be the main power for our board okay copy this power port place it on pin number three and copy this power port place it on pin number one and in the middle is going to be 5 volts for our board I'm going to rename this okay save and we still need the cap on this jump air so I'm going to search for the cup uh where it is here okay I will use Harin in stock 1.27 pach or height this one okay let's have a look I like the red one so I'm going to use this one and we are going to double check if they have it again this is not important because we don't have to buy this from LCSC even if they don't have it it's no problem I just would like to see the number and um we can create it and now you may be asking like H why we are creating this symbol in our schematic symbol library because this is not like real component this even doesn't have any pins so why do you think we are creating this symbol because uh we can include this uh cap in uh B bill of materials we are going to only draw the lines okay we don't need pins we can include this in bill of materials so always when we are building our board and when we are buying components for our board we also buy these CS because they have to be placed on the board if you forget to buy them you can't really use the board okay they are part of the board that's why we are creating this symbol and we are making this part of our schematic okay very simple we can save it uh we need to change the designator update the comment and description [Music] okay and uh LCSC part number copy paste okay go to schematic and place this cup close to the header okay save our schematic what is next what do we need to do we need to convert this 5 Vols to 3.3 volts and it is done here okay so 5 volts converted to 3.3 volts and we need this regulator I'm going to find a regulator uh this is how you can do it so in products integrated circuit power management voltage Regulators low Dropout regulator and I really would like to use one from well-known manufacturer Texas instrument and uh maybe I would like to use similar footprint what they have on development kit like this one 1.5 amp and 3.3 volt okay there is only one we can use it I'm going to double check if they have it in LCSC because it would be good if they sold it down looks like they should have it but only 11 pieces so I'm not sure if they will have it when we will be building our boards but it's okay we can Sol this manually uh we are going to find it in this manufacturer part search uh import the parameters and download the schematic symbol and the footprint because it can save us some time uh if there is footprint we don't have to create this manually okay uh this is the file what we have downloaded unpack the schematic library and PCB Library we would like to name these libraries so I'm going to copy the pad number and paste it here okay now open the schematic symbol Library what we have downloaded we can copy this symbol paste it into our library and we don't need the downloaded Li Library anymore you can close it and save our library I'm going to delete this downloaded file and we can finish our symbol so update the designator and comment and description and of course also we need the LCSC parameter so just paste it here and also copy the LCS p number from their website okay now go into our schema think select our library and drag and drop the regulator into our schematic okay perfect save our schematic we would like to know how this is connected so I'm going to open data sheet oops okay maybe just uh search for data sheet of this regulator open it and uh let's have a look if they write something about the connection this is the basic schematic uh now here output need to be connected to minimum 10 microfarad capacitor and U what else is about the schematic here output capacitance minimum output cap capacitor 10 microfarad with is 3 ohm or less okay so this is how we need to connect it minimum 10 microfarad capacitor I'm going to have a look what is ESR of this capacitor I'm going to open data sheet this is the one what we already have in our schematic so maybe it's a good one and uh I'm searching for for ESR [Music] information here this ESR the blue line is ESR so three ohms or less and yeah it looks like it is less than three ohms so this should be fine okay we can place this capacitor on the output of our regulator and we can place that too you know it's little bit better we will have 20 microfarad and also ESR will be lower now what about the input I'm going to have a look what they say in data sheet about this input they use 10 microfarad capacitor but if you search for USB uh to specification there are some restrictions on the capacitance which we can connect to USB and uh I'm going to find it in this document so you can see what I'm talking about basically it says here USB specification limits maximum load to 10 microfarad so maybe this 10 microfat capacitor is too big maybe we would like to use something smaller so let's have a look what is the smallest one what we can connect to the input pin of the regulator and here it says a bypass capacitor in the range 1 microfarad up to 10 microfarad is enough right now we don't have any smaller capacitor which we could connect there so let's continue drawing our schematic and then we will put it there later next we are going to create this uh component uh it is used to convert USB to serial Port but I don't really like this one because I use it in past there were some problems or maybe I would like to use a little bit different component ftdi component they are very popular very well known for this usb2 art uh function so we are going to find uh a chip from this company this usb2 art chip let's have a look what they have uh maybe this [Music] one and uh okay I like this I'm going to double check if they have it in LCSC because it would be useful if they sold down this one okay they have it uh so we can create the schematic symbol we are going to create again very complicated symbol or the do we maybe we can import it let's see oh yeah they have symbol and footprint in Alum so we can uh download the libraries we don't have to draw them manually and uh okay save uh let's have a look inside of the file what we have downloaded unpack schematic Li and PCB liip okay delete this one we don't need it name the files properly so we know what is inside of this libraries it is the USB to Art bridge and open the schematic symbol simply just drag and drop it into your Alum and we can use this so I'm going to copy Fe and I'm going to place it inside of our library okay close this one save it and uh let's have a look what is this they set these pins as input output they set this electrical type and um sometimes it may be use useful but I don't want this so I'm going to set all of them to passive and uh what we can do we can actually just add the arrows we don't have to set the electrical types because the arrows can be useful to see which is input which one is output so I'm going to find this spin out of the chip we can see the type output input uh and all these three are output so I'm going to select them press shift hold it down select multiple pins and uh do not select electrical type but set this uh just this uh like drawing it's just a graphical element on the pin and do something similar for the input pins all these other they are input pins and I don't use electrical types because then there are problem problems when you will be compiling and doing ERC checks that's why I don't use the electrical type uh don't forget to set designator and comment copy description and uh the LCSC part number and it's almost done this was really quick again um you know creating libraries uh sometimes it may look like it takes a lot of time it does take some time but it's not as uh as much time as some people think so save the schematic symbol library and place this new component into our schematic now we are going to have some fun because we need to collect this correctly uh how we are going to do it do you know everything is in data sheet so I'm going to save this and uh we are going to have a look what is inside of the data sheet how they recommend to connect this there will be some recommended schematics down here okay USB bus powered configuration self powered configuration and USB bus powered with power switch configuration this is the configuration which we will use mostly and you can see this uh USB is connected to the capacitors but we are not going to put their capacitors because we have this protection di but we still need to place these resistors here so I'm going to copy this 27 Ohm resistor we already have them so we don't need to create new symbol and just paste it here and also here okay connect the chip and connect everything to our connector double check if you are connecting the right polarity Okay negative and positive I'm going to place the net names also here because this is very important net so we would like to use a proper name on this net okay ftdi USB and uh make it a little bit nicer okay save now VCC uh there are some capacitors on VCC 100 nanofarad and 4.7 so we are going going to create 4.7 microf farat and this is good because then we can use this one also for for the regulator it's less than 10 microfarads uh so I'm going to find one uh double check LCSC they have it okay cool we are going to create symbol in our library it's going to be very quick because we already have capacitor symbol in our library just import the parameters copy the symbol okay save it and update all the information so designator comment what is the voltage I forgot uh 16 volts okay 16 [Music] volts and the last thing is the parameter almost finished okay save the symbol and use it in our schematic okay press space bar to rotate we also need 100 narat capacitor okay and how is it connected so these two are connected to VCC I'm going to draw the BCC [Music] connection connect the capacitors Place ground symbol okay and we would like to connect it to this uh plus 5 V uh I'm going to place it here uh and it's not going to be so simple because if you have a look here for the other configuration it's connected actually to vcc3 so I would like to provide more options uh I would like to also provide option to connect this VCC to 3.3 volts so put it down here and do you know how we are going to switch between this we will put there zero resistor that's something what we need to create so save schematic uh go to dig key and let's create zero Ohm resistor is also called jumper I use our standard manufacturer uh we can use this one okay double check if it's available in LCSC perfect we are going to create it if you are creating everything together with me that's really great you're are doing really good job this is exactly what you will be doing when you are designing Boards of course once you have many components in your library then it's much faster because then you can just reuse the existing components we are creating so many components only because you know we started with no library in the next project you don't have to create zero one resistor because you can use this one what we are creating right now okay and now the LCS part [Music] number okay zero resistor is done we can use it in our schematic I'm going to place it here and also here of course we can connect both of them at once so in PCB layout we will use special technique for placement you will see uh I'm going to move this capacitor a little bit because I would like to connect it like this I I don't like to create the cross because then it's it's not clear if uh components should be connected or if they are just crossing the line and I'm going to unfit one of these so by default we don't want to fit the one which is connected to 3.3 volts so I'm going to move it here as a reminder we don't want to fit this resistor because then it would be quite problem we would short wec C + 5 with 3.3 volts okay it's correctly connected I'm going to name this net because it is very important night it is power net so when we will be doing layout we would like to know we are doing layout of this PowerNet and it can be 3.3 and 5 volt so I didn't put the voltage there save our schematic we are going to connect this 3v3 output and vcci iio and this capacitor 100 nanat capacitor so first connect these two pins together and instead of one capacitor I will place the two capacitors because we would like to have uh one capacitor close to each of the pins so one close to this uh 3v3 and one close to the vccio so this is the second 100 narat capacitor connect it okay save next reset uh maybe I don't want to connect reset directly to power uh sometimes it's very useful to have option to disconnect it so I'm going to use zero Ohm resistor like this and uh connected so in case I need manually reset or I need to prob the reset disconnect reset uh I just assol that the Z resistor and I can do with the reset anything what I need uh for this circuit you can see they don't Place Zer oh resistor on this pin but from my experience it may be useful but by default we don't want to connect this 100 narat capacitor and we would like to fit the zero Ohm resistor I'm going to name this net again this is power net very important power net so I'm going to call it plus 3v3 underscore ftdi okay and it's starting look really good what else is missing um this one is connected to support this one we already uh add support for this and this what does it say 3v3 regulator output VCC must be greater than 3v3 otherwise 3v out is input which must be driven with 3.3 volt so we need to add Support also to connect this plus 3b3 ftdi to connect it to 3 3 W in case we would like to try also the different operation mode for this chip it's only for testing okay so this is okay now this we would like to support also this for this self powered configuration we need to add two resistors connected to vbu sense pin first we need to create for uh 4K seven resistor oh let's do it now you can do it with your eyes closed I'm pretty sure okay I'm going to use this one and double check it I'm sure they have it because this is quite standard resistor so let's create it in our Library very quickly search now import copy the symbol paste it okay and update the information about this resistor copy description and set the parameter copy paste save okay vbu sense so where is the vbu sense pin oh okay it looks like it's available on on cbas pins cbas 0 1 2 and three and you can configure it so basically we can connect it to any of these pins and then you just configure it you just configure the function of the pin which we will use so I'm going to create the voltage divider here 4K 7 10K and I'm going to connect it to this C bu 3 pin again this is something what by default we are not going to use it's so it's not really like super important but you would like to have it ready connect this 10K to ground and 4K 7 to + 5 Vols we would like to have it ready in case we would like to experiment uh with different options how to power up this board what we are designing because maybe you don't want to Power It Up from from USB maybe you would like to power it that power up this board from header so then this can be super useful all this kind of config urations okay this is very important net so name this net and save schematic I'm going to add a note just uh you know so we don't forget uh what we what kind of support we created in this schematic so um if in self ped configuration then set cbas 3 as VB sense okay that's the alternate function of the cbas 3 pin and you can do it through this software utility ft proc and I will add one more resistor here just for fun now you know in case you would like to use U or you would like to test different feature you can prob this 10K resistor and um you can you know use this because uh the chip itself it has like very small pins and if you would like to use some of these alternate features for some something special it would be very hard so that's why we also use this 10K resistor all this is connected this needs to be connected to ground this is going to be very simple okay and these pins we don't need to connect them so I will mark them it's not connected and let's have a look on this on the U interface how do we need to connect this so we only need the four pins we need the RX TX DTR and RTS all the other pins are not connected and we need to place net labels here so then we can easily connect the pins with other circuits which we are going to create okay don't make mistake very important super important most common mistake one of the most common mistakes is uh swapping or not swapping rxtx when connecting serial lines so be very careful mark them correctly now uh let's have a look how they they are connected so TX is connected to RX pin of the module see and it's also connected to the header and the TX or the RX pin of this uh ftdi needs to be connected to TX pin which is on the header and also on the esp32 so what I'm going to do I'm going to add these resistors here but first I will make this little bit longer because this will go also to the headers so I will make it longer and here I will also then uh add the resistors I'm going to use zero resistor and when we will be connected this ESP C2 module to the usb2 bridge we need to swap RX and TX very very important okay so notice how this is going to be connected I'm going to copy this net names TX is going to be connected to RX so here okay and RX of this ftdi bridge is going to be connected to TX of esp32 be sure it is connected correctly super important super important as I said one of the most common mistakes or connect think this wrong way save schematic now this DTR is connected here and this RTS is connected here so we need to create this circuit H okay okay we have the resistors but we still need the transistors so I'm going to copy this name and I'm going to search for the transistor in dig key do they have it here are some transistors um okay looks like we can use this one so double check LCSC um they have this okay so we can create the sball B search import we can download the libraries because you can see uh symbol and footprint already exist it will save us some time go inside of the downloaded file and un pack the schematic and PCB libraries delete the downloaded file rename the libraries so we know this is the transistor we will later need this when we will be uh creating Footprints now open the schematic symbol Library we can copy this symbol and simply place it into our library okay close the uh downloaded library and uh we need to also adjust the parameters so designator is going to be Q question mark comment is the part number description is from dig key and uh lcsd part number is from their website copy paste save let's have a look how this uh transistor is connected uh so we need to create this uh circuit which is here we are not going to fit zero ohm resistors but we still need to place the transistors into our schematic so I'm going to do it find them in our library and simply just drag and drop first transistor and we need one more okay now let's go back and we also need to be careful about how these transistors are rotated so use flip X and Y command flip the transistor and be sure the arrows are correctly connected and now 10K resistors remember connect it this way so I'm going to find 10K resistor let's say this one copy and I'm going to place two of them here be very careful about the arrows okay in the transistor they have to be facing the same way as what you can see in my schematic and connect the rest of the circuit this circuit is used to help when we will be using the usb2 bridge to program our board that's why we need this small circuit okay we need to connect it to existing signals so let's have a look DTR RTS I'm going to find these signals on the bridge I'm going to copy DD don't make mistake place it correctly now RTS place it here and the other end GP i z chip pu chip pu copy paste and we split gpio Z so I'm going to use this one button gpio Z place it here okay save our schematic I'm going to name this uh subcircuit Cal signals handling and uh let's name also uh the other parts of our schematic so everyone knows without actually reading data sheet or or you know looking very very deeply into schematic now everyone will know based on this description what these parts of our schematic are doing this one I'm going to call 5vt power selection save and now we can finish this regulator okay um open data sheet and on the input do you remember what we need to place one microfarad to 10 microfarad capacitor here on the input we already have this 10 microfarad 10 volts but we created this one for microfarad 4.7 microfarad 16 volts this is better capacitor so I'm going to connect it here and we are going to use it in this C circuit this is super simple circuit uh it has to be connected like this okay just input and output capacitors we don't have the uh resistor dividers because that's a little bit different variant of this chip this one what we are using is fixed it has fixed uh voltage output don't forget to connect the ground pins also here and um place the power parts so on the input is going to be 5 volts and connect output is going to be 3.3 volts so I'm going to name it like this Plus 3v3 underscore R it's like it's output from regulator okay don't forget to name this subcircuit I'm just going to call it 5 volt to 3v3 okay save and what now now we can connect these headers this is going to be fun and uh there is only one ground and uh I would like to have a little bit more complicated this I'm going to make it a little bit more complicated I would like to have more pins and more grounds so I'm going to use little bit longer header I'm going to find it I always make things a little bit more complicated you know we didn't use the we didn't use same USB to Art we are going to use longer header but it's because uh I would like to improve it a little bit you will see how we will connect the uh extra pins we we will connect there the ground and also power because it's it's very useful okay uh they have this in LCSC so we can use it I'm going to copy dig part number import the parameters from D key and to draw the symbol is super simple you know these are just pins so Place pin press stab we are going to start from one okay and uh we would like to place two extra pins so instead of 22 we are going to place it 24 pins 22 is in the original header okay big yellow rectangle don't forget to move it back so we can see the pin names okay I'm designator comment is going to be p number description from dig key and LCSC par number parameter copy from LCSC website save now we can use it in our schematic dra and drop it we need two of them to flip use X or Y okay I would like to see what Nets are connected in the original schematic to the pins pin one and pin 24 are the extra pin so I'm going to start with pin number two this is going to be the first pin from the original header and uh now connect all the other same as before copy and paste multiple lines it's going to be easier pin number two on this header is going to be basically pin number one on the original header so I'm going to start from this gpio zero it is this one we already use it in our schematic so I will just copy and paste it here as pin number three and now gpio 1 to 18 Place net label T and we are going to do it this way because then it will automatically increment so gpi1 2 3 4 You know and do it up to 18 okay now this one is going going to be extra ground and also pin number 23 is connected to ground and this one is plus 3v3 and we would like to use 100 narat capacitor close to this pin or I would like to use it maybe you don't want to you can see in the original schematic there is no capacitor but uh it's very useful to place these capacitors close to the power pins on headers and connectors so that's why I do it it can help with some filtering and you know maybe improve a little bit the power and uh here is the five volt power again I'm going to put there first the power port and then 100 nanat capacitor okay perfect and uh pin number uh first I'm going to connect also this ground pin number 24 we will just leave it in case you need need this pin you can just use it we will leave it unconnected copy of these virus from the first header because you know it's faster and easier and we need to place all these net names there and also be careful about this us B GPR 19 and 20 uh so let's start with something so I'm going to start from gpio 21 and the USB will connect a little bit later the GPI 19 and 20 uh have a look how we need to place the net names or net labels be careful don't make mistake okay follow the original schematic do it like this you can delete this now I'm going to connect here the chip PU okay uh then this one is rx and this one is DX okay few more pins what we need to connect this one is ground and I will connect those pin number 24 to ground here I'm going to connect 3.3 volts so we have this way we can have the power also on the second header if we need it and now the USB and USB signals are very important so I'm not going to connect them directly I'm going to use again zero resistors same as uh same technique as what we use for gpio Z so I'm going to place them here and I'm going to split them and I'm doing it I'm doing this this way because um USB is sensitive for for PCB layout and by using this zero resistors we can rout these USB signals between the header and uh connectors okay so let's be very careful about n NP and I'm going to connect first to this is going to be our default option double check polarity and the second to I'm going to connect to the header and by default this will not be connected so by default we will not fit these uh two Z resistors connected to these two signals again double check the polarity be sure this correct one of the most common mistakes what you can find in schematics if you are not careful that people swap B and N Signal and connect it to our header 19 is n so this one needs to go here and this one needs to go here okay I'm going to make this little bit longer so it looks nicer and perfect save schematic there is one more thing what we would like to specify for these USB signals we would like to mark them as differential pairs do it this way and place them into special differential pair class we are going to call it D 90 this way Mark all the differential Pairs and because we use the underscore n and underscore p in our schematic in the differential pair net name Alum will automatically know which of the signal is negative and which is positive when we mark this signals with this differential pair directive so these two are not going to be fited by default place there the NF text and save our schematic I'm going to add a note about this plus 5 volts um just to remind us how we can use it or how we can connect it uh so here I'm going to write design node and plus 5 wall can be possibly used as an input power if configured correctly okay so if you have time you can experiment with this especially if you would like to power up your board from the headers I'm going to name this small subcircuit very simply headers okay save schematic and now we need to do something with this uh output from the regulator we are going to use a very similar way as what we did for power selection so we are going to find a jumper which we will use to connect the output from the regulator to the 3.3 volt of our board and uh okay this is something what we could use and uh we are going to do it this way because again if you would like to maybe use 3.3 volts coming into our board through head there you can very simply just disconnect the regulator onboard regulator by unfitting this jump uh it's going to be very simple to create it it's uh instead of three pins we are going to use two pin header so I will copy this and simply just delete one of the pins pin number three to be specific okay update designator copy p number to comment okay almost finished copy paste save we are going to place it inside of our schematic and by default this is going to be uh fitted okay this uh link on this jumper is going to be fitted so the output of the regulator will be the main source of the 3.3 volt to power up all the chips on the boards so I'm going to copy the output from the regulator on one side to pin one and board 3.3 volt is going to be on the other site and by using the link we will short these two together okay again you can use it for experimenting okay 3v3 Power selection okay and here I'm going to add also 3v3 perfect save our schematic and uh what else is missing LED this is the last circuit which is missing power LED so I'm going to find green LED sometimes I don't know why sometimes they use red uh LED on Power and I think a green LED is much better to say everything is okay board is powered up everything is Green Let's Go so I'm going to use this one and double check if they have it in LCSC it's not really like super critical what kind of LED we use uh let's have a look if we need to create symbol yeah we will need to create symbol but you can do it you know exactly how to do it so Place pin pin number one make it a little bit shorter press space bar to rotate if you need like this and place the pins hide the name and this is signator be sure pins are facing out of the symbol the white side of the pin is facing out of the symbol and I'm going to change this so I can see the grid press G make the grid smaller and let's draw the LED symbol okay don't worry it's going to be super simple very quick do it exactly the same way as I do it you can see where you can see the position of my csor okay and uh the arrows press space bar to change the way how the line is drawn we need one more okay okay so this is very simple symbol of a LED don't forget to change the grid back to 100 Ms save it and update the properties of this symbol okay the parameter and uh LEDs are always super useful so uh in our board we will not only use power LED but I would just suggest to use also user LED so once we place this power led into our schematic simply just drag and drop it we will then also create user LED but there is one more thing what we need to connect to this led circuit do you know there is always resistor so in our case I'm going to use 1K resistor I'm going to search for it and it's 1K because uh from my experience this is some 1K will generate the kind of Light which is okay for this kind of LED uh some of the LEDs they are super bright if you use lower resistor maybe like 500 ohm or 300 ohms they can be very very bright it can be disturbing so 1K is just right for me if you like you can use smaller resistor so we need to create this one because we don't have it in our schematic symbol library and it's going to be very quick because we can copy and paste the symbol we just need to import the parameters okay almost finished okay p number one few more adjustments and we can almost use it one more thing okay and copy paste save it go to our schematic and connect this to our LED uh we would like to connect uh one side to ground and the other one we will connect to 3.3 volts you can connect it also to 5 Vols but I like to connect it 3.3 volts because then you know your regulator is working correctly save Matic and I'm going to put here name so every everyone knows this is power LED okay don't forget to save and as I say we are going to copy this and we will create user LED but we would like to use Maybe different color so I'm going to search for red LED or you can use orange or blue or you know any color you like for your user LED but I will use red because maybe you would like to use it if there is an error or something you can Flash it and we need to create it because we don't have it in our library but it's going to be fast because we already have the symbol so import copy the symbol and I think this is the last symbol what we are creating for our schematic well done uh I think this is Artic is almost finished copy paste it here of course there are few things few more things what we need to do in our schematic but this is the last component okay so I'm going to copy this now I'm going to use the red LED be sure you connect the led the right direction okay and I'm going to connect this to a GPI opin uh and I'm going to use this gpio2 you can use any pin you like or you can double check what other pins are used by default on the other development kits and use the same one it's really up to you okay use that led perfect save next we are going to update these reference designators right now they all have question mark some of these I would like to assign manually this one I would like to have J1 this one J2 do it also in your schema think okay change this to j3 this one is going to be j4 then also this ESP 32 two module I would like to call it U1 and um all the other we will assign automatically okay so go tools annotation annotate schematics okay watch right now everything is question mark But when I scroll down these are already assigned so when I click on update you can see Al to me suggesting 61 changes and watch here are all the suggestions questions and these are still assigned by us and these are automatically assigned we still need to accept changes uh so this is what is going to happen validate changes be sure everything is green and uh watch what's going to happen Okay execute changes and everything was executed correctly all the reference designators rest of them all the reference designators with question mark now they have numbers okay double check uh your schematic double check all the connections the uh reference designators and I notice uh we need to assign this differential pair property also to these USB signals okay and also we we need to assign this also here okay keep checking your schematic uh okay be sure the reference designators in your schematic are exactly same as the reference designators in my schematic then it may make the layout easier uh here is uh missing this directive it's not connected okay compare reference designators in your schematic double check all the connections and everything very [Music] important okay so this is whole schematic now we can save it right click validate PCB project and let's have a look if there are any errors oh many errors many errors all of them are about missing footprint so what do you think what we are going to do next we are going to create Footprints go inside of our PCB uh footprint library and this is the first footprint what we are going to create the one which we downloaded so open the downloaded Library just drag and drop it into Alum here is here it is and inside of this Library there are three Footprints a BC and this one so so a if you have a look what are the differences a has the biggest parts so I selected the part and here you can see the size 65 24 if I select the second footprint B version then the path is little bit smaller and this is again smaller and this is uh I'm not sure so we are going to use this B1 the middle one so copy it go inside of our footprint library and right click paste one component we can close the downloaded Library go inside of our library and we can also delete this default footprint which was created when we created the library okay so this is our very first footprint and uh uh save it and there are many layers okay here you can see all the layers you can also change the settings and visibility visibility this is the top layer the red one is top layer bottom layer mechanical top assembly top 3D body so there are there is 3D view you can do it this way or press number three on your key keyboard you can go into 3D view you can see the 3D model press shift hold it down and press uh right button hold it down you can move the canvas go back to to the layout mode and let's have a look what other layers are here um we don't really need many of these we need this one this is the white color on PCB um bottom over L top pce we also need this one this is useful for soldering components top solder that's for the solder mask and later you will see which of these layer we will really need but we can keep all this layer here after the import it's fine we will just not use them in the final production documents so uh okay go inside of our schematic symbol Library find the transistor and now we need to assign the footprint into our symbol so browse in our PCB Library here is the footprint what we have just created okay uh and watch okay now this transistor has footprint uh but in schematic transistor still doesn't have the footprint because we have not updated our symbol yet so what do we need to do do you remember we need to save schematic symbol library then right click and update schematic sheets okay this will update our symbols if they are already used in the schematic now when uh I select the transistor you can see they have Footprints assigned this one doesn't have because we haven't created the footprint for resistor yet okay save this schema think now next footprint this one just drag and drop into Alum again there are four Footprints in this downloaded Library we are going to use the B1 copy it inside of our footprint Library okay very similar many layers you can double check what is on these layers uh we can also have a look on 3D view okay press shift hold it down press right button hold it down go back to 2D View and we can save the library don't forget to save it otherwise you will not see the footprint uh when we will need it close the downloaded Library go into schematic symbol library and here add the footprint so if you wouldn't save the uh PCB Library you wouldn't see the footprint in this list you have to save it always Now update schematic okay we can double check if we can see the footprint there so this is the component and here is the footprint perfect okay this was very quick uh next one the Dr and drop it okay inside we have three again uh we can use this one so copy it paste it inside of our footprint Library okay double check 3D view looks very nice perfect go back to Tod view save our PCB library close the downloaded Library remember the component name and inside of our schematic symbol Library find the component add the footprint find it in the list okay okay and save don't forget update schematic and double check our regulator okay it has footprint the next one would be downloaded is this one it's footprint for the USBC connector here is only one footprint so copy this one and paste it inside of our PCB Library oh very nice 3D model I love it okay save it we can close the downloaded Library remember the component number find it in our schematic symbol Library it's the first one in my case it is the first one and assign the footprint to our USBC symbol update schematic don't forget okay okay and double check perfect okay and the last one from this list so these are the super easy Footprints we don't need to do anything we just copy and paste them this can save a lot of time oh this 3D model doesn't look nice uh okay maybe we should find something different I'm going to save it uh let's have a look uh what is the part number I'm going to copy it and let's have a look if we can find nicer 3D model somewhere 3D content Central is really really good uh website for 3D models oh wow this is much nicer so I'm going to download step file okay download the file here is the file what we have downloaded and uh in our project directory I'm going to create new directory 3D and I'm going to copy that the step file that we have downloaded now go back to Alum go back into our PCB Library I'm going to delete this old model and I'm going to add the new one the one what we have downloaded so it is in this 3D directory selected and we need to place it just left click uh escape and double check uh 3D view okay that's not we need to rotate this so I'm going to change this to 180 and cool perfect much nicer than you know all black I love it okay to The View mode and we can save it we can close the downloaded library and in our schematic symbol Library we can assign this footprint to our switch or button okay okay save it and update schematic okay looks good save it now next maybe these resistors well there are many many resistors so what can we do about them I'm going to search for one of the resistors in dig key and sometimes they have 3D models so oh yeah they have see click here Ultra Ultra librarian or snip magic there are two places so I'm going to download this one I like it more okay this is the file that we have downloaded unpack this integr Library so this time it's a little bit different file this file includes put the schematic and PCB Library together so just drag and drop it and we have to select extract okay now you can see we can open the PCB library and uh there is only one footprint so I'm going to copy it and paste it inside of our PCB Library we can close the integrate Library which we downloaded from snap magic save our PCB library and let's have a look what we downloaded um 3D model looks good but I can see there is the white outline missing around the component if you have a look on different component this is what I'm talking about this yellow layer and maybe this Cross or other layers to draw the outline click on this top over light make it active then Place line and we are going to draw on this layer we would like to six M line WID press G or go on your keyboard change the grid and draw it like this okay so right now we are drawing on top of light because it is active layer and this is going to be the the white line around our resistor save it okay okay press shift s you can activate single layer mode shift s and press shift s again or press shift s again you can change different kind of modes you can see you can cycle between different kind of modes now I'm back in the standard view so press shift as again and you can see the white outline is around our component okay be sure library is saved go into our schematic symbol library and we are going to assign this footprint to all the resistors be sure you are doing this correctly and I would like to say uh right now what we are doing uh we are creating this Footprints as quickly as possible if uh you will be doing this uh professionally then maybe you would like to be consistent with the layers what you would like to use in each footprint right now we just use the layers which were automatically which were created when we downloaded these Footprints okay so each footprint has different layers in your professional Library you would like to use same layers for every component but in our case this is fine if you would like to learn more watch our courses at fed.com they will explain how to create professional libraries okay almost uh finished with the resistors almost all the resistors now they have the resistor footprint okay now we need to update the schema think uh you need to do it one by one uh when you are in this schematic simple Library you need to do it one by one because I think I tried and uh I tried to select multiple components and it didn't want to update all of them at once so do it for each resistor type and it looks everything is okay save our schematic now next capacitor there are many many capacitors so we are going to do something similar we are going to find find a capacitor in D key and we are going to have a look if they have 3D model okay okay oh limited so let's go on uh this snap magic website you need to register but it's completely free so just register and then you can download uh the footprints and symbols and models from this snap magic website okay here it is there is the integrated Library so drag and drop it uh into our project and also there is the 3D model so let's open it in Alum I'm going to open the integrated library or extract the integrated library and let's have a look inside of PCB file but I think the uh inside of the PCB Library I think it will have 3D model included there let's see I will copy it inside of our PCB library and um we don't need this anymore so I can close it let's have a look if there is 3D model oh there is not so we need to place it there click on Place 3D body and select the one which we downloaded uh left click place it into our footprint and we need to you know move and rotate this 3D body tools 3D body placement align face with board select the path and uh a will automatically place and rotate the model the way it will lie on the PCB uh we still need to move it a little bit do it exactly the same way as I do it here okay follow everything what I do perfect this looks perfect okay now we can save it [Music] and maybe what I would like to do I would like to draw the outline around the whole capacitor footprint so again on top of it l layer we are going to draw this yellow line or basically it's going to be white line on our PCB watch the position of my cursor okay if you are not sure where exactly I'm drawing the line okay I like it let's double check perfect be sure it is saved and now we can assign this capacitor footprint to all our capacitors all all for all2 capacitors okay find it here exactly same as for the resistors we have to do it manually for every single one uh there is also place where you can do all these Library updates uh all at once but uh this is much faster and easier and and more simple to explain in this very simple tutorial these are only few components double check if footprint was assigned correctly okay looks like the capacitors they have Footprints we can save our project what next we can go in the order so the first one we already have and we don't have this one so we need to create footprint for this header go to D key I will close this okay and search for our header let's have a look inside of data sheet this is not what we need uh maybe this one and we are going to create food for this component we are going to create it from scratch by ourselves so we need the dimensions and also the whole size okay go to Alum and inside of our PCB Library tools footprint wizard click on next uh this is the one what uh will be good to start with Mills next uh we need to put here some Dimensions so the whole size is going to be 40 Ms and this other size is from my experience I put here 64 this is uh big enough for good soldering and there is still space between the pins U let's have a look what is the pitch 100 Ms and this is not really important because we will delete the second row now here we would like to have 48 because on one side we would like to have 24 we will delete the other one and we need 24 pins and I'm going to call this header like this so when uh you see this in the list of all the footprints you can immediately know what this footprint is about okay save now as I said we can delete half of this component because we only need the 24 pins and we are going to make some adjustments so change the grid be sure you are drawing on top overline layer and draw the outline around these uh pins okay press shift s uh to select everything on top overly layer and I made the line a little bit wider okay save it and we still need the 3D model so click here to download 3D model here is the file go inside copy 3D model into our project now we need to place it so select it press left click to place it and I'm going to adjust the [Music] rotation and we also need to move it it's not exactly lying on the board so use this align phas feature select the model and then select the surface which you would like to have on the top of the PCB and uh we would like to place it into middle so I'm going to move this uh 0 0 position to center of our footprint now hold the 3D model hold it in the middle not here okay not uh in the corner hold it in the middle you can see csor snapped exactly in the middle and place it into the center of our footprint don't forget to place the 0 position back to pin one and double check if uh everything is okay looks good okay we can save our footprint I noticed I place this uh 3D model on mechanical one layer so I'm going to change it because on these other components you can see I'm using top 3D body so select 3D model and place it on top 3D body okay we would like to Mark pin one [Music] location uh so we would like to maybe Place text like number one there but first i'm going to double check JL C PCB capabilities because we are going to manufacture our board in jlcpcb and we would like to know what is the smallest text what we can place on our PCB 6 M and 40 Ms that's what we are going to use so on top overly layer we would like to place string and now here I'm going to put one and what is the text height 40 mil and the width is six okay so this is the smallest text what we can use and place it close to pin number one on our header it's very useful always to Mark pin number one especially on headers and also chips okay save it now go into our schematic symbol library and we are going to assign the footprint to our symbol and of course we also need to up upate our schematic double check if everything is okay okay I can see the footprint also 3D model and now let's do also the other connectors you know when now you know exactly how to do it and first one uh we are going to create this three pin because it's very easy to create two pin from three pin you just delete uh one pin so first let's create footprint for this three pin header and again maybe we would like to create it manually so I'm going to search for data sheet because it's not very difficult to create and also I would like you to learn how to create Footprints by yourself so you can practice single row okay this is what we need here is all the information uh what we need to create the footprint go back to our PCB library and we are going to do it same way so tools footprint wizard next use this this one meals uh now the whole size so let's have a look actually these are squares so we need to double check what is the whole size what we need to fit this Square pin so I'm going to use this simple calculator uh 16 Ms so we need like maybe 28 so we are sure we can fit the header there and put there 40 again this is from my experience uh it's big enough to sold rate and also keep space between pins double check the p but you know this is the small one 1.27 so 50 Ms this is not important uh we would like to have three pins on one side so six in total and uh again use the kind of name which is very clear so from the list of footprints you will immediately know what is this footprint about next finish okay we need to delete half of the footprint now uh we are going to draw the outline but first I would like to change the grid and uh I'm going to do it based on the dimensions so here I'm going to put 42. five and here I'm going to put 10 ms okay be sure we are on top of line and we are going to place line and because we have this very special Grid it's going to be super easy to draw the outline around the header so right now you just learn how you can create your own C custom grids sometimes super useful what else we need we need 3D model so let's download this okay here is the file copy 3D model into our project and in alum place it just left click Escape let's have a look okay tools 3D body placement align face with board first click on the 3D model then on the surface which should be touching the top of our PCB and now we need to place it into middle so again same as before be sure you are holding the 3D model in the middle okay and place it on the top of the pin which is in the middle everything looks okay uh we can save our footprint and uh we would like to also Place pin number one there so I'm just going to copy it and paste in here okay okay we are finished save assign this footprint to our symbol update schematic double check okay and we are going to do something similar for the two pin header it's going to be very quick because we can simply just uh you know copy and paste the footprint what we created and we are going to make a few adjustments so I'm going to rename it it's going to be 1x2 save now we are going to delete 3D model and delete the third pin I'm just double checking where we need to move the this do it exactly the same way what I'm doing uh here in the video okay so you don't have to always draw it you can also write the numbers or change the properties I'm going to find 3D model so I just copied the part number and go to S Tech website find the 3D model here it is download it okay this is the file this is the 3D model go back to Alum and in our footprint we would like to place the 3D model so be sure you are on on top 3D body layer and just place it same as before in 3D view we would like to say what is the surface which is touching PCB here it is and we need to place it into Center so I'm going to move the zer zero position to center of our footprint it's moving in very small GD or it's not snapping uh snapping looks okay okay it's just very small grid so I'm going to move it like this perfect double check in 3D View everything looks okay don't forget to place 0 0 position back to pin number one for this through Hall headers we would like to have it on pin number one and uh assign the footprint to our symbol okay save update double check perfect what is next something challenging we have this one we have this one we have this one here we are going to create footprint for this protection so find it in D key there is no 3D model so open data sheet and uh find information about footprint here this is recommended soldering path layout that's what we are going to create and we are going to do it because I would like you to learn how to create footprint by yourself yourself for any kind of component and this is kind of standard SMD component so we already learn how to create footprints for True Hall headers now let's learn how to do it for SMD component next so this time we are going to use something different you could use capacitors but I'm going to use this resistors very often I start with this U resistors in millimet now smt and here put the dimensions of the parts okay so each wizard looks a little bit different here I'm going to put 0.65 each wizard looks a little bit different because uh you know these components are a little bit different so the wizard will help you to create specific component that's why we selected resistor this time okay it's not perfect we need to make some adjustments so uh I'm going to work with top over line and delete everything press shift s okay don't forget shift s go to single layer mode and uh we are going to draw it again so be sure we are on top of it line six Mill and watch the GD and also position of my csor and draw the outline Maybe like this okay okay perfect now what do we need to do now we would like to find 3D model so on the manufacturer website I'm going to double check oh they have 3D models okay so I would like to download this step file here is the file and this is the 3D model be sure you are on top 3D body and place the 3D model into our foot print left click Escape let's have a look okay we need to use the super useful feature to 3D body placement align face and also we need to rotate the component little bit then place it into middle of our footprint okay grid is again very small so I'm going to change it perfect double check cool looks very good save and assign the footprint so you just learn how to create footprint for smt components and it was not very complicated some people they are really worried or they are really afraid of or scared creating their own Footprints you don't have to be okay next one what we are going to create next we have all these oh esp32 okay this is going to be challenge let's have a look what we can find on internet so this time I use this snap magic they used to be called Snap Eda now they are called Snap magic and they have many many Footprints so let's have a look if they have ESP 32 oh they do so we don't have to create it manually that's very good uh I'm curious how it is going to looks when we import this into Alum uh this is the file what we downloaded so I'm going to copy it into our project and we are going to open this integrated library in Alum just drag and drop it there and let's have a look what they have inside PCB Library this looks good this looks really good so I'm going to copy it paste it inside of our library and we don't need this anymore so I can close it but what I'm really curious about this 3D model let's have a look oh they have also 3D model nice nice nice very nice okay let's have a closer look on the footprint uh especially the pins see this this is not something what we have in our symbol in our symbol we use like numbers only these are all the ground pins and some of them are the extra ground pins so uh we need to change these numbers or update these numbers in our footprint okay so 1 2 three that this is good this is these are the normal numbers for standard pins 63 64 6 62 61 so only the pins around are a little bit different so I'm going to simply just change this to 66 67 always select the pin and just change the designator and we all only need to change or update these few pins and then our footprint is going to show EX exctly the pins what we have in our symbol this is very important because this is how Alum knows where the pin in the symbol is connected in the footprint these numbers has to be same have to be same okay 73 that's the maximum number and don't forget to save it go into our schematic symbol Library assign the footprint okay save the library uh go to [Music] schematic uh oh we didn't update the symbol so go back uh right click and update schematic okay double check oh okay now it's fine save our schematic and what is next we have this [Music] one this one this doesn't have any footprint this is a very special component so everything what we need to do is change this to Mechanical okay type mechanical very important and uh that's it just save and update schematic okay double check type mechanical perfect and how many we still need to [Music] finish oh only one footprint for the LEDs so I'm going to copy the LED part number we are going to have a look if we can download something or if we need to create it what is inside of data sheet here is the recommended solder path footprint uh so as before we are going to create this footprint for the green o4 O2 LED go inside of our library I would like to see also the data sheet so I'm going to make everything smaller and you know how to do it tools footprint visard uh and we could use these diodes but it's not really important I'm going to use resistors again there are no big differences between wizard for capacitors Di and resistors don't forget we are creating smt component and use these numbers from data sheet so 0.7 and 0.6 uh 1.55 minus 0.6 0.95 and I'm going to call it led o42 green later you will see why I put there G uh we need to adjust the outline so press shift s uh you can work with single layer I deleted the top of line now this is pin number one pin number one is cathod very very important we have to create pin number one in footprint as cut so uh when drawing this outline I will leave a little bit more space where pin one is located so we can mark this pin number one in this footprint so everyone will know pin number one in this footprint is cathod this is very very important okay save now here are the dimensions and positions in case you need to double check it with your footprint and uh I'm going to adjust this snapping snapping to create uh off so we only would like to snap to greet and not the other objects and draw it like this okay don't forget to adjust size make it nice and uh double check okay pin number one is cuted it is cuted in the symbol and also in footprint we would like to download 3D model so I'm going to use this uh 3D content Central again LED o42 and here are all the kind of colors so for this one we would like to use green 3D model download it here is the file copy 3D model inside of our project and place it on top 3D body layer on the top of our footprint let's have a look how this green LED is going to show show up in the 3D view nice this looks nice uh I would like to see which one is the cut on but first i'm going to place it on the top of the PCB and and uh in data sheet have a look this is the marker okay cathod cut is this direction so here is the marker and this is good we just need to move it so 3D model is oriented the correct way the cut is on the left okay perfect and this is 3D model of our green LED Cod is there Cod Okay C on pin number one very important save we are going to assign this for footprint so be sure this is the green LED update schematic and double check here okay now we only uh need to create the footprint for the red LED it's going to be exactly same as the one what we created just different 3D model so right click and copy right click paste I'm going to rename this to R right LED delete this 3D model and uh go to 3D content Central find the red model download the step file and we will use it in our footprint okay here is the file copy 3D model into our project top 3D body place the 3D model what we just download it and in 3D view be sure it is place on the top of our PCB and just move it okay the marker is pointing to the pin number one to the cathod save and this is the last footprint what we needed to create so assign the footprint to the LED and uh we are done with footprints save update him I think cool this is the red one save everything now right click validate and double check the messages no errors yes yes yes yes before we import our schematic into PCB go to project project options class generation and be sure this two checkboxes are unchecked like this okay now the most important moment design update and these are the changes what we are going to do in our PCB we are going to import or add components uh we are going to add Nets and a few more things differential pairs validate changes um as you can see most of them will be green some of them are R but this is okay because the net is not there yet execute changes now this is important double check if everything is green everything needs to be green and it means everything was important into our PCB and this is our PCB here are all the components and the black black area is the board what we are going to create in 3D view we can double check uh 3D models of the components it looks really really nice go to view configuration view options and I'm going to change the white background for something better so I'm going to use this uh blue pre settings now it looks much better okay okay okay go to Tod View and uh there are some green areas green it means there are some errors but we will fix this later don't worry and uh if you would like to make some adjustment in the view then uh you can do it here in this panel in this view configuration if you don't see it click on panels view configuration or you can click here on this color it will also open view configuration and uh next what we would like to do we would like to draw board outline so we would like to create the shape of our board and we need Dimensions don't forget our board is going to be a little bit uh longer I'm going to double check what is 25.4 in Ms 1,000 Ms because in our board we will be using Ms you can switch between Ms and millimeters in Alum uh but because everything is in Mills I will keep working in meals okay don't forget uh we will like to use something a little bit bigger our board is going to be longer because we have two more pins uh remember 1,00 and 2,400 70 now go to view board planning mode and um properties GD manager I'm going to change the grid to a little bit bigger so it's easier to draw the outline and uh design redefine board shape uh watch where my csor is I'm going to draw it somewhere here okay do it same way put it somewhere here just left click and start drawing and uh keep the size of the board base on data sheet plus make it a little bit longer okay so this is going to be our board go back to to the layout mode and we would like to move this zero zero position so I'm going to move origin to this bottom left corner of our board I'm going to move these components a little bit up and we can save our board go to tools and switch on this cross select mode there needs to be this blue frame around this icon then once this mode is uh used we can select a component in schematic and it will be automatically selected also in PCB uh we are going to place the key components so USB connectors and hold USB connector here in this pin so place it like this and watch the position of my cursor okay watch where I'm placing the connector okay do do it also for the other one but this time we are going to hold it uh where this other pin is okay perfect I'm going to save everything next the two headers and we would like to see how they are oriented on the board so I'm going to double check here is the sp32 and you can see it is 3.3 GP 0123 so and it's 1.27 mm from The Edge so it's this head there GP 1 to3 uh we need to rotate it press uh space bar to rotate watch where I'm going to place it okay like this okay this is the header what we would like to have here uh maybe we would like to have this header from the bottom I I'm going to place this header on bottom layer but watch what will happen with the pin number one it uh it's now on the other end so we have to rotate the header again and place it again okay ground 3.3 Vol gpio 0 1 2 3 and in 3D view now you can see the header is on the bottom okay so this is what I would like to have in our 3D view when we finish the board because this 3D model of your board then you can use it in your projects when you finish your board you will have 3D model of your board be sure you place it exactly into the same location where I have it double check the pin position so reset GP 465 okay okay that's exactly what we have here perfect now we would like to work with Filter a little bit select all the components and we are going to lock them use this log so this means you can accidentally move these components if you would like to unlock them you need to double click on the component reset our filter save everything and let's place the module usp32 module do it exactly the same way as what I'm doing hold it uh this pin is and place it here lock position of the module okay save our board and next we are going to place this uh reset and boot Button so the first one is going to be reset okay press space bar to rotate I'm going to change the grid to change the grid press G on your keyboard go and place it here okay when you select it you can see the position here place all the components in your board same way into same position as what I'm doing here because because then it will be easier for you to do layout be sure the rotation of the uh switches is correct and adjust the position lock the buttons okay perfect keep saving so you don't lose your work land I land this the hard way press space mark to rotate place it here 710 and 770 be sure pin one location you have exactly the same way as I have it so rotation is 270 now the regulator 780 290 rotation zero okay I'm going to lock this one and also this one next the jump pairs place it like here here 375 550 and the second one this is uh connecting the regulator and 3v3 1,375 500 okay lock this one and also lock this one we would like to hide these uh designators there are many many many designators and they can be quite annoying so select filter only we would like to work only with components and hide designators watch what's going to happen just click here okay this is super simple way how you can hide designators don't forget uh reset the filter so you can work with the components and I'm going to move them a little bit closer to the board so we don't have to always zoom in zoom out so much and also this two perfect this is much better save you can see how these pins are connected the yellow lines are showing you the connections but I'm going to hide it because right now it's really disturbing we don't really need to see them uh and I also reset the errors so we have everything nice and righted we don't need to see the errors right now save again and uh these are all the layers which are on our board so right now we are working with top layer this is the bottom one mechanical one U this is very unusual because what is this this these are like 3D models uh let's go back to our PCB Library maybe I place 3D model on wrong layer yeah I I by mistake I plac it on mechanical one it should be on top 3D body if you make any changes in uh PCB Library you need to update your PCB with this new footprint so this is how you do it okay if you need to adjust any footprint you need to then update PCB now have a look see all the 3D models are correctly on this top 3D body layer perfect so we don't really need to see this mechanical one layer top assembly uh we don't need this one we don't need this one we are not going to use these layers for manufacturing so I'm just switching them off so we don't have we don't see so many tabs in this view okay okay these are like most important layers use shift as uh to move between single layer mode and the other modes save everything uh we are going to create these layer set so this one is going to be default and we will create them because it's very easy then um save some specific views so this one is going to be the top view I only enable the layers what I would like to see in this top view and save it now the next one is going to be the bottom View and we will enable bottom layer and bottom over line okay active layer is the bottom layer save it top and bottom you can create also all this view by yourself because very often you would like to have a look only on the top layer or bottom layer of your board so they are very useful you can switch between them through this LS button see LS top okay or you can switch between them here in this drop down this is the bottom view super super useful I recommend you to create this always okay we can save our board we are going to place components around this connector so first uh select this protection and then press shift select the other one and also the third one we have three of them selected you can see all of all three of them are here and then we can use these tools component placement reposition selected components and exactly in the order how we selected them we will be placing them on our board one of the most useful features in our be sure you rotate the components correctly you can see where the pins are connected so I'm going to use space bar and rotate it like this space bar and rotate and place it like this always when you are placing components think how they are going to be connected to the other pins okay so I'm going to place this one here these are the protection components and let's have a look where they are connected oh this one is connected here press control and left click you can see where they are connected okay control and left click and then control and left click into empty space and possibly you can use square brackets to adjust the intensity this supposed to be connected to this VBS but I don't see it here there is something with B for mhm so the name of the pin is little bit different see in our symbol we call them differently so we need to correct these uh pin names in our footprint I'm going to remove this and also here here and here and here what do we need to do now we need to save our library and then we have to update our PCB don't forget now we have the correct footprint in our PCB but it still will not be connected you see now there are proper names but they are still not connected there is no net name so we have to go into our schematic and we have to Now update PCB with all the connections new connections to these new pins what we just created okay so what's wrong oh also these pins they have different names so here they are 1 2 3 4 and in our schematic symbol they are called S1 S2 S3 S4 so we need to also update these pins select it put here S1 S2 S3 so always read the error messages they will explain very um clearly what what the problem is many people complains they can't fix errors but if you read the error messages correctly you will be able to figure out what the problem is okay now this looks fine let's try to update our PCB again good validate perfect everything is green execute everything is green okay okay uh reset error markers so we don't see the green color and now now this looks good this looks correct okay next let's place these two resistors so press shift holding down and left click select also the capacitor reposition selected components okay so this is the first resistor again Watch where it is connected it will help you to find the right place for the component okay and there is also a different method how you can see where something is connected you can press shift hold it down and just hover csor over a path or but I like to do it different way so in settings what I'm going to do I'm going to enable this uh highlight even without the holding shift down so I will uncheck this now when I hover over a pin automatically I can see where it is connected super useful okay perfect perfect I'm going to save everything and uh because we use this component placement reposition selected components very often I would like to place it here some kind of shortcut so right click here customize uh find the command here reposition uh selected components and uh simply just drag and drop it into this component container okay close now when you go here you can see this is the reposition selected component so we can very quickly access this command because we use it a lot also go inside of these nets and we are going to assign a color to the ground net because there are many many ground pins so I would like to very clearly see which of the pins are connected to ground you can use same color what I'm going to use 22 three okay and uh we need to enable this color so U enable it or you can press F5 try F5 on your keyboard yeah it should look like this perfect okay you can save the board like here now in this PCB panel these settings are are also important because they can help you when you are working with board uh play with these settings and uh learn what they do if your view looks a little bit different from mine double check these settings okay we are going to place components around this second USB connector so left click to select this one press shift hold it down left click left click use reposition selected components watch where these components are connected and if you need to rotate them and also have a look at the position where exactly I'm placing these components and notice where I'm holding these components when uh when you when I'm placing them okay sometimes I'm holding them in the middle sometimes I'm holding this component where a path is okay I'm double checking where the parts are connected save now rest of the components around the connector again use reposition selected components command and place this okay okay next we are going to place components around this USB to Art chip so let's start with these USB resistors very important resistors I'm going to place them here okay next these capacitors and these zero resistors we need to place them close to the Power Pin watch where it is okay okay so these are two capacitors and now the zero ohm resistors and I'm going to place them very special way I will place them on top of each other so we can only Feit one of them for safety reason and then later we will remove this S screen which goes over path okay very useful trick placing components this way later we will fix all the errors for now just uh ignore the errors the green color these are the coupling capacitors for vcci iio and 3v3 out so pin 10 this is pin 10 okay I'm going to place it here and here is the second pin so place the other capacitor here and this is the zero Ohm resistor next reset pin number 11 you can you can see where these components are connected so this is the capacitor and this is the zero Ohm resistor okay always Place components based on the schematic because a position of some of the components is super important for example decoupling capacitors you really would like to place them close to power pins this uh voltage divid there it's also useful to place it close to the pin because uh you can only draw very short connection it can make the layout easier and also some dividers are important now the regulator important capacitors we need to place them close to the pins so the input capacitor we would like to place very close to the input pin and here are the output capacitors place them close to the output pin and I'm placing them this way because then there is also very short connection between the ground of the capacitor and ground of the chip oh decoupling capacitors for esp32 you know where we need to place them close to the Power Pin where it is here up here okay press space bar to rotate and place them see pin number three double check pin number number three okay next these two resistors are connected to pin number four and uh there is not really much space so I'm going to place that them maybe here like a little bit further but it's still okay you see where pins are connected okay I just hover csor and you can see where they are connected this these are special resistors again uh we will use the special technique to place them so only one of them can be fitted we will place them very close to the esp32 so the connection between these resistors and esp32 is direct and very short and place the second pair of the resistors and move them on top of each other notice I'm holding the resistor where the pin is located okay and again only one of these resistors can be fitted so it's very safe you can't fit both of them at once I mean both resistors on one signal positive or negative now these zero oh resistors [Music] I will find some place maybe here and here okay double check where they are connected okay okay perfect what else this special circuit so select transistor resistor transistor resistor and place them close to the bridge because there is space and they are also connected to the bridge so it will be good good for layout think about how you are going to connect them how you are going to do layout when you are doing placement you would like to make the layout as simple as possible ideally on one layer if it's possible okay connected or placed not connected yet and here are some components around these uh buttons so let's select these two and place them okay perfect only few components are left so this one goes to the other button I can place it here components around these headers and the LEDs so first the LEDs here is some free space so I'm going to place them here okay and the second one I will place the second one uh on the opposite side of the board I will double check what is the position so I will change it and I like to place it symmetrically so you know it looks nice so change position here okay here are the LEDs okay and double check the orientation uh I will rotate this okay okay and U this capacitor goes to pin number two it's here so I'm going to select it and place it okay now this one pin number one it's here and uh it's this capacitor C4 place it close to the Power Pin or the pin with power and this is the last one it goes here okay all the components are placed now let's have a look on our board wow this is so cool this is so cool we have not connected the components yet but it still looks really cool I really hope you like what you have build how your board looks now if you are building this board uh when watching this tutorial before we connect this board we need to set up some rules so design rules and clearance H this is the space between object uh on our PCB so let's go to jlc PCB manufacturing capabilities and we are going to have a look what is the minimum Trace with and spacing for four to six layer minum Trace with 3.5 and spacing 3.5 mil in our case this is 10 ms uh we can keep it 10 ms is okay and for the WID preferred 10 ms Max WID is going to be a little bit wider 100 100 and minimum we can leave 10 for now uh routing vas so what is the smallest via what they can do um not here here minimum V Hall multilayer prefer 0.2 0.2 mm what is it how many meals 8 Ms okay I'm going to use 12 Ms maybe you don't want to use like minimum values it can make your PCB a little bit cheaper and uh via diameter I will use 24 Ms let's double check what is the size in millimeters so 12 Ms is 0.3 the whole size is going to be 0.3 mm and the V size 0.6 that's the 24 Ms okay sold their mask expansion by default they have four meals let's have a look what are the capabilities what jlcpcb can do sold their mask 0.038 1.5 mil so we can uh maybe use two meals okay so double check all these These are the basic rule most basic rules what we need to set okay and save there are still some errors uh can we do something about this I'm going to double check what are these errors about here in this list component clearance we know about this because we placed components on top of each other so there is collision between two components r24 and r26 uh see these are 24 and 26 this is the same error same problem and same here two components on top of each other um remember these numbers we can fix these errors so go to design rules and uh find component clearance these These are the default values but we are going to add new rules or new rule and we are going to make this exception R 24 R 26 component are 24 so this is the first object and the second object is r26 and here we specify distance between these two resistors is going to be zero okay so we created Special Rule which will basically ignore that these two components are on the top of each other do it also for R23 and r25 we need to change it here okay and duplicate again there is one more exception what we need to create for R1 and R2 I'm going to set it inside of the rule okay double check all the rules you need to have them same way now watch what's going to happen press okay oh okay they are gone so these errors are gone and there are still these errors so again let's double check what these errors are about clearance constraint so the paths are too close to each other less than 10 ms okay if you would like to measure or this between objects use report measure Primitives and select the objects 7.8 mil clearance between these two objects okay 7.8 uh let's double check capabilities of jlcpcb how close we can place PS Pat toat clearance 0.27 that's the minimum what they can manufacture and that's 5 MS okay so we can basically create a special exception in rules in our clearance that uh two paths distance minimum distance between p and path can be six M it means this should be okay for our board watch what's going to happen Okay error is gone to clear this one press shift C on your keyboard and uh save our board okay what next next we can start maybe connecting something watch where these pins are connected be sure you are on top layer and to do PCB layout or Draw tracks okay press T you can change the width of the track be sure it's 10 ms and just left click and maybe change the grid and left click now we would like to go from the top of our board to the bottom so I'm going to place a via and do you remember the size of oura 24 and 12 Ms be sure it's set like this and place it okay so this V will help has to go from the top to the bottom of our board okay save now make the bottom layer AC and we are going to draw track we can also do it from this uh toolbar and simply just connect the Via with the part and this is our very first connection yes finally we are we are doing PCB layout let's have a look where these other parts are connected uh this is a little bit complicated we can connect uh this uh next one so I'm going to copy existing connection when you use copy command you can pick where you will be holding uh the objects after you paste them so I picked the position exactly where the path is and then it makes it easier to paste it directly on the top of the p and uh now draw the connection on the bottom layer go very close to the pins like this okay perfect be sure you are on top layer and I'm going to make this connection a little bit longer because uh we don't want to have all the vas in one row and a little bit later I will explain why we would like to have it this way and this is interesting you can change routing modes watch down here what routing mode you are using walk around obstacles see press shift R you can change the mode this one is stop at first obstacle outo route ignore okay all the kind of routing modes you can find them all here and U I will uncheck this because I only use some of these and when we are here also one check this allo V are pushing we don't want to push vas when we will be doing layout so walk around obstacles shift R push obstacles shift R stop at first and ignore obstacles walk around this is what I'm going to use okay walk around obstacles use the same routing mode and go around the already routed tracks and and the pins this way we can route very close to the tracks because we don't have much space we need to Route this way okay now I'm going to copy this and I'm just going to duplicate them do it like this okay so we would like to have a lot of space between the vs because when we will be doing um planes and ground planes we would like this ground to flow between the vas if we would place them very close to each other there would be no space for the ground flowing between vas later you will see when we will be doing this okay I'm going to copy this one and paste it here and also here I need to place this short one okay and uh down here and also here these are same Nets so we can place them like this and also maybe one here here okay this will be connected on the top so we can save our word and we can continue we don't need to see this uh layers so I disable them or hide them and I'm going to continue doing layout on the bottom layer use the walk around obstacles and Route as close as possible to the existing tracks as I said we don't really have much space so we have to do it this way okay this is super simple because of the connector pinout is designed the way that it's very simple to connect to the esp32 module okay connect this one and also this one how do you feel doing PCB layout I hope you like it I love it okay now now I will make it a little bit nicer you can just uh hover csor over the track and then press left button hold it down and you can move the track okay don't forget to save before we continue we would like to place V vas for ground and power pins do you know why because now when we place the vas then uh after we continue drawing the tracks on the bottom layer we can very nicely go around these vas but if we would continue drawing the tracks on the bottom layer and then we would find out oh we need vas in this area we would have to redraw a lot of tracks which we already created on the bottom layer so in every area where you are drawing tracks always place all the vas so you don't have to keep Redwing the tracks after you place the vas there save our board and U many pins are connected to ground so what we are going to do next we are going to add two more layers into our stup search for jlcpcb St up we would like to see what kind of four layer stickups are Avail here are four layer and this is the one what I like because the distance between top layer and the second layer is very short so I'm going to keep this open and we have to switch Alum to millimeters so press Q switch to millimet because this St up is in millimet design layers stup manager uh wait a little bit okay so as you can see right now we have two layer PCB keep this checked and we are going to do right click in that layer below signal now we have four layers take up and we would like to maybe rename the layers so this is layer one layer two layer three layer four okay and also adjust the uh thickness based on the stup from jlcpcb website 0.035 mm the electricum is 0.994 and watch because we have the symmetrical St up uh also these changes are happening also on the other side of our PC B between layer three and layer four so that's why I kept the checkbox stack symmetry checked so we don't have to we only need to write it once see all the other numbers are correct uh now I'm going to uncheck this and one of these uh layers I'm going to change from signal to plane this is going to be our ground plane layer three big ground plane okay so this is this stup what we are going to use uh perfect I can make Alum large and uh don't forget to save the St up change back to Mills press q and and now you can see we have four layers so save our board I'm going to show the connections and you can see all these ground pins we can simply connect to this layer three it's a plain layer so go on this layer double click and set this layer three is ground watch what's going to happen okay now these pins with vas are suddenly connected to this ground plane and there is this kind of weird connection on this layer three go to design rules this is called thermal relief so we need to adjust this thermal relief on plane connections to direct okay so all the vas on layer three the ground vas are going to be connected directly without the thermal relief okay now I'm going to copy this via and the connection and I'm going to paste it to all these other pins and this is the simplest way how we can connect all the pins to ground yeah directly connected to the layer three and the layer three is ground plane so basically everything what we need is just a via going out of the path to connect to ground almost done okay now what about this there are still many many ground pins I'm going to hide the connections because I can very nicely see which are ground pins because they are blue I'm going to hide the layer three we don't need to see this layer three we know it's just a plane and I'm going to connect this and notice I'm using a wider track so when you are drawing the ground or power tracks make them wider 20 M for example just press T and you can change the WID in the properties panel I forgot to tell you this when I was drawing the very first uh ground and power connections so be careful okay make all the uh ground and power connections wider I will place all these vas to these ground pins and uh also I will place some vas into middle like this place the vas on the PA so they will pick up the net name you can see inside of the v as it says ground it means it is it is connected to ground that's why I place them on the top of the path because then they will be automatically picking up the net if you place it into empty space then the VR will not be connected to ground automatically okay be sure they are ground vas and later we will draw a polygon there we will connect them with ground copper but for now it is okay let's continue here uh let's draw the connections maybe adjust the WID maybe 20 was too much so change it to 15 and place a via we can connect also this one okay and this [Music] one okay few more ground [Music] pins this is Power Pin so keep it white 15 MS um doesn't want want to go from the middle okay if it doesn't want to Route uh from the middle of the path you can just uh finish the connection and then just move the track sometimes it helps okay right now draw these uh connections and add vas for every single part pad and uh and ground pad and later when we will be finishing our PCB when we will optimize the PCB then uh we will draw some uh copper areas I'm going to work only with tracks and I'm going to change the WID of these tracks because I forgot that these they have default 10 ms so I'm going to make them by their 15 Ms okay okay don't forget to uh switch off the filter and save everything still some uh ground and power pins are down here unconnected okay 20 MS and connect this one here this one here okay this one I can connect make it 10 mil because this is standard signal okay so use 10 ms for standard signal this is very important for all the standard signals use 10 m tracks little bit later when we will be finishing PCB you will see why okay save let's connect all these other or maybe before we connect them uh we would like to place vas into this area I already mentioned before you start drawing tracks in specific area put all the vas there because then it will make your layout faster you don't have to keep redrawing you will simply just go around this vas when we will be drawing the tracks on the bottom layer so connect all the power pins and ground pins to vas few more this is the LED okay now this one and uh this is the button ground okay save and uh yeah we can start connecting these signals on the bottom layer be sure you are using 10 ms because these are standard signals and uh same as before uh we need to Route them very close to each other because there is not really much space so do it exactly the same way as what I'm doing here very close to each other like this okay in case uh when you finish doing this uh routing and you find out you have more space you can always uh make them wider or you can spread these um tracks but uh if you are finishing the layout and you find out you have no more space you would you will need to rout everything so it's much better just route everything as close as possible and then spread it rather than route it somehow and then find out you have to reroute everything okay I will move it a little bit we need some space okay perfect connect it uh here make it nicer now you can see now there are these vas so when we are doing this layout we can very nicely go around the vas and this is going to save us lot of time if the vas are there we would just route in that area and then when we would need place the vas there we would have to reroute everything I'm sure you understand or if not you can you can try do not place the vas and then you will understand what I'm talking about okay nice I board is filling up with tracks it looks more and more professional okay make it nicer when you are doing layout U then top and bottom layer is visible so everyone can see your layout so uh sometimes you would like to really make it uh look nice even if uh from from connection point of view maybe it's not so important but many people will see your board if you can make it nicer and still working very well then just make it nicer okay I'm going to save it next go on the top layer and we are going to have a look where this is connected here here okay okay let's try this one maybe from here go on bottom and continue next one is this one continue on bottom at this stage uh uh you can make the adjustment make the layout nicer but at this stage do not spend too much time making your layout nicer uh because very often you you may need to read out some tracks uh you will be making these adjustments or we will be making these adjustments and making PCB nicer by the end of the layout right now the main goal is to connect all the pins as simply as quickly as possible so we can see if we can make it and also we can see where is possibly additional space which we can use to improve layout okay next one if you would like to learn more tricks and tips about how to design very complicated boards uh don't forget I already mentioned I created number of online courses about PCB layout uh schematic design so have a look at fed.com okay I have designed very complicated boards motherboards so this this board what I'm doing right now is super simple it's it's really fun actually to do this kind of super simple boards okay I like it doing it this way because you almost see you see the results almost immediately when you are building very complicated boards it can take I don't know four months until you know if your board is working or not this simple board you can just create it I don't know and get the board within two three weeks and also they are not very expensive to build so if there is a mistake uh you can very easily fix it or you can just uh build the board even if you are not sure if it's if everything is going to work or not you can just build the board U find out what is working what is not fix it on the board and then just uh you know send the updated board to production it's one of the ways how you can design boards the other one is make perfect design first version will be working perfectly everything will be working or do it quickly and then fix everything and redo it okay maybe we can continue up here so I'm going to connect also these other pins when you are designing very complicated boards you you really would like to be sure everything is going to work because it's super hard to debug complicated boards and also it's very expensive to actually uh build them so there are there are differences between um designing different kind of boards connect this one so here we just need a VR and and uh we need to connect this okay okay perfect have a look where these pins are connected they are connected together this is the LED and notice I uh all the unnecessary objects are hidden from this PCB when I'm doing layout the net connections are hidden the overly layers are hidden because uh you really would like to focus you really would like to see where the free space is and you really would like to see how the tracks look where the paths are that's why they are all hidden don't forget keep saving your board just in case uh these are connected here okay so we can continue do it like this maybe I need to adjust this a little bit to reroute you can you can just go to routing mode and uh you can uh click on existing tracks like what I'm doing right now and it it will automatically re out it see okay maybe I need a little bit more space sometimes there are also features which can move multiple tracks all at once but uh sometimes I don't use them because uh they can move some of the tracks which you don't want to move and if the rerouting or redrawing is very quick I just redraw it okay okay Next One ESP is almost connected it's very quick this this is as I say this is very simple layout so this is very quick keep thinking where you place the vas um because as I said I would like we would like to have some space between the vas because for example now on layer three around these V there are holes yeah so you don't want to have too many holes close to each other because they will break the ground plane okay what else this one we can connect it go on the bottom and just connect it and also this one maybe like here okay and we can connect the some of the pins around the ftdi chip but for I will place the ground via here because it's getting close to the area where we need to Route tracks so I will put here a ground via and also here see if we would be placing the VR directly on the tracks we would have to re out the tracks but we are lucky here here is a little bit of space so we don't need to re out anything and also here is some space so we don't need to read out the tracks on the bottom lot of space for Via okay at the vas here m okay to ground and I'm going to rout it maybe move it a little bit away from the Via like this okay and we need to place 3v3 here okay what else these are connected together so we can place VR here see how I keep redrawing the tracks on the bottom because we didn't place the vs first good example why to place vs first I need maybe a little bit of more space make it nicer okay save everything I'm just checking where these pin are connected so these are the RX and TX pins and we need to connect them to the esp32 so this is unusual there is error so we need to make an exception because now suddenly there is a track to path violation less than 10 ms so what I'm going to do or what we are going to do uh we are going to create Special Rule design uh place this room which we need for the Special Rule name it ftdi and uh notice what we are going to do in design rules clearance I'm going to create new rule which will only apply for this special area where the room is so I'm going to use this custom query and write this within room ftdi clearance is going to be a little bit smaller so what is the smallest one what we can use minimum spacing 3.5 mil oh we don't need 3.5 we can use six Ms okay see now the error is gone green color is gone so it means in this ftdi area we can now rout with 6 mil clearance we have no space here okay I will place it like this and also connect this DX signal or do fun out this is called like fun out when uh you are drawing tracks uh going out of the paths and then they are connected to vas so this is usually called fun out and uh let's continue drawing this connections on the bottom layer Place AA do it also for this other signal place a via here and then we will continue on the top layer so these are one of the longest signals on our board going also from one side top of the board to the bottom of the board from the left to the right almost finished these these tracks are almost finished it's going to be simple connection now just go down and make connection with the resistors zero resistors okay this one is done and connect also this one perfect finish the routing of this RX and TX signal make this short connection and double check okay okay okay okay press control and left click okay if you would like to highlight everything save we are going to continue here around the USB to ur chip so this is power use wider track and uh play a okay I need to make little bit of space perfect go back on top now these ground pins very often if you make this uh kind of fun out and they are same on many components you can just copy and paste them it can save a little bit of time connect this so this is the sense signal make it nicer maybe like this connect also this this is a very simple connection direct connection between the chip and the resistor okay now the ground pins here here these are the deing capacitors first I'm going to connect the ground pin of the chip I'm going to make it a little bit wider okay now ground pin of the decoupling capacitor the first [Music] one some people ask uh why we don't connect all the capacitors or all these ground pins which are close to each other why we don't connect them together and then use one via uh we place as you can see we connect each part individually and each of them has its own VR so uh it's better okay if you can uh for power pins uh ideally you would like to have one VR per Power Pin sometimes it's not possible then you can connect more power pins together but if it is possible then use one V per Power Pin make it a little bit wider okay so connect the power okay these are the DEA capacitors and these are the zero ohm resistors this one is connected to 5 Vols these are the reset pins or reset parts [Music] I would like to see the components clearly so this is the 100 narat and this one is the capacitor for the reset okay so if you would like to identify uh the components you can uh play with this overly layer you can select components in PCB and they will be also selected in schematic so you can very nicely find out which component is which but because this is very simple schematic uh you probably remember all the components okay so this ftdi this is a power uh and uh we would like to have wide and good connection but we need to connect it to the other part or other side of the chip so we need to use a via and a little bit later we will figure out how we connect this uh bottom left corner of the chip with the top right corner of the chip where the f where this uh 3v3 ftdi continues make it wider and connect it okay uh we can connect these ground pins they are simple ideally this uh connection the power connection and ground conne ground connection to these power and ground Parts you would like to keep them short these are USB signals so we will route them a little bit later uh but we can connect this capacitor this is super simple to connect okay and connect this perfect we will R the USB signal a little bit later because we need to do few settings before we start routing differential pairs so first just finish these other pins we need to connect also this uh middle path or it's called exposed path we need to connect it to ground so Place ground ground vas here okay this is also connected together so this is the second part of the 3v3 ftdi power and I'm thinking how to make space because we need space for the other pins maybe like this save now let's have a look what we need to [Music] connect many pins connected here this is the power uh also we need to connect this one okay so I'm going to hide it again and let's connect this one be sure you are using the correct width 10 ms go around the existing tracks and maybe here we are going to change the layer and continue on top layer Okay small adjustment what next this and this maybe we can connect this so uh we can connect this on top layer directly okay and also here this a simple connection connect these [Music] pins it looks really good now this small circuit which is helping us with the signals for programming ideally we would like to connect everything on top layer and because uh we created really good placement it actually it may be possible let's try it [Music] okay oops okay and this one go down here and connect to transistor these two together maybe like this this is the button okay and also here contrl left click into empty space to UNH highlight everything this one so control left click because we would like to see where it is connected and we can draw the connections I will do it this way okay okay and uh we have to connect it to the rest of the circuit we need to connect it to esp32 so let's do it this way we still have lot of space on the bottom layer oops oops okay let's let's try a different way let's start from here and connect it okay no on top layer save what else differential pairs but there are these ground Parts in the way okay so first I'm going to connect all these ground pins and later we will route the differential pairs so let's do it and this big ground uh part uh it's from the regulator and the regulator may be getting warm or hot so instead of only one V what I'm going to do I'm going to place there multiple vas okay all this uh we would like to cool it down it is the regulator here everywhere here I would like to create a ground area big ground area which can help us to cool down the regulator place four VAs on top of this big part because uh then the vas are connected to ground and move them like here oops uh I'm going to use filter I would like to only work with vas much better okay so place the vas like this and we are going to create the V so I'm going to select all the vas press shift hold it down and copy all these vas and paste them here oh notice they are not connected to ground so go back and we're going to use this special paste check keep net name and watch now when I paste these vas they are connected to ground very useful feature okay one more row and uh lock this vs because there is a special feature in Alum automatic Loop removal removal and look also this and if you sometimes try to connect these vs some of them may be automatically removed because they create Loop but when you lock them down they will not be removed don't forget to turn off the filter save our board and uh let's have a look what is this this is the output connected to these two capacitors and we would like to connect this ground to the ground of the capacitors so I'm going to do it this way uh this is a main power so I'm going to use multiple vs for several reasons but uh one of the main reasons why you would like to use multiple VAs on power is uh there is a limited current which can flow through one via so for power rails you may need to count or calculate how many vas you need there are useful calculators for example you can use free calculator it's called Uh Saturn PCB toolkit very useful software uh which can help you to calculate all the kind of different values which you may need when you are doing PCB layout okay Saturn PCB toolkit remember or search for this software I'm going to connect the decoupling capacitors and the output of the regulator see this is the automatic Loop removal did you did you notice the track was a automatically removed uh later we will put polygons there but right now this is okay I always keep saying later we will put the polygons or or big coppers there uh the reason is because when you are doing when we are still doing l oh oh we need to create this special area also here because we are getting problems uh so I'm going to draw a room I will finish about the polygons little bit later so first I'm going to create this room I'm going to call it USB C2 and I'm going to adjust the rule which we used for the clearance I'm going to here I'm going to add here this additional condition so in this area we can use the six mil clearance okay and I I'm going to continue about the power PL so right now I don't create these big copper areas because it's hard to see through them I'm going to create same room also here on the second uh second USBC connector and if you create uh too many power planes too many uh copper pors then uh it just makes the layout harder because as I said it's hard to see through them so right now when we are connecting all the pins I don't use the copper PS we will do it when we will be finishing the layout okay create the same rule also here uh and let's continue connecting all this other pins [Music] it's a little bit thinner so instead of 15 I'm going to use 12 okay perfect connect also this one if you don't know what is the copper pool or polygon later you will see but basically these are uh not tracks but these are like bigger copper areas we will use them for power you will see later first just connect this okay few more pins and uh these components around this second USB connectors are almost connected place a via okay also here make it a little bit thinner 12 MS place a via save and uh double check where everything is connected okay so these are the USB signals this is power from the USB we can connect it uh uh we would like to make it white so I'm going to change the width to 20 and uh maybe connect it like this okay okay make it nicer oops [Music] okay perfect uh later we will create polygon there so for now just ignore it uh next I'm thinking this we can connect this so these are the uh 5 point 1K resistors if you would like to learn a little bit more about this USBC connection and these uh resistors uh then uh you can also have a look on my other tutorial where I was creating uh very simple USBC five Vol power supply but uh very simply to explain this resistors specify what kind of current and voltage this USBC connector can deliver and now we are going to do something very special we are going to learn about impedance so search for standard digital track impedance and you can see it says 50 ohms what does it mean it means all these tracks standard tracks should have 50 ohms what is 50 ohms search for jlcpcb impedance calculator 50 ohms is impedance so go on this website and we are going to double check what is the track withd on our board for 50 impedance so for our PCB stup 3313 this is the stup mod we are using Okay 3313 you can see this calculator is saying outre WID should be 6 Ms I will double check if we can manufacture 6 Ms so minimum was 3.5 it's okay we can manufacture six Ms uh and don't forget this number okay later we will apply this we will go back to this but now search for USB to zero impedance and it says the these tracks should have impedance differential impedance 90 or h s go back to calculator duplicate this and we are going to have a look what kind of uh WID and space we need to use for 90 ohm impedance uh Space six will require 5.5 Trace WID I will change the space to eight and then Trace with the six Ms okay for 90 ohms for our PCP stup this is what we are going to use six M with and Trace and the space eight Ms so go to rules and we are going to set up this differential pairs routing based on the numbers what we just uh calculate these are the numbers what we need to change so Trace WID 6 Ms Trace space 8 Ms minimum with 6.3 minimum Gap 8 prefer 6.3 minimum 8 uh and I don't want to use exactly six because these are the tracks of differential pairs uh and for our 50 ohm we will use six m a little bit later you will see why I didn't want to use six Ms also for this differential pair because we will do some filtering and inside of the PCB we can specify also what kind of WID and Trace space we need to use but uh we will not be routing this USB inside of our PCB I will just fill up these numbers here to give you an example so if you have more complicated board you need to fill out also this uh specification for differential P also on the inner layers not only on top and bottom I'm going to this uncouple length here 500 M and I'm going to apply this rule to our 90 ohm tracks save everything so this is our USB this is the uh these are the this is the specification of our USB differential pads and here you can find all these differential pairs which is specified in the schematic okay these are all the USB signals differential PIR USB signals I'm going to use interactive differential PIR routing and connect this okay uh 10 ms so let's have a look what the problem is um mhm minimum Gap is 8 MS in our differential pair so uh we need to make new rule I'm going to call it uh div 19 clearance and for these differential pairs we will specify that they can have a little bit smaller clearance than the default 10 ms so if something uh is uh in a differential pair class called D 90 then it can have minimum clearance eight Ms okay this should fix the problem okay perfect and uh I can make it a little bit nicer maybe like this I will route it okay m okay I'm going to save this and uh maybe double check so measure the distance between them it's 8 Ms okay perfect and what is the with 6.23 why 6.23 uh it's it's supposed to be 6.03 um let's delete this select one and then press tap you can select all the other segments connected to the track I'm going to try to Route it again um here I'm going to set 6.03 okay now it looks it's r think correctly 6.03 okay I'm going to make it nicer again so uh when you uh try uh doing layout of this differential pair for very first time double check okay if if the size of the track is correct oops go back U maybe delete this and try to connect it again okay I just would like to make it a little bit nicer okay okay perfect delete this maybe not like this I would like to work only with tracks and select this okay Del it perfect don't forget to switch off the filter 603 and the gap between them eight perfect okay so this is exactly how our differential pair should be routed now it should work when we continue so save our board and let's connect this and this I'm going to F out these parts it's a very short track going to Via and I'm going to copy this because for differential PS We would like to have the connections the tracks uh symmetrical they should have same length and let's draw this differential pair okay okay maybe like here here and when you use plus and minus you can automatically insert vas okay plus and minus will change the layers maybe I would like to move it a little bit so if you would like to move something select it first and then move it if you do not select it if you just try to move it then it will uh keep the connection it and it will be moving the object uh also together with the connection if you don't want to move it with connection select it first and then move it these are the default Alum settings you can change them in preferences if you would like to use different Behavior but that's uh that's very uh good setting no need to change it okay and connect it on the top layer so we routed our first differential p there on our board it looks good it looks nice okay maybe small adjustment okay h no maybe like this I like it okay and don't forget to save your board in this places where we are changing U layers we are going to put ground vas and uh these vas are called stitching Vas and uh they are needed when uh signals are changing reference planes right now we don't have ground plane on Layer Two so right now uh they are not connecting the ground plane on Layer Two and layer three but later we will create the ground plane or on layer to we need to do it also on this uh other side and if you don't know exactly what the stitching vas means why we need them uh then uh have a look on my fre YouTube videos uh in some of them or in number of them we are actually talking about this topic why they are important for what frequencies you can see also some simulations where or when these uh stitching vas are used or when they are not used how far away we may want to place them yeah very interesting topic I'm going to lock them down so we are sure uh they will not get moved or lost and uh we are going to connect also these USB signals I'm going to do fun out manually I would like to have exactly same on the other side so copy and don't forget uh use X and Y keys to mirror or flip we are going to do fun out also on the other side of this USB so I'm going to Route USB signals down here and then we will connect them on the bottom layer um plus or minus go on the other layer vas are automatically placed but I would like to move them a little bit uh maybe I delete I will delete this and just place the VR and also this one so select and then move it and I would like to have them a little bit further from each other maybe like this okay now I can connect it but effect now go on bottom and uh connect this vs together okay down here perfect double check double check the WID and space everything is okay shift C to hide the dimensions and save we would like to uh draw the connection also here but there is uh error so let's have look inside of the rules what's the problem is this is the priority One 8 mil and the lower priority is six Ms so we need to actually swap the priorities select this and U okay select this and increase Priority First highest priority is six mil and then the second one is 8 Ms let's have a look perfect this is exactly what we needed sometimes these priorities are very important okay you need to be aware there are priorities in the rules now we can connect it and uh as I mentioned before uh when we were drawing sematic this connection uh or this layout is not perfect because there are very short stops uh which are connecting the first uh USB pair and the second USB pair on this connector uh I this is not like really proper way how to do differential pair layout but for this board it is okay and for USB it's okay and it's very small okay uh this uh stitching vas what we placed here we don't need to place them close to the connector because uh there are all all already many ground vas but uh we would like to place them here so I'm going to do it and stitching vas they help with return currents okay because uh each signal it needs to have also return current you know even battery has plus and minus power supply has plus and minus so currents flow between plus and minus watch watch the net what is this you can see down in the [Music] toolbar okay let's connect this second USB hide this we would like to have nice and direct connection between these pins and the resistors and uh doesn't look like nice so I'm going to delete this I will try to correct it somehow make it nice delete um I have to delete also this okay let's try it perfect now delete this and let's try it okay maybe move it little bit oh okay okay perfect looks nice now very difficult task what do you think what is difficult task watch we need to swap here is p and here is p here is n and here is n we need to swap these uh pins how we are going to do it do you know we need to route on the bottom layer so we need to place vas here and uh going on the bottom layer we help us to swap the signals or the tracks very useful technique I use it a lot if you need to swap something change layers okay doesn't look very nice I will correct it okay ah this is nicer delete this now copy and paste don't forget don't forget X and Y save we are going to connect the connector to the uh ESD [Music] protection so draw it very similar way as what we did on the other connector we need to connect these two positive pins together uh make it nice short important is make it short small so it doesn't influence the signal too much uh we can connect this directly then connect the second negative signal or negative path and connect the positive signal okay I will adjust this little bit I would like to have it uh very similar way is what we have there this tricky doesn't want to snap there okay um let's make it this way I don't want to work with grid I I switch off all all the snapping points and I will just draw it like this okay put everything back so csor will snap to G and uh snapping points save and uh we are going to connect this on the bottom layer so uh This Way notice we will swap the n and p signals together again this is uh not the most optimal way to Route signals because one of them will be a little bit longer the other one is a little bit shorter because we are doing this very um sharp turn but for this USB it's fine connect the ground pins for some very high speed signals it's super important how you actually route these differential pairs but for this USB it's fine it's not so super very high speed connect also these ground pins and again in this place we don't have to put stitching vas because you can see there are many ground vas anyway so these are like stitching vas okay make it nice now what next maybe we should finish this so I'm going to continue and connect rest of this ground pins app AA okay some of the people they are um talking about the what is the right angle for tracks going out of the paths uh maybe you notice u in this design most of the time I'm going up out uh through the corner or directly so there are no sharp corners but uh I think these sharp Corners in PCB layout uh are not problems anymore but if it's possible U then uh you can do it exactly same way okay don't use sharp angles in PCB layout sharp it means less than uh 90° okay connect also this one okay save and power we would like to use white track connect these together and also the protection jum and the capacitor connect it maybe like this and we need to connect it also here so I'm going to draw this connection on top layer and do it like this okay like it this one we need to connect this plus 5 volt so zoom in contrl left click so we can see what we need to connect together uh we need a v so I'm going to place one [Music] here and U we can connect it now this uh drall pins are uh sometimes very useful when you need to change layers so don't for foret if you have through Hall pins then you don't need extra vas you can use the through Hall pins that's exactly what we are doing here so we use the through Hall pin as a VR on the top we will Draw Bigger polygon a little bit later so don't worry about the thin track and here I'm going to use very wide track because it's main power and uh make get a little bit nicer maybe like this okay I'm just thinking if we can do some improvements save it um this one we still need to connect this uh how are we going to do it IDE we would like to connect it on the bottom layer so we need to somehow move these tracks which are in the way so I will I'm I'm making space to readout the tracks be like this could this help we will see can we go around okay and also this one is in the way okay now we should be able to connect the FDI power but I don't like this can we improve it somehow [Music] so this is the connection what we need but I still keep thinking uh how to make it better okay this looks okay this looks good we need more space here so basically we are finishing layout and this is what always happens when you are finishing layout uh you will start redrawing more and more connections because there will be less and less space um so if uh if you are using for example outo outer or if you are just very new in uh in uh in layout you will be like oh this layout is super simple super simple and first 98% is always super simple to connect but the last 2% of your layout that's what is difficult to connect I still keep thinking how to make it nicer I don't like these too much let's try it this way let me move this via little bit okay now there is enough space okay okay I like this more I I will just make it nicer and uh this is what I will keep okay because we are finishing layout you can you can also keep making everything nicer if you see something what U what you would like to improve then you can move it I'm moving this for example make the spaces uh same or bigger or remove unnecessary bands and we need to connect this because we moved the VR we still need to connect the top [Music] layer maybe like this here is problem less than 10 ms okay okay don't forget save what else we still need to connect this this is the regulator and jump PA together again very important power so we would like to make it wide I'm going to make it wider um doesn't want to so go to rules double check what's the problem is Max maximum WID we need to change it to 100 Ms on inner layers because it was 10 ms that's why it didn't want to work uh make it wider and connect it okay okay okay and only one more net left 3.3 volts okay let's connect this we are almost uh finished with connecting all the pins this is the last net what we need to connect it doesn't mean layout is going to be finished once we connect this one but at least we know we can connect all the pins you would be surprised some of the layouts are so difficult that until you connect the last pin you are still not sure if you will be able to connect them because I don't know maybe there will not be enough space once I was working on on a layout which uh when I was finishing there was space only for the last via which I placed there and that this was it like no other space left I was very lucky and uh [Music] here few more things so let's connect this here and then uh down here how we are going to connect this maybe we can connect it on top layer so I'm going to rotate this oops there is still track from 3.3 volt we need to delete it so work with tracks select it and delete and uh connect this that's the LED sometimes it doesn't work to work the way is I would like to do it uh connect this okay I me to make it smaller no let's move this there should be enough space no no that is not enough space I will make it smaller 20 Ms this is just LED and pull up okay make it nicer and let's fix this one okay it worked this time it worked I I just keep thinking about how to you know make bigger space between trucks okay save now go to design rule check here change this to a big number let's say 10,000 and um we would like to enable all the rules so in this batch enable everything and uh test points we don't have test points so uncheck this and also uh signal Integrity we don't have anything set up for Signal Integrity so uncheck all these but we would like to run all the other check rules press this button and uh 517 errors unrouted net this is important uh many of these we will fix them and this is important net anten okay this is the most important one so let's have a look where is this problem oh here okay so just simply connect this part and this one which is this one this means uh it only has uh one connection and uh see this is exactly the loop REM removal feature see I I draw something and it will remove it on the other layer or the other track um but we should not worry about this too much we fixed the unrouted net error but there is still the antenna because I told you yeah it removed the track on the other layer for now let's leave it as it is we will place a polygon P here you know this polygon p a little bit later so it will fix the problem it will fix the error everything else uh seems to be fine all the ns are connected um so reset error markers and save our board next we are going to check every single net on our board so in this PCB panel select nets all Nets um be sure you have this set same way click on Plus 3v3 and these are all the plus 3v3 Nets on our board double check the width of the connection okay we would like to use wide wider than 10 ms for every single connection here we can uh maybe improve it we can draw the polygon here because these are the deing capacitors they are very close to each other so let's draw polygon Place polygon po press G change the grid now left click and draw the polygon around this paths and vas polygon is the area which will be filled up with copper and uh we will use polygons very often uh for some powers like in this case uh finish the polygon uh this is little bit weird but finish the polygon and we will adjust the shape later when the polygon is selected just move the edges okay uh selected and assign the net we would like to have this polygon connected to plus 3v3 repur this is very important and there is still something wrong select it the area is very small so maybe uncheck this report okay there is something but it's still not what we would like to have there go to design rules and double check this polygon connect style select it and again it's using the Rel terminal relief you would like to use direct connection uh now again we need to redraw it so report still not perfect we still need to find what is wrong so select it and down here select uh p over all same net objects that's what we need this report oh finally finally this is what we would like to have um these shapes are weird because uh it automatically would like to follow the clearance rules so if there is not enough clearance it will not P the copper there uh I would like to change the visibility I would like to see the tracks maybe change it like this I will move the track a little bit these tracks right now they are not really important but uh I don't want to have it there because then I can't adjust these edges okay now it looks good now it looks much better maybe adjust the visibility uh again and uh I like it I like this press control left click okay now second net this one I'm going to save everything just in case on the bottom or the first net there is nothing on the bottom on this one we have something on bottom first check the top here we would like to again Place polygon po so we can draw it around this part and around the VR okay don't forget to assign the net remove Island and pull over all same net objects repo almost right I can see when you select it oops select it uh I would like to adjust the edges because I can see it doesn't follow the paths correctly so change the grid and also down here you can see uh it uh there is the clearance 10 ms and it doesn't fall the copper doesn't flow to the edge of the polygon it's not important but I always like to draw the polygons this way I will move this little bit further let's see if it helps to P it until the edge okay perfect perfect I like it we can save our board and in settings defaults polygon I'm going to change this okay because we always have to keep changing this so set it to P over all same net object and next time it just should work automatically correctly po g p let's draw it also here around all the parts and the VR we don't want to draw the polygon under the chip because the size and shape of the pth under the chip is very important so I didn't draw the polygon there assign the net report and adjust the edges okay like this I do it because as I say I would like to have full control over the areas where the copper is going to be filled up and uh when I make these adjustments I'm very sure it will always only be in the areas which I mark with this shape of the polygon H press control hold it down you can actually add points and uh then adjust the shape uh a little bit more than just by dragging the edges so if you would like to add this special Point don't forget press control and hold it down okay control and hold it down and you can add another Point into your polygon report Mo this little bit okay I like it maybe small adjustment here like this select oops select report okay save the next one is the 3v3 regulator here we are going to draw the polygon which I mentioned couple of times that you don't have to worry about the net antenna error in this place uh draw it like this uh sometimes when you are uh drawing this uh tracks and polygons for poers you may need to calculate if the track WID is enough for currents for high currents I don't know 10 amps 20 amps uh you can use again the Saturn PCB toolkit calculator the free software to tell you next plus 5e to tell you if the width of the track is enough to carry the current but in our board we don't really have any High currents so we don't need to use like extra wide tracks but very often even for small currents I just draw these polygons it's nothing wrong to do so this is the plus 5 volt okay so this is the direct connection to the regulator which is making 3.3 volts from 5 volts okay make it a little bit nicer there are only few power kns left so don't worry we are not going to draw polygons for everything save next one plus 5V vbu one top and bottom layers here we can create small polygon now you should be expert in drawing polygons draw the polygon assign the net repour adjust if needed okay save also for the second USB connector this one is a simple one again just few lines some of the polygons are really tricky to draw some of them are super simple okay and also so here report and the last one plus VCC FDI double check do we need to do something here no okay so this is just the button chip PE uh these are the USB signals ground we need to double check the ground we need to be sure all the connections are white so there's nothing on the bottom uh but we are missing some polygons here so first this one I'm going to draw a polygon around these parts which are under esp32 model and then also we need a big one for our regulator the one which is also used as the heating cool down the regulator so this one is finished this one was super simple maybe small adjustments okay okay looks good and now the regulator huge big polygon okay for this regulator we will connect all the vas and all the PS together with one big polygon first I will move this little bit so we have as much space as possible to create as big heat thing as possible and all these vas which we placed here will help to transfer heat to the big ground planes which are going to be also on the layer two and which is also on layer three so it will help cooling down this regulator if it's needed because the regulator can get really hot if we if we need a lot of current to take out out so we don't want to make it hot draw the polygon like this this is a big one more complicated than the one under esp32 almost finished okay okay I signed the Knight and uh I'm going to adjust the shape a little bit so again press control okay hold it down and just double checking if everything looks good I like to work with bigger uh grid initially because then it's easier to create nice uh horizontal and vertical lines and then just uh change the grid to smaller one if you need to adjust something because if you would draw this big polygon with in small grid it may be difficult to create nice vertical and horizontal lines save uh and continue so GPI 0 1 2 okay there is not really much to improve here no polygons this looks good I always d dou check or or I always check all the Nets even on very very complicated boards with hundreds or thousands of Nets this is important one this is the reset net but we didn't name it so what I'm going to do I'm going to name this net or simply just Place uh net label and uh change it and this is the way how you can make also changes in schematic and then put them inside of the PCB so let's say I made a change in schematic then you need to do update this is okay uh no I don't want to change that color so un check this I don't want to remove rooms and I don't want to add these Nets or this Supply net voltages only this one is what I would like to import into our PCB don't forget to validate and execute the changes and double check okay now it's called reset perfect uh and it's here so I'm going to continue where did we finish here so double check rest of the Nets and they look okay everything looks fine perfect save now we would like to double check also layer three so make it active double click uh just uh double check if it's connected to ground okay all the green color it means there is no copper and all these vas they are connected directly to Copper also these pins are connected directly to Copper here ground is Flowing between the vas so this is very good that's why we didn't want to place vas too close to each other because we would like to have them flow and this is interesting this is also interesting because it may be hard to so this pin so I'm going to adjust the thermal relief on this plane connect and I'm going to use this advanc for vs we will use direct connection but for PA connection we will use thermal relief like this maybe adjust the uh conductor WID a little bit make it 20 and what was going to happen see so right now this pins through whole pins are connected through thermal relief it means it's going to be easier to solder them down okay save now disable layer three and let's go on Layer Two uh we would like to maybe draw polygon also here for the 3.3 volt power first I will adjust uh this little bit now Place polygon p and connect it to plus 3v3 draw it this way okay start from here and draw it around our 3.3 volt track do it exactly the same way as I do it because uh watch what is on the top layer this is very important uh to see tracks on the top layer and we are drawing these polygon under some of these tracks so these for example these GP tracks They routed about this 3.3 Vol polygon okay notice how I'm drawing the polygon where exactly I'm drawing the polygon again if you would like to learn more about these return currents and reference ples uh you can uh have a look online uh on our online courses at fed.com or Al or also have a look on my YouTube videos in my YouTube free YouTube videos I explain a lot about this return currents okay this looks good I'm just double cheing everything or maybe make this little bit smaller and also here report okay save I'm going to make a polygon pool also here in this area where we keep getting the net antenna error so when you draw polygon polygon is not going to disappear like tracks because the um Loop removal only applies to tracks so now this will fix the antenna error okay save and uh what left very big polygon connected to where ground and we are going to draw it all around the board like this don't go exactly to the edges so draw it like this and uh this is what happened when you press F5 you can uh you can disable the colors in polygon po manager you can actually specify the priority be sure this ground plane is the last one if you move it on the top watch what's going to happen when I repour everything then uh there is only the ground P see because it has the highest priority that's the first one which is drawn but in our case we don't want to have the ground polyon everywhere it has to be it needs to have the latest or lowest priority now when we redraw this we will now have that the 3.3 volt polygon which is drawn first then also the uh the other small 3.3 wat polygon and then the ground big polygon very important okay there is priority how the polygons are created I'm just double checking everything I'm checking the return path for the tracks and the stitching vas uh maybe here we would like to place one stitching via because many many tracks are changing reference planes are going from top layer to the bottom layer uh and um the return currents for these tracks they need to go from Layer Two to layer three or layer three to layer uh layer three to Layer Two so we would like to connect them together with uh ground via with the stitching via so that's what I'm doing now okay okay this is good I like it if you if you now if you are now worried like oh why he placed this via here don't worry don't worry it's I told you you can watch the Youtube videos to understand a little bit more why we are placing this via there but if you don't place this via there like your board is still going to work then you may be asking like so then why we place there these vas because sometimes they can they are very important for very high speed signals but also they can help with EMC and Emi that's why we are placing them make uh small adjustments like these are the final track Improvement make them nice uh spread them on your board so if there is free space spread the tracks so they are not close to each other because you know there is something what is called cross talk and if you route signals very close to each other then the noise can go from one track to the other one and you don't want to have it this way and when you put the tracks further from each other then this cross this noise is much lower between different tracks and have a look if uh or what tracks are crossing this Gap ideally none of them should be Crossing this Gap but uh in our case we have some tracks crossing the Gap again this is connected with the return currents and and some uh good techniques for PCB layout you don't want to Route over gaps but if there is no other way like in our case and these signals which are crossing these planes they are not like super important so I'm not really worried but I'm double checking uh what are the tracks which are crossing this this gap between the planes between the ground planes and the power planes it's okay everything looks okay uh let's uh improve this bottom layer see here we have a lot of space so we can spread these tracks make the Gap little bit wider so there is lower cross talk lower noise between the tracks move it maybe a little bit more okay I'm playing with it nice I love it looks really really good I love it okay just double checking SA save the board press shift s you can change the views single layer mod and check each individual layer and this is something maybe uh what you may want to double check so it's the distance between the edge of the board and uh the power plane and uh you can specify it here okay in the stup it's called pull back distance 20 MS right now okay so these are the openings around the PA and vas that's this clearance 20 Ms okay layer four mechanical we can ignore this we don't use the mechanical we don't use top assembly we don't use top 3D C are we don't really use these layers we don't need them for manufacturing top over line we need to improve this one mottom top paste this is important layer so these are all the smt paths where the solder needs to be applied okay top so that these are the opening around the paths and this is wrong there is opening around the vas uh we would like to have them tented we don't want to have opening around the V so basically the green color of your PCB is right now it is not applied on vas we would like to put the green color over the vas so I'm going to set it to manual and check as tent it for all the vas in our board they are now ented and see there is no opening in this top solder layer and by default we would like to have all the vas tented so next time when we will be placing vas they will be automatically tined there will be the green color over them see okay uh perfect drill guide okay key layer we don't use this this is the multi-layer these are the through Hall parts or through vs everything looks okay make the layer one active disable filter save our board and we are going to add one more layer mechanical layer board shape okay and on this layer board shape layer or what we are going to do do you know we are simply going to draw the shape of our board so I'm going to use 20 mil line it's it's not really important how wi this line is going to be and just draw it when your PCB is manufactured they need to know what is the shape of your PCB so they will use this layer um to cut out your pcbs save and uh I will include this board shape layer and these other layers in the uh default layer set okay these are all the layers which are important maybe I can disable this and save it as default save the board now we are going to improve this uh layer seal screen layer double click on this connector and it's J1 so Place string on top of L layer uh is going to be J1 and um we need to double check the size so go go to jlcpcb manufacturing capabilities 6 mil 40 Ms okay that's correct I'll move it maybe like somewhere here move it to the position which you like I will leave it here now I'm going to copy it and paste this is going to be J2 and it's the second header it's the second connector save copy this two paste them here or this one the top one is going to be what do you remember go to schema think it's the one which is connected to the usb2 art so I'm going to name this one as art and this one that's the second one this one is connected directly to ESP module so I'm simply going to call it ESP okay now save everything we would like to add also some description to this uh Power selection jump vbus one vbus two and plus five so copy paste 1 2 3 why we are doing this do you know why we are placing these uh descriptions on our board to make it easier for everyone who you know doesn't have access to to manual or maybe you know this board it doesn't even have manual it has only schematic but uh when you are working with this board maybe you don't always have your SCH open and it's super useful to have the most important descriptions on your board so you know what this uh jumper is about for example U we will do exactly same also for the other one so we are going to put some description here again then people can use your board without a manual without documentation without schematic they just hold your board and they know immediately ah okay this jump a when it is fitted it will connect the regulator with 3.3 volts on your board okay maybe it's not so clear but if you know there is this kind of Jumper then you will know oh this is the jumper okay now buttons so copy paste we would like everyone to know which button is which one I would like to know when I'm using these buttons so this one is the user button or boot Button so I'm going to name it boot sluser and the other one is the reset button is this one so reset move it and uh there is this pin number one we need to do something about this uh it's connected with the footprint so we have to double click on the footprint we need to unlock it and then when it is unlocked uh find this Primitives unlock Primitives and it means you can work with the objects inside of the footprint when you unlock The Primitives lock them again lock the jumper again and now the number one is gone okay to delete the number one you just press delete button uh user LEDs user and power LED we would like to name them so everyone knows which one is user LED which one is power LED let's select user LED and it is this one so I'm going to put here user and this one that's the second LED it's going to be power okay save now we would like to Mark these pins I like to add at small lines to to these pins because then it's very easy to uh find specific pin like pin number five okay pin number five has this Mark and then pin number 10 we have another Mark so we can very quickly Now find even pins like pin number 11 or 12 or 13 you just find the pin number 10 and you count 11 12 13 okay this is just something super useful or something what I found useful if uh connectors long Conn ctors if they have these kind of markers telling you or repeating every five pins for example I need to move this uh dot so same technique as before you need to unlock The Primitives and then don't forget to log them again uh and do the markers also on this other Header by the way if you update the footprints which we changed then all the changes will go back that's why you would like to make all these updates uh by the end of your board design here is a violation but we will fix it later and this is also problem so I would like to move this or maybe maybe delete it we don't need it because this this can't be really fitted uh other way around so I just delete the pin number one marker okay we are going to do Improvement on the bottom layer now would like to add the description of these pins so unlock this I'm going to move pin number one away from the board uh it's not important that it's a way uh during uh PC manufacturing they don't really care if this pin is away it just will not be on your board now I'm going to copy this text from the top of it line and we would like to place it on the bottom so place it on the bottom and you have to mirror it this is very very important okay all the text on the bottom of your board has to be mirrored otherwise uh you will not be able to read it View flip board so this is the view from the bottom as you would see if you would hold your board it's very useful when you work with text for example that's why I flip the board and now you can see how it is going to look you can nicely read the text when the board is flipped so this pin is ground and uh what we can do we can now copy this and paste it also on the other pins okay and uh as usual we can copy more of these at once and then just do the paste of five of them at Advance because it's just faster like this okay almost done delete this one and now very hard part we are going to name all these pins you can see what this pin is about just you know have a look on the the pin itself there is the exact description of the net which is connected to this [Music] pin and I will make the description a little bit shorter yeah because there is not much space on the board and this is again super useful so anyone without document without documentation without schematic can use your board they will know what is connected where just when they hold the board in their hands it's very quick uh way to check if you connect it or for example I wire to the correct pin GP that's slow GP of 14 I made Miss sorry you can gu English is not my first language okay this is not connected perfect we can do the second head there uh I'm going to place it here because uh this is the longer one it has long description or long text I would like to align it correctly uh maybe like this okay remember the position I'm going to copy and paste it I use the the one with long description because I'm aligning this text uh close to the header so it will then look nice again do multiple selection press shift hold it down left click and select multiple objects and um again we are going to write this description of all these pins a lot of work a lot of work just kidding our board is almost finished now you have lot of work already done okay 45 okay I really hope uh you are working on your own board and once you receive it and everything will be working perfectly fine you will be very proud of your work and I really hope uh making this tutorial help you a lot because it it's a lot of work to actually create this tutorial it may not look like a lot of work but I've been working on this tutorial for over half a year now okay so thank you very much for still watching this tutorial because it's super long and actually I started working on this tutorial one year ago but then I didn't have time so I I just stopped working on it and I started again half year ago from scratch because there was new Alum version so I wanted to use the lightest Alum when I was recording so I I had to start the game almost done okay don't forget to save now we would like to add more or text for example what copyright of course copyright we have to put their copyright put there your company name or your own name so everyone knows you design this board okay what else we would like to have on our board Maybe Bard name I couldn't come up with any so let's call it have fun version one issue one and uh save it next what else we would like to have on our board do you know advertisement of course I would like to you know tell everyone that we have on online courses about Hardware design board design signal Integrity EMC have a look at federal.com okay don't forget I know I I keep mentioning this but you know creating even this free YouTube video it's not really free as I said it took me half a year so I need to make money somehow and this is how you will support when you when you signed up for one of our courses this is the way how you support creating this free content so thank you very much okay save everything now one more detail here I would like to mention which is the PIN number one so I'm going to use something like this okay usually pin number is also square but not everyone knows that PIN number one is square so I will I would like to make it clear do it like this this is the position so I'm going to copy it and just paste it here okay this looks good save and tools design rule check uh be sure you still have all these checked it's very important you are checking for all these roles and run design rule check again still 441 errors okay we are going to fix them no this one what is it power plan connect [Music] rule there is problem with this in panels PCB rules and violations we can see more details so let's find it here in this list here it is on layer three the problem is on layer three uh block three out of four [Music] entries I think I know what the problem is this is the problem there is basically only one connection these these three are not really connected because this color it means there is no copper so go to layer stch manager and uh what we are going to do on this plane layer three we are going to maybe change this pull back distance to zero let's have a look if this helps save it close this now notice there should H see there is no like green color around the board and now you can see there is the connection from three sides so that's good I think that should help let's try it again rerun it's only 440 now so we fixed this one cool 440 goal save our board don't worry is not going to be so difficult so many of them we will fix them very quickly so what these are about mask clearance silk to solder mask clearance less than 10 ms between path and the track on top of a line U this is going to be very easy uh fix because we just need to adjust the rule this is the default rule from Alum we didn't specify it so everything what we need to do is uh double click here this is the rule which is failing so open the rule and uh you can see basically the text or seal screen is very close to the path go to jlcpcb and we are going to double check how close we can place the leg end H it looks like it doesn't really say anything maybe we can use something like this 0.15 to Ms six meals okay maybe we can use this six uh okay let's see if it helped we can uh rerun design rule check sometimes you don't have to rerun design rule check but it's always good to rerun it oh 90 errors this was good okay six silk to Silk 82 minimum Sol [Music] then I'm going to save our board and we are going to continue fixing the problems so PCB rules and violation uh there are many of these so let's fix this one minimum solder mask s it's six Ms for example here and it's expecting to be at least 10 [Music] ms so it's basically this uh space between uh pins again I'm going to double check in jlcpcb what is the minimum solder Bridge they call it solder Bridge or they sometimes they call it slver uh 0.08 0.08 that's 3.15 mil and this one is like six mil so in the rule maybe we can change it to 3.15 that's oh no we don't have to or you can use millimeters actually uh if you put that the unit see it will automatically calculate to the meals this is useful I I never mentioned this uh in this tutorial but you can always use also the numbers with units and it will Alum will automatically convert the units you don't have to use the Google which I always use now only few more errors we are almost finished these are a little bit tricky that's why I left them at the end so silks to Silk clearance uh this text is too close to the [Music] component there is again there is not really much about this kind of rule I will simply just change it to for example this number that's the six MS I don't think it's like big issue for manufacturing otherwise they would list this in the manufacturing capabilities and only what left is the silk to solder mask error first save our board and panels PCB rules and violations let's have a look on details okay can you see what the problem is we are the uh lines over the paths so how do we fix this we need to unlock The Primitives and simply delete this line so select the track and delete this don't forget to lock The Primitives again do it also for the second component unlock Primitives delete this track from the footprint and this should fix the error we have to do it for all of these so I'm going to unlock all of them at once uh I will delete all of these tracks and then I will lock The Primitives for all all of these components so what do you think are we going to have zero errors now I'm curious too okay tools design rule check run design rule Check Yes zero zero errors well done save our board and this is our finished part I'm going to enable the components okay wow I really hope you are proud on what the design super cool it looks so nice I love it you can see the LED is green and red LED you can see all the text components super nice there is one more thing what we' like to do we' like to place here very nice logo so I'm going to show you how you can place picture I created this picture this is our logo black and white picture and what we are going to do we are going to place it on top solder layer and place it like this okay why top solder layer do you know because it will be very nice it will be gold logo on our board gold because there is copper in the place where I'm putting this logo there is the hitting area so there is copper and then when we will be manufacturing this board I will ask them to use the the gold surface uh you will see it also in 3D view so I will just move it like this be careful about the vas because vas can disturb your picture and in 3D view you can see this is very nice gold logo love it I love it it's very good trick if you would like to place gold text or gold log on your board do it this way save now do you remember I mentioned the standard digital tracks should have 50 oh impedance so we need to adjust the width of our tracks right now they are 10 ms but to get 50 of impedance from them we need to change the WID to six Ms uh how we are going to do it we are going to use filter I'm going to show you how you how you can create your own filters it's very useful trick so I save the board now go to this PCB filter top and bottom layer I'm going to hide these uh overly layers set select or a track and use this find similar objects now same so we would like to work with tracks and uh tracks with 10 m withd on layer four and this is important create expression watch here what will happen okay now it created this special expression and we can modify it because we would like to select not only tracks on bottom layer but also the tracks on top layer so I'm going to copy this and we are going to modify this filter I'm going to put here or top layer so layer one and now try to modify this or try to apply this filter so select the select mask apply to all and now we have selected all the 10 mil tracks in our board these are all the digital tracks which need to be routed by 50 oh impedance and they need to have six M width so you can change it very simply to this six Ms all these selected tracks now they are six Ms everything is green all the errors we simply just adjust this minimum withraw change it to six press okay ah perfect no errors anymore clear the filter you can use also this clear button in PCB panel and uh that's it this is the last thing what I usually do when I'm finishing PCB layout double check if everything is okay if all the tracks were correctly changed uh double check the USB differential pairs if they have correct WID uh have a look on all the digital standard digital tracks this one oh this one is wrong I think I by mistake I routed this uh different withd not oh yeah you can see 10.01 that's why it didn't change okay so correct this this was my mistake when I was doing layout they supposed to be 10 ms save again and reround the design rule check done our board it's basically finished save it go to projects and then output job file this file is needed to create manufacturing out output or it will help us to create manufacturing output be sure you are going to save it inside of our directory save our project and uh we don't have any variants of our board so we are going to create one go to Project variant variant uh it is something what will specify what kind of components we are going to fit so for our prototype uh we would like to only create specific components we will see uh they're here okay now you can see in variance we have the Prototype click here this is very important select prototype because we would like to work with this and we are going to unfit the components which are not fitted for making the Prototype these are the uh components which we Mark with the NF text why we are doing this we are doing this because these components what we are selecting right now they will be automatically excluded for example from Bill of material when we uh will be building the Prototype or uh we can uh see for example in schematic which of them are not fitted or even in PCB we will see some markers you will see a little bit later how this is useful let's go back to variant and now have a look see it says for Prototype these components are not fitted you can change drawing style so this is how in schematic we can see the unfitted components in schematic but you can set also or you can change some setting for PCB so I'm going to select this and and I will make few adjustments so when we will print U documents about our PCB I would like to I would like the components look like this okay go here on the editor tab very important save everything go back to our job file now select prototype and uh it's because we would like to generate a manufacturing output for Prototype and first we are going to create this refresh so this is the top and bottom view what we are going to create of our board and uh uh do it exactly the same way what I'm doing here okay change it to 50 and then change it back to 100 I don't know why but this is only the way I found to refresh this page correctly uh we would like to use the uh real size because we would like to print this board in real size on our on paper and do some measurements and compare with the real components so we are sure everything is going to fit correctly that's why I would like to print this okay these are the layers what we need perfect and uh we would like to use like normal colors show holes this is sometimes useful if you would like to double check also the holes or if you would like to make the holes inside or into paper I'm going to add another page this is going to be bottom side or bottom layer of our board and we will do something very similar uh we don't have any components on the bottom layer but maybe we would like to double check the text and uh use exactly same settings what I have here mirror layers okay don't forget and this looks okay this looks good I'm just double checking everything okay save now I don't want to use this default PDF because I I have problems with printing in the real size so I'm going to add this Microsoft print PDF uh I don't know why but many many times I tried to print into the default PDF and I was never able to find out how to print in real size that's why I'm using this uh kind of external PDF and uh here is the file this is how it looks okay it looks good see these components are not fitted so there is this gray cross which we uh specified when we were uh adjusting the drawing style of unfitted components and print it in the real size okay be sure you print in the real size and uh then this is how it should look when you print it double check the sizes you can also try to you know fit that the components or headers next we are going to generate the gar files these are the most important files to manufacturer PCB our board is in inches so I I use inches these are all the layers what we would like to generate and double check them maybe if you would like to also generate the shape layer okay there is one more file what is needed to manufacture PCV it is uh drilling file so this file specifies the position and size of the holes use exactly same settings mod I use Save and to generate these files uh we are going to select this and then generate uh generate it one more time because uh there is some kind of bug in Alum forever and when you generate it for very first time it will generate it into these free documents but we would like to have it inside of this uh output directory for our project okay so generate it twice you only need to generate it twice for very very first time it's a back I don't know why to check these files be generated I'm going to use this view mate it is a free software you can download it and install it when you open it this is how it looks I'm going to import the getb files from our project output and I'm going to select all these uh files starting with G extension is starting with G and I switch off all the layers and by one by one you can double check the layers just double click to show and double click to hide the layer uh you can combine these layers this is super useful for example if you would like to see this mask or solder paste U you can very easily double check there are no errors when you combine the layers together if you don't see them correctly you can change the color some combinations of the colors are better okay this this is a very good com combination see there is the there are the parts uh and there is the solder there is the solder mask or solder paste very nice tool to compare this okay this is [Music] the these are the in l ERS this is the outline maybe there are two of them so maybe uh we don't need to generate the one which we created because one is automatically included in the outputs from Alum um and there is no paste on the bottom because there are no components so we don't need to generate it okay okay you can guess what are these layers so GBL get better bottom layer okay Bo bottom overline BP bottom paste BS bottom sold there okay I'm going to change the color so I can see better the combination of these layers okay this is the layer two and here is something wrong we need to double check what is this why the clearance is smaller in this area let's measure it 6 Ms oh I think I know because of the Special Rule which we created in the in the room so I'm going to save our board and we are going to make some changes see this is the room and exactly in the area there is the problem so I'm going to apply the Special Rule only on layer one six M rule only on layer one so I'm going to modify this rule only use six Ms on top layer okay now we have to generate the or regenerate the polygons again and there is still one small error we need to move this v a little bit of the track okay refresh okay now this looks good but this is this looks like a problem uh this piece of copper here so select and and remove that copper watch what's going to happen see the copper which is not connected was automatically removed you don't want to have like unconnected pieces of copper on your board because uh they can make problems okay we need to rerun the design rule check just to be sure we didn't make any mistakes now save the board and U I still like this uh board shape so what I'm going to do I will rather use our board shape and I will uncheck this automatically generated board shape by Alum because I I don't know exactly how they create close viewmate delete the old files just to be sure you don't send wrong files to production and generate this again generate new getb files and NC drill [Music] files okay I'm going to copy this part and go back to viewmate go inside of our project directory select all the files starting uh the extension with G switch off all the layers and double check combinations of layers again uh this is something uh what you need to get used to very often the very first files for man manufacturing with you which you generate are not the right okay it was fixed so you need to get used to regenerating these files select this uh empty layer layer 11 and I'm going to import the drill files you would like to see if this drilling is also correct so these layers are in or show the information about the um drilling the position and whole size it looks okay it looks good I will change the colors okay this looks good perfect save next we are going to generate the assembly output so this is a pick and place file which is needed for the machines which are going to fit uh the components use exactly same settings as I use here okay okay save now generate the file and we can have a look what is inside so I will make this uh wider oops maybe Mo it like this so in this file you can see all the components with the position and some other information which is needed to fit these components on your board okay perfect save next bill of material so this is the file what you will need to summarize all the components on your board I'm going to remove the this and I'm going to group The List what was going to happen right now quantity is one I'm going to group them based on lib so now uh the list uh only shows uh component types and then the quantity of each of the component type what we need we need to we need to buy them for example or you will upload this bomb uh when we will be ordering assembly service from jlcpcb you will see a little bit later use exactly same settings save and we can have a look what is inside of this file so generate it when you open it it looks like this all the components on our board and they are here inside or the file is inside of our project directory go to jlcpcb be sure you are logged in and we need to upload the zip file so what I'm going to do I'm going to pack I'm going first I'm going to create new directory send to production and I'm going to pack all these getb files okay and also we need to add the drilling files so I will copy them inside of the zip file so this is the file what we need to upload here on jlcpcb website in our project directory you can see I'm going to upload the file let's see what we'll happen Okay so this is our board now down here we need to specify what we would like to build use exactly same settings what I'm going to use or if you like you can change color something this is important anic so this is the gold on the top of our board if we would like to have gold logo that's why I use an uh and also we have very specific layer sequence so we would like to be sure they build these layers they build the PCB layers in the order how we designed our PCB because we would like to have the layer three the ground plane just about the tracks on the bottom layer so select the layer sequence as specified in our board do it this way okay confirm uh impedance control yes uh 3313 that's the PCP stup what we used uh and uh this will help us to you know have the tracks 50 ohms and 90 ohms remove order number I don't want to have the number on our PCB it looks ugly okay now PCB assembly because we would like to feed also the components and uh you don't have to do it in jlcpcb but uh I do it because I would like to show you how you can do it if you would like to do it because sometimes this PCB assembly can be expensive especially if you have only very few boards you can just sold them manually okay okay next here is the place where we need to upload the B of material and ping and place file so find the files this is this is the Bill of material and this is the pick and place but before I upload this uh maybe we would like to double check them I will edit the name so it's a little bit easier so open the bomb and uh we don't want to fit these headers so I'm going to delete them from bomb and we don't want to uh fit these jump PS and [Music] links delete save and also double check pick and place and we don't want to jlcpcb fit the trall components because they just cost extra money um so I I'm removing them and of course the links uh they are not real components on the board so that's why I remove them okay save it so pick and place and Bill of material files are already now we can upload them and let's see what we'll happen this is always moment of surprise how many components they have not bad not bad only three components are missing uh so double check what they have and especially what they don't have so this is the ESD protection and then uh USB and the regulator that's okay we can fit this manually so don't place this components what they don't have you can see the USB connectors are not fitted and also the regulator is not fitted because they don't have them I'll double check everything else U don't worry about the specific rotation from my experience uh they will correct this rotation and then before they send the board into production uh you will receive an email and you will confirm Theos uh okay double check the prices so PCB itself is not expensive the assembly is quite expensive because you need to pay also for the components and there is also setup fee $25 you can see okay assembly only the top side this is the PCB if you like you can double check the getb files okay okay and also you can double check the layers so this is the final checking before sending our B into production everything looks okay this is negative layer it means where the color is there is no copper usually where the color is there is copper but if you go inside of these getb files you will see it says negative layer if you go to standard layers like this top layer it says positive layer and uh the layer three is negative because uh we used plane in Alum usually when you use plane in Alum the layer is negative okay everything looks okay you can also double check all the settings be sure your settings are same or if you make uh adjustments be sure your adjustments are correct and uh this is the assembly these are all the components what they are going to fit these are the components which are missing or which they are not going to fit and this is the placement as I said you can ignore this rotation right now they will have a look on this data and they will send you email and you will confirm then the email they will send you okay now uh we can pay let's see what will happen uh I'm just going to use all these default settings if you like you can play with the delivery sometimes you can get cheaper delivery especially if you are ordering only PCB uh there are really cheap options to deliver PCB okay so it's done now we still need to order the missing component so I will buy them here on farell you can use your own local component supplier uh what is missing what kind of components we need to buy and then solder manually USB connectors I'm going to copy Bar number and I'm going to find them in Fel uh they have them in stock and I can buy them in one piece minimum quantity one piece we need two for five boards that means we need 10 pieces okay next one this this is the ESD protection so let's find them do they have it looks like they should have it it was listed there okay and also they have it in stock perfect click here how many we need six per board so we need 30 for five boards or if you like you can buy a little bit more just in case there is problem during soldering but I'm not planning really to fit all the five boards so it's okay I don't need more and this is the regulator one piece for five boards five pieces okay and what else do we need do you remember because we removed some of the components before uploading to jlcpcb so these are the two headers so I I I'm not going to feed them so I'm not going to buy them but we will need these uh jumpers the header for the jumpers this is the first one [Music] should be this one minimum quantity 10 pieces okay and also we need this second one two pin header they have it okay 10 pieces again that's the minimum quantity what we can buy and also we need the cup for these uh jumps okay by what else everything else is okay so this is everything what we need to buy go to our basket and buy this component so in your case it may be a little bit different maybe they had or didn't have in jlcpcb different components just buy the missing components uh order them so you have these components before your board will arrive from jlcpcb okay completely save the project close it and uh what I'm going to do uh or what I did I upload this project to GitHub so go to our feval GitHub and search for esp32 with USBC and here you can find the complete project from this tutorial you can download it download a zip file and if you need you can just open this project uh and use it so the next day I uh received the email to confirm the placement uh as I already mentioned they will send you this email they will correct the rotation and position of the components and they will send you this email so you can double check especially pin number one location uh so I'm going to have a look on this corrected placement zoom in and you can see now pin one is rotated correctly these transistors are rotated correctly so double check also the unfitted components everything looks fine okay so we can confirm this uh placement and our board is in [Music] production if you like you can also double check the data uh which they use for manufacturing your PCB you can download them here this may be very interesting because uh actually your board is going to look a little bit different you will see I'm going to open these gar files which they use uh because they will add some extra extra things around your PCB unpack I'm going to copy the path and I'm going to open the viewmate and import the gbed files which are used for the production of our board and let's have a look see the board looks a little bit different and they need this extra uh space because uh this board will go into assembly machine and um it means uh you know you can put into assembly machine just the board because they need to hold it somehow and there are these rails which are used to hold the piece B so that's why there is this extra space needed you can also double check the uh layer uh three and you can see that uh they here it is oh this is the layer two sorry and this is the layer three see now now it's not negative now it's positive layer so it's full of copper these are the hols okay perfect so this can be useful sometimes U to see the real manufacturing data and now just wait wait for our boards this is what is happening in jlcpcb see this is the board what we designed they place it into this big PCB panel with other projects and this is uh this PCB has not been finished yet you see only the mask is applied they they still need to apply the Sal screen if you would like to see more uh I created Factory tool jcpc Factory tool to watch it on my YouTube channel and this is how the board is assembled okay so this is big machines with all the components all the kind of components and this is how the components are fited on our board they have actually two machines in row so these are the smaller components and then uh from this this is actually a real time from this machine it will be moved to the second one where the bigger components will be placed this is the second one and here are the bigger components the ESP 32 module for example is placed in here see how quick they actually place the components as I said this was real time and have a look they are placed here and then of course it has to go to OV and checking and all the kind of things but as I said if you would like to see full video uh it's on my YouTube channel and here it is I received the package from jlcpcb and here are our boards I'm very curious let's have a look open this very well packed we need to somehow get our boards from this I'm going to try my best okay I can see the board and here they are okay the first one second one third one four five now the components would be ordered from farell and uh we should have everything to be able to build our ball double check USB connectors pin header three position jumper header diode this is the protection and this is the regulator looks nice some of the components are not fitted you can see it cool okay double check everything so these are not fitted Al this is not fitted not fitted uh double check pin number one position LED rotation these are fitted correctly okay okay this is nice logo what we created regulator is missing and the connector and protection double check the quality of soldering and also double check if there are no short circuits between the pins because you really don't want to spend a lot of time trying to find out why your board is not working and then you just have a look on your board and you are like oh this component is fitted wrong way yeah or this pin is not solded properly so double check everything before we connect the boards this is called Optical inspection and it's very standard procedure to check the boards when you receive them from production everything looks okay uh the last thing to double check so theing under esp32 okay now I'm going to use this flux and U we going to sold down the ESD protection this component is a little bit tricky um we need to use hot air gun so first I will put a little bit of solder on these parts and I'm using Le it solder so if you can use Le it solder because for this kind of boards it's easier to work with of course if uh you can't use like bit solder than use the Le three one I'm cleaning the board now I will place my board on these knuts so uh when I will be hitting up the board the heat doesn't go away put little little bit of flux and place the components uh this uh yesd prot protection is not critical to make your board work so if you are little bit worried that you can't so down these components I'm going to hit up what was going to happen if you if you are not very comfortable soldering down these components you don't need to fit them your board still will work okay this is just you know for protection and also I wanted to show you one way how you can solve down this kind of components this is the flux what I'm using in case you would like to use the same we are going to solder down the USB connectors this is the solder what I'm using that's the Leed one again I'm going to put a little bit of thin on all the parts because you can see it may be a little bit hard to solder directly on the gold and you can remove this excess solder with this copper wire I forgot how exactly it is called in English this is what I use for cleaning and also I use alcohol so after cleaning uh the flux away I will also clean it with alcohol we don't want to have like you know too many chemicals under the components that's why I clean it now put down the header you notice I I placed uh little bit more solder on one pin only uh and once it is fitted correctly then we can solve the rest of the pins if you only use it if you only put thin on one of the pins then in case there is something wrong you can always hit it up and correct position of the component but once you solder all the pins then it's not going to be so easy to correct deposition okay so first always when you are soldering components first only put in or solder on one of the pins place the component double check the position and only then continue and soldering continue soldering the other pins if only if you are happy with the position so I'm so ing rest of the pins and once you are finished with these pins also solder down the shield notice uh how the solder goes inside of these holes so I'm putting the solder there there until it goes down make it nicer also from the other side and double check if there are no shorts and and double check the quality of the soldering now the regulator again put a little bit of solder on each part because it's hard to solder on the gold directly put solder on one of the pins now fix the component into right position and once you are happy solder down all the other pins once we're happy with the position of the component okay looks good now the jumpers so fit the cup it will help uh to heat to to take heat away from the pins and uh also it will hold the pins in place if you don't fit the capup uh the pins may heat up too much and they will you know kind of lose position inside of the plastic okay Sol it double check how it looks if you are not happy you can hit it up again and watch if the solder goes inside of the hole now the threein header same as before put at the C and finish soldering the pins okay if you are using lead free solder then as I said behavior is going to be behavior of this melted solder is going to be a little bit different clean it double check looks good now remove the this e these extra parts of PCB these are the parts uh which they needed to assemble the board you could see it from the video from the factory how they use them or why they needed them uh fit the jumps don't forget to fit the jumps okay this is how the finished board looks now double check if there is no direct short circuit between ground and powers between ground and 5 volt and 3.3 volt and also swap the probes so now I'm putting the red one on ground and the black one on 5 volts and 3.3 volts okay there is no direct short circuit that's good and uh we are going to measure the current so I'm going to connect this USB and uh watch what is going to be the current flowing and also watch the LED if it's going to light up okay it's green green LED and 20 milliamps perfect this looks good and also try the other one and measure the current and watch the green LED 70 Ms perfect so if there is something wrong the current may go much higher I don't know 100 milliamps or more 20 milliamps is perfect don't forget to fit the jumper again both of them needs to be fitted and uh we are going to double check the voltages watch the LED it should go green okay and measure first 3.3 volts okay perfect and also 5 volts cool now search for Arduino go on their website software download Arduino ID I'm using Windows so I will download this one install it once you open it this is how it looks and go on this website okay scroll down there are some important instructions how to start this at boards manager entry so go inside this file preferences and copy there this line I already have it there press okay but I will cancel because I I have it there and then go to this tools board board manager and search for esp32 you need to have this uh Express uh expressive systems installed I already have it installed if you don't have it then install it and then you should be able to see here esp32 and we are going to use this esp32 S3 Dev module go to device manager and we are going to double check if RPC can see the board be sure jumpers are connected and plug in the cable okay so in this ports you should see new comport comport 21 that's where my board is connected here search for for ESP 32 S3 [Music] and this is what we are going to use connected to com 21 okay and if you have problems with detecting the board then search for ftda drivers and install them I already installed this drivers so I was not doing it but here are the drivers for Windows we use different operating system system download them that's the chip what we use close this just you know be sure everything is restarted and starting from scratch this is the ftdi chip that's why we install the ftdi drivers start the Arduino ID again and go to these examples Basics blink we can close this one and uh this is important okay most arduinos have onboard LED connected to different pins uh let build in in our case our user LED is connected to GP to so we need to update the code here I'm going to add this it means our user LED is connected to GPI 2 and I'm going to use this user LED also down here and I'm very curious be sure uh you select the right board here and the correct Port okay be sure your board is connected and press this button watch the user LED what's going to happen it should start blinking yes cool our board is working let's try more complicated example this one Wi-Fi simple Wi-Fi server we can close the uh Blinky example here set your uh Wi-Fi password and um we need to update this uh few numbers so this is very specify where our user LED is connected and also Swap this to because we have it connected a little bit different way okay be sure board is connected open serial Monitor and press this button this is a very cool example do you know what this example is doing you will see so in serial monitor uh you will see some outputs okay be sure uh you are using correct bow rate this is saying that our board is connected to this wi-fi net and this is the IP address so copy this IP address go to browser I'm going to paste the IP address here and watch our board watch the LED on our board switch it off and switch it on so through website you can control the user LED on our board super cool uh I'm going to use again the Blinky or blink example we can close this and uh I'm going to directly just put here number two and what we are going to do we are going to use the second USB port so I'm going to plug the USB cable to the second port and also don't forget to switch the jumer and watch what's going to happen so first we should see the board on different comport be sure you select the board correctly and also the new comport is selected here okay and compile and upload perfect again it works also with the second USB port cool and um that's it that's everything for this tutorial8 hours I have never posted so long video on YouTube eight hours is a lot of work so I really hope you design and build your own board and if yes fantastic job well done now you know everything important to start designing your own projects if you would like to learn more about Electronics don't forget to check out what our online cours is at fed.com or you can have a look on my fre YouTube videos I have created many super useful YouTube videos they can help you a lot to design better boards so have a look okay my YouTube channel Rober fanek please leave your comments and let me know if you like this tutorial thank you very much for watching and see you next time bye