Schematic and PCB Review - A very tolerant lightweight PSU

Hello!

I'm working on a project for a fixed-wing drone, and I took to designing the power supply for the avionics package. It's my first real PCB design project, so I could go for some tips.

Roughly, the PCB has a primary power input, and a battery backup. The primary comes in at 12V, is stepped down to 5V through a VR, then run through the battery backup IC to step further down to 3.3V and 1.8V. It uses a master cutoff switch to kill the primary power input, and a connector to handle an external 2S battery. It also has a very large capacitor to handle the switchover time.

Here's the Gerber view of the PCB: http://gerblook.org/pcb/dB8bbq7kqEUtUXDDZzNMkH#front

A PDF of the schematic: https://exeleven.org/drone/psu-pcb-sch.pdf

Screenshot of the front of the board: https://gyazo.com/03752fe4d3eaeed7a730ebfbc6273cec

Screenshot of the back of the board: https://gyazo.com/d8a6a0931f94409846a1d4720a06eb7d

I'd really appreciate any tips you can give. But please, go easy on me, I'm brand new to this.

Thanks in advance!

Posted Sep 20, 2019, 6:35 PM UTC

2218
Atlas192•

Okay, two big things that need to be fixed first of all:

  1. You don't actually generate 5V anywhere

  2. It seems like you have a misunderstanding of how that solid state relay actually works, since at them moment it doesn't do anything. You are just connecting your 12V net to itself when it is turned on. Also, your 12V net is not generated anywhere, since the output of your 12V regulator is named differently.

Try to fix the schematic so that every power rail has a source and destination. Also, there is no reason to make this a 2 page schematic; throw it all on one page so it it easier to understand. Just work on getting the schematic to a good place now, you can worry about the layout later.

14
space55OP•

I generate 5V using U2 (a 12V to 5V switching VR)

And you seem to be right - I didn’t set the solid state relay up properly at all. I’ll fix it and be back!

Edit: U2 disappeared

6
space55OP•

U2 is back, and I've fixed the solid state relay (I hope). Have I connected it properly, or do I still have a misunderstanding?

3
Atlas192•

Looks good now. I would connect the PAD pin of U2 to ground, as it helps with heat dissipation.

I still don't know why you would have this on two pages, everything would fit on a single page just fine. That eliminates the need for any hierarchical block shenanigans and makes design errors less likely.

As for your U6, you have the schematic laid out in a very confusing way. The way the recommended circuit looks in the datasheet is much nicer looking and easier to read. That would make it easier to catch errors, of which you have at least one that I see: your inductor needs to go between LX and BATT, not to ground.

3
space55OP•

For some reason, Git deleted U2 on another version of my schematic, so I rewired it properly.

And yeah, U6 was a giant pain. I wasn't too sure how to wire it cleanly, so I've rewired it. I'll upload the updated schematic in a sec here

1
Atlas192•

Looks pretty good now, no problems that I see with the schematic. Just a tip, it makes the schematic much easier to read at a glance if your power symbols always point up and your ground symbols always point down. That makes the functions of different resistors and capacitors much clearer.

2
henrikenggaard•

I think your circuits have a quite pleasing and easy to read layout. If you then also made the whole schematic a bit more structured I think it would be really solid!

  • Have a flow from inputs to outputs
  • Draw boxes around connected circuits
  • Write some comments/descriptions to the circuits

The PCB layout is nice and compact -- that is often necessary, but in my experience I have almost always wanted one extra test point or extra space for silk screen notes. Smaller boards can always come when the design has been tested :)

  • I would add some test points on U2 and U6. It is very small and with big components close to it; you'll have a hard time probing it
  • There are no mounting holes: four 5 mm holes for screws do wonders
  • Some of the silkscreen markers are very small: like U6
  • I would note the voltages on the connectors/pins
  • Same with the test points you already have: you might as well write what they are for

Also, you forgot the most important part of the silkscreen: Your name! Be proud of your work! I think it looks pretty good :)

And if you want many, many more tips/things to look for then I use/have made this checklist: http://pcbchecklist.com/

8
space55OP•

Thanks! I'll definitely be following these tips, especially for the future.

I love the checklist, it'll be going right into my favorite resources list.

Thanks! :D

2
maxthescienceman•

Super minor, but it looks like if you rotate the inductor in the upper right by 180 degrees, your routing will be shorter and cleaner

4
humpiestleek•

Also, I thought you didn't want a pour underneath an inductor?

3
maxthescienceman•

Yup, that too

2
space55OP•

Thanks! I've fixed the copper pour, and the inductor rotating is an ongoing process...

1
spainguy•

I often put a 0.1R in the main power rail that would allow you to measure the current and maybe some sort of trip mechanism, for the "just in case" function

3
space55OP•

I used the MSTR_CT as a master cutoff switch, so I can immediately kill external power. As the rest of the components are low voltage, I actually want them to stay on as much as possible (there are a few chips that don't play nicely with being shut off). Though, the idea of a 0.1R in the main rail is interesting

2
spainguy•

Quick extra thought, a couple of status LEDs might be useful, but I'm not really familiar with your chips, but does L1B1 short out the VBATT?

For the 0.1R I'd use a diode OR gate from different supplies to power a little opamp. (I like obvious simple stuff)

3
robogeek78•

Your switching ground nodes need to be shorter, basically the grounds between the input and output caps on each of the separate power supplies should be back to back with thier grounds and have wide traces to the ground of the regulator chips

Also, the inductors should be way closer to the switching ic or mosfet otherwise you will be creating a ton of emi.

http://imgur.com/a/BfsoRjq this is a link to one of my designs, you can see: c6 is the input cap, c7 is the output cap, c5 is the bootstrap cap, L1 is the inductor R8, r10 is thr feedback divider

If you look the caps are closely coupled to the ground of the chip, and the loop from the switch pin to the output cap is minimal. This is not thr most compact supply i have made but your inductor in the top right corner is too far away.

In the end, will your board work, yes it will, will it have extra ripple on the voltage rails, yes it will.

2
Panzer22•

U2 says TPS62160DSG, this is an adjustable version of these converters, you can either use TPS62163 (fixed 5V version) or connect resistor divider network as they describe on page 14 of the datasheet.

2
hi-imBen•

Review the layout section of the datasheet for your LM and TPS switching devices. The switch node is noisy and you really don't want it as a long trace going across the board. Rethink your inductor and output capacitor placement to make a smaller current loop for those switching currents to go from the switch node to ground, and use copper polygons for this path rather than normal traces.

2