 Our next speaker got hit by a car, really, really bad, and she wasn't able to do anything for around half a year. And what do you do if you're running out of books to read and games to play? Well, if you're already a PhD in manufacturing, you probably turn around and think, what can I do in my home? And what you can do in your home without many tools is actually getting into electronics. And well, electronics can be functional, but electronics can also be very, very beautiful. So we're going to look at the beautiful side of electronics today with our most excellent speaker, Emily Hamas. So yeah, I'm going to talk to you guys about artistic PCB design and fabrication, and like you said, I'm a manufacturing engineer and a bioengineer. I'm really not an electrical engineer, nor am I a programmer. I literally had one programming class in my 16 years at a university, and I had two electronics classes. So really, not much more than gymnasium for everybody. My first PCB that I ever designed was actually during my PhD in manufacturing. I had no idea what I was doing. So I designed it completely in SOLIDWORKS, which is basically a mechanical engineering software where I built a 3D model, and it included layers that were going to be the copper. And then I went to an electrical engineer, and I was like, so how do I turn this into a file that an electrical engineer can use, and he just laughed at me. So the purpose of that was actually, of that particular PCB, see if I can get the mouse to work. Actually, I can just walk over here. But basically, in this column, this is a column used in chemical chromatography, or liquid chromatography to separate chemicals by different properties. And what I needed to do was buffer humidity that was reaching poison gas sensors without losing the poison gas measurements, because the sensors that my colleagues were designing were cross-sensitive to humidity and to the poison gas we were measuring. So it was my job to build a zero-energy system that could remove the humidity or at least buffer it so the signals wouldn't reach those sensors at the same time. So what I did, as I sort of inspired by a bathtub drain, is I built this PCB with the humidity and temperature sensor in the middle, and then slits in it so that the air could go through. And that's sort of how me building holes in PCBs got started. And building holes in PCBs is not really normal for fabrication companies. So when I took that PCB to EPFL and asked their fab to build it, they were not happy with me. So then, after the accident that he mentioned, I decided I wanted to, so basically I was living with my now husband, and he runs a embedded systems engineering company. And so our apartment is a stack of oscilloscopes and multiple soldering irons, and I knew very little about how to work with these things. But I was like, you know what? What you're doing is way cooler than reading books. So I'm going to figure this out. So I started with simple things, and basically then got into more complex things. And on the far side is a image of a PCB that's taped to the window that I've embedded plastic in. I have a video online of how I did that. For those actually, those are the examples, and that's the end slide of that video. And then this is what it looks like in the dark. So you can see that it blinks, and it also has this stained glass window property. So they're just 2D art. So then this is my most recent PCB, and it's a Christmas tree, and it's three-dimensional. They basically, the dragonfly and the Christmas tree have the same schematic. So electrically, they're identical. It's just there's four of them on the Christmas tree. But mechanically, they're very different. So that's a little bit of my background in the type of PCBs that I actually end up building. So this talk is going to be about my workflow. It's not going to be about all the different softwares. I'll mention the softwares that I use that are free. I've used non-free softwares, but those aren't as interesting because you have to do those for a company. If you want to do it on your own, you need the free software. So I'll mention which ones I use, but it's not an introduction on how to use those. It's an introduction on how to fuse them together, because that's the really complicated part that I had to figure out on my own. There's tons of YouTube videos on everything else. So basically, it's mechanical design that's coupled with the electrical design. So the first thing I'm going to talk about, it's actually an interplay between the CAD software, which is what architects and mechanical engineers use. And PCB software, which is what electrical engineers use. So basically, it's not about how to use any given software. So the first thing that I need to think about when I start designing a PCB is what are the rules that the fab needs me to follow in order to actually have my final electrical design called the Gerber file work in the fab or actually be buildable. And the green PCB is how it looks on key CAD in three dimensions. The purple PCB is how a lot of fabs would actually end up building it, because a lot of fabs do not deal with internal holes. Many of them will do it, but you might have to actually contact them and talk to a real person in order to make sure that they will actually build it the way you want it, because their software doesn't necessarily automatically identify the routing for that when they actually go to the milling process. The other thing that I have to think about is what are the design rules on v-cuts? So a v-cut, basically, if you look at this heart that I have an example of, it's a very small heart. So I can panelize it, which means putting more than one heart on a board so that I can break them apart later. This makes it cheaper for me, because then I get four for the same price as I'd get one for from the fab. But I have to incorporate a way to break them apart. And those are called v-cuts. And a v-cut is just they basically take a blade and they run the PCB through it. And it causes a small cut to be made in the board, and it's often on both sides of the board. But in order to do that, they need a flat surface. So it's difficult to see in, I'll use the pointer, although I don't think it shows up online. So basically on this red PCB where there's the four hearts, they don't have a way of making this yellow line because or without these small edges, because there's no flat surface for them to use as a guide. So then I got an email back from my fab that they were like, we can't build this the way you want it. So you have to add some part that's flat so that we can actually manufacture this for you, which is why I ended up having to add this. So it's a really important design rule. In this case, it wasn't a problem because I had this space to make it flat. But if you don't design it with that in mind, it might not end up working. So then in order for that extra part to be removable, I needed to do something called adding mouse bites. There's a couple other names that these go by, but at least in Switzerland, everybody I know calls them mouse bites. So basically that's this small square and this is what it looks like when you zoom in. And there's these small or these three small holes that make it very weak in that part so you can just snap it apart and break it. And this is what they look like on the Christmas tree to break the separate branches apart. So the other thing you need to think about, you can't just make things infinitely thin. You're gonna have to put the wires in somewhere and you're gonna have to put the components in somewhere. And so you need to think about how big those wires need to be, how close to the edge can they be, and design with that in mind. So this is the Christmas tree that I did and this side is actually, it's not the mirror image, it's like the rotated image. If you flip a pancake over or you turn a book over. So this is the backside and this is the front side of each other. So when I go and I zoom in on the center, what you're seeing is actually this is the backside that would be on here, this is the backside that would be over here. And what you can see is that up here, it's really, really tight. And so you have to think about how many wires do I kind of expect, how big are these components and design so that it really will eventually fit and sometimes you have to redesign things because you need more wires than you originally thought about. And then there's also mechanical properties. So PCBs come in different thicknesses. In the case of my PhD when I built this, I needed a very, very thin PCB because I had a very tight restriction on this component and actually all of these measurements are minimized as much as possible for clearance and manufacturability and stability. So in this case, this PCB was really, really stable once it was in the column. But a number of people were not careful or my collaborators, because this was delivered all over the European Union. A number of my collaborators were not very careful with this PCB and they would bend it or break it which made my fab even more happy with me because basically they kept having to rebuild them. So you just need to think about the manufacturability and once you start removing the inside, how strong will it be and will I be able to bend it like paper because if you can do that, it's not gonna last very long. So then you also just need to think about the tolerances and a lot of these are online. So for example, holes in pin headers. I recently had a PCB that I designed and the pin headers were a really good, tight fit. They basically you stuck them in and they were pretty much a right angle in the first round and then I ordered more and the holes didn't fit anymore. So you need to always allow for some tolerance in your manufacturing site and air on a bigger hole that you fill in with solder at least in the artistic side then a small hole that you have a perfect fit with. Also wires near the edges can sometimes cause problems and that happens because the tool might not be perfectly aligned. So if you put your wires further away from the edge you're gonna have a more likely chance of having a lot of really good PCBs rather than difficulty with your fab. And if you're already asking your fab to do special stuff for you you probably don't wanna make their life even harder. And then tool radius. So in this first version of the Dragonfly I sometimes had problems with this particular joint and you can kind of see a blown up sort of out of focus image here where you can see that they had trouble with the tool because they were using one milling tool for this outside part and then they had to go in with a smaller tool to sort of get this part out and it was difficult for them. So that's why in the Christmas tree I made the fillet so that's the curves on the inner so a fillet in manufacturing or in mechanical engineering is when you have a tight joint and you make a small radius that's the size of the tool bit or larger. So I made bigger ones and later designs for that reason. So now that you kind of have a background in all the different things you have to keep in the back of your mind when you're actually gonna try and have this fabricated now I'm gonna get to my workflow which is what I actually go through when I'm trying to design something new. So the first thing I do is I actually get a piece of paper and a pen and I just start sketching what I think it's gonna look like. It's so much faster to draw it on paper even though I'm really not a great artist than it is to try and draw it in CAD with exact dimensions and so on. Then I make a schematic in KeyCAD. Schematics are basically the electronics and saying I need a resistor, I need a capacitor and so on. Then I pick the components so that's not just I need a capacitor but I need this type of capacitor that's this big and this wide and this tall. And then once I have that, I now have the maximum size that all my parts need to be that it need to fit on the board to actually do something. So then I can go in to a CAD model which is what the mechanical engineers and the manufacturing engineers and the civil engineers and the architects use to start building the PCB outline so that electrical circuit board outline. Then I import that model and I use the outlines that I drew as the edge cut. So that's actually the end of where the milling tool will go during the manufacturing process. And then I place the components where I want them to be and then I connect all the wires how they need to be and then I optionally will panelize them depending on how big that PCB is gonna be. So that means putting more than one of the same thing on the same board. And then if I need to, in order to have it be manufacturable just like the heart then I have to add break-offs which is all those parts that I'll eventually throw away just so that they can do V cuts and so on. So this is me sketching what I think my Christmas tree will look like. So what I did as I started and I literally got a piece of paper and I started drawing triangles that are the size I wanted it to be. So this is 10 centimeters tall and then each one of those small triangles is five centimeters. And then I started sort of sketching this trying to keep it at about three millimeters because I've done so many Charlieplexing LED things at this point. I know that if it's less than three millimeters it's gonna be hard to route a lot of wires. So it's a good starting point from my side. All my components I also know will be able to fit on that three millimeters except the microcontroller. So that means somewhere I'm gonna have to make something bigger than that three centimeters. Or three millimeter, no, three centimeters. Sorry, that's wrong. It should be centimeters, not millimeters. No, it should, yes, millimeters. Sorry, sometimes I think in inches I'm American. I haven't quite converted. So basically I also think about what it should do electrically. So is this blinky lights? Is there a motor? Is there, what's it gonna have on it? And then is it gonna be 2D or 3D? And I started thinking about if it's 3D how am I gonna get ground and five volts from one side to another? Do I need to get a signal somewhere? Like is there one microcontroller on this 3D object? And therefore the branches of the Christmas tree are all going to have to get all the signals from the microcontroller or I'm gonna have separate microcontrollers on each branch? How's it gonna work? Then this is the schematic actually and it's the same schematic I've used for the dragonfly, the heart and the Christmas tree. Where I basically go in and I say okay, I have that sketch that I drew by hand and I'm gonna need a capacitor that goes between five volts and ground. I'm gonna need the microcontroller that's gonna tell all these LEDs what to do and because these are LEDs, I'm gonna need resistors. So I connect them all the way that I want them to be and the way they need to be to work and then the next thing I do is I actually go through and I get on like a distributor for electronics and I actually pick components. So this is an 0603 capacitor. These are taken from Digi-Key. This is an AT-Tiny. These are resistors. This is the LED and so on and that way I have a physical idea of how big these things need to be and then again, footprints to the pads that those components are gonna be soldered on are actually bigger than the components itself, logical. So I need to figure out exactly how big those need to be because if it's a perfect fit for the resistor somewhere that means it's not gonna be a perfect fit for the resistor, it's not gonna be a perfect fit for the pads so I need to really think about the pads and at this point sometimes I design new footprints. So maybe I want instead of the resistor to look like this, maybe I want it to be a Christmas tree so the ball needs to be actually a ball like I want these to be the ornaments so then I just would make some silk screen marks around it that make it look like a ball, for example. So then I have to go ahead and actually build the CAD model. So that means I go into Fusion 360, you could use other software, I've used SOLIDWORKS before as well and then I start drawing things and these are all three millimeters and this is actually where the microcontroller goes because it has to be big enough for the microcontroller and so this was the logical place to put it and the dragonfly it's actually in the center where the wings come together and the snowflake it's in the center as well and some other PCBs it might be on the stem of a shamrock because those are logical places to be bigger. So this is the snowflake that I was talking about so sometimes I also, this is like actually one of my earlier PCBs, I actually modeled the components to make sure that it would make sense and it would look okay and I don't have the back shown but I also modeled this component and if you look it's kind of a tight squeezer and I needed to make sure it would fit. So then once you have a CAD model that you're happy with then this is sort of a weird step that it took me a while to figure out but I already had a lot of experience dealing with the quirkiness of machining tools and 3D software. So basically I export it from Fusion 360 as a DXF but because there's multiple different formats that DXFs can have so DXF is just a two-dimensional drawing format. There's multiple forms that it can have. I actually have to open it in another software because Fusion 360 doesn't save it in a format that KeyCAD can read. I open it in a different free software and then just save it as an R12 ASCII file that's a form of DXF and then I can open it in KeyCAD. If I don't do that what ends up happening is only the straight lines show up and some of the circles might but none of these complicated curves will show up as edge cuts. So then I just go through once I have the edge cuts put on my board because this is when I'm starting to actually design the board. I import all of the LEDs and so on that I did in the schematic and then I start placing them where I want them to go in some cases I might have if I'm really gonna be very specific about where an LED needs to be. I wasn't so much on the Christmas tree. I'll also have exported the LEDs as part of the edge cuts and I'll just delete them later and that way I know exactly where I want that LED to be and then I need to route them. So all electrical softwares have routing as far as I know that you can do and it usually comes out in like a 45 degree angle or maybe 30. So often I will do it by hand. This is a different kit that I built and I wanted the routing to sort of make a heart shape in the Charlie Plexed heart and so I did it by hand. The other option, it also if you do it by hand you are less likely to make really dumb mistakes. So for example, when you use an auto router know where the components are but they really don't care about anything you would learn in like a physics class. So they have no problem with making an insanely long line from a capacitor to a microcontroller and you want that line to be really, really short because it's supposed to buffer voltage changes and provide like basically buffer fluctuations in the amount of energy that the microcontroller is receiving from the main power source because maybe more LEDs are drawing more energy but anyway it will make those lines not the way they should be. So doing it by hand is often better but with some of my designs like the Christmas tree it's just not possible because this isn't an angle that KeyCAD can do and that most softwares can do. I actually export the file that has all of the components on it placed in the correct location and the edge cuts and Topa router will go through it and it will make curvy lines by making lots of tiny straight line segments. And one problem with that is that a lot of these auto routing softwares have no ability to work with a giant hole in the middle of the PCB so they'll just connect like this to that just through the hole. So that doesn't work either. So there's a script on my GitHub page. It's actually not on there right now. I will put it up there by the end of Congress but I just didn't have time over the holidays. And then once I do that I also need to check for stupid electrical errors not because they won't be connected but because sometimes you have components that are close to another component and the lines need to be very, very short so you might have to fix that on your own. So then at that point you're basically done except if you wanna panelize. So in the case of the Christmas tree I had one and I wanted to make four. So in order to make it panelize well because this is basically just a triangle and I needed to know how long it was and how tall it was and in my mind it was the full five centimeters but in reality because I'd cut off this corner it wasn't five centimeters. So I took a marking edge so something that the manufacturing process doesn't use for anything and it doesn't end up in the Gerber files and I extended this line out to where it should have ended so that it would be the right shape so then I could rotate it and flip it and so on and have it turn into this pattern. The other thing is that I had to remove extra and duplicate lines so in the process of making one I needed to close all of the lines so on this mouse bite there's a line here so actually the arrows will show it so the blue lines or the blue arrows show where these mouse bites are closed and they're actually gonna flip and connect to each other so I had to remove them in the final panelized version over here so you can see it four times with this edge removed and then there were a couple of mouse bites that were close to that edge so they weren't completely closed and it also had problems with that so I had to just replace them with circles or close them manually and then the next step when you're panelizing is also to add break-offs for the manufacturing process so in this case that was these small edges because the v-cuts needed the flat surface so that is the end of my talk and if you have questions, I'm open to questions you can also, if you're online and you're watching this later you can leave a comment on my YouTube channel like trying to get back to people and make videos based on their comments I have a Tindy page and I have a web page and then if you wanna learn how to solder but you don't know how come over to the hardware hacking area because I'm gonna be teaching a workshop on that Thank you very much for this most excellent talk if you have, please round of applause if you have any questions there's microphones, six distributed through the room please just walk up to them and I'll point you out are there any questions from the internet? No questions from the internet are there any questions from the audience in the sal? Come on guys, I know it's early there is one, please walk up to the microphone there in the aisle center front microphone please Let's see if this works sounds good, so I'm also very fascinated of the idea of Charlie Plague Circuits and I'm wondering, do you sell any of your PCB as kits or something? Yeah, I have all of them as kits with me so go over to the hardware hacking area Okay, that's cool, thank you Yeah, even the ones that aren't on Tindy so basically anything on my web page tried to get all of it here Again, center front microphone please Yeah, hi, why didn't you use the PCB layout software to create the outline? Because KeyCAD doesn't like splines and so if I did the so basically PCB software is often designed for straight lines or arcs so just circles and straight lines to define more complex shapes is significantly harder Also with standard manufacturing software or standard mechanical engineering software they're designed so that you can parameterize things so actually with the snowflake or the Christmas tree in the Fusion 360 version I have numbers that say three millimeters this is three millimeters and so if I decide later I need it to be four millimeters I just go four and then export it again it's much faster it sounds harder but it's much faster Again, center front microphone please Absolutely newbie so I'm only wondering if you prefer Eagle as well So I've never used Eagle and the reason that I haven't is well there's two reasons first right now it's only free for smaller PCBs than the Christmas tree so I don't want to spend money because I'm currently unemployed and don't have that kind of money second my husband runs an embedded systems company and he uses KeyCAD so I have a professional that lives with me that I can go I don't understand and he can be like here's how it works so on that side it was easier for me to use the software that was already in my house when I was working professionally we used a professional software so it's just basically I started learning when Eagle went from open source and free to being bought by Autodesk Again, center front microphone please Thanks for this interesting talk so I knew about PCB design but the artistic part was new my question is how do you deal with so I like to use Git or some version control and with KeyCAD it's easy you have a diff it's an XML file but with the other tools you have binary files you have any way to deal with diffs of binary files so with most mechanical software there's version control as well so you like for example in Fusion 360 every time I save it'll save the same file as version one or version two or version three or version four so it's not really GitHub but it does have a way to regress backward in what you want so you save it as version one, version two or it does it automatically actually does it every time you save it it sort of appends a new version to it because this is also a problem industrially with mechanical engineering designs where multiple people need to be working towards getting maybe a probe to be stable so they also have to deal with version control because I'm trying to do the switch from Eagle to KeyCAD and then Eagle I just have version one, version 200, 300 yeah so with KeyCAD I don't really do so much version control yeah I he would be the person to ask because he's the professional the guy in that shirt with the donut panic is really the person I end up asking all of my really tough electrical questions too we have another question on the front right microphone yes hi everybody thanks for the talk not really a question but just the heads up there's going to be according to my knowledge a KeyCAD beginner workshop on Friday in at nine in the evening just for those interested cool another question maybe you show up as well another question from the center from microphone to the usual PCB interested person how would you recommend to find and select the fab for a regular PCB like if you're just trying to like make a square I think any of them will probably work for me like when I was trying to do the Christmas tree I sent it to three different fabs and one of them I have a contact there because I actually visited that fab at one point and so that worked out but when I actually the purple picture is from Osh Park and they say somewhere that they don't deal with internal holes yeah so I would just contact people just email people if you have something weird email people and see if they can do it because most people who have a PCB fab want money and will work for money next question again center front microphone please yeah very very specific to your talk you said that the DXF format that fusion puts out is not directly readable without loss by keycap I missed the software you used to convert it it's draft site so this this side at this slide so that's how it's spelled I see yeah and in that software they have I don't know maybe 20 different types of DXF and other formats you can save things in so when I worked for the SwissWatch industry we would have to take all our files and save it in the right one from customers next question center front microphone hi everybody if I wanted to find a lot of people who already know key cut where would be the best place to look an electrical probably the workshop yeah well that's the beginners I'm talking about people who already know key cat it's like is there like one main discussion group in usenet or something like central point on the internet to find these people yeah IRC the audience says go to IRC there should be a key cut channel again probably on free note like he mentioned I was a broken person who couldn't leave my apartment for actually it was a very very long time but he was my answer for everything I was just like I don't understand after an hour can you fix it he's like okay so I'm not knowledgeable on that next question from our signal angel handling the watchers at home next question center front microphone hi thanks for your talk I just have question about the mouse bite or do you convert them from the edge cut format to to drilling actually so I just leave them as edge cuts honestly and they magically work okay not the answer I expected but thanks are there any more questions last call for questions nope doesn't look like it well please give Emily Hamas a nice round of applause for her excellent talk yep and if if you're watching online not during congress you can contact me that way