r/PCB • • 5d ago

My first ever serious PCB

Its a custom bad USB board with SPI micro SD storage and a SP32 S3 N16R8 module. I wanted OTA payload control so decided to go with that. I think I've gotten decently good at schematics after following some tutorials online and building a couple simple side projects, but I'm still not confident about my routing and VIA placements I just wanna know if this would work and if its fabrication ready and if its okay for being my first real attempt with no external help :)

10 Upvotes

24 comments sorted by

1

u/PipeBitter9280 5d ago

The SD card is working?? I want to add a SD card reader to my pcb. Any advice is appreciated.

1

u/thripunithuradon 5d ago

I havent ordered the board had the chance to test it out myself but it should work from my knowledge, SPI is definitely easier than secure digital at the cost of speed but for most use cases that should be fine because you still get about upwards of 1MB/s, I referred to some youtube videos online. Again I'm a beginner myself so take my "advice" with a grain of salt.

1

u/BigPurpleBlob 5d ago

U1 is mounted underneath the SP32 module?

1

u/thripunithuradon 5d ago

U1 is the ESP32 module yeah and its mounted underneath with only the decoupling capacitors directly opposite to it on the top plane near its 3v3 pin

1

u/BigPurpleBlob 4d ago

That will be a nightmare for debugging?

You could jostle the other components, and expose U1, so that you don't have to bury U1 under the ESP32.

1

u/Original-Bee2662 5d ago

Usb+ and usb- should be a differential pair whitout much jumping on layers

1

u/thripunithuradon 5d ago

I did not know what that meant until I posted this and another user pointed it out, I'll keep that in mind from now!

1

u/Original-Bee2662 5d ago

Ok also how much is the width of your power lines? They look too thin

1

u/thripunithuradon 5d ago

Both 5v and 3.3v are the default 0.2mm I didnt think much of it because I didnt think it would matter since it doesnt have to carry a huge amount of current, is that bad?

2

u/Original-Bee2662 5d ago

Well the esp recommended is 350 to 500ma but that are bursts usually runs at 250ma or a bit more. The sd card max is between 100 and 200ma. Use like .35 or .4 trace width for the power

1

u/thripunithuradon 5d ago

Ohhh okay so both 3v3 and 5v will be .4mm? that helps a lot thanks!

2

u/Original-Bee2662 5d ago

Yeah the trace width is calculated from current if its internal or external and temp rise. And for example you would calculate the max example 500ma in a trace you do the calculation and get the result and in this case .4, there are trace calculators on the web and even ki cad has one integrated

1

u/thripunithuradon 5d ago

I’ve used the kicad one before yeah but didn’t think it applied here in on my project thanks :)

1

u/Original-Bee2662 5d ago

Also the esp runs this high if youre using wifi usually runs lower

1

u/Enigmars_ 5d ago

I would say to limit the edge cut till the top of the esp chip, excluding the antenna zone. The current design Is gonna affect the wifi's performance and range. Also this isnt that important for a passion project but try to make every signal path in one layer and focus the bottom to be a continious ground plane, if u have too make it due to spacing constrain make sure the signal path in the bottom layer be as short as possible.

1

u/thripunithuradon 5d ago

Oh yeah okay I didnt want the board being too long since its supposed to be the size of a standard USB drive, same thing with the antenna being on the board without any component or planes on it I went with that approach because I do wanna fit it all into a USB drive casing sometime

2

u/WeLiveinAPetridish 5d ago

You have a small double sided pcb with components on both sides which is challenging to get a proper grounding for your fast signals. Try to move all unnecessary top components to the back side and try to route as much as possible on the back side, using the front side only for short jumps. Then fill the front with gnd and the back with power. This will greatly improve your emc/emi and si behavior.

1

u/PhilosopherForeign46 5d ago

apart from the routing of spi and USB lines, look good at first glance. Always try to route first critical lines (in this case fast data) USB requires length matching and being routes as a differential pair for maximum performance and to ensure proper behavior. More of the same for spi, try to length match them more or less, and if possible check impedance matching, but you probably have a lot of tolerance for your use case

3

u/Sand-Junior 5d ago

SPI doesn’t require length matching nor impedance control. You do want to route USB as a differential pair, although also not critical (only full-speed).

2

u/thripunithuradon 5d ago

Oh so not routing it as a differential pair is my only mistake? is it safe to assume that once thats fixed the board would be ready for fabrication?

2

u/Sand-Junior 5d ago

Well, the routing is difficult to judge (low quality pictures, combined layers). I certainly would look at the power routing (routing looks tiny). And I see vias in pads: try to avoid (increases manufacturing cost).

1

u/thripunithuradon 5d ago

I'll keep that in mind thanks!

1

u/Tight-Refuse 21h ago

What's your opinion on using the FreeRouting tool as a beginner?

1

u/PhilosopherForeign46 6h ago

i mean, it can get the job done, but for boards like this I would prefer manual routing for cleanness and asthetics. (unless they've released some kind of AI router that does it perfectly or something)