KiCad STM32 + RF + USB Hardware Design

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this is a design that I've been working on which I think would be quite interesting to look at together it incorporates an stm32 microcontroller an RF transceiver and antenna interface as well as a USB full-speed interface the design generally requires a bit more attention due to the high-speed signaling on the PCB and lets us explore a few more advanced circuit design and PCB layout topics the overall idea of this board is that it can be used for many different projects for example take a robot that has RF capabilities and we need to log the data that this robot is picking up one way of doing it is having an RF link so the robot has an antenna and an RF transceiver and sends data over-the-air and we pick it up on this PCB here purchase it using this as scene 32 and send it out to a host computer for logging using the USB interface of course there are many more different applications we could use this board for but as a general idea that's what I had in mind overall where I'm using popular and inexpensive parts for example SC n 32 market controllers which are fairly inexpensive and this n RF 24 transceiver so if I pull up the datasheet here you've probably heard of it it's an n RF 24 lo1 so low-power RF transceiver working in 2.4 gigahertz and you can see it a lot in Arduino projects but I thought you've got nice to use it because it's inexpensive and then with an STM 32 the stm32 microcontroller I chose was this stm32 L for 32 KB so this is part of their low power line if you look at the esti website it's an ultra low power microcontroller running at 80 megahertz because first of all our power we don't need much processing power essentially the stm32 just provides a link between the RF and the USB host computer we don't need much flash we don't need much RAM but we do need a USB full-speed interface it's nice because this stm32 has the physical layer inside the chip already so we don't have to do anything any more complex design okay we've gone over the if' transceiver and stm32 microcontroller I also thought instead of having a PCB antenna it would be nice to have an SMA connector over here where we can attach various types of different passive 2.4 gigahertz antennas to this board so we're not constricted to using just one antenna overall I also wanted a relatively small form-factor so this looks big here but this is actually 15 millimeters in height and about 40 millimeters in length so very very small also chose to do this because there's quite a lot of interesting aspects of circuit and PCB design for instance USB differential signaling and just RF layout and routing in general okay so Jeff that's just gone over the overview of the board let's move on step by step how to ash your design is for what and what kind of design decisions I made I usually start by choosing my microprocessor and what pin out I need so what what interfaces I need if I knew GPIO is spra I squared C and I tend to do that in qmx or cube ID so I will choose a microcontroller which is an STM 32 l 432 I will it'll show me this view here of what pins I can use and this overall size of the chip example I can choose SPI 3 and of SiC select a full duplex mass and so forth and then select all the pins so that's the first step I do the end I'll have some sort of pin out diagram like this where I selected all the SVI pins and the extra gpo's which link up from the stm32 to the RF transceiver I've selected the swd debug interface which will have pins out here I selected USB which will go to this USB connector here as well as two LEDs receive and transmit just to indicate if we're receiving or transmitting packets okay so once I've done that I tend to move on to schematic creation which we'll do in Chi cat all right so if we go I've made a little project here called strf go to the schematic layout editor and here's the schematic I've come up with so far tend to section my schematics so I've second it into three parts here we have the power and connector parts up here a USB connector we have the transceiver part over here and the microcontroller part over here I generally also put notes next to my schematic because then for future use on their what I what the hell I was actually doing okay but let's start with the power section of the board which is over here so USB has a five volt power connection turret but we need 3.3 volts to drive for Percy sir and the transceiver now in the data sheet with stm32 it says that we actually need 3.3 volts pretty much exactly for the USB to work on the stm32 so that's one thing to take in mind because we're using USB to power this board we need to be a bit more specific would what decoupling caps we use so the USB specification says the intricate aster c1 needs to be a maximum of 10 microfarads if it's any larger the inrush current when this board is plugged in first so the host computer will be too large and the host device might not like that so a maximum of 10 microfarads at the input is given in the USB specification another thing to note is usually I would put in reverse polarity protection in terms of a diode or p-channel MOSFET but since we're using a USB connector here the chances of a she getting reverse polarity on the input voltage of very slim so I thought I just emitted for this for the sake of board space but in general it's quite a good idea just to put a reverse polarity protection on there I've had a fuse of 100 Mille Anton and that should be probably more than enough for the power consumptions or current consumption of this board than that it's a fixed LDO regulator which can drop 5 volts at 3.3 volts fairly efficiently and that will give us a maximum - and milli amps are 3.3 volts okay so that's kind of four very very basic through through regulator another thing maybe to know it is that I'm using a farad bead just to limit the high frequency interference coming from a power supply so essentially it's bait if almost effectively an inductor so it really at high frequencies at a hundred megahertz it looks like a hundred ohm impedance okay so moving on the next section I would like to look at is this stm32 section and again this is taking just information from the datasheet and application now it's provided by st and making schematic out of it so it's fairly simple the pinout is transferred from qmx so i showed the picture of that pin out so I've just labeled all the pins using these global labels over here and put them on other than that I use one decoupling capacitor of 100 nano farad per VDD pin so we've got one two three here that's why I have three 100 nano farad capacitors up here I also tend to put one bulk decoupling capacitor fairly close to the general chip itself so in this case it's a 1 micro farad capacitor all right we also have this boot zero pin over here which is pH three in this case and I pull this low so the boot pin determinant determines if the bootloader is started or not in my case I will be programming via swd and not using UART or USB to program this s/t so I can pull the boot pin low there are several application notes and the data to it'll tell you what boot pins you need to pull higher load to achieve which bootloader setting but in general if you want to use USB or you are to program it pull this high or make it variable with a dip switch but if you're just going to be using SW pull this pin low the boot zero pin low with a 10k resistor okay so next I've got these two LEDs I've chosen green yellow any color should be fine and then of course current current limiting resistor the way you can calculate the current limiting resistors you have 3.3 volts at the gpo pin where it is high red or yellow LED will drop about 1.8 volts and then you do three point three minus one point eight divided by your current requirements may be 2 milli amps and I'll give you that the resistor values so I think I calculated about 1 milliamp for each LED and that's usually more than lovers fairly bright ok also for USB it's it's a bit hard to find in a datasheet but once you know it you you won't forget is that the USB differential pair inputs a USB D - and US pair D + don't need any external termination or pull-up resistors these normally there you'll see these 22 ohm resistors in series with the D minus and E Plus lines but for this us for this stm32 you won't need that they incorporate it into the chip which is really nice and if made a little note down here as well also to indicate that it's a four-speed device you'll sometimes need a d-plus pull up in a pull-up resistor for about 1.5 kilo ohms but that's incorporated into the device as well and that's given in the application note a and for 879 so it's a bit daunting at first to see what external resistors you need what termination resistors you need but once you have it once this is usually fairly the same for most ST microcontrollers okay other than that I've this is that section pretty much done here I have the serial wire debug connector and if you just google arm 10 pin swd can see what the pinout is for a typical swd connector so if you just copy that over transfer to your schematic that's exactly what I've done and that'll fit with the st-link adapter okay this is something that isn't strictly necessary is this essentially debouncing capacitor on the end reset pin 100 nano farad's and that just essentially helps to prevent parasitic resets so if you if someone touches the pin with the hand it might reset the vise that kind of protects it against that okay so that was already the microcontroller side to the USB connector so we remember here on the microcontroller we have the USB differential pair - D - and D + and that goes to the USB connector here and I've chosen a USB micro connector just for the size just before that though I've chosen this USB LC 6 - SC 6 and that is to prevent against ESD so we'll have a lot of human touch when plugging and unplugging the USB cable to the connector and humans can carry quite a lot of static voltage on them which might disturb discharge through the PS PCB and that's what we definitely don't want and this chip is an ESD protection chip fairly common that'll protect that so it has low the T vs diodes inside in a nice little 6 pin package but I'll show you more of that one we actually get to the PSP layout and PCB layout and routing I'm good sneak peek it's this chip here so we're routing from the stm32 through to that ship and then through through to the connector but more on than later okay so back to the USB connector the USB connector has strictly defined pin outs so pin 1 is the 5 volts which then goes through the fuse through the farad bead to the regulator we have our data lines data + and data - and we also have this are deep in which we don't need so I just use it no connect flag ground of course is connected to ground and the shield is an interesting aspect so shield the opinions vary but according to the USB specification the question is do we need to ground this shield or not agree on the shield and the answer is the shield is grounded at the house side so if you're connecting this to a PC this will be grounded at the host side now we don't want any current to flow through the shield because we don't only want any current or to flow from for example the host to the PCB and then to therefore induce noise into the PCB and we also wanted to act as a shield so we do not ground the shield on the PCB side so again add a no connect symbol here for more information that there's plenty of information online just google shield USB ground or mock Randy okay so the last thing we need to look at is the transceiver side so which is this whole section over here a good thing here is to always follow the data sheet so if we look at the data sheet again which is over here this will have a lot of information of just the general block diagram the pinouts but it will also free I can find it if you an occasion example so we're using a single-ended matching network so have a single-ended antenna it'll tell you about the crystal you need to use and what frequency there needs to be at various decoupling capacitors and pull-up and pulldown resistors and so forth and essentially all you need to do is transfer this schematic to Chi card and that's pretty much exactly what I've done I've seconded sectioned it a bit more and we'll go through it but essentially follow the datasheet and if that application example matches what you need in this case it does because I'm using just a single-ended antenna of 50 ohms you can just transfer it over and they'll give you the component values you need for the matching necklace and so forth but let's just go through it quickly so here we have the NRF chip we've got all the connections to and from the microcontroller we have various pull-up resistors and of course again the decoupling capacitors so again per VDD we will use one decoupling capacitor and one bulk decoupling capacitor which will be close to the chip so the NIF transceiver we're using here also requires an external crystal and the schematic for that is given in the data sheet over here so I've pretty much exactly taken over and put it into click Add now the one thing you might have to change depending on the crystal you're using is the load capacitors on either side of it so the crystal I'm using here I calculated the load capacitors to be 12 Pico farad's on either on each side in the way calculated is is that on the datasheet for the crystal you'll use you find a load capacitance you take this load capacitance you subtract the the stray capacitance you'll expect on your PCB so this will be anything from two to five Pico farad's and you multiply that value by two so I did that for this crystal here and these are the values I got them for more bit for more detail or just Google crystal low capacitance or PS crystal oscillator and will tell you exactly why these capacitors are there okay so the final thing we need to look at for this transceiver is the antenna impedance matching and the SMA connector so if we go back to this the 3d view we've done the crystal here we've done as stm32 microcontroller and we've done this USB pot over here so the crisp the RF matching part antenna matching part is all this stuff over here so we need to do that because this chip will have a certain output impedance I don't know it could be a killer ohm or something or 200 ohms but our antennas generally have an impedance of 50 ohms and we somehow need to match this 1 kilo ohm or to your underarms whatever to 50 ohms and this is what this matching network does so it converts essentially an impedance here to an impedance here and make sure both sides see a matched load and this is very important because the signal voltages and signal powers were seeing or receiving from the RF side incredibly small and we want to minimize any reflections and power losses therefore we can actually transfer the maximum signal strength and this is what this network does additionally and also or it converts impedances but it also converts from single ended antenna to a different differential input from this chip so we have a differential connection here but we have a single internet and 10 over here and this network also converts single-ended to differential but again this is given in the data sheet so essentially it's this network I have transferred over here which is quite nice because you don't have to do any of the complex calculations yourself ok so this pretty much concludes the schematic section and next we'll move on to component selection and then layout and routing okay so now we're ready to select our components I've clicked up here on the sign PCB footprints - schematic symbols and this is open this window where we can actually assign footprints to every component in the view so in general because I'm I want to make a rather small PCB I've gone for Oh 402 components or rather small SMD components especially for the RF side of things is actually quite important that they are oh for two components and that is also given or mentioned in the datasheet for the NRF 24 so all these components you see here are oh for Oh - other than that that only plays where I've used Oh 603 so slightly larger surface mount components is for example the bulk classes of logic capacitors so 10 microfarads are Auto 603 s and also the resistors for the LEDs at the current limiting resistors so anything which has to handle or higher currents or higher needs to dissipate more power I generally tend to make them larger other than that I've also made the fuse Fei large so that's a she 1206 in size so over here that's 1206 just so in case it it burns out and need to be replaced it's easy to replace other than that I've chosen a USB connector which is fairly cheap and an SMA connector which is a 50 ohm connector rated at 2.4 gigahertz so I can show you that looks something like this this is just a ready run in through your model but the general view is here and it's an it's an edge mount PCB connector so it'll slide onto the edge like this and we can solo down onto the pads okay so that pretty much is a component connection and so let's move on to layout okay so now when the PCB editor and let's just talk about layout to start with a good idea is to always do a rough sectioning of what components need to go where so let's look at the 3d view so if essentially three four different main sections we have the USB and power section we have the stm32 section and we have the RF section so three to four different sections and first of all you want to do the rough layout so roughly take the components put them in positions where you think they'll be later on but don't be too finicky so don't change the grid size very small and try to mess around and move these millimeters or less than millimeters you want to kind of just do a rough placement to get a feel for how big the board is actually gonna turn out to be so we want to turn the board size via the rough placement and try to fit all our components into that space we also want to make sure that we're placing if we can all the components just on one side as you see here all my components on one side this makes the assembly much cheaper makes the troubleshooting much cheaper you don't always have to flip the board up and down and you can actually place this on a flat surface okay we also want to place the critical components first so this could be for example your centerpiece and your RF sections you want to place the chips first your RF layout first the crystals first and things like decoupling capacitors over here so decoupling capacitors want to be ready or very close to the supply pins with example here we have the supply Prinze 3.3 volts and not the decoupling capacitors are only fractions of a millimeter away from these pins so place corporate critical components first and then place less critical components for example less critical components could be this 3.3 volt regulator right now there's no high speed signals going through this or near this or this fuse these are not entirely critical if you place them a bit off so critical components first and then the less critical ones and try to fit that in the board space we also want this ESD protection chip which is this one here close to the USB connector so closer to the USB connector than to the stm32 chip regarding the RF layout luckily if we look at the data sheet there is actually a PCB layout example given this will give you where you need to put all the RF matching the eye sees Barry's connectors and crystals it'll tell you where to put them and this is exactly what I've done here I've transferred the example they give gave onto this PCB and that should mean should hopefully work and be a good layout okay and generally manufacturers will give this kind of information in their data sheets okay so once you've done the rough layout you've placed all the parts you can determine the board outline so I initially place all the parts fairly roughly and said okay this should fit in this in these kind of dimensions so I ended up being 15 millimeters high and 39 millimeters wide I also added using the edge cuts layer these rounded corners I tend to think this is using this ad graphic arc tool I tend to think it makes the PCBs look a bit nicer okay so now you've got the rough layout you've done the edge cuts layer you've got four dimensions sorted now you can actually go into the fine-tuning of the layout so making sure decoupling capacitors again are close but maybe they're not optimally close so you can optimize things that actually go to to go into a finer grid setting and move them around bit more finely so fine-tune that for as long as you have to because a good layout ensures that you'll have a much easier time actually routing this board okay so I was I was fairly happy with my layout here and it turned out that made my PCB routing tasks much easier and that's what we're gonna move into now okay so now let's get started with routing but before we can start with routing we need to look at the layer stack up so in general anything RF you want at least four layers so two layer boards will mean your controlled impedin traces will be very very wide and you'll generally have problems with decoupling and power planes and so forth so what I tend to do is generally stick with a four layer board and you'll be pretty safe so if you go up here into the board setup you can see the layer stack up so the top we have the front copper we have an inner copper secondary in a copper and the bottom copper layer now I will be using the front copper just for signals the inner copper layer will be ground the second inner copper layer will be power or 3.3 volts and the lower copper layer will be signal PCB Cygnus is one points it is one point six and that all looks fine okay what we want to do is then route section by section so we've laid it out nicely now we want to root for example all the USB we want to route all the power in one section we want to route all the STM in the one section and we want to route or RF and into one section in general we want to keep the largest tracts we can and larger tracts for higher current traces and the same goes for vias obvious you want anything that carries any higher current to be as thick as you can possibly make it for example here these power tracks over here are almost a millimeter wide and any signal traces for example up here or anything coming out of these small paths will be under 0.3 millimeters wide we also want to keep high speed signals from different systems away from each other so for example here are the SPI lines you want to keep that away from the USB or serial wire debug lines so any high speed signals which aren't part of the same system we want to keep separate also every ground or power pad for example here ground should have its own via so we have one ground via going here one ground via go here and so forth and that's general generally a good rule of course sometimes we'll have situations where you won't have enough space but generally one via per pad for power ground pad the nice thing using a four four layer PCB is we have these copper pores in the middle and we can just use a via to connect directly to this copper pot and this gives a nice low inductance connection to ground or power okay so on the topic of ground paws I switched is view so you can actually see them better you'll see at the front layer I have some ground pause but they're mainly just use so Dan how to route everything manually but in a first in a couple a as we said as a ground Paul and has a huge uninterrupted grandpaw except for this crystal here but we'll get into that a bit later a second inner layer we have this large 3.3 volt grand pool but nothing underneath the RF section and we'll get into that later as well and finally the lower order back copper layer again a large ground pool but nothing underneath is RF section and nothing underneath the crystal all right but let's let's just start with looking at the power section so again we want large tracts between this is this is the blow of the regulator over here so we want the large tracts and we also want because this regulator is going to feed essentially the power into one these ground planes you want a lot of parallel vias connecting into that power plane and also into that ground plane so a lot of parallel vias means we reduce the inductance okay so that was a really the very simple power circuit over here that's what you do pay attention to large tracts and parallel vias to reduce the inductance into the feeding into the ground and power planes so over here this is our stm32 chip and essentially our centerpiece of this board and that's why I thought to require ice just to put this into the center board so as I said before we wanted the decoupling capacitors first close to the supply pins and then I routed the SBI connections to this NRF chip and also for example the serial wire debugger to this connector and lesser important connections such as these LED connections so thus you see the kind of author I did things first or due to coupling capacitors than any high speed traces for example SPI and USB and serial wire debug and then the less important ones will get into USB in just a second but before that let's have a look at the NRF chip again they said before the layout is in the datasheet all right you can just copy that over again decoupling capacitors close to the supply pins and so forth one important thing here is of course that we're using a crystal or rather of NRF requires a crystal for proper operation what you need to pay attention to here is that nothing no high-speed or any signals in general should be running near or below the tracks of the crystal so you see how from no traces running underneath the crystal no high-speed traces everything's nicely separated another thing you need to pay attention to is that the ground poor is separated for the crystal so if I switch to this view you see that I have a huge ground plane for the rest of the board but the crystal is separated so I have drawn a little ground pool underneath it and connected it to the main ground pool with a very thin trace only at one point and as several sources which recommend doing it this way and it's worked well for me so far but there's one thing you really should pay attention to so I have no other tracks or any other ground pools underneath this just the one on the inner play and it's connected by this one trace on to this larger ground pull a so now we're coming to the more interesting parts of the board and we're going to look at the USB and RF sections so one thing to mention right at the start is that impedance matching is a very important now in general for RF we want a 50 ohm impedance traces so if example here all these traces are matched to 50 ohms so let's look at that first so you can see here the width is 0.23 to 9 3 millimeters and I'll tell you exactly how I got to that answer so if you go to my preferred PCB manufacturers GLC PCB let's just click on quote now choose a four layer board and then it will show up with this impedance calculator and this is what I use because you'll need to know the stack up from your manufacturer of the PCB so I can see if this works so every PCB manufacturer will give you this kind of information of how their PCBs are layered up so if there's a copper layer and then there's can be a dielectric material or another couple answer fourth the what the PCB manufacturer uses this and this is the stack up for their board and their stack up will determine the width of the trace for a certain impedance luckily they will usually also include an impedance calculator so I will choose I want impedance and trace space I want a 50 ohm impedance trace I'm routing it on an outer layer and it's a single ended on a four layer board so I click essentially calculate and for the second I'm using which is this one here the recommended trace width is eleven point five five mil particular line and all you have to do is then go to board setup go to present tracks and vias and I typed in eleven point five five mil here so I just typed in eleven point five five mil press ENTER and it'll then converted to millimeters for you and it turned out to be zero point two nine two three seven millimeters and this is will give you a 50 ohm Trek and this is what I used to root the whole RF section here so this is 50 ohms this is 50 ohms and so forth all the way into this chip here now what's also important is not just that your track widths are correctly set and you can use an impedance matching calculator to do that but also that you have an uninterrupted ground plane directly underneath the layer where your routing and this is what I have here so I have the top layer which is this red or this red copper here but underneath I have an uninterrupted ground plane so anyway there are their signal there's no there's no disking you discontinuities in the ground plane and that needs to be the case for everything another thing you need to take care of is that you don't have a ground fill next to the traces for control Derpy's and traces because otherwise if you have a grand fill let's say next to this here you'll also get kind of impedance matching or microstrip effects between these planes and that's not what you want you want only that effects to take place between the top layer and the next inner layer which is a Grand Tour and the same goes for any controlled impedance or high-speed trace so calculate the correct trace impedance and then also put a solid ground pour underneath and of course you can figure out the stack up and what impedances and trace would you need from various different calculators there's also one in Chi CAD up here so PCP calculator you can go to transmission line type in your PCB parameters and it'll calculate what trace width you need okay but keep those two things in mind trace with and uninterrupted grant fill underneath and no ground fills next to it okay so let's check if I've covered everything for that okay and the same goes for the USB as well so USB you will see I have matched impedance traces and I'll tell you about differential impedance traces in a second but you see that the ground fill is uninterrupted underneath all the way to the connector okay so here we looked at single ended matching USB is a differential communication system or signalling system and we need to do differential matching but it's as easy as it was before USB requires a 90 ohm differential impedance we click on differential we also need to click the trace space so the separation between the tracks so this separation here and you're free to choose any of these values here these are militant mils and I chose 8 mils and then you can click calculate and it gives you ten point two eight mils trace width so the trace paths was this 8 mils and the trace width is always at about 10 mils here you can also enter that in the board setup we type in the width which was about 10 mils I believe the gap was eight mils and I just set the vibe after the same and that'll this will then enable you to route differential pairs which are controlled impedance okay so the way you can route those is click on route and then differential pair and then click on whatever you need to here and it'll wrote it for you okay so one thing you might need to do with USB and with differential traces is to assume it match the SKU or the length of the tracks just clicking on route and then differential pair and routing the pair's does not guarantee that these the lengths of the individual traces will be the same and that can result in different that the signals arrive at different times at the receiver and that can be quite dangerous the maximum SKU you can have or maximum difference in reception times for USB is stated in the specifications and is given as for NAT picoseconds which is a fairly large margin for the speeds we're looking at here but the way you can match the trace lengths is if you go to route tune differential pair skew click on all these and then just drag around and you see it's trying to match the length of the trace and that's what I've done here so this little bump here is actually matching these two traces to be pretty much equal length okay and these apparently are equal lengths as well so everything's SKU wise is looking fine as well so just to recap you want to calculate the crate trace width and trace separation to give you a proper impedance you want to have an uninterrupted ground plane underneath and you also want to make sure the SKU or the phase difference between the two differential lines is matched so you don't get any problems with the reception on transmission okay so that's USB routing and are an RF impedance measured routing rather quickly one thing you'll notice here in the 3d view is this ring over here so you see it starts Senshi when this RF section starts and ends at the RF connector and this is what is called a guard ring and the guard ring typically surrounds critical YF circuitry so low-power signals coming from the antenna on to the vc b so these are incredibly low power signals and you want to shield them from any stray currents which may arise on the PCB and you can use a guard ring to do so so a guards ring will be essentially exposed copper around your RF circuitry and it will type be tired to a low impedance ground that's why I have all these vias here to tie it to ground so an example where you might see that you'll see that in loads of RF systems but here a great example is the hack RF and you see here you have an RF input and all the IR section is shield but shielded by this guard ring around it and this is exactly what I'm doing here as well so we have a copper essentially Paul connected with loads of ground vias to the ground plane underneath okay and that in a in a nutshell is over RF routing yeah again I'm probably sick of hearing it now but uninterrupted ground plane matched RF traces impedance matched traces and make sure the skew for differential pairs is matched yeah and you you should be pretty safe and again follow the manufacturers recommendations I also have a video on controlled impedance traces which goes into a bit more detail of how how these calculations come into into play for the calculating the correct trace widths but yes just to reiterate a point that it's good to keep clearance between everything and an especially high speed traces so you see I've left quite a bit of gap between any high speed traces for example VAR f and any other high speed traces example the USB or the SPI on there on the on the board does any will try to I know this is a very small board space but writer maximize the clearance between high-speed traces so he minimize capacitive crosstalk and cross coupling okay so we've that pretty much concludes the routing part so all the other important aspects have been highlighted maybe one thing just to mention here you'll see I have some vias and pads and if usually was shunned upon that you shouldn't be doing vias and parents because they were difficult to manufacturing and soldering but generally manufacturers these days can handle that perfectly and it just enables again multiple views in this ground pad enable a thermal connection for one so you'll have better thermal dissipation because these views will then connect into this large ground plane for heat dissipation in this scenario it's not a problem because we're not going to be dissipating very much heat or power but it also enables these multiple wires enable a low impedance connection to ground as well okay so once you've done the majority of the routing the next thing of course is to make it look a bit prettier and one way of doing that is adding silk screen so if example I've added just labeling to make sure everyone knows what these LEDs are for so it's a reception and transmission LED I've marked that this isn't a serial i/o debug connector I've put a little since you logo or a little silkscreen image on to label what this product actually is put my website on the back of course mark that this is pin 1 yeah just to make sure people know what's going on with this board another thing for assembly which is quite useful is to mark the locations of pin 1 so you see these little dots here mark the location of the pin one of each IC so pin one here and one here and so forth I've also marked the polarity of the diodes sort of an anode is marked with positive here and that just helps for assembly of or for any troubleshooting okay so that's the silkscreen making it look more a bit prettier than before and other thing you can do here for this 3d model not all parts will have a 3d model associated with them so for the 3d model for this as a makin actor I asked yet to Google to try and find a step model so I can import this into Karkat and the way you can usually do that is usually manufacturers will have 3d part models and in step formats or various different three formats you can just download that from the manufacturers website or of course just google the part name and 3d model or use sites like grab CAD and stuff like that okay so once you're happy and you've checked the design multiple times your tricks at this chromatic the layout and so forth made sure everything looks nice the ground paws look good you've done that the DRC check and made sure there's no errors it's time to export it for manufacturing and the way you do that is file plot generate your files first of all generate your file and then you want to generate all the layer files to the front copper inner coppers there copper silver and so forth just click plot rates all the Gerber's and then you can send that off to your PCB fab house for manufacturing but if you want assembly you will also have to make other output so if it'll whole fabrication output you want the footprint position files generate protein president fell here and this will generate a file a Commerce separated value file of all the ICS and where they're Center points are and this will help the pick-and-place machines at the fab house manufacturing house to know where to put all the components another thing you to do back in the schematic over here is generate a bill of materials so what proponents yes you want to be used for various capacitors resistors and so forth I have a more detailed video going to more detail on how to actually do that and export these files properly I wanna link that in the description as well but once you're done with that you're happy and exported all your files one last thing I always do is do a Gerber viewer check just to make sure Kai card has exported the files properly so I'll just load all those in will import them and I'll just go through every layer to see you if all the copper fields are correct if all the vias are the correct place the board outline seems okay and just go through those individually and so forth okay so once you're happy with that just send them off to your fab house and then it's time to test the device when it arrives with you so I hope this has been helpful as an introduction to RF and kind of high-speed signaling layout with USB and STM and NRF and if you have any questions please do leave them in the comments thanks a lot
Info
Channel: Phil’s Lab
Views: 200,890
Rating: 4.9651227 out of 5
Keywords:
Id: 14_jh3nLSsU
Channel Id: undefined
Length: 44min 1sec (2641 seconds)
Published: Mon May 11 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.