Author Topic: Correct way to show screw holes for manu  (Read 14021 times)

0 Members and 1 Guest are viewing this topic.

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Correct way to show screw holes for manu
« on: February 23, 2018, 07:15:36 pm »
Do I put screw holes on the edge cuts or ... how do I force a "drill"?

Basically I have to / want to make the board the size detailed here:
http://www.hammondmfg.com/pdf/1551G.pdf
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline fourtytwo42

  • Super Contributor
  • ***
  • Posts: 1183
  • Country: gb
  • Interested in all things green/ECO NOT political
Re: Correct way to show screw holes for manu
« Reply #1 on: February 23, 2018, 08:50:53 pm »
In PcbNew just directly "add footprints" "select by browser" M for "Mounting holes" did I get the question right ?
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3781
  • Country: de
Re: Correct way to show screw holes for manu
« Reply #2 on: February 23, 2018, 09:15:26 pm »
Yep, a mounting hole in Kicad is basically just a footprint with a through hole pad on it. You put it on normal layers as any other component.

BTW, tip - if you add holes by hand (i.e. you don't have them in the schematics/netlist - probably nobody does), it helps to lock them in place so that they don't get removed when you reload/update your board from the schematics after any changes. That also prevents you from accidentally moving them around.
« Last Edit: February 23, 2018, 09:17:46 pm by janoc »
 

Offline firewalker

  • Super Contributor
  • ***
  • Posts: 2450
  • Country: gr
Re: Correct way to show screw holes for manu
« Reply #3 on: February 23, 2018, 09:27:13 pm »
You want something like this?



Alexander.
Become a realist, stay a dreamer.

 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2317
  • Country: au
Re: Correct way to show screw holes for manu
« Reply #4 on: February 23, 2018, 09:58:53 pm »
Yep, a mounting hole in Kicad is basically just a footprint with a through hole pad on it. You put it on normal layers as any other component.


There can be a bit more to it than that. Does the OP want the screw hole to be plated or unplated? Both are legitimate choices in different situations, and you can check what you've specified in the drill report file that KiCad can generate. For example, this board has both plated AND unplated 3mm holes:

Code: [Select]
...
Drill file 'power.drl' contains
    plated through holes:
    =============================================================
    T1  0.30mm  0.012"  (40 holes)
...
    T9  3.00mm  0.118"  (2 holes)

    Total plated holes count 236


Not plated through holes are merged with plated holes
    unplated through holes:
    =============================================================
    T10  3.00mm  0.118"  (1 hole)

    Total unplated holes count 1

I can't recall off hand how to specify the difference, but both are simple pads. I think maybe the unplated hole is made by having a pad size of zero, or maybe turning off the copper layers. Play around until the drill report file matches want you want.

BTW, tip - if you add holes by hand (i.e. you don't have them in the schematics/netlist - probably nobody does)

Well, I do...  But locking the holes is a great idea in any case, to avoid accidentally moving them as you said.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3781
  • Country: de
Re: Correct way to show screw holes for manu
« Reply #5 on: February 24, 2018, 10:43:26 am »
Yep, a mounting hole in Kicad is basically just a footprint with a through hole pad on it. You put it on normal layers as any other component.


There can be a bit more to it than that. Does the OP want the screw hole to be plated or unplated? Both are legitimate choices in different situations, and you can check what you've specified in the drill report file that KiCad can generate. For example, this board has both plated AND unplated 3mm holes:


Sure, but that you can set when you are configuring the footprint/pad. Just set the pad type to "NPTH Mechanical" instead of the default and it will not be plated.


Well, I do...  But locking the holes is a great idea in any case, to avoid accidentally moving them as you said.

Hmm, out of curiosity - how are you representing the holes in the schematics/netlist? Just put down any 1pin test pad somewhere in the corner? I can see wanting to do it if I wanted to make sure the holes are tied into the ground net, for ex, but not sure why I would do it otherwise.
« Last Edit: February 24, 2018, 10:52:15 am by janoc »
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #6 on: February 24, 2018, 11:57:06 am »
I'll try a few of the ideas later.  I got as far as putting a single through hole pad onto the board, also found a few suggestions by google.

I don't need the screw hole to be plated or on the ground plain, but it wouldn't hurt the case is ABS plastic.



I'd rather not have that "REF***" on the silkscreen though :)
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4391
  • Country: dk
Re: Correct way to show screw holes for manu
« Reply #7 on: February 24, 2018, 01:48:22 pm »
I'll try a few of the ideas later.  I got as far as putting a single through hole pad onto the board, also found a few suggestions by google.

I don't need the screw hole to be plated or on the ground plain, but it wouldn't hurt the case is ABS plastic.



I'd rather not have that "REF***" on the silkscreen though :)

click ref** E for properties and untick visible should do it
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #8 on: February 24, 2018, 03:10:57 pm »
click ref** E for properties and untick visible should do it

Ah ha!  I was trying to delete it but it won't delete references.  Didn't think of hiding it.

Also, a tip to self... put the drill holes in for screws first.  Means you stand a chance of laying the board out around them.  In this case you can see I can't really use the other screw (top level User Drawing).  I did try and move the DC jack around, but it looked like completely redoing the board to accomodate it.

One screw will do!
« Last Edit: February 24, 2018, 03:12:41 pm by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3781
  • Country: de
Re: Correct way to show screw holes for manu
« Reply #9 on: February 24, 2018, 05:34:32 pm »
click ref** E for properties and untick visible should do it

Ah ha!  I was trying to delete it but it won't delete references.  Didn't think of hiding it.

Also, a tip to self... put the drill holes in for screws first.  Means you stand a chance of laying the board out around them.  In this case you can see I can't really use the other screw (top level User Drawing).  I did try and move the DC jack around, but it looked like completely redoing the board to accomodate it.

One screw will do!

Jeeze, don't be lazy! It is not like you have hundreds of traces on that board, moreover the push & shove routing in Kicad will let you move things around with ease. Not putting a screw next to the power jack that will get unplugged and reinserted (thus loading the board mechanically) is a bad idea and you will likely pay for it by something getting broken over time.

Even regardless of the screws you should probably move the traces around the pin 8 of IC1 (hmm, any reason for using both IC? and U? conventions on the same board?) - that looks like asking for a short even though you have ton of space to move the trace above that pad. The traces between the pins of the P1 header the same story. Did this actually pass the DRC checks?

You have two layers, use them! It is better to put a via down and route the trace over the other side than to risk a short because of a trace too close to a pad. Murphy will ensure that you will get a stray piece of solder or a hairline short from the etching there and good luck finding that ...

« Last Edit: February 24, 2018, 05:44:28 pm by janoc »
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #10 on: February 24, 2018, 06:11:38 pm »
Thank you for the feedback.

If I move a component the tracks don't follow it.  When I move the barrel jack down as far as I can I will still have the screw head screwing down onto the GND pad.

Besides, it's still a little draft as I'm not 100% certain on the footprint of the DC jack.  It is assuming I go for a standard SMD one, but I think through hole might be cheaper.  So when I make a concrete decision on that I'll try and move it to accomodate the screw.

I also have to test the size gain/loss with using a TO-92 version for U1 (LM78L05) as I already have them in stock (IC / U thing was just an oversight :)) That will move things around a bit too.

I'm starting to realise that for these small boards you spend a lot of time starting from scratch, but each revision is 'usually' better. 

It did pass DRC checks, but I think the nudge router is set to assume absolute minimum clearance is fine, maybe I should up my minimum clearance a bit until I need it lower. 

However I already moved the tracks away from P8 on IC1.  You are correct I should via down to the back layer for the pins on the other side of P1, thanks.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3781
  • Country: de
Re: Correct way to show screw holes for manu
« Reply #11 on: February 24, 2018, 06:23:26 pm »
Thank you for the feedback.

If I move a component the tracks don't follow it.  When I move the barrel jack down as far as I can I will still have the screw head screwing down onto the GND pad.

That's normal - but then you can just delete only the segment of the track going to the component, not the entire net.

Besides, it's still a little draft as I'm not 100% certain on the footprint of the DC jack.  It is assuming I go for a standard SMD one, but I think through hole might be cheaper.  So when I make a concrete decision on that I'll try and move it to accomodate the screw.

If it is a regular barrel jack, I would probably go for a normal panel version - the kind that you make a hole in the enclosure wall and then fasten it with a nut and connect to the board using wires.



Problem solved and it will be  much more robust than SMD-mounted one.

It did pass DRC checks, but I think the nudge router is set to assume absolute minimum clearance is fine, maybe I should up my minimum clearance a bit until I need it lower. 

Check your design rules - normally the clearance should be set to about the same value as the track width, i.e. if I am using 10 mil traces, they should have at least 10 mil clearance too. Of course that's not an absolute rule but it is a good starting point.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Correct way to show screw holes for manu
« Reply #12 on: February 25, 2018, 12:00:20 am »
Even on the smallest PCB's where there is a will, there s a is a way, When you get to certain levels of complexity, you may find yourself ripping up and reoptimising sections a few times,

I can forsee a way to have both SOIC chips against 1 another, however thats too hard to do in paint,

You could also run that data line on the top layer, there is nothing in the way

As for the screw holes, see the image, you have plenty of room.
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #13 on: February 25, 2018, 08:12:56 am »
If it is a regular barrel jack, I would probably go for a normal panel version - the kind that you make a hole in the enclosure wall and then fasten it with a nut and connect to the board using wires.

I'm actually struggling with the DC jack.  The random SMD one I picked off RS Components for laying out the board that matched the default KiCad footprint is 10.5mm high, but it's 2.5mm pin diameter.  I need 2.1mm.

Based on the drawings of the case (linked) I need something which is less than 11mm high (assuming a 1mm minimum board thickness).

Max height: 11mm
Max length: 20mm - could push to 22mm.  C2 might need to lean over anyway due to height limits, but can lean towards the pin header (P2) or down towards the bottom.
Max width: 17mm
Max current: 1A (I'd prefer 2A)
Voltage: 12VDC

http://www.hammondmfg.com/pdf/1551G.pdf

This panel mount one does not state it's total or drill diameter and is pushing it on length.
https://uk.rs-online.com/web/p/dc-power-sockets/0487832/

This THT one is pushing it on height and might require the lid get notched to accommodate the plug.
https://uk.rs-online.com/web/p/dc-power-sockets/8840957/

There are a few which are confused about their pin diameter :(  2.1 or 2.5?
https://uk.rs-online.com/web/p/dc-power-sockets/1251075/

Of course I could just go up a case size, but I'm determined this will fit!
« Last Edit: February 25, 2018, 08:16:43 am by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3781
  • Country: de
Re: Correct way to show screw holes for manu
« Reply #14 on: February 25, 2018, 01:13:44 pm »
In my experience the safest option is to order few of the jacks and measure them yourself. That's the only way to see how and whether it will fit - the dimensional drawings tend to be crap and often don't even match the actual part, especially when it is something generic like this. I have seen both Farnell & RS showing datasheets for a totally different component than what I was looking at, so beware!

The length shouldn't be a problem, IMO. If you don't have enough space on the board you can easily flip the voltage regulator or the microcontroller (or even both) to the other layer and move the capacitor (the advantage of SMD - they don't interfere with each other because there are no holes through the board!). Or use a flat tantalum type that doesn't take as much space. That will certainly free up quite a bit of space there. You can also gain space by moving the two pin header for the switch to the edge of the board - I am sure that one's position isn't critical because you are going to connect it using wires.

BTW, the best way to design things like this where you are constrained by the enclosure is to first position all the mechanical things that have to somehow interface with the box - screws, connectors, switches, etc and lock them down. If there are any protruding parts (e.g. a connector that will pass through the wall of the enclosure) don't forget to think about how the thing will be assembled - protruding parts on multiple sides of the board could prevent you from actually inserting the board into the enclosure!

Then place the remaining components because then you will see how much space you have to work with.

Personally I love this kind of work - it is a fun 2D-3D puzzle to work out and pretty satisfying when everything fits together. And also very infuriating when you assemble the board and discover that you have screwed up the position of something by a millimeter and it doesn't fit now.
« Last Edit: February 25, 2018, 01:23:00 pm by janoc »
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Correct way to show screw holes for manu
« Reply #15 on: February 26, 2018, 09:01:48 pm »
I'm actually struggling with the DC jack.  The random SMD one I picked off RS Components for laying out the board that matched the default KiCad footprint is 10.5mm high, but it's 2.5mm pin diameter.  I need 2.1mm.

Usually this sort of jack comes in both flavors (2.1 mm and 2.5 mm). Same footprint, just different center pin size. I know Switchcraft parts are like that.
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #16 on: February 26, 2018, 09:10:14 pm »
i have half a dozen DC jacks in the parts bin, but the PCB mount ones are 0.5A and not enough for the purpose.  I have 2 panel mount ones and the ebay listing claims 3A... I'm suspicious though.

I might order a few different ones from RS and see whats what.  I like the idea of the PCB mount as it will keep things neater and easier to just drop the PCB in and screw it in place without fighting with short link wires in a tiny enclosure, or making them long and spoiling the look of the semi transparent case.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Correct way to show screw holes for manu
« Reply #17 on: February 26, 2018, 10:45:15 pm »
i have half a dozen DC jacks in the parts bin, but the PCB mount ones are 0.5A and not enough for the purpose.  I have 2 panel mount ones and the ebay listing claims 3A... I'm suspicious though.

Switchcraft RASM722 claims 5 amps.

 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #18 on: February 27, 2018, 08:13:19 am »
I went for this one:
https://uk.rs-online.com/web/p/dc-power-sockets/1251075/

Also bought surface mount caps for the 100uF instead:
https://uk.rs-online.com/web/p/aluminium-capacitors/7393040/

So that's the BOM ordered, now I can start tweaking for the known footprints and hope I don't need to adjust when they turn out different. :)
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #19 on: February 28, 2018, 08:21:25 pm »
So after matching the footprints to the datasheet of the components that arrived, I have ended up with this:



I redone the switch to be pull up open as this seemed to be the more common way and avoids having to deal with the internal pull up stuff.

Question is... does anyone see anything blonde?  Should I get it printed?
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #20 on: February 28, 2018, 09:30:02 pm »
So... after I submitted the order to PCBWay I discovered the my DC Jack foot print is mirrored.

I told myself 10 times, if I check one thing it's the pin out of the custom footprint.  Hit "Pay" and ... 3 minutes later I realised.

Now I could just cut the PSU leads and swap them.  It's an option, but... luckily PCBWay agreed to hold the order.  I can submit Gerbers by email to release it. 

 :-[ :-[ :-[ :-[ :-[
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3781
  • Country: de
Re: Correct way to show screw holes for manu
« Reply #21 on: February 28, 2018, 10:38:12 pm »
So... after I submitted the order to PCBWay I discovered the my DC Jack foot print is mirrored.

 :-+ Happened even to the best of us :)
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Correct way to show screw holes for manu
« Reply #22 on: March 01, 2018, 05:58:13 pm »
So... after I submitted the order to PCBWay I discovered the my DC Jack foot print is mirrored.

Make sure you fix the footprint in your library! There's nothing like making the same mistake twice.

Then there's this: Tuesday night I submitted Gerbers for two boards to Seeed. In Wednesday morning's e-mail was a coupon from Seeed: "Save 10% on all PCB orders in March!"

ARRRRRGHHHHH.
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #23 on: March 01, 2018, 07:03:02 pm »
Make sure you fix the footprint in your library! There's nothing like making the same mistake twice.

Yea, so as a final check I ignored everything except the traces on the screen and held the part up to the screen and ... even got my multimeter out and tested that the pins that go to 12V have continuity with the centre pin.

It wasn't that the footprint was mirrored it was that I had numbered the pins wrong.

It meant dropping the 12V under the ground on the back side, but that's what it's for.

I almost sent it with the silkscreen still saying GND on the 12V pin, but I think I would have caught onto that.  Also nearly sent it without punching the ground onto the back plane with a few vias.  Kicad DRC didn't catch that so it must see a ground connection somewhere, but I can't find it.

Anyway, fingers crossed.  My first board is in the hands of EMS.  This one is coming DHL, so it remains to be seen if I get stung for a customs handling fee... probably.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 3996
  • Country: gb
Re: Correct way to show screw holes for manu
« Reply #24 on: March 03, 2018, 09:34:43 pm »
Looks nice in 3D.

"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf