#mcu keychain

1 messages Β· Page 1 of 1 (latest)

robust raft
#

thonking Could someone look over this its verry small and not much on it so it should be fast ;)_ _

nimble island
#

why two decoupling caps on an attiny

pine zephyr
#

you should put tvs on the usb

robust raft
robust raft
robust raft
nimble island
#

just adds an extra part for no benefit

robust raft
#

upsie

nimble island
#

πŸ€”

#

theres still no tvs lol

robust raft
#

there is its wired wrongly tho xD

robust raft
pine zephyr
#

you should use a tvs diode that's designed for usb

robust raft
#

@nimble island Tvs like esd for the datalines or?

nimble island
#

ya

robust raft
#

I thought for the vbus xD

nimble island
#

power is less critical, you're already using an LDO which is probably fine

#

throw on a zener if you're worried about it

robust raft
nimble island
#

meh

#

apparently there are chips that do ESD protection for the entire thing

#

vbus, D+ and D-

#

nice neat little packages

robust raft
nimble island
#

y d1

robust raft
nimble island
#

idk if its discord or low resolution

nimble island
#

not necessary to slice your ground plane under everything for 3v3

robust raft
nimble island
#

the big blue trace

#

uh

#

drc isnt set up correctly?

#

or you have a bunch of violations idk

robust raft
nimble island
#

route it out of the way lol

robust raft
nimble island
#

i just ran drc

#

you have over 100 violations its not set up correctly πŸ‘€

robust raft
nimble island
#

its running to a decoupling cap, the extra inductance is probably fine and it means you keep a mostly solid pour underneath your chip and most of your traces

robust raft
nimble island
#

so?

robust raft
# nimble island so?

Well should I avoid trace contact in general or only cap contact because of the inductans

#

Inductance

nimble island
#

the inductance is going to be largely nbd

robust raft
nimble island
#

no big deal

#

yes

robust raft
#

πŸ€”

nimble island
robust raft
nimble island
#

wym

#

current necessarily flows in a loop

robust raft
nimble island
#

Your returns will all need to flow around that split

#

whereas the other way only has power flowing around

robust raft
nimble island
#

no

#

if you move it back on top ASAP you'll keep the split small

robust raft
nimble island
#

route straight down under PA4 and via back up

#

nudge j2 right if necessary

robust raft
#

Okay well I'll try

nimble island
#

notice point 2 specifically

robust raft
nimble island
robust raft
#

Because it's a big way around it?

nimble island
#

honestly

#

for this design, it probably does not matter at all

#

but its a good time to practice now while the stakes are basically zero

#

to answer your question, yes

robust raft
#

And Daniel mentioned to put gnd vias on these spots (next to)

nimble island
#

that design uses more than 2 layers πŸ‘€

robust raft
#

I know we don't have a high speed signal but could I also do this here?

robust raft
#

And 2 gnd layers in

#

Xd

nimble island
#

yeah you can throw return vias where they fit

robust raft
nimble island
#

sorta

#

it does that in the 3rd dimension ig

robust raft
robust raft
nimble island
#

Remind me in an hour

robust raft
nimble island
#

No worries

robust raft
nimble island
#

Morning

robust raft
nimble island
#

Never πŸ˜†

robust raft
nimble island
#

Yeh

robust raft
#

and I reminded you in 16 hours xD

nimble island
#

Im already done lol

robust raft
nimble island
#

I had all my classes already

robust raft
robust raft
robust raft
nimble island
#

3d printing

#

i can take a look at your design

#

@robust raft pls run DRC before review

robust raft
#

Now I wanna know

robust raft
nimble island
#

theres still a bunch of clearance problems

robust raft
#

This is just the silkscreen stuff and so on

#

because the usbb overlapps over the edge cuts

#

does the clearence and so on not go with the pcb file or is something wrong?

nimble island
robust raft
nimble island
#

yes

#

its not manufacturable

#

try to keep clearances at least above 0.12, ideally around 0.16-0.2

robust raft
#

its not??

robust raft
knotty bluff
#

where are you getting the board manufactured and how many layers?

robust raft
#

hhm chris seems right

knotty bluff
#

outer layer should be 1oz though, unless you order 2oz

robust raft
#

nah its 1oz

#

so yeah

knotty bluff
#

2 layer 1oz gets you 0.1mm clearances

#

better to be above that whenever possible though

robust raft
robust raft
nimble island
#

its right at the edge of jlc's 2 layer capability

#

Min. track width and spacing (1 oz)

0.10 / 0.10 mm (4 / 4 mil)

#

honestly this project is doable entirely with 0.2mm trace space

robust raft
#

Know

nimble island
#

the space between the pads of the ch340x will be under 0.2mm but thats okay

nimble island
robust raft
nimble island
#

also

#

10u 0402?

#

(you cant route under an 0402 reliably either πŸ˜‰

robust raft
nimble island
#

just rotate C1

#

C3 has space to move up a bit

robust raft
robust raft
nimble island
nimble island
robust raft
robust raft
robust raft
nimble island
#

lgtm

#

1mm headers be expensive tho

#

actually theyre not so bad for a single row

robust raft
robust raft
nimble island
#

yeh

robust raft
nimble island
#

procrastinating atm apparently πŸ˜‚

robust raft
#

Bad

#

Xd

robust raft
#

@nimble island look what came yesterday :)_ _

#

its really smol xD

#

Problem now only is its getting recognised in the device manager but I dont see any output in putty

robust raft
robust raft
nimble island
#

do you have any software flashed on it?

robust raft
nimble island
#

no why would there be

robust raft
nimble island
#

no

#

it will be filled with noop or something

robust raft
nimble island
#

yes

#

the flash will be noop

#

you could bridge tx and rx on the ch340 to get an echo without programming it if you just want to test that part

robust raft
weary vale
#

@nimble island - doesn't look like it needs to be double sided assembly! πŸ˜‚

nimble island
#

no

robust raft
torpid wraith
#

nice

#

write the firmware in hex

robust raft
torpid wraith
#

problem for later πŸ˜›

robust raft
robust raft
torpid wraith
#

yeah, saw that

#

wait, why are there two holes

robust raft
nimble island
#

do you have a rpi or arduino

robust raft
torpid wraith
nimble island
#

you can probably use either to program it

robust raft
torpid wraith
#

which mcu is it

torpid wraith
robust raft
robust raft
robust raft
nimble island
torpid wraith
#

but arduinoISP exists

#

so you can just use your arduino

robust raft
torpid wraith
#

there's probably something similar for a raspi

torpid wraith
#

even if it doesn't have the bootloader on it

robust raft
#

I will just Google this tbh

torpid wraith
#

should've planned in advance

#

worst case is you need some bodge wires to connect to the icsp pins

robust raft
weary vale
#

.....:awkwardmonkey.gif:

robust raft
weary vale
#

that's the one πŸ˜‚

tawny otter
robust raft
nimble island
#

@robust raft you'll need to bodge a wire to reset pin

robust raft
nimble island
#

Yeh

tawny otter