Hello everyone, I need some advice.

I am making custom PCBs for a project of mine. It’s basically for a little remotely controlled robot using little DC motors. I chose the Seeed Studio XIAO ESP32C3 as the uC since it has inbuilt wifi/bt, 3.3V regulator that I can use to power the motors (can source up to 700mA) and lipo charging management (the robots will run on battery). As you can see from here, the microcontroller is surface mounted and the pads for the battery are on the bottom layer. Same story goes for the thermal pad of the microcontroller and the thermal pad of the motor driver (datasheet). I have worked with SMD components in the past and can solder them by hand, but I have never worked with SMD components that have thermal pads on the bottom layer. My question is: how to manage (route?) them? My PCB is 2-layer and I was planning on having both layers filled with a ground plane. Do I just connect thermal pads to the ground plane and call it a day? Wouldn’t that make the components hard to solder with hot air? Do I make an isolated polygon that only acts as a thermal pad?

Speaking of soldering is even hot air the way to go in this case? My PCB has components on both sides, and I was planning on ordering stencils together with the boards and using solder paste, placing the components and then using hot air to solder the components in place. I thought a hot plate would be better but I don’t have access to one and I don’t know how that works with components on both sides.

I attached some photos of the PCB in Kicad, and here’s the git repo. If it is of any help, I’m planning of having them manifactured by JLCPCB. It is also my first time using KiCad, so go easy on me :)

Thanks!

  • RedBaubleOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    10 months ago

    I also just saw how they places their vbat and gnd on your main chip, I don’t think I would put any there either unless it asks for it.

    What are you exactly saying here? You wouldn’t put vias behind those pads?

    Just saw your comment on the PCB size. In that case I would definitely go with a four layer board to avoid issues (heat and signal integrity).

    Yep, I’ve also done some tests with ground planes on both layers, and it comes out sparse to say the least. Problem is, I have never made a 4-layer board, do you have any resources on those I can learn from? Are there any particular things to pay attention to? How do I “organize” layers? Which ones do I use for traces and which ones for power planes?

    If you have pics of the schematic, I can take a deeper look at it. Cool project, first time I see that chip.

    Here’s a quick screenshot, in the original post I linked the git repo which includes all kicad files. It’s rough atm, I haven’t made it look good yet

    • Grimy@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      On second thought, i would move S2 a bit and put vias on pad 17 of U1, I would also put vias on the thermal pad of IC1.

      Using multiple layers is actually simple. You want your top layer to be signal, then your two middle should be gnd and vcc with the bottom being an other signal layer. Gnd and vcc planes makes routing easier since you can just add vias next to any power pad to connect them to their respective plane. Audio boards in particular will sometimes have both middle planes be gnd instead, with vcc routed with the signal on the other planes. It helps with signal integrity, but gnd/vcc planes is whats used much more.

      In kicad, under file, then board setup; the first one is how you add them (board stackup/ board editor layers). You just need to check In1.cu and In2.cu and indicate they are power planes. Then you have to select them with the layer selector on the right and draw power planes on them. Once the zones are filled (hotkey B), any gnd or vcc via should connect to the appropriate plane.

      I really like Phil’s Lab, he has mostly advanced videos but he explains really well and goes in depth. https://www.youtube.com/watch?v=QAOEtfvCaMw Skip to 9:58

      Last thing, it’s hard to tell what packages you use but I would make some of the components a bit bigger to make your life easier since you have a bit of space. I try to avoid going below 0805 for anything I might be soldering or desoldering by hand.

      • RubberElectrons@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        10 months ago

        I disagree with his otherwise great advice: make the two middle planes GND, route your power and signals on the outermost layers.

        The closer your gnd plane is to your signal or power lines, the lower the inductance and the increased resistance to emi. Otherwise any noise on the vcc plane is separated from the gnd plane by about a mm, vs being less than 0.2mm away from the gnd planes if they’re the two middle layers.

        The copper is also usually thicker on the outer layers and you have access to atmospheric cooling.

        • dragontamer@lemmy.worldM
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          10 months ago

          The copper is also usually thicker on the outer layers and you have access to atmospheric cooling.

          The copper is thicker on OSHPark’s outer layers, but its thinner (!!!) on DKRed’s outer layers.

          Just an FYI in case other people here are USA-based and want to use USA-based PCB makers. Yeah, that’s right. DKRed has thin 0.5 oz outer layer copper and 1oz inner-layer copper. I’m guessing DKRed is aiming at the Gnd-signal-signal-Gnd style boards… while OSHPark’s 4-layer stackup is better for signal-gnd-gnd-signal.