#help-with-hw-design

1 messages ยท Page 43 of 1

tough matrix
#

maybe someone else here can weigh in

heavy jasper
#

It looks like Future has them for $4/per at 1+

reef flicker
#

I tried looking earlier and the website was down

heavy jasper
#

Seems to be up, at least for me right now

reef flicker
#

Yep looks up now

heavy jasper
#

Even at 10, you may end up finding that shipping costs of unifying your order outweigh per-part savings

reef flicker
#

Looking that up as we speak

#

The checkout button seems broken atm : /

distant raven
#

Digi-Key also has them

#

$57 usd for 10 pieces

ember laurel
#

@reef flicker what pressure range are you using?

#

and which form factor?

#

Perhaps something like this could work for you:

#

$1.38 in 30+ quantities.

#

you'll need quite a bunch of analog circuitry for it as well though

#

LM324 for $0.08 should do it.

#

(per sensor)

#

check out the 3PEAK version, it is rail to rail:

#

hard to beat $0.08 for a 4ch rail-to-rail opamp.

#

those together, plus a few resistors and caps, would thus set you back around $15 for the 10 you need

#

something like this looks cool as well:

#

but your harmonica will store quite some spit. Not sure what you need to handle that ๐Ÿ™‚

#

I think that will be the hardest part of your project

#

making some kind of reasonable drain system, and a way to clean it.

distant raven
ember laurel
#

GNDGNDGNDGNDGNDGND

distant raven
#

Name the IC lol

ember laurel
#

I'll call him Manfred.

distant raven
#

Good enough

ember laurel
#

SP3223?

distant raven
ember laurel
#

close ๐Ÿ™‚

distant raven
#

I had aspirations of a bunch of Arduino building modules

#

Then realizes how many people make them lol

ember laurel
#

hard finding a niche...

#

most obvious things are already crammed full of competition

distant raven
#

Going to build it up today and start writing the driver code for it

#

This one I hope to start selling mid/late January

ember laurel
#

what is it?

#

aha

#

capacitive touch sensor

#

I gotta finish up some USB code this week :/

#

Android Accessory Protocol

#

the STM32 USB stack code was also junk, we had to totally rewrite it.

distant raven
#

No kidding?

ember laurel
#

yeah, was really junk

distant raven
#

There are some people that swear by it

#

Iโ€™m not familiar with it so I donโ€™t have much of an opinion hehe

#

I need to get familiar with them though

ember laurel
#

perhaps it's just the way we're using it that uncovered some flaws

distant raven
#

Makes sense

ember laurel
#

next up is firmware upgrades over USB

distant raven
#

It probably works fine for most use cases, but fine doesnโ€™t necessarily mean itโ€™s great

ember laurel
#

we're using the device as an Android Open Accessory

distant raven
#

What does that entail specifically?

ember laurel
#

it allows the device acting as a USB device, while at the same time charging a tablet connected over USB

distant raven
#

Ohhh

#

Makes sense

ember laurel
#

and some other nifty things

#

plugging a fresh tablet into the device now, will make the tablet show a dialog "This device requires the application XXXX, please click here to download this application from Play Store"

#

makes the setup pretty neat.

#

the URL and text all passed by the firmware on the device itself

distant raven
#

Oh nifty

#

I feel like I should get familiar with doing things like that

ember laurel
#

little preview of the thing in action

#

GUI is not finished yet, quite a bit of polish left

#

especially the voice detection popup should have all the commands listed

#

(besides the countdown spinner)

distant raven
#

๐Ÿ˜ฎ

#

I like it

ember laurel
#

I might have to get more voice samples for the commands

#

I think it is a bit over trained on german accents.

distant raven
#

hehe ๐Ÿ™‚

#

nothing wrong with that ๐Ÿ˜‰

ember laurel
#

I tried to get as many people as I could ๐Ÿ™‚

#

if you'd like to participate, I'd love it

light ermine
#

Are you sharing this dataset?

ember laurel
#

nope

light ermine
#

Too bad ๐Ÿ˜„

ember laurel
#

just using it for myself

#

additionally to this, I'm using all text-to-speech engine there are

#

and do various variations of every phrase. Length, pitch, intonation, background noises and so on

#

complete dataset for the model is pretty insanely large

light ermine
#

I'm current doing some speech classification on Arduino but collecting the data is always a big hassle.

ember laurel
#

@light ermine try the text-to-speech engines

#

IBM, Amazon, Google, Apple

light ermine
#

Yeah I'm doing those. There are also a number of free speech datasets.

ember laurel
#

yeah I know - but you usually want tons for specific words

#

a few thousand per word really

#

the data I collected through that website was pretty useful

#

you just get the most differing accents, microphones and whatever

light ermine
#

The base dataset I'm using (speech commands from TF) was also collected that way.

ember laurel
#

yeah I know it

#

if you want really good data, you have to go Amazon MTurk.

#

and pay like $0.50 per participant

#

will still end up being $5k for 10k unique voices

#

and $0.50 might not be enough

#

would you sit for a few minutes, saying stupid words, for $0.50?

light ermine
#

This is just for a hobby project ๐Ÿ™‚ I want my robot to wake up when I say a magic word.

ember laurel
#

I wouldn't ๐Ÿ™‚

#

what word do you want?

#

ok - so you only have a wakeup model then

#

no command model

#

"A magic word" is an interesting wakeword ๐Ÿ™‚

light ermine
#

Yeah, just something that detects one word (perhaps two). The word is "joke", so I'd say something like "tell me a joke", and then the robot wakes up and tells a joke.

ember laurel
#

joke is a pretty decent wakeword

#

rather unique signature

#

just ensure you choose a wakeword that isn't ambiguous.

#

There is a reason she is called "Alexa"

light ermine
#

Yet some people are named Alexa ๐Ÿ™‚

ember laurel
#

Alexandra

#

Alexander

#

quite different from Alexa, looking at the spectrogram

#

me saying "tell me a joke"

#

in Mel scale

light ermine
#

So far I've been recording audio from the Arduino itself because I wanted to see how well that microphone worked. Was a good thing too because the sample code I was using (from the TensorFlow repo) was broken. Seems to work now.

ember laurel
#

if you only want it to listen to you, it is a ton easier

#

if you need a generic model, it is hard ๐Ÿ™‚

#

I wonder how many recordings of "Alexa" they have trained that model with...

light ermine
#

Definitely!

#

Oh, just noticed were talking about non PCB things in the PCB room...

ember laurel
#

oops

#

which Arduino are you using on your PCB?

tough matrix
ember laurel
#

sure

#

for niche markets, that can always be the case

#

rarely is there a huge market gap left unfilled though

#

one that doesn't require significant investment, at least

tough matrix
#

and of course if there is a gap, you just fill it yourself....

ember laurel
#

yeah, if it is possible

tough matrix
#

for voice recognition, I always had trouble with these devices recognizing my Russian accent
29 years living in the US and I still have it

ember laurel
#

just makes you sound a bit scarier

tough matrix
#

Da, tovarisch

#

somehow google assistant is not scared enough to obey me

distant raven
#

Lol

cloud crag
#

Is it worth learning TinkerCAD if I'm too cheap to pay for the Fritzing download? Any major downsides?

distant raven
#

๐Ÿคทโ€โ™‚๏ธ

#

Could just go KiCAD route

cloud crag
distant raven
#

Itโ€™s free and much better than tinker cad

distant raven
#

slowly yet surely coming along with the C Driver code for my AT42QT1070 acorn

#

It doesnโ€™t work yet, and I havenโ€™t built up the board to test it on. Basically just writing as much as I can based on the data sheet

misty escarp
#

might be some smol help in my conversation with Tannewt in help with cp

#

oh it's C, this was about CP I2C

distant raven
#

Yeah, I was looking at that

misty escarp
#

I am still a little confused but I've got the spirit

distant raven
#

Well, Iโ€™ll be doing the CP soon

#

Which will be fun

#

Look at all the enum registers in the header

#

Lol

misty escarp
#

Ah it's been to long since I wrote any C++ it's greek to me now

distant raven
#

it's greek to me now lol

#

and I have used it recently too

elder peak
#

It is burned into my brain for all eternity.

#

There was a video floating around of a 93 year old ballerina with Alzheimer's and they played some of Nutcracker and suddenly she was there for a bit.

#

When I'm senile, show me some C++

misty escarp
#

Ah I saw that

#

really inspiring stuff

#

I think it had to do with music being used though, so you might have to memorize an algorithm to Old McDonald or something

distant raven
#

lol

#

hoping to have some pictures and whatnot to show for tomorrow for the capacitive touch board

#

I love those moments where you are trying to figure out the right way you want to ask a question about something and then end up answering your question before you even hit send.

misty escarp
#

Little earrings for doctor friend

vapid grove
#

Cool!

ember laurel
#

PCB earrings?

#

hopefully no leaded solder ๐Ÿ™‚

misty escarp
#

Hasl lead free and 3 coats of polyurethane!

tough matrix
#

anyone using powered vacuum pickup tool for populating PCBs?
if so, can you share which one?
aliexpress is full of cheap ones looking like slightly modified aquarium pump, and equally full of angry customer reviews saying that they work poorly...

distant raven
#

I thought about using those little air pumps from Adafruit and rigging up a little system

#

@tough matrix

#

No idea if they would work well for it but ๐Ÿคทโ€โ™‚๏ธ

#

Since they are for short burst use, it might be worth a shot

dark fox
#

@tough matrix if you're trying to do anything at-scale or in-quantity, I think you will be quickly frustrated. If you checkout UnexpectedMaker's YouTube channel, you'll see him having endless issues with a less-expensive, lower-tier PnP, whereas his new Neodenium (sp?) is working great.

#

UnexpectedMaker also has a discord with other Makers you might want to pop in there as well.

distant raven
#

@dark fox heโ€™s designing a manual pnp

#

A low cost one

dark fox
#

Gotcha !

distant raven
#

Which is why I suggested the little pumps adafruit sells as an option

#

Drive with a power transistor and a qtpy or itsybitsy

tough matrix
#

Yes, I've seen UM's videos. But I am nowhere near his level or scale - I need to occasionally populate and reflow 10 boards, not hundreds every week. So I am using regular tweezers for now, but grabbing large ICs such as TQFP48 with tweezers is quite inconvenient, so I am looking for better (but manual) options

quasi bloom
tough matrix
#

you can't be serious ๐Ÿ™‚

elder peak
#

Placing parts with chopsticks instead of tweezers sounds like a fun game, tho.

quasi bloom
#

maybe stick a tiny dab of sugru on the end of the (toothpick, dental pick, jeweller's screwdriver, whatevs) to help grip the parts, but yeah. assuming good at chopsticks.

carmine scarab
#

Is that like an EE version of beer-pong @elder peak?

elder peak
#

I mean, soldering while drunk seems like overall a bad idea.

misty escarp
#

just gotta stick at the right point of the balmer curve

pearl tapir
#

@elder peak It's worse if you are a mathematician: Don't drink and derive.

misty escarp
#

Sobriety is integral to proper math

supple pollen
#

So improper fractions are inebriated?

misty escarp
#

I feel like proper fractions are just being lowkey about it but that's just me

heavy jasper
#

Chopstick technique can be very useful for probing across surface mount resistors, if you have good fine probes.

ember laurel
#

can anyone recommend a good PCB cleaning fluid for ultrasonic cleaners?

fast tundra
#

Yes let me find the one I use.

#

Elma Tec Clean A1

#

I personally need to figure out how to run minipots through the cleaner without removing their oil. Right now my process is just to solder the minipots on after everything else and manually clean after.

#

A1 works great and can be neutralized easily with vinegar.

elder peak
#

So... the answer is still fluid?

tough matrix
#

got my $50 award from instructables - for runner up in one of their contests - and immediately spent it on buying a new "third hand" for soldering ๐Ÿ™‚

elder peak
#

So, you almost got a big hand for your efforts but, instead, you got a little hand.

#

I still haven't found one I like, which means that the clear next step is becoming Doc Oc from Spiderman.

tough matrix
fast tundra
#

I honestly hate all of those things.

#

And a bunch of masking tape.

elder peak
#

I guess that's your only vice then.

fast tundra
#

No I have two ๐Ÿ˜‚๐Ÿ˜…

quasi bloom
#

dual-vise, dual-vise ... use them for holding your boooooards down

misty escarp
#

I have a stick vise, I saw it on a stream here

tough matrix
#

masking tape is quite useful, indeed

elder peak
#

I have a Harbor Freight mini-vice thingie that's not circuit-board-specific and the 4-hands thing that Adafruit sells and mostly I just burn holes in my non-silicone ESD-safe mat on my soldering bench with no form of support, not even masking tape.

quasi bloom
#

i made homemade playd'oh to hold some smaller parts still ... then left it out and it got disgusting

misty escarp
quasi bloom
misty escarp
#

a smidge

#

the cure is to hum Hava Nagila, then THAT is stuck in your head

tough matrix
#

๐Ÿคฃ

misty escarp
#

sorry everyone, I know that some of you will now have one of these two songs playing in a loop. I can only apologize

vivid roost
#

Have-a Tequila, Have-a Tequila...

fast tundra
#

keep it PG, friends. ๐Ÿ™‚

silk lark
tough matrix
#

what does it do?

silk lark
#

it's an ocarina-shaped midi controller

#

six hole ocarina

fast tundra
#

cute

#

what's u2?

#

it's so precariously placed!

silk lark
#

the "antenna" is a bmp280 pressure sensor, you put a piece of silicone hose on it

#

and blow into it

fast tundra
#

omg

#

nice

misty escarp
#

how do you do the purple and white? that's so neat

silk lark
#

it lets you set any colors

#

you can also download an svg

#

which is nice for docs

misty escarp
#

Oh and you just have to find a fab house that will do it?

tough matrix
#

many fab houses do purple

misty escarp
#

I meant purp and white at the same time, sorry, was not clear

silk lark
#

I'm actually making the pcb white, because I want black silkscreen

misty escarp
#

Oh duh silkscreen

tough matrix
#

@misty escarp one color is the board, the other, silkscreen

round stump
#

What fab houses do you recommend for interesting colors? I've been using JLCPCB and they have red, white, black, blue, yellow, and green.

misty escarp
#

PCBway has purple alongside those, OSHPark does purple by default

fast tundra
#

PCBWay is my go to in general

#

We use their advanced service for PCBs that we assemble ourselves & front panels

#

Royal Circuits in the US will do any color you want, but they are pricey in low volumes.

silk lark
#

I had several attempts at pcbway, but somehow it was always cheaper and easier to use one of the others, despite the fact that I won some free points in there at one time. They always added some extra payments when reviewing my designs.

#

I mostly use elecrow, jlcpcb and dirtypcbs โ€” the last one when I want to panelize something myself, because they don't charge you extra for more than one project

#

Oh, and oshpark if I want something small quick

fast tundra
#

OSHPark is great

round stump
#

I want to start making pretty boards with less right angles.

fast tundra
#

I just need more flexibility in volume.

#

(royal Circuits is one of the fabs OSHPark uses)

misty escarp
fast tundra
#

Gotta round all those corners!!!

elder peak
#

So, it turns out that my workflow ends up being to draw it using Illustrator, then use svg2shenzhen in Inkscape, and then import it into KiCAD but I have been realizing that some nice PCB artwork really ties the design together.

fast tundra
#

Jlc has ridiculously low prices for 4 layer boards.

#

@elder peak that's similar to my process for front panels.

misty escarp
#

really responsive customer service in my experience too

elder peak
#

Like, I have CS4 and I'm not giving Adobe more money but Inkscape just doesn't do it for me. ๐Ÿ˜ฆ

fast tundra
#

I'm not a fan of inkscape either. I use Affinity Designer.

#

I've generally had really good interactions with PCBWay's engineers when doing my advanced PCB orders.

silk lark
#

@elder peak I do the outline in Inkscape, and the routing in Fritzing

elder peak
#

Oh that reminds me, I should kick some money over to KiCAD's org.

silk lark
#

Fritzing is nice for artsy pcbs, because it supports SVG natively

#

and it's basically just drag-and-drop

misty escarp
#

I've had a hard time getting SVGs into eagle the "official" way, so I convert to DXF and import into a library, with mixed results

fast tundra
#

I might have to try out fritzing for my panels

#

Because the workflow from affinty to kicad is a nightmare

round stump
#

Anyone know where to get PCB design inspiration?

#

I'm thinking of maybe doing some kind of turning my company logo (a giant P ^ 2 with a resistor symbol) into a neon light display of sorts.

#

Since no one asked I'll share with yall while I research

#

^ That second link is very cool

fast tundra
#

You can look at some of the really cool panel designs that Eurorack folks do

#

Several companies (mine included) use PCBs for our panels.

distant raven
#

@fast tundra I think OshPark is doing some of their own fab now

fast tundra
#

Oh yeah? Neat

distant raven
#

I know they used Royal Circuits for a while but I believe they do own some of their own process now which is cool. They are experimenting with 6 layer too

#

If you want a free 6 layer board, Drew is filling up a panel currently

rain remnant
#

there seems to way to order transparent PCBs but you have to use lower temps to solder parts

fast tundra
#

Good lord. I don't have anything that needs 6 layers.

#

& I hope I never do.

rain remnant
#

transparent 6 layers

misty escarp
#

Lessons in not doing graphic design in EAGLE when you don't know what you're doing ๐Ÿ˜ฆ

fast tundra
#

Eh, ship it

misty escarp
#

It's sooo close though

#

Oh I just thought of another way to do it, let me try that first before giving up

distant raven
#

You should do after dark

misty escarp
#

It's not super smol but I might use Oshpark anyways, I think it's roughly at the point where it's the same cost to do it with them as JLC given the extra cost for ENIG-ROHS

#

I have some dork-friends I'm gonna gift it to I think, so 3 should be enough

heavy jasper
#

I'm not sure how large this will be on the PCB, but you may well be in the range of CAD goggles (soda can and nuclear submarine look the same size on a screen)

#

In that it's easy to spend a lot of time tweaking something so it looks perfect in zoomed-in CAD view, only to be within the fabrication tolerances anyway

misty escarp
#

It's 2ish in in diameter

#

The circle is

#

Now the fun begins: importing this in 2 separate scripts and lying them on top of each other so they align and are centered on the origin

#

one for tPlace and one for tStop

#

but good call on the CAD goggles, I've been there before without realizing it

#

also I have to say I love seeing all the different username colors that show up in this channel. It's a rainbow here!

misty escarp
#

traded one problem for another: now have the not smooth spline but that's OK, it's much better

distant raven
#

Have you ever written code and the realized someone made a library for the same chip youโ€™re using. But their approach was way different

#

Found an Arduino library for the AT42QT1070 capacitive touch chip but they chose not to enumerate all the addresses for the device

fervent lance
#

A lot of people won't write code that sets registers on the MCU directly, so, yes. ;)

distant raven
#

I was talking about the sensor registers

#

I used the MPR121 library as a reference

#

Though, Iโ€™m thinking about refactoring to make it even easier to use

light ermine
#

If the code was written by a hardware engineer it might not be the best code. ๐Ÿ˜‰

distant raven
#

I resemble that remark lol

#

Iโ€™m not terribly good at coding

#

But I love hardware ๐Ÿ˜…

light ermine
#

I work with a lot of code written by academics and researchers and it's often not pretty haha.

pearl tapir
#

I do alot of LED designs and tend to jump to Aluminum core PCB but with the price of 4 layer boards coming down, I wonder if multiple layers of copper planes could do the same thing.
Has anyone seen a straight forward simulator to tell the thermal resistance of Al vs multilayer?
Or pre-made models for Solidworks. Those were bear last time I looked at it.

fast tundra
#

I think that's outside most of our areas of expertise, @pearl tapir ๐Ÿ˜ฌ

#

Copper is certainly a better conductor, but the layers are probably thinner than the aluminum layers would be.

elder peak
pearl tapir
#

@fast tundra Of course. I typically use .062"/1.6mm for Al core and 2oz copper for FR4 PCBs when I have low power LEDs. 2oz copper doesn't conduct very much heat when the LEDs are running at, say, 1-2W.

For a UVC disinfector, the LEDs have to be quite cool or they will only last 5000hr. To disinfect an N95 mask at 60 seconds per cycle, 5000hr is fine.
To build an air purifier which needs to run 24/7 then 5000hr just won't cut it.

elder peak
#

To me, I'd think that the extra copper from the two extra planes isn't going to add that much mass. But I am heavily speculating

pearl tapir
#

@elder peak Agreed. It requires thermal vias under the LED that are filled with solder through all 4 layers. It still probably won't work based on my experience, but the only stupid questions is the one you don't ask.

elder peak
#

I guess the advantage is that you have a fairly continuous power and ground plane on the outside, tho.

#

I think the "thermal vias under the LED filled with solder or otherwise" kinda implies that it's still easier to just clamp a good copper heat-sink on the back.

fast tundra
#

Buy a big piece of aluminum, expose a big copper fill on the back of your PCB, and mount the PCB on the aluminum with a piece of thermal adhesive between the exposed fill and the aluminum.

#

I literally just did this with three SSRs ๐Ÿ˜…

elder peak
#

As @fast tundra and I frantically type almost the same thing in a race.

#

I guess that was able to rectify the situation?

fast tundra
#

loool

#

but seriously getting an aluminum heatsink is super cheap

pearl tapir
#

@fast tundra To some extent, when you do that, you are paying for a PCB and aluminum. An aluminum core pcb might end up cheaper.
In designing some 250W high bay lights, I used Al core circuit boards, graphite filled thermal interface material, a custom extruded heatsink and it still needed a fan.
Custom extruded Al is actually fairly inexpensive if you are willing to buy 2000 pounds.

fast tundra
#

as the old adage goes, scale changes everything.

#

at medium scale I'd look for COTS heatsinks

pearl tapir
#

I don't know yet what the scale of a COVID disinfector is. Most of what is seen on the market just doesn't work. To get certifiable viral reduction test results means a lot of very expensive LEDs.
Hospitals are claiming they don't have any money, so it is a hard sell.

misty escarp
fast tundra
#

If you're looking to produce a device like that for sale, I'd recommend hiring an industrial designer.

pearl tapir
# fast tundra If you're looking to produce a device like that for sale, I'd recommend hiring a...

Why?
Look at the lower left bottom corner of this web site. That is my design being produced by a local sheet metal manufacturer. It works an I have results from a test lab. I'm just thinking through how to reduce costs.
http://www.metcam.com/

distant raven
#

@pearl tapir ExpureLED thing?

fast tundra
#

It seems you've got this all figured out. I'm not sure how much help we can be!

pearl tapir
#

@distant raven Yep
@fast tundra Just looking for what I haven't thought about. A lot of smart people here that have thoughts on cost reduction.

elder peak
#

Oops. I'm in the process of uploading the gerbers and making sure I've got enough parts for my next three designs and I discovered that the pull-up resistor and protection diode weren't connected to Vcc and there were two vias that weren't necessary and were breaking up the power plane

distant raven
#

Oh wow

misty escarp
#

Pulled the trigger on two new artsy boards!

distant raven
#

Nice!

misty escarp
#

gotta figure out framing, need to fill out these walls they are too bare

crisp plover
#

Hello everyone, sorry for the noob question but what are some free pcb design software you recommend for learning with small projects? Thanks

misty escarp
#

KiCad is a common suggestion

#

I've heard tell of people using Easy EDA too

crisp plover
#

Sweet, thanks I'll check those out ๐Ÿ˜Š

misty escarp
#

Others may have other suggestions ๐Ÿ™‚

sour mirage
unreal flax
#

I can't positively confirm that, but the "T" on the package code indicates 150mil, so that's what the product photos are showing, at least. If you wanted to be paranoid you could grab the QT Py board files and check the footprint.

misty escarp
#

I can measure mine in a sec.

#

How is the dim measured?

heavy jasper
misty escarp
#

Thx

#

Looks like it's the 150mil variant

#

My calipers are cheap but not that cheap

sour mirage
#

Excellent. Thank you all for the help!

distant raven
misty escarp
#

woot

distant raven
#

Iโ€™ve been working endlessly all day attempting to get the driver code to work

misty escarp
tough matrix
#

and I ran out of solder... time to order another spool

ivory jasper
fervent lance
#

Oh so you are the YouTube chan author?

ivory jasper
#

"YouTube chan" doesn't exactly have a nice ring to it

#

@fervent lance I am the one behind Riskable 3D printing, yes

fast tundra
#

@ivory jasper looks great!

fervent lance
#

Now can you type on that as it is shown in the photograph? how?

ivory jasper
#

Better to call me, "Riskey-chan!" in some kawaii voice ๐Ÿ‘

#

@fervent lance By pressing on keys

fast tundra
ivory jasper
distant raven
#

hey @fast tundra any chance you can help me with something C Related?

#

well, arduino I guess

#

I posted about it in the arduino help

#

also I love the keyboard ๐Ÿ™‚

misty escarp
#

I want one!

distant raven
#

all these keyboard projects have me wanting to make my own

fervent lance
#

All wiyht! Rho sritched mg kegtops awound?

misty escarp
#

it hurts us

fast tundra
#

@distant raven sure!

supple pollen
#

Wow I wouldn't buy solder from amazon

tough matrix
#

even brand name?

supple pollen
#

Nope, their "equivalent merchandise" policy can still bite you. That, and I loathe their corporate practices and refuse to do business with them.

fast tundra
#

yeah they're capitalist monsters

distant raven
#

capitalism is all fun and games until someone becomes a corporatist and then it's all over

#

those pesky cronies

heavy jasper
#

Digikey, on the other hand, will happily put on a pretty substantial markup for the convenience and brand-name. It can be worth at least checking the likes of findchips to see if there's another authorized reseller that's not as expensive.

misty escarp
#

McMaster-Carr has a hair trigger order button and (in my recollection) no way of cancelling an order. Quick as heck shipping though

misty escarp
#

I wonder if there are enough businesses with a limited number of approved vendors that this works?

fast tundra
#

Master is technically not an official distributor

misty escarp
#

ah gotcha

heavy jasper
#

(They may or may not be an official distributor of every product they sell, I can't speak to that, but at least for this specific product it appears legitimate)

distant raven
#

I have found myself mostly shopping Digikey, though i've bought from Arrow before

misty escarp
#

when picking a 32.768 kHz crystal, should I be looking in Crystals or Oscillators in Digikey?

distant raven
#

some JST 2 pin battery connectors that go out of stock frequently..

fast tundra
#

Ah yeah, weird.

#

Crystals

heavy jasper
#

If you want a crystal specifically, you want the crystal. Oscillators generally are digital logic-level-output devices.

misty escarp
#

ok thought so, been having a hard time finding one in the package I want but I guess I can live with radial can

heavy jasper
#

What parameters are you looking for beyond frequency? That's one of the more common frequencies, so there should be a good variety of parts available

misty escarp
#

Solderability with only an iron

fast tundra
#

You can solder the smt ones with an iron..

misty escarp
#

I tried to find one with an HC-XX/X footprint but couldn't somehow

distant raven
#

I think 4-SMD is an okay size

misty escarp
distant raven
#

though Adafruit uses some 2 pin ones for their cortex m4 that I want to try out

misty escarp
#

anything "wrong" with a radial can? I already have one, I'm just redoing this board again before ordering

carmine scarab
#

Thought the Oscillator/Crystal question sounded familiar. Turns out it was last weeks "The Great Search" topic!
https://www.youtube.com/watch?v=AhRORYtAqsc****

The Great Search is a new series of videos focused on searching the Digi-Key catalog to narrow down to the parts you want to buy. This week:

If you have a microcontroller or audio chip, you're probably going to need a crystal to help it keep time. In this Great Search, we'll look at Crystals, Oscillators and even touch on Resonators. Which one ...

โ–ถ Play video
misty escarp
#

I just remembered that!

carmine scarab
#

Glad it was one of those "I KNOW I saw that" that actually happened, and not "I'm pretty sure I didn't make it up in my mind"

distant raven
#

hehe

misty escarp
#

mandela effect for electronics?

#

I just saw that the feather s2 has a little extending tab for the usb-c port to rest on. So neat

elder peak
#

Just, some design concerns take longer to crystalize than others

misty escarp
#

Redoing my calcs too, to be safe: In this, CL is the Load Capacitance given in the datasheet, right?

#

And is it usually reasonable to say C1 = C2?

heavy jasper
#

Yes and yes

fast tundra
distant raven
#

๐Ÿ˜ฎ

heavy jasper
#

Though this isn't the formula I generally use since Cstray is generally not defined as such

misty escarp
#

hmm I'm getting C1=C2= 15 pF

#

CL = 12.5 pF

distant raven
#

I've used 18-22pF depending on the load capacitance

elder peak
#

Well, that's one way to clean your clock

distant raven
#

๐Ÿ˜›

fast tundra
elder peak
#

Yeah, I was weirded out because a lot of the smaller crystals have a very low Cl and then the Atmel datasheets are like "don't use a capacitor that small"

fast tundra
#

From what I understand it's better to go a little higher than a little lower.

#

I use 22pF load caps with that crystal I just linked.

misty escarp
#

does my calc seem off? Should I pick a different cstray value?

distant raven
#

the 48MHz crystal I use on the MSP432 feather wants like 28-32pF caps

misty escarp
#

this is un poco frustrating

heavy jasper
#

In short: Your thing will probably work, especially if you're not trying to do super crucial timekeeping with that 32.768KHz crystal (e.g. in an RTC).

#

Sometimes they'll have suggested maximum ESRs or other parameters for the crystal in the clocked-device's datasheet

elder peak
#

I feel like I should keep some chicken bones in my geekroom specifically so that I can print out any schematic with a clock circuit on it and do a ritual on it.

carmine scarab
#

Isn't that the correct scientific method, @elder peak ?

elder peak
#

I mean, quartz crystals are part of many shamanic traditions.

heavy jasper
misty escarp
#

thanks @heavy jasper I'll take a look

distant raven
#

TI also has a 32kHz crystal selection guide that is nice

misty escarp
#

I should have my friend I made the PCB tarot card for do a reading for selecting these

carmine scarab
#

Bonus points for chicken-bone powered, versus lemon/potato clock

misty escarp
#

They're a vegetarian ๐Ÿ˜ฆ

carmine scarab
#

Ok, so Tofurkey powered?

#

It's gotta be good for something

misty escarp
#

not for taste

pure fossil
#

Back when Damien George was designing the original PyBoard, I backed the kickstarter and decided to design my own slightly more custom board for a robot I was working on. I started off wanting to use a smaller crystal than the one he was using, and went with one that looked like it should work. It didn't. The board still worked (using the internal oscillator) but the USB didn't work. I switched to the caps and crystal he was using for my next rev, and everything worked perfectly. Both the PyBoard and my board were using the same STM32F405 microcontroller. Crystals and caps are black magic, especially for the Cortex M4.

fervent lance
pure fossil
#

I have pretty much zero interest in running forth, so that's okay

fervent lance
#

;)

pure fossil
#

Back in the day my Apple 2 ran forth - I looked at it, didn't like it, and wrote 6502 assembler instead

fervent lance
#

He has assembler source for it.

#

Commercial compiler though - not gas.

pure fossil
#

It takes a special kind of brain to really appreciate RPN - although I like it from a conceptual perspective, and I've written compilers and parsers that essentially implement it (stack based computation), but I don't really like using it myself

light ermine
#

I just dusted off and started my old HP48 and then I remembered it uses RPN ๐Ÿ˜„

reef flicker
#

Anybody else a bit uneasy about digikey's tendency to overpackage?

#

Just received an order, and I needed screws. They decided to individually package screws

fervent lance
#

;) I hear you.

distant raven
#

@reef flicker it's usually because they have a lot of individual screws left in packages from previous orders so they keep them aside for suckers like us hehe

#

I quite often get my order of 100 capacitors in two packages, one with 49 and the other with 51

elder peak
#

Pretty much, I use Digikey's overpacking as my orginizational system.

round stump
#

I use Sparkfun packing for my organizational system. ๐Ÿ˜„

tough matrix
#

just fixed the one defective board out of batch of 56 sent to me by fab house. Now I have 56 working boards.
I ordered and paid for 55, they sent one extra, and it turned that out of 56, one was defective - a simple solder bridge .

elder peak
#

Well, that's something to do when your board and looking for something to play with

tough matrix
#

out of boardom

elder peak
#

I sometimes think of getting the parts binders that Adafruit sells for SMT stuff but, eh, digikey bags work well enough

misty escarp
#

I got one, it's a lot smaller than I was expecting

slim sandal
#

Is there any way to tell what Components you use in Eagle

#

To order them

misty escarp
#

You can export libraries and sometimes that has the info you need

slim sandal
#

Thx

misty escarp
#

Are you looking at an adafruit board?

misty escarp
#

may give other info

slim sandal
#

In the Schematic or the brd

misty escarp
#

brd

slim sandal
#

Is it just a button or a file then a button

misty escarp
#

Sorry, just saying "Export this" was not very specific

#

make sure to save it as somefilename.txt or it will not open properly

#

It looks like it's a tsv so you could possibly save it as a tsv and then open it in excel/google sheets by converting it to the native format

slim sandal
#

Ok thx

misty escarp
#

having trouble opening in google sheets properly, not a tsv it seems

tough matrix
#

anyone knows what software people use for actually writing the datasheets of various chips? Please don't tell me they use Word...

supple pollen
#

A bunch of different things. Some companies do use word.

tough matrix
#

I wonder if there is a LaTeX template for such

supple pollen
#

It wouldn't be too hard to craft one.

tough matrix
#

sure, I am just lazy ๐Ÿ™‚

#

or failing that, a publicly available Word datasheet

#

that one can use as template

supple pollen
#

We used to do something similar, but our workflow was ... odd. We'd store the data in XML, run it through XSLT to format it as fop, then use fop to generate the PDF.

#

Worse, the XSLT transforms were huge, so they were generated by yet another XSLT transform from XML descriptions of what the final pages should look like.

tough matrix
#

I am not eager to go back to xml editors - last time I did that was 20 years ago

#

xslt to run xslt ๐Ÿ™‚

distant raven
#

makes complete sense ๐Ÿ™‚

tough matrix
#

and in the darkness bind them

vivid roost
#

thanks for sharing yesterday @distant raven , congratulations! at least somebody had a good 2020...

#

HAPPY NEW YEAR ALL!

distant raven
#

I think the nws surely made the year seem so much worse. And it was bad in many perspectives. But there was also a lot of good that happened this year, and not just for me.

vivid roost
#

I'm sure that is true. Not all the news was bad, saw a headline today "Nobody was killed by Murder Hornets in 2020 (as far as we know)" ๐Ÿ™‚

tough matrix
#
supple pollen
#

Good find!

elder peak
#

I have totally seen Word metainformation on datasheet PDFs

supple pollen
#

I tend to eye that as an admission that the company settles for worst-of-breed tools

distant raven
#

I'm not a terribly big fan of LaTeX

#

but i know i should probably get used to it lol

carmine scarab
#

I have absolutely zero, zip, null, zilch, nada, rien, void experience writing up datasheets, but I've read some, and the ones I've seen seem like they could have quite cleanly been written in MarkDown (with Extras, for tables, footnotes, etc.). With some LaTex thrown in for special uses (formulae, maybe charts? I don't know LaTeX's capabilities or limitations), it should also be well suited for version control systems.

#

@supple pollen - that's because Notepad.exe doesn't put out any metadata for you to see! ๐Ÿ˜‰

distant raven
#

notepad might actually be better than word in many regards

supple pollen
#

I use Markdown for a lot of internal documents. Makes it easy to track changes in git, too.

distant raven
#

I'm relearning markdown and whatnot

supple pollen
#

A long time ago, I'd written a utility that converted text with asterisks for bold, etc. into HTML. Markdown just seems like someone had a similar idea and fleshed it out considerably

distant raven
#

yeah, there's a lot you can do

#

there's a whole website dedicated to talking about using markdown and I've glanced at about.... 1/4 of it

supple pollen
#

I do like the auto heading numbering, it works like in troff but even simpler

carmine scarab
distant raven
#

that's probably it

carmine scarab
#

It's incredibly well thought out and detailed, but some of the omissions, or "you can use plain HTML instead" seem odd, or "we don't want people using it, so we don't want to do it".

#

There's also CommonMark, which is an attempt at standardizing markdown conversion and rendering
https://commonmark.org/

distant raven
#

I just know I was trying to reformat from github md file format into rst and it was a little bit of a headache at first

carmine scarab
#

I've never dug into the difference between MD and rST. They both seemed pretty close to one-another

distant raven
#

the differences are ever so slight

#

but enough to mess with things

#

like using # isn't permitted in rst for bold section names

carmine scarab
#

Sounds part for the [technical] course

distant raven
#

must use ------------------------------ under the word

elder peak
#

Well, there's also asciidoc which is more oriented towards technical documentation

distant raven
#

headlines used ===================

#

bold

carmine scarab
#

Which MD supports for H1 and H2

distant raven
#
headline
======```
carmine scarab
#
H1 header
------------

H2 Header
============
distant raven
#

that works too

elder peak
#

I dono, I've been using wikis as my primary notetaking and orginizational method for over a decade now so nothing about Markdown feels actually that weird.

carmine scarab
#

But I prefer the pound (#) since the - and = can be interpreted as <hr> if your spacing is wrong

distant raven
#

yeah

carmine scarab
#

Not to mention, counting # helps know which level you're at with minimal effort, and follows naturally through <h6>

distant raven
#

I'm sure the bolding isn't necessary

carmine scarab
#

I feel like it is, so I can spot a section at a glance. But that's my personal (and correct) opinion!

distant raven
#

hehe

misty escarp
#

Refreshing a package tracking page causes the package to come sooner, right? asking for a friend

#

I wants my pcbs

carmine scarab
#

Maybe just a bit slower than when you're tracking your Adafruit shipment! ๐Ÿ˜‰

distant raven
#

hehe, I want the bluetooth adapter and hdmi to DP cable I ordered from amazon 3 days ago that should have been here yesterday but hasn't moved one bit

misty escarp
#

I've decided to look on the bright side: Long shipping times means any covid in the package has a chance to die

distant raven
#

assuming no additional handling in the time

misty escarp
#

It's coming wrapped in plastic and I always wipe down the outside. IDK if it does anything but it makes me feel better

carmine scarab
#

Probably should put it in the microwave for 30-60 seconds, make sure any trace of living biological material is fried.

misty escarp
#

Hmmmm, should i also order a replacement microwave?

carmine scarab
#

Probably safest. Order it alexa enabled, and make sure it's smaller than the current one, so you can nuke it before you use it. Safety first!

misty escarp
#

it's microwaves all the way down

tough matrix
#

The most complicated doc-writing format I worked with was DocBook which we used for GNOME documentation (with all the XSLT stylesheets needed to convert it to HTML/PDF). Compared to that, LaTeX is piece of cake. And I really love LaTeX.

elder peak
#

I worked with a DocBook publishing pipeline and, yeah, it was painful.

#

I totally get what they were trying to do with DocBook, which probably made it worse.

fervent lance
#

ahah so DocBook I profitably overlooked. Been around for quite some time.

fast tundra
#

I honestly love RST

#

RST + Sphinx has been the Python community's secret weapon for a while

reef flicker
#

I accidentally let my soldering iron tip oxidize really bad, any way to save it?

#

I know scraping with abrasive materials is bad, but I tried to clean it using flux, rubbing on the sponge, nothing

heavy jasper
#

Abrasive materials can be OK if you're gentle, then re-tin the tip. But most likely, you're going to need a new iron tip unfortunately.

quasi bloom
#

there's a special tipcleaner flux that gets used for that, usually needs 300-350ยฐ. and a brass (not steel) "sponge", since brass will be softer than the tips.

fervent lance
#

The old soldering iron tips were pretty much a billet so you would just file the crud off. ;)

#

New ones have some kind of voodoo plating going on or something and I think most are hollow so filing exposes the air core to them. Maybe.

reef flicker
#

Guess I'll try scraping, nothing to lose anyways since at this state it's impossible to use

heavy jasper
#

If you have some fine sandpaper or a knife sharpening stone, that'd also be a good controlled way to remove a bit at a time

reef flicker
#

I have neither ๐Ÿ˜

#

Gonna be i think 120 grit sandpaper

distant raven
#

Pretty excited, I ordered my PCB prototypes of my ESP32-s2

carmine scarab
#

๐Ÿ‘
And now begins the constant browser refresh cycle until they're at your door!

distant raven
#

Haha email refresh while they fab ๐Ÿ˜‰

#

Currently on the bank account refresh waiting on stimulus to hit

#

Mostly so I can pay bills ๐Ÿ˜…

weary ocean
#

I need to "surface mount" a Pi Zero to a larger board connected with the GPIO pins. I don't have clearance to add headers. Any suggestions or prior experience with this? ๐Ÿ™‚

honest cedar
#

ive never seen that done with a pcb not designed for surface mounting

elder peak
#

I got the shipment notice for my most recent board set too.

reef flicker
#

Got my PCBs today! Of course it's the day after I ruin the soldering tip i need ๐Ÿ˜

elder peak
#

Well, I don't have any soldering tips for you there.

reef flicker
#

๐Ÿ˜‹

#

To solder my packages, I'm faced with two options; using solder paste or pre-tinning the pads with solder

#

Both I would shoot with a hot air gun, and I have some flux if it makes sense when using the second option

#

Which route should I take?

tough matrix
#

what components are you soldering?

reef flicker
#

Tiny pressure sensors LPS33HW

#

The pads are underneath the actual sensor, no part of it is exposed

#

Last time I used solder paste but it wasn't an easy thing by any means

tough matrix
#

I had best success with such parts using solder paste, stencil, and hot plate. Using heat gun with the parts that have pads underneath is challenging but possible.

reef flicker
#

So solder paste over tinning the pads?

tough matrix
#

for me yes
but I've seen other people here give exactly opposite advice ๐Ÿ™‚

reef flicker
#

Guess i can try both and see

#

If I were to go pre-tin route, should I put flux between the package and the pads? I'm afraid it'll just stay there forever and possibly cause issues

distant raven
#

I pre-tin QFN

#

With solder paste

reef flicker
#

Any advantage to pre-tinning with paste rather than solder?

distant raven
#

Clean up excess, heat the part and the pads

#

Easier to get on tiny pads

reef flicker
#

Let's try it

elder peak
#

Now you tin find out for yourself.

distant raven
#

Curious for i2c device developers, if a device has multiple i2c addresses, should you just define the first listed address or all of them?

#

I was just going to do the first but I'm not great at anticipating how many of these a person would use in their setup

reef flicker
#

1 down, 9 to go

#

Turns out not enough solder is a thing, and it tends to behave kind of like no solder at all ๐Ÿ˜…

unreal flax
#

@distant raven The usual pattern I've seen is have the driver default to the first address but have a constructor option to let the library user pass in an alternate address to use.

distant raven
#

Thatโ€™s sort of what Iโ€™m doing. I enumerated the other addresses

#

I figured it was probably better that way

misty escarp
#

The only lib I've really dived into does it the way ed mentions, are you then validating passed addresses against the enumerated addresses?

heavy jasper
#

If you want to be absolutely positively explicit about it, you can make a typedef enum of the available addresses e.g. ADDR_LO_LO, ADDR_LO_HI, etc in the public section of the class, and then make the argument of the constructor that enum type.

#

Where then if you need to pass numbers at some point you can do static_cast<I2CAddress>(0x40)

#

but normally you'd do I2CDeviceDriver::I2CAddress::ADDR_LO_HI

#

(except with matched casing and all that)

distant raven
#

Thatโ€™s one way

misty escarp
#

anyone know of a feather s2 footprint? I'm making one but hoping to skip it if possible

#

alternatively does anyone know of a feather s2 brd file or dimensions?

distant raven
#

Are you talking about the mini module @misty escarp

tough matrix
#

which board are you talking about?

#

and then just yesterday Adafruit have announced that they are making their own version of esp32-s2

#

in any case, all feather boards share the same dimension and footprint

distant raven
#

Yeah

misty escarp
#

Ah shoot didn't realize there were two. The unexpected maker one. I've got it solved tho it seems Thanks everyone

#

I erroneously thought the spec allowed different pin spacings

distant raven
#

Oh gotcha

reef flicker
#

Messing around with my poor hot hair skills appears to have stripped off some of the solder mask on top of some routes

#

Is this any concern?

supple pollen
#

Probably fine, but you can buy soldermask repair liquid.

distant raven
#

Now I need to do an ESP32-S3 board

#

Lol

tough matrix
#

@reef flicker "hot hair skills" ๐Ÿ™‚

reef flicker
#

This is slightly depressing, multimeter shows all nets shorted, even the ones the sensors don't touch

#

Hoping real hard it's not the board

elder peak
distant raven
#

Hehe probably not

#

BLE+WiFi LOL

#

Unless it only has 1 antenna pin then probably could use a unified antenna

elder peak
#

Today's design exercise: Can you make a plausable ATTiny84 in the Qt-Py form factor?

distant raven
#

The answer may surprise you

elder peak
#

It would be wickedly easier with the QFN part and 4 layers, LOL.

distant raven
#

Yeah hehe

elder peak
#

The thing that amuses me is that, other than the serial pins being connected to three places (ISP port, I2C, and SPI) all of the pins are able to be assigned sensibly with 2 GPIO pins left over (for a crystal oscillator that clearly won't fit)

distant raven
#

Bottom?

elder peak
#

Physically, yeah, but it would need 4 layers.

distant raven
#

I feel like this would be fun to incorporate into a little breakout board

fervent lance
#

Most forths can do SPI at best; few can do i2c because they never get past the initial development stage. ;)

#

USART nearly always the first peripheral to be utilized.

distant raven
#

Thatโ€™s a bummer, i2c seems pretty popular these days

fervent lance
#

Well the thing is, programming an i2c driver is a step above - very different than the others.

I did one .. fifteen years ago, for 8051 .. that only served as master-transmitter role (running on an MCU) for talking to PCF8574 port expander. ;)

#

Can't find the code (lost it) and can't replicate it (too difficult). ;)

#

Was originally a port of a program written by the mfgr as an App Note, in the C language.

distant raven
#

I imagine itโ€™s pretty hard

tough matrix
#
fast tundra
reef flicker
#

Using the arduino analogRead to read the GND pin, it's not always at 0, it raises "randomly"

#

To me, this looks like it's charging/discharging the caps very rapidly, but I don't know any better

#

Actually, creating an intentional short gives me identical waves, so I'm assuming there's a short somewhere on the board, how do I find where it is?

vivid roost
#

measure between grd and the 3.3v rail, how does it look?

reef flicker
#

Same pic as above

vivid roost
#

0v? or just the scale is off?

reef flicker
#

This is using the analog read on the 3.3v in pin

vivid roost
#

on a 3.3v reference?

reef flicker
#

Disconnecting GND leads to clean 3.3v on the graph, disconnecting 3.3v in leads to clean 0

vivid roost
#

what does your multimeter say?

reef flicker
#

Multimeter measures 0.04mv and resistance of about 3ohm

vivid roost
#

ok unplug it that's a short

reef flicker
#

Alright

#

Good

#

How do I pinpoint where the short is? I'm not sure if multimeters would flag just a standard cap as a short

#

Just testing with another working board on a ceramic cap, it reads the same 0.04mv

vivid roost
#

sounds like the 3,3v rail is shorted to ground, it could be any component or trace on a custom PCB

#

the 100nF caps near the supply pins is a good idea

reef flicker
#

Even on each sensors?

vivid roost
#

it's a good idea to put small bypass caps near each IC or sensors Vcc input

reef flicker
#

Alright

#

That's what I did

#

Multimeter basically reads that as a short though

vivid roost
#

because Vcc is shorted, could be anything

reef flicker
#

Right, but I mean on a different board where I know it's not shorted

vivid roost
#

you mean a different working board reads 0 volts?

reef flicker
#

Hold on I might be wrong

#

I don't have a continuity test mode on this multimeter, so I've been using DCV and reading anything near 0 as continuous when the board isn't powered, is that correct?

#

Maybe I should be using resistance measurements

vivid roost
#

DCV is volt mode so yes you'll read 0 if unpowered

#

if you do not power the board, set resistance to a low range, what does it read from 3,3v bus to ground?

reef flicker
#

0.3ohm

#

So definitely shorted then

#

The working board reads very high values, but they fluctuate

vivid roost
#

ok, time to start hunting for the short ๐Ÿ˜‰

reef flicker
#

How do I do that?

vivid roost
#

i'd start visually, with a magnifying glass, look for anyplace Vcc is touching ground on the copper

reef flicker
#

I have 10 resistors mounted, all at 10kohm, for some reason halfway through the board they start reading as 0

vivid roost
#

there's a clue

reef flicker
#

I'm assuming the short is somewhere under my sensors, the problem is that I can't see underneath and it's very (very) difficult to solder / desolder them

#

So knowing which one is the problem is pretty crucial ๐Ÿ˜›

vivid roost
#

trace the trace between the 10Ks that read right and those that don't

#

solder blobs, wire in wrong place...

reef flicker
#

If one pullup reads as 0, shouldn't they all read as 0?

#

They're all between data line and the 3.3 rail

vivid roost
#

generally you'd use 2K to 10K pullups

#

when you say 0 you mean 0 ohms right?

reef flicker
#

I'm using 10k in this case, since it's worked before

#

Yes, 0 ohms

vivid roost
#

you don't want your sensor pins tied high, no

reef flicker
#

For reference, R9 is the first to read as 0ohms, anything above on the board reads as 0 as well

heavy jasper
#

Is it in theory a separate I2C bus per sensor?

reef flicker
#

It's a separate I2C bus per 2 sensors, since they have 2 possible addresses

#

So 5 buses for 10 sensors

heavy jasper
#

If so it seems somewhat unlikely that a solder short on a single sensor would cause a mass short of nets to VCC. And even more so for that to be split where half of a bus is shorted and the other isn't.

#

It does however look like you have a bunch of vias located very close together underneath that TCA9548; have you checked your solder quality in that area to see if any solder wicked underneath the part while you were soldering and bridged vias?

reef flicker
#

I was pretty careful with that IC, but it's possible some got in there. I could try removing it to check

heavy jasper
#

Depending on the size of the via you might be able to get a bright light and look from the bottom side of the board and see if you see any solder wicked into the vias.

#

If you don't see it, it doesn't necessarily mean there isn't bridging, but if you do see solder there that's generally not a great sign. Separately, just a close visual inspection of all the tracks on the bottom layer to see if there's some evidence of shorting.

reef flicker
#

I don't see it for this IC, but I did find 1 other via that does appear to have a tiny ball of solder in there, it's nowhere near other vias though

#

But even if those vias are shorted, could that really explain the GND VCC nets being short too? Since those vias are only data lines

heavy jasper
#

Oh I missed that GND and VCC are shorted also

reef flicker
heavy jasper
#

If you have a hard-shorted supply, definitely solve that first.

#

And that unfortunately is much more likely to be a badly soldered sensor

reef flicker
#

Sensors could def cause both shorts between VCC and GND, as well as the data lines

#

What's weird to me is that they all start being shorted starting from 1 pullup, any ideas?

#

Could be random, but could also point towards something

vivid roost
#

but 1 board (at least) is fully functional?

reef flicker
#

Nope! ๐Ÿ˜

vivid roost
#

ohhhh

reef flicker
#

The other board I was referring to is a different design, I was just using it as reference to properly use the multimeter

heavy jasper
#

Oh then all number of things could be wrong. Can you post your raw design files somewhere?

#

I want to run an independent drc

vivid roost
#

I'm off, good luck and Happy New Year!

reef flicker
#

Thank you for the help! Happy new year to you too!

#

@heavy jasper The .brd file?

heavy jasper
#

Ideally schematic, brd, and the final gerbers you sent to manufacturing.

#

You should also try probing those resistances on a bare pcb

reef flicker
#

Mind if I send it over private message? Would rather keep those private ๐Ÿ˜‰

heavy jasper
#

To make sure theyโ€™re what you expect and there isnโ€™t a plane short.

#

Sure, whatever works.

reef flicker
#

So I got 3 boards of this, on the other boards none of the nets are shorted

#

Sent them ๐Ÿ™‚

#

I should've just went with different sensors, after all the trouble they've caused me

heavy jasper
#

"on the other boards none of the nets are shorted" are those soldered boards, or bare boards?

reef flicker
#

Bare boards

#

This is the first time I try to assemble these boards, received them yesterday

heavy jasper
#

Unfortunately, quite a few places by the sensors that things could be shorted; they're cramped and you did a bunch of layout within the footprint of the package so there's more room for easy bridging.

#

One thing I did notice: you didn't seem to put any orientation marks on the board; do you know that you soldered all of the sensors in the correct orientation and not 180 degrees off?

reef flicker
#

Despite being 10k resistors, for some reason R12 and R13 read as 5k ohms

heavy jasper
#

Do you measure 0 ohms between SD4 and SC4?

reef flicker
#

There are marks, there's a little dot next to the 1 pin

#

I do read 0 between those

heavy jasper
#

That explains R12/R13 reading as 5K then, since they're currently wired in parallel

#

(so you're really just measuring 10K || 10K in each of your measurement cases)

reef flicker
#

Ah OK

#

What would you suggest I do then? There's no real way to find which sensor is shorted right?

heavy jasper
#

Depending on your tolerance for PCB rework vs. soldering rework

reef flicker
#

So I just... remove them all, put them on 1 by 1 and test shorts after each one?

heavy jasper
#

you could try cutting each of the +3.3V branches

#

on the top layer

reef flicker
#

As in cutting the physical trace?

heavy jasper
#

yeah

#

Then probing from the via to ground for each sensor

reef flicker
#

And then I dab solder on the cut traces to form them back?

heavy jasper
#

Yeah it's not the easiest thing to do given there's also the plane on L1, but possible

#

SInce it's just one long string out, you could lessen the number of cuts by first cutting in the middle of the length-wise track, and probing each side

#

and binary-searching your way down

reef flicker
#

Oh yeah, didn't think about the plane

heavy jasper
#

I'm assuming you don't have a thermal camera; that's the other way to do it

#

(let it short with power applied and see what gets hot)

reef flicker
#

I don't ๐Ÿ˜ฆ

#

Assuming it doesn't get hot enough to tell by touch

#

Just so I know what I'm looking for, when the GND & VCC nets will not be shorted, what kind of resistance should my meter read?

#

Given that the caps will be in place

heavy jasper
#

Caps on a plane look like an initially small resistance that then increases upwards

#

My guess is anything >1K ohms and you'd probably call it "open"

reef flicker
#

Ok, well I guess I have my work cut out for me then ๐Ÿ˜›

heavy jasper
#

Yeah short-hunting is not my favorite activity

reef flicker
#

How could I avoid this kind of situation in the future?

#

I'm thinking I could have some kind of bridge that I link gradually, kind of like two empty pads for each sensors, that way I can "cut" it for testing

#

Or even put diodes to isolate the source?

heavy jasper
#

There are some things you can tweak on the design for manufacture side of layout to make shorts less likely, or put in 0-ohm resistors in series with the supplies to each chip that you solder in after verifying that the chip isn't shorted, but really the best answer here is "have a professional assembly house assemble your board."

#

Stencils and controlled reflow ovens, ala what stargirl has, are a decent intermediate ground too.

#

But really nothing beats a robot, followed by X-ray and/or flying probe testing.

reef flicker
#

I could have access to a reflow oven, but I wanted to give it a shot without given current world's situation

#

Alright welp, thanks for all the help! I'm off to bed too

#

Guess we'll see tomorrow... Just hoping I didn't screw up all the sensors at this point

heavy jasper
#

good luck. You might have a better time just pulling off sensors one by one, inspecting them, then soldering them to a new PCB and then probing the resistances after each one

reef flicker
#

Should've done that from the start, but was too lazy to pull out the multimeter. Learnt my lesson

ember laurel
#

@reef flicker did you try the alcohol pour technique?

#

just dab things with isoprop, the component that makes it evaporate the quickest, is the warmest

#

and likely the culprit.

#

I don't have a heatcamera, I just do that - and it's remarkably accurate

#

just set your bench supply to a low current limit, so you don't fry anything

reef flicker
#

That's a good idea

#

I don't have a bench power supply, but I can try just hooking it to the arduino and see if it's enough?

supple pollen
#

A low resistance tracer would help, but most of us don't have access to such and would have to build our own

reef flicker
tough matrix
#

started populating some PCBs I just got for a new project and realized that I forgot one trace - an LED is unconnected...
Feel really stupid

distant raven
#

@tough matrix Iโ€™m not certain if that color sensor I shared is better than what Adafruit sells

ember laurel
#

if I had a penny for every time I forgot something on a PCB

#

my life is a bodge wire ๐Ÿ™‚

pearl tapir
#

I just plan to throw away the first PCB, so then I'm not mad if I forgot something. Kinda a constant improvement system as I always find something I could have done better.

fervent lance
#

sounds like my term paper rewrites in high school, copied by hand.

#

It was literally impossible for me to not change a thing, but just render what was already written, in a presentation quality suitable for turning it in to the instructor.

#

No phone, no lights, no motorcar .. no word processor .. not a single luxury.

tough matrix
#

when ordering PCB assembly, what is the reasonable expectation of bad boards?
We did an order of 55 boards, and 4 of them have some problems, ranging from (seemingly) damaged NeoPixel to a short somewhere, causing the MCU to overheat within seconds.
It is not a particularly complicated board - a 48TQFP MCU, an LGA14 sensor, a bunch of passives, couple of SOIC8 motor drivers, a buck converter. I'd expect that modern fab houses should do it almost perfectly - I'd be OK with one bad board, but 4 out of 55 seems too many to me. Am I right?

fervent lance
#

a 7% failure rate? yeah that sounds kind of wild

#

where did you get them from @tough matrix ?

#

im not much of a professional in pcb design but that does sound quite poor

tough matrix
#

elecrow

fervent lance
#

really?

tough matrix
#

yes

fervent lance
#

elecrow is known for its pretty high quality...

#

i mean i tend to use pcbway but ive heard a lot of great things about them

tough matrix
#

i mean, maybe something is wrong with my design, but the remaining boards turned out ok

fervent lance
#

yeah i mean my best bet would be to contact them in that case

#

cause 4 malfunctions out of 55 is definitely grounds for discontent

tough matrix
#

i will. We ordered more than necessary, so we are ok with fulfilling orders, but it does make me uneasy

fervent lance
#

yeah no i def think they'll understand

tough matrix
#

ok, will try reaching out to them

silk lark
#

there should be no shorts, they do a flying probe test

#

the only way you can have faults like that is if they are kind of on the edge, and get broken in transport or during the assembly

#

in theory, at least

supple pollen
#

If the board layout isn't designed for manufacturability, yield can suffer. I'm not saying this is the case with your board, but some component layouts/spacing and trace/pad geometry can be problematic.

silk lark
#

sure, but they test the boards and mark the faulty ones

tough matrix
#

Given that one board had a clearly visible solder bridge, i guess they didnt do the proper inspection...

#

But of course, i will also take another look at my footprints etc

silk lark
#

is there a black cross made with a black pen on the said board?

tough matrix
#

No

heavy jasper
#

There may be other files you can send that would be helpful in inspection (e.g. a netlist). They may or may not do flying probe of assembled boards (it can become a very time-intensive process) but Iโ€™d expect a bridge on exposed leads to get caught by AOI or 5dx. So itโ€™s probably worth starting from the more basic โ€œwhat outgoing quality control is done for boards ordered via online quote?โ€

tough matrix
#

what is 5dx?

heavy jasper
#

Automated X-Ray inspection

tough matrix
#

oh. Yes, I'd expect AOI and x-ray are standard.
Anyway, looks like people agree that 4 out of 55 is unacceptably high failure rate

#

Of course, it could also be that the problem is in the components - if the MCU is defective, with the best inspection you will get problematic boards...

silk lark
#

oh, I didn't catch the boards are assembled

#

they do the test on empty PCBs

ember laurel
#

Where was the bridge?

tough matrix
ember laurel
#

that's quite an apparent one

vapid grove
#

Hope you didnโ€™t fry the mcu

tough matrix
#

This board I managed to save

elder peak
#

Whoever assembled that really wasn't on the ball that day

silk lark
#

chances are it was a PNP

#

but the visual inspection should catch it

ember laurel
#

as long as it didn't short a 400V input to an ADC input or something, I guess you're ok with just removing that bridge ๐Ÿ™‚

tough matrix
#

so far, my MCUs do not use 400v ... but that is an interesting idea to consider for my next design ๐Ÿ™‚

supple pollen
#

450V is useful for dekatron-based processors.

twilit mango
#

Hello all. I'm looking for resources to learn how to design a PCB. Think absolute newbie here. Suggestions?

#

A friend of mine pinged me asking, and I figured you folks were my best option to help out.

tough matrix
twilit mango
#

Would you suggest trying to use the free Eagle version, or go with KiCad?

tough matrix
#

I am using education version of Eagle and haven't really used other software, so can't compare. Overall, I'd be happy with eagle (if you can get free education version) - the only thing which annoys me is that the component libraries are a mess; too many competing versions from different 3rd party providers...

twilit mango
#

Fair enough.

#

Not sure if he can get the Edu version or not.

distant raven
#

If not the hobby version is good for starting out

misty escarp
#

the limitations could be good for stretching those mental muscles

supple pollen
#

I ended up cherrypicking and handcrafting a bunch of stuff into my own component library, which dodges library issues for a lot of my frequently used ones

twilit mango
#

Noted.

#

The request for learning resources stands for anyone else who has suggestions too. Thanks!

heavy jasper
misty escarp
#

EAGLE has forums/guides for most of the questions I've had about it if your friend ends up using that program

heavy jasper
#

And there's a longer ramp

#

Also true.

#

The real answer: All CAD tools are bad in some way

misty escarp
#

I'm only recommending EAGLE because it's what I learned on, I hear great things about KiCAD

heavy jasper
#

and changing between them is not as hard as learning the actual concepts of design

misty escarp
#

e.g. it turns out EAGLE is not meant to be used for graphic design, as I have learned to my chagrin

heavy jasper
#

I started on EAGLE using the Adafruit and Sparkfun libraries for components

#

It seems like Kicad is now better at keeping a wider library up to date in a public-facing form.

twilit mango
heavy jasper
#

Unless your friend really likes library curation as a thing, the Kicad libraries are probably the best feature.

#

It lowers the barrier to entry to just start placing components on a board and going for it.

#

And also has more longer-term likelihood of multiplatform support (if that's important).

#

The caveat I'll give is that if your friend really really wants to do EE/ME codesign (boards and enclosures) and they're running windows, then the wider autodesk suite is probably the lowest cost/barrier to entry version of that workflow.

misty escarp
#

does KiCAD have good 3d modeling capabilities?

heavy jasper
#

I think it does support 3d models of components and step export.

#

But EAGLE+fusion360 I think has a slightly more native co-working support

distant raven
#

Yeah

#

You can even do most of what you do in Eagle in Fusion360

#

As far as I am aware, the Eagle product roadmap eventually ends with full integration into fusion360

reef flicker
#

I use the embedded version of eagle within fusion 360, since my 3d model heavily relies on the PCB

distant raven
#

As it stands now, Eagle is tied to fusion360 license

reef flicker
#

It's pretty much fully integrated as far as I can tell, maybe there are some deeper features missing but I haven't had many problems

distant raven
#

Iโ€™ve been meaning to get more into it

#

I love rendering PCBs

reef flicker
#

It's pretty useful to update the PCB and it waterfalls all the way down to updating your enclosure, although it's not as good as it sounds

distant raven
#

I hate trying to get all the components together though

#

The 3D packages that is

#

Like I havenโ€™t imported a model for usb yet ๐Ÿ˜…

twilit mango
#

I'm trying to talk him into joining because you folks are a wealth of knowledge and would be invaluable on his quest to learn. We'll see if he takes me up on it. ๐Ÿ˜„

distant raven
#

Always here to help ๐Ÿ™‚

elder peak
#

You know, at some point I'd had the impression that, because EAGLE was a fancy commercial package thingie and KiCAD was open source software that I didn't pay for, that somehow EAGLE would have a fastidiously awesome component library.

heavy jasper
#

Honestly, I generally assume the opposite. The fancy commercial packages will happily upsell you on the subscription-based licensing for access to a well-curated component library, however.

#

I don't have enough time on the KiCAD libraries to know for sure how good they are, but they definitely seem abundant.

supple pollen
#

I'm more interested in frictionless ease of use than the component library (I can always make my own components). A big appeal of open source is that if I want to change something, I can, and submit my changes for consideration to incorporate in the mainline version.

heavy jasper
#

Yeah, I was honestly working on the assumption that in terms of day-to-day frictionless use, these tools are basically all the same (they all have quirks, but can be managed).

#

And I think "can always make my own components" is something that seems (and generally is) pretty easy once you've already gotten started and have a sense of what you're doing.

#

But can be a ton of yak-shaving for someone who has a basic project in mind they want to start out with.

elder peak
#

Well, the only time the KiCAD library has let me down was the APA102's had the wrong footprint, which I committed a patch for upstream.

supple pollen
#

That's sort of my point: they all have quirks, but the open source ones let me iron out the quirks so they work the way I want them to.

heavy jasper
#

I do wish there were a redhat equivalent for KiCAD. Good paid support available for folks who can afford it, with general improvements made being fed back to the community.

#

CERN helping out helped a ton (e.g. features like length matching and differential pair tuning that didn't exist before) but it seems like they kind of petered out a bit.

supple pollen
#

That was good to see

heavy jasper
#

But as it stands there's kind of a dangerous middle ground where small companies doing advanced boards can't really easily use KiCAD in its current implementation (especially on the layout side) but also can't really afford the countless engineer-hours of time it would take to build up the tool to the state where they could use it solely. (As much as I'd love to see a FOSS 2.5d or 3d field solver/transmission line extractor for doing SI work).

#

vs. just chucking a few K$ a year to the likes of Altium, or even ~10s of K$ to the likes of Ansys/Cadence for the super high-end simulation tools.

#

But these are very much commercial-focused arguments. I completely agree with you that for most folks (and especially those with more time than money) the FOSS solution is going to be great for them to make whatever small tweaks/usability improvements they like.

elder peak
#

I love the open source world quite a lot but at the same time, I know too many burned out open source project maintainers to think that the model is anything close to a working one.

#

I'm kinda passionate about KiCAD (and Blender and FreeCAD) regardless because it's a tool people ought to have access to in this modern world.

supple pollen
#

What is SI work?

heavy jasper
#

Signal Integrity

supple pollen
#

Ah, that makes sense.

heavy jasper
#

In this case, doing extractions of the S parameters of the transmission lines (traces/vias/etc), and then combining them with transmitter/receiver models to make sure that signals are properly transmitted and received with low/no bit error rate.

#

Or in a more simple application, doing analysis of the propagation delay for different layers of PCB stackups (and the propagation delay of vias), so that 'length-matching' can become truly time-based-matching so that signals arrive within the right number of picoseconds of each other.

supple pollen
#

Wow, I haven't worried about picoseconds since the 1980s!

elder peak
#

Does this count as getting a pico into your projects, electronic_harry?

heavy jasper
#

Sadly, no comment. But these are well-known industry techniques.

distant raven
tough matrix
#

are you making a breakout board for it?

distant raven
#

Yeah

#

Iโ€™d laugh if this is the NPI for the week though ๐Ÿ˜‚

#

Itโ€™s the coolest thing on the new products page on Digi-Key

carmine scarab
#

Careful @distant raven , they're always watching listening!

distant raven
#

๐Ÿ˜‚

elder peak
#

PCB arrival day!

rain remnant
#

so PCBs are listening?

silk lark
elder peak
#

Okay, @distant raven is officially right about KSR223GLFG buttons.

distant raven
#

They are my favorite

elder peak
#

It's really super-nerdy but I probably need to write up a blog article about the buttons I like to add to projects.

#

I guess you could say it's a hot-button issue for me

distant raven
#

Same, good buttons are a sacred topic

#

Some people just are like โ€œthrow a button on itโ€ but Iโ€™ve got some issues with textures and tactile responses that borders along my hypersensitivity

elder peak
#

Yeah, I kinda optimize for the "Will I be able to navigate this device by touch in total darkness" case.

misty escarp
#

I'm the same way about car dashboards, in that must have as much buttons as possible for me to be comfortable using it. I need the tactile feedback you don't get from a touchscreen

elder peak
#

I hate a buncha things about Steve Jobs but I do feel like his obsessiveness for how a device feels was important.

misty escarp
#

sociopathic clocks are right twice a day

ember laurel
#

@elder peak you're holding it wrong

ember laurel
#

prototype delivery day!

#

finally have a batch of close-to-series (without branding) prototypes ready

#

All QC'ed serialized, readlocked firmware and ready to go!

distant raven
#

Very nice

#

What do they do?

ember laurel
#

No idea.

#

Free energy collectors?

#

They are dental motor systems

#

Combines with an android app on a 7โ€ tablet

#

(Connected over USB-C)

misty escarp
#

unlike the dentist, everybody loves the dental engineer ๐Ÿ˜‰

haughty wolf
#

thats awesome. are those custom enclosures or just off the shelf ones with a custom backplate to fit the connectors?

ember laurel
#

Itโ€™s kind of a customized standard case yes

#

Custom plates, custom coating

#

Aluminium, with hexavalent chromium treatment

#

Series units will have powder coating and silkscreen additionally.

pearl tapir
cerulean crest
#

Neat

pearl tapir
#

I am wondering how repeatable it is. I have a customer that could use a system to measure the quantity of hand sanitizer remaining in a container and phone home when it is almost empty.

supple pollen
#

The article does state "did some repeatability testing with this sensor and it turned out to be surprisingly consistent."

pearl tapir
#

Consistency is in the eye of the beholder.
One test unit that is consistent is not the same thing as 100 all giving a similar answer. I don't need huge accuracy but I don't intend to build a production device and hand calibrate each of them.

silk lark
#

anything can be a load cell if you have an amplifier sensitive enough

distant raven
#

maybe 1uF might be better since it's the "smoothing" capacitor

distant raven
#

I just ordered 5000x 0402 0ohm resistors

#

nice

#

it was like... $4

#

should last me through the end of the year

pearl tapir
supple pollen
#

C7 is 1ยตF so either value would do that

#

0ฮฉ? What tolerance? I saw some listed as plus or minus 50mฮฉ, but I'm guessing that the negative values don't actually occur?

distant raven
#

Not sure on tolerance