r/PCB • • 2d ago

First ever PCB (feedback?)

Schematic in the comments

Zero use of AI. One night class per week and a lot of reading!

RPi 4b hat, 4 layers.
1/red: signal traces and power/ground zones;
2/green: ground plane;
3/orange: power zones, including 12v (batt/acc), 5v and 3v3;
4/blue: audio in and ESP related stuff.

12v to 5v 3A buck converter, ESP32-C3 to communicate between the RPi and headunit. What could I have done differently?

Thanks!

92 Upvotes

18 comments sorted by

17

u/Illustrious-Peak3822 2d ago

Schematic needed.

3

u/fromajjj 2d ago

Woops. See my comment. Thank you

12

u/tux2603 2d ago

Your silkscreen car is going to pretty much disappear since the lines are too thin. Try finding a graphic with simpler geometry and thicker lines. Worst case scenario you could use a tool to thicken the lines on that one, but it could get cluttered

6

u/fromajjj 1d ago

Oh, unfortunate! Thank you

4

u/fromajjj 2d ago

Schematic

8

u/IncorrectWitness 2d ago

CC1 and CC2 need their own 5.1k resistor, they shouldn't share.

Shouldn't the USB-C VBUS be connected to 5V? Seemingly, it's only connected to the testpad edit^ after looking at your PCB, I'm assuming you're using the cars 12V input.

If you want to put this PCB in a case, make sure your USB C connector is close enough to the edge of the board, or even overhangs slightly.

3

u/fromajjj 1d ago

Roger that, thank you!

0

u/[deleted] 1d ago

[deleted] — view deleted comment

2

u/rwmtinkywinky 1d ago

CC1 CC2 is required for orientation and UFP detection by the DFP side. You need them even if you're not drawing a single watt from VBUS.

3

u/UnderPantsOverPants 1d ago

Your filter on the Pi’s 3.3V is probably not doing what you think.

2

u/fromajjj 1d ago

I don't understand?

5

u/UnderPantsOverPants 1d ago

Look up Phil’s lab on Youtube, he has some great videos on filters and MLCCs.

Basic idea is your caps being orders of magnitude different and not damped means you’re probably creating an unpredictable oscillator at certain frequencies, which may or may not interact with the current pulses from MCU/perif operation.

2

u/fromajjj 1d ago

Very interesting, added to my watchlist. Thanks

5

u/ViktorsakYT_alt 2d ago

Why use a tiny smd chip and then bigass tht resistors? Especially on a board that's already so crowded.

1

u/fromajjj 2d ago

Couldn't find a 2nH inductor in THT form

2

u/mzo2342 1d ago

there's a lot I like about your 1st board, you're doing great!

but:

- totally avoid routing in the middle layers! esp that 5V trace, just look at the "E"? signal that hast to wind its return currents around it. just flip it to top.

- I'd also go for way more SMD and avoid THT wherever possible - at least all R should

- in case that goes on the road, I'd add huge holes in and around that beefy inductor to lock it in place with zip-ties. otherwise vibration will kill the solder joints and maybe solder mask. or flood it with glue.

- and what others wrote, like I also noticed the USB-C likely to be too far inwards on the board.

2

u/fromajjj 21h ago

Thank you so much! As for trace "E", it is simply a test point for the "Eject" pin on the radio. I went with mostly THT because I have access to a lot of through-hole parts with my school, it cuts down on price. Great idea for the inductor, I'll glue it down! USB-C is mostly just need for programming it once and won't be that accessible anyway. It would be tucked under the radio.

3

u/Yhite_Loise_1975 1d ago

Sorry can’t give much feedback but just curious on what books you read to design this pcb? Very cool design regardless.

2

u/deze_guy 20h ago

Did not look for to long but noticed some small things. Resistor values please check them 560 ohm on a base from what looks like a 12v rail is verry low. 22 ohm for a led also verry low. Relay might weld shut like this if it switches often use a agsno2 type or use a fet if you do not need the separation (inrush of the 100uF + switcher with high cap). No need for the 2nF inductor it might add reasonable you do not want. Lay out is nice for a first one keep it up! (Needs some attention but you wil get there). Some of the components you use ar also old/strange like the switcher it has been a long time since I have seen a 1000uf cap.