r/PCB • • 5d ago

Feedback Please, Newb Here

Post image

I was hoping for any thoughts on this layout before I replicate it elsewhere in my board. U3 is a shift register that will put out on/off signals to the three pins 5, 6, and 7. Each pinout goes to a diode and resistor, with final the signal running off the page to the bottom right. Track width is 0.25m Two of the three resistors act as jumpers.

Is this a bad design? Any feedback would be appreciated.

4 Upvotes

33 comments sorted by

11

u/Mindless-Attempt4187 5d ago

Hi, for a simple design without fast signals like this you practically don't need to care to much about anything. It looks good to me.

3

u/WolverineExotic887 5d ago

Thanks for the feedback. Everything will be running very slowly, sub kHz. Appreciate the help.

5

u/ND8D 5d ago

If everything is running slow (<1Mhz) and there is a ground plane on the adjacent layer you're fine.

3

u/WolverineExotic887 5d ago

So good to hear. Thanks for that. Yes everything will be running st sub kHz and my entire other side is an unbroken ground plane. Thanks again.

1

u/ND8D 5d ago

A solid ground plane helps many things! That's half the battle with new PCB folks.

1

u/WolverineExotic887 4d ago

Thanks! Fingers crossed as I delve into the pcb abyss...

3

u/Successful-Cash5047 4d ago

Looks good, though I have to ask, why use the resistors as jumpers (i.e. 0 ohm resistors)? 

I assume you’re using a 2 layer board since you’re using vias, that means you could route the traces  underneath other ones. 

IMO even if you want to be able to easily change your mind to disconnect components, just use solder bridges.   I’d only use resistors if you need to add resistance, otherwise ditch them and make assembly a bit simpler!

Also since they’re all showing in blue, this means all these components are on the back side. (Double check everything looks good, I’ve made the mistake of having things flipped around before). 

I f you don’t need them to be on the back side (i.e using double sided assembly), I’d keep components on front side for design simplicity.

1

u/WolverineExotic887 4d ago

Those resistors help prevent problems downstream (I am hoping which I hadnt mentioned in my original post). The outputs go on to audio jacks so i wanted to minimize 1. any transient short if the tip and sleeve of the audio jack briefly short when a jack is put in and 2. in case someone (like me, cuz Im dumb sometimes) puts an input into that same jack (which is an output) so it would hopefully protect U3. This is for a eurorack sequencer so swapping input and output cables by mistake does happen sometimes.

My plan is to have all of the components on the back of the board, with the audio jacks mounted on the front of the board (along with the ground plane on that side), but man did I ever get some frustration at figuring out how to flip the view and sides of the board, you would think it would be simple! Thanks so much for the tips, I am greatly appreciative.

2

u/Successful-Cash5047 4d ago

Gotcha! Then your PCB looks perfect! 

1

u/WolverineExotic887 4d ago

Man you are awesome! Very helpful! The dual diode I hadn't considered and it makes sense as (as you guessed) I will be using all eight outputs of the register. The layout makes sense. Thanks again!

1

u/kAROBsTUIt 5d ago

The only thing I'm not a fan of is the thin power trace for your 5V line and how the different ICs are daisy chained. Consider the load from the 3 ICs and the voltage drop with the trace dimensions you have.

2

u/WolverineExotic887 5d ago

Thanks. I was wondering about that, my diodes will be drawing almost zero current so I was hoping it would be ok. Do you think a wider trace would be ok under R228? It's a standard 0603 resistor

2

u/Successful-Cash5047 4d ago

For low frequency stuff (i.e. under ~100KHz) wider traces never hurt unless you’re making them too close to components. 

For good clearance, you could always have the trace wider everywhere except under the resistor! 

That would still provide a lower resistance. But I wouldn’t worry much about it unless this is carrying at least ~300mA-500mA (this is a ballpark guess, double check it). 

1

u/WolverineExotic887 4d ago

I did the rough math and I think the current on those diodes will be maybe 20 or 30 mA, they are essentially static very quickly so I am hoping I didnt add wrongly but good point

2

u/Successful-Cash5047 4d ago

Then your current trace width of 0.25mm is more than wide enough!   

1

u/simonpatterson 4d ago

It's quite a large spread out layout, it could be made much more compact.

Are U3 pins 1-4 used ? If not, you could drop everything lower so it extends the height of U3 only, and you could run the 5v trace below pin 1 rather that through the middle and around.

1

u/WolverineExotic887 4d ago

Unfortunately 15 of 16 pins on U3 are used so it is a bit crowded. I am new at this and wanted to keep all of the component silkscreen labels which I think spreads it out a bit too. Do people in general chuck those labels? It did affect my spacing, making sure they remained.

2

u/simonpatterson 4d ago

Depending on how large the whole board is, 4 layers may be economically viable then you could use a power plane for +5v too and remove the 5v power traces.

To reduce the size, consider something like a BAV99HDWQ, which is 2x BAV99 in a single SOT-363 package, smaller than a SOT-23.

If space is very tight, I move the RefDes to another area but lay it out the same as the components, or put it on the back of the board.

1

u/bobdvb 4d ago

It might be because you're planning more components, but the way the diodes D104 and D204 are set so much north of U3 feels wrong. That's perhaps why people are commenting on frequency, because the seemingly unnecessary kink upwards for the traces from pin 6 & 5.

1

u/WolverineExotic887 4d ago

I need to replicate the same 3-pin output layout for pins 2, 3 and 4 (mirrored) just below that so I needed to make sure I left space. I didnt want to do that yet though in case someone noticed problems with the layout of the first 3 pins and components. Fotunately all of this will run at 1kHz max but for my learning then, for RF level signals you try to keep lines more straight from the pins?

1

u/AREALYMassiveFrog 4d ago

I wouldn't recomend running tracks under the ICs because when soldering it could create a short but in this case its not that bad. The track going through the resistor is kinda a problem as it could easily create a short when soldering.

Other than that, very good routing and placement!

1

u/WolverineExotic887 4d ago

This board is a big one for me so I decided to let jlcpcb assemble it (I'm awful at smd anyway). Do you think it still might be an issue on their end?

1

u/Amazing_Company_4810 4d ago

not if you use a solder mask and the part is like a 0603 or bigger. never had a problem using resistors as bridges. doing what you can on one layer is better than jumpong up and down excessively

1

u/Amazing_Company_4810 4d ago edited 4d ago

make traces intersect at 90°. use a ground plane. if you align resistors is preference, really. you could have your traces straighter without much work but I have seen worse. ur on a good way. lay it out, then ull see where you can gain space. lay it out a secound time after ur done. critical stuff first, keep subcircuits together, dont form loops and ur good to go.

ur not trying to use ai or shit like that, huge plus on reddit :)

1

u/WolverineExotic887 4d ago

Thanks for the feedback. I've reworked this section along with the rest of it like twelve times so far (I'm sure not the last), I keep finding a tiny thing that could be improved. I guess that never does away lol

1

u/Amazing_Company_4810 3d ago edited 3d ago

no, there is no perfect layout :D what I always did with pcbs is layout everything, then layout it again. more efficient than trying to perfect a section just to see that you lose space when putting subcircuits together.

but you will see, layout is relaxing and fun anyway (at least for me). all you need are some rules of thumb and those work till GHz (if you have the right ones ofc, but i wont bother you with lenght matching an striplines now^ ^ ). dont forget to give your ICs a 100nF cap and put a decent size electrolyte cap at the input at least (depending on your pcb size 4u7-100u). If you have stuff like buck/boost converters you have to take extra care (can be nasty for a beginner): put them away from your senitive stuff. idk if you have 2 or 4 layers but I already see vias connecting to a supply, which is good. use the space you dont need as a ground plane (if its not isolated chunks).

the reason for a gnd plane: once you get faster you have to think about the signal return path. this is not nececceary the path of least resistance, but of least impedence so your signals tend to travel between trace and gnd plane. thats why fast signals dont like it if you cut the gnd plane underneath and you can create e.g a slot-antenna (gnd next to signal is similar to a gnd plane underneth, hence the gnd fill on top). also it doesnt matter too much if your plane its gnd or supply in most cases, at 4 layers you can use a gnd and a supply plane in the middle and contact to both sides.

if you supply power or a signal to many inputs, think of a star and not a loop. think of the return currents (after a few couple of kHz more below the trace than shortest distance to GND connection of your bord) and make sure there is enough gnd next to (or below) your trace. might not be important now, but if you build a habit you might never run into real problems with this.

dont cut gnd planes for analog and digital stuff, rather do it through placement so the current travels in different directions (back and forth) to analog and digital from your source on the pcb (i.e the power connector).

have fun - and dont forget to check if everything has gnd and power in the end (i always forgot at least one gnd as a beginner)

1

u/WolverineExotic887 3d ago

All great tips, appreciated. I have made the entire back of my board ground plane, with two dacs, the shift register and incoming power at one far end. The rest of the board is entirely the ground zone. The only through hole components are 3.5mm jacks at the other end that output control voltages to a synthesizer (no audio) so it is essentially completely unbroken. I'm learning a lot about return currents through this sub

2

u/Apprehensive-Issue78 4d ago

For reliability avoid acid traps, escpecially if you etch your own boards. If you want high yield don't cause occasional shorts with traces between pads by solder paste. Component placement: it is a row of 8 outputs and similar components I would order them like this. For decoupling: add a capacitor and keep the If you just want an ok board your design would definitely work, but you asked for a review.

0

u/[unknown] 3d ago

[removed] — view removed comment

1

u/WolverineExotic887 3d ago

What's your site? I'll have a look