Designing and assembling my first PCB

(vilkeliskis.com)

78 points | by tadasv 6 hours ago

9 comments

  • Retr0id 5 hours ago
    It's incredible how cheap it is to get custom PCBs made at prototype scale these days, even ones with advanced features. It feels like we're living in a golden era of custom manufacturing.
    • ge96 2 hours ago
      It is unfortunate hope local companies like OSH Park get love too. The marketing of companies like JLC or pcbway whenever I post a hardware project on a website like Hackaday or Hackster always reach out to me to use em. Not that it would matter so many big makers on YT use em.
      • Waterluvian 1 hour ago
        Is the cost and quality comparable to the Chinese options?
        • bschwindHN 1 hour ago
          OshPark's quality is high, but their prices are certainly higher too. Good to support them though if you live in the States, since that's where they manufacture the boards.
          • hananova 48 minutes ago
            That's kind of the problem though. jlc/pcbway aren't just "cheaper", for anything 2 or 4 layer that doesn't require special coatings, thickness, or finish such as gold fingers, it's just so cheap and fast that it makes no financial sense to buy locally. You'd pay several hundred percents more to get the boards maybe 1-2 business days earlier.

            In addition, china is where all the world's pcbs are made, even for commercial stuff, it's not unreasonable to expect them to deliver higher and more consistent quality than home fabs.

            The gap only begins to slightly close at more complex boards, but not that much.

    • klysm 5 hours ago
      This and sheet metal manufacturing from Oshcut have been game changers for me
      • taylor-tg 2 hours ago
        To throw another in the mix, SendCutSend has consistently been a reliable and affordable option for 2D cut parts. They recently added CNC machining offerings, though I can't speak to their affordability on that.

        Overseas will almost always win on price (at least in small quantities), but it's hard to beat the turnaround from local manufacturers...

      • adamgoodapp 3 hours ago
        They were just on Linus Tech Tip.
    • tadasv 4 hours ago
      I was actually very surprised myself. As I mentioned in the post, I don't do that type of work so it's all new to me. This got me also interested in CAD. You can design parts and don't need to own the 3d printer, could just get parts manufactured online.
      • geerlingguy 3 hours ago
        Yeah, and since it seems there's some competition there, the prices are decent. You can get milled metal, 3D prints, populated PCBs... crazy what you can do now and how quickly it can be turned around, if you are willing to pay.

        I wish there were more regional places like PCBWay and JLCPCB in US, EU, etc (with similar pricing) so shipping didn't require circumnavigating the globe.

  • 1024bits 4 hours ago
    JLCPCB is often the manufacturer of choice with DIY PCBs, and the reputation is well deserved. I recommend them as well, have never had an issue with what they've made. It's a bit pricier for a one-off board given the MOC, so it's preferable to do some sort of group buy if you can.
    • krapht 1 hour ago
      Slight tangent: a long time ago when I was into this hobby, Oshpark was usually the go-to instead of JLCPCB. What happened to them? Macrofab too if anyone's used them.
      • hananova 45 minutes ago
        Simple: jlcpcb can deliver you 10 boards for anything a hobbyist will likely need for 10$ including shipping, and it ships in 24 hours. Oshpark cannot compete with that.
  • bschwindHN 1 hour ago
    Wow, very very similar to my first PCB, a breakout board for the TSL4531. I ordered it from OshPark back in 2016. Used the exact same soldering iron, and a Quick hot air station, though it's the less fancy one than you have.

    https://github.com/bschwind/tsl4531-module

    https://imgur.com/ozk7UuS

    (sorry for imgur, not sure what people use for image hosts these days)

    I then went on to also make a BME280 breakout:

    https://github.com/bschwind/bme280-module

    From there on I've made various PCBs, and thankfully they've pretty much all worked on the first try. I do take a lot of extra time to verify the design and double check all the datasheets.

    • tadasv 1 hour ago
      It's so funny that you had a similar idea. Are you an electrical engineer or swe? What are you building these days?
  • dhosek 2 hours ago
    OK, so people are ordering a custom PCB from China for a one-off? Whatever happened to making them at home? I remember my brothers doing this in the bathroom sink with a board coated with copper¹, some special markers to draw the circuit on the board and chemicals to wash off the extra copper. I’m guessing they might have used our dad’s electric drill to put some holes in the board as well, but looking at the article, this doesn’t seem like an order from China need.

    1. Some details may be incorrect as I was 10, this was the late 70s and I only saw the results, not the process.

    • zerobees 11 minutes ago
      In addition to what others said, home-etched PCBs are just much lower quality. We're no longer living in a world where every component has leads on a 2.54 mm grid, so tolerances matter a lot more. Also, SMD means you really need vias and a solder mask.

      The problem isn't that people outsource it, it's that they need to outsource to China. That's an abject failure of domestic PCB manufacturers who simply don't want to deal with retail customers.

    • Legend2440 2 hours ago
      What happened is that you can get a set of 5 custom PCBs for about $2. The quality is much higher and you don't have to deal with nasty chemicals. I'll never manually etch a board ever again if I can help it.
    • danielheath 2 hours ago
      These days, a one-off PCB is dirt cheap. They’ll provide and solder the components for you, for less money than you could buy them to do it yourself.
    • stephen_g 1 hour ago
      Buying custom PCBs from China makes sense if you're interested in making electronics. It was more than a decade ago that the equation shifted to the point that making them at home has only made sense if you're interested in the process of making PCBs themselves.

      Things like soldermask, multiple layer stackups and plated holes and vias are standard on dirt-cheap Chinese boards but are challenging and time-consuming to do at home.

    • YZF 1 hour ago
      I used to do this at home. Either thermal transfer or also used a flat bed plotter with an adapter for a Staedler permanent market to draw directly on the PCB. Fun times. Ferric Choride IIRC for etching or you could also use hydrogen peroxide which was much slower...

      And yes drill through holes.

      Ofcourse only good for two sided (layers) boards at the most.

  • enzo05814648 1 hour ago
    Nice board, looking forward to seeing your next one. A little feedback, helpful I hope:

    A "via" is basically just a wire stuck right through the whole board top-to-bottom. (Okay, it's not really a wire. They drill a hole and then chemically grow a layer of copper that fills the hole.) You can connect the copper pattern on any layer(s) to that "wire", so it's often used to route a signal from one layer to the other. But you already have a real wire going through the board: the GND header pin! So no via is necessary; just connect directly to that pin on each layer (kicad probably did this for you automatically). This trick works with all thru-hole pins.

    For RF or high-current applications, sometimes you cover a board with a grid of vias, just making redundant connections between the planes all over the place, "stitching" them together. But careful, add too many vias and the PCB shop will bill you extra.

    Putting a GND pour on the top layer is a good idea. It's lower-impedance than individual skinny traces, and takes less/zero effort to route. The GND trace you manually routed isn't necessary; you can see by the transparent-red shape that kicad already has copper there. However, you ended up with a little "island" of dead copper between R2 and C2, which is the real reason you needed the via.

    A better approach would be to use the bottom layer for +3.3V power instead of a redundant ground pour. This gets rid of the +3.3V traces (BTW, best to use a single, thicker one instead of 2x side-by-side) and unifies the island into the ground pour. Even though this is a micro-power application, playing the traveling-salesman game with long scraggly power traces is never a good idea. You would still need vias to connect each top-layer +3.3V SMD pad to the bottom-layer power plane, but the signal-integrity benefits of a plane make this worth it. Maybe the absolute best is an uninterrupted GND plane on the bottom and a +3.3V pour on the top.

    Putting SMDs on the bottom side makes the board cost more, so good call leaving them all on top, but putting traces on the bottom layer is free. So you can even move signal traces between layers to avoid cutting up your planes too much. It's "fun" with big complex boards, like untying a giant knot...

    You are very miserly with your +3.3V global net symbols in the schematic! You can place as many as you want to optimize the schematic's readability. Especially near the CSB pin, the 4-way solder dot looks like some intermediate signal in a voltage divider, but it's actually just +3.3V. Same suggestion with GND -- basically, it's more informative to read "this pin is GND, and this pin is GND" than "these two pins are connected, I wonder what they're doing...oh, it's all GND".

    Pull-up resistors are usually oriented vertically, too, so they graphically pull "up"!

    Anyway...I hope you don't mind all my constructive criticism. It's nice to see something on HN I know about!

    • tadasv 1 hour ago
      This is great! Thanks for the detailed write up and suggestions to improve. Like I said, this is my first time doing it and I have no background in EE or PCB design. If I make something else I'll give your suggestions a try.
  • dsign 2 hours ago
    PCBs are very neat, but that shipping time is a boomer when you are prototyping and you really don’t know what you are doing.
  • LoganDark 1 hour ago
    I've been trying to make a PCB but it's just so annoying having to sift through pages and pages of listings in order to find each individual tiny component without minimum order quantities of hundreds or more. The process of finding each component is so tedious that I gave up. (I was using EasyEDA hoping it would be easy to find components I could actually order -- nope)
    • stephen_g 1 hour ago
      What kind of part? I use Octopart for a lot of things, like ICs (sometimes some variants are available in low quantities but others aren't and only in thousands).

      For stuff like passives it's usually easier to use Digi-Key or Mouser and you can filter by MOQ so you only see things that are available individually.

    • YZF 1 hour ago
      DigiKey used to be a good place to get. Also design for parts you can get... In the old days you could also get samples from chip companies if you asked nicely. No idea if anyone still does that.
      • lefra 21 minutes ago
        Some still do, but they'll only send to businesses, not to individuals.

        What's annoying for me is Digikey and friends insisting on only delivering with express carrier. I'd like to have a cheaper, slower option.

        • cozzyd 16 minutes ago
          USPS is def an option for Digikey...

          (not that I use it since they don't deliver to our loading dock)

  • fatih-erikli-cg 4 hours ago
    [dead]