#help-with-hw-design
1 messages · Page 41 of 1
Probably a bigger cost driver in the States is disposing of the hazardous materials used in PCB fab We can't just flush them.
True
Environmental rules are costly measures
But necessary to protect our environment
Lead lined fish are resistant to radiation though
Fo real though, where I grew up, the main lake used to be so polluted that you would get rashes from swimming in it
now that it's clean, it's a huge part of the local economy
Good for the economy
so due to manufacturing costs, i'm going to try to cram the entire 4-bit CPU on a 2 layer board
here's a better image of the decoder and control unit
the 10 ICs on the bottom are the control unit
do they make these in SMD? or are you going for easy to solder for your kit?
i'm doing THT because it's all i have in storage right now lol
lol
Plus i don't have an SMD air gun at home
makes sense
the goal with this system is to hit at least 5 megahertz without crashing
cool!
that's why i have so many decoupling caps
No power planes?
i don't know how to do that, and it's probably going to drive overall price up 😦
I don't think fab shops charge that way? I've been wrong a bunch tho
Power planes are good and don’t increase costs
Oh I might have been englishing poorly, maybe they meant that not knowing how will drive costs up?
yeah... i should do a 5v and ground plane
i don't know how to do it in eagle. i'll look into it
Polygon pours
It's super straight forward
aye thanks! the pcb now has a ground plane
Pour one out for better grounding
just waiting on parts now 🙂
Huh, really? Up to how much?
Is that really DDR memory though?
Oh it is
I guess I never understood the term DDR
So... what does the standard x86 computer actually use? Not the DIM form factor, but rather the interface?
I’m going to use a 64MB psram on my ESP32-s2 board
DDR is just double data rate, just allows you to access more memory at have the clock speed
Fun, it is also a standard
amazing work by all engineers who contributed to this naming, I thought USB was getting bad
Haha yeah, just keep adding the number to it or a new letter
GDDR memory is even more original
But it actually means nothing, its a standard of the flash memory itself it seems, not interface, form factor, etc. It just happens to use DDR for transfer
Yeah
That’s why PSRAM is so interesting to me
Mostly because they explicitly state that it is “pseudo” SRAM
But PSRAM will likely cause me to make my first BGA board
Nice, Im likin' BGA, easier than QFN
I found this part with the Digi-Key mobile app. https://www.digikey.com/product-detail/en/S27KS0641DPBHB020/S27KS0641DPBHB020-ND/6596281
Order today, ships today. S27KS0641DPBHB020 – PSRAM (Pseudo SRAM) Memory IC 64Mb (8M x 8) Parallel 166MHz 40ns 24-FBGA (6x8) from Cypress Semiconductor Corp. Pricing and Availability on millions of electronic components from Digi-Key Electronics.
They are so cute
This is what I’m thinking
It may not work though as I’m not seeing what the minimal clock rate for it
Only Max clock so maybe 40MHz should be okay since it’s below the max rate
@cerulean crest standard X86 memory is also dual-data-rate (clocked on both edges).
@heavy jasper if minimum clock rate isn’t specified, should the memory work at 40MHz rate specified by the ESP32-s2?
This doesn't seem to be a SPI device
so if that's what you're expecting, it won't work.
(not sure if esp32 has a true external memory controller, ala. STM32F4)
DDR just means you get a data bit on rising and falling edge of a clock
It doesn't necessarily say anything else
That was my whole thing about the DDR naming 🤪
Doesnt mean much other than dual-data-rate which is... not important compared to type of memory, interface, etc, so its weird in PCs we use the term DDR as a standard
e.g. this is the part they specifically make and guarantee works along with it: https://www.espressif.com/sites/default/files/documentation/esp-psram64_esp-psram64h_datasheet_en.pdf
which specifically says SPI and QSPI mode
vs. the one you linked is specifically parallel
which means that it needs things like read/write strobes
which may be this "SPI 8-line mode" but I need to do some more digging
Re: PC naming, it is indeed unfortunate that we use DDR as a shorthand, but to be more direct, each of e.g. DDR2, DDR3, DDR4, LPDDR3, LPDDR4, etc. are named standards.
(from JEDEC)
Yeah
Hardest part is sourcing that part they specifically guarantee support for
As far as I can tell, Adafruit is the most reputable supplier of that part
And it’s out of stock basically everywhere
Except AliExpress which would be okay if I wasn’t making this to sell
It is possible that this one can be made to work: https://www.digikey.com/en/products/detail/cypress-semiconductor-corp/S27KS0643GABHV020/11611408
Order today, ships today. S27KS0643GABHV020 – PSRAM (Pseudo SRAM) Memory IC 64Mb (8M x 8) SPI - Octal I/O 200MHz 35ns 24-FBGA (6x8) from Cypress Semiconductor Corp. Pricing and Availability on millions of electronic components from Digi-Key Electronics.
But it's larger than can actually be addressed by the ESP32
(so you'll either be throwing away bits, or it just expects extra bits that the ESP32 can't give it)
and may have e.g. different command opcodes than the one that's normally supported, and I'm not sure how espressif handles that.
And also is expensive
Yeah
Whoops guess the president is a banned word or phrase
Lol
The trade disputes and COVID have complicated board development
That is hilarious
I've seen people get caught in that
I think I can take a guess why
😂
indeed, looks like one needs to write president T***p
how do you say X T___ps Y?
I think generally speaking politics is out of bounds in the Adafruit channels
which is a great rule
makes sense
Just got this from fab house. Boards are done, components are sourced, they are ready to begin assembly - so hoepfully within two weeks I will have my boards.
woot!
then it will be just flashing firmware onto 55 boards and testing each of them
my co-creator actaully made a pogo pins testing jig, will see how well it works
Nice nice
I can see you spent some time railing against the troubles of panelization.
Anyone else see TIE fighters?
I just see opportunities for snappy puns.
Lol
Yah, lost opportunity to put a tie-fighter silkscreen on the back, lol.
George Lucas' lawyers have entered the chat
Maybe his hands were... tied..
So I think I'm at the point where 0.65 pitch is now as effortless as 1.27 pitch.
*Disney's lawyers now
I should try and use this board in a tie fighter...
Do they make TIE RCs?
if you have the force, you do not need radio cotnrol
Speaking of the force
If you have the force space is also not a vacuum, per canon
Did any of you watch the latest Mandalorian episode
I about cried when the thing was destroyed
I made a bad word
haven't seen any episodes...
Hehe
It's OK though, our landfills Sarlaac pits greedily accept all the baby yoda merch
Does anyone have a favorite tweezer for placing parts? I have some fine tipped ones that work OK but wondering what folks use
Yes, let me find them
Nothing special for me - some set bought on amazon
Oh the ones I like are technically not ESD safe... whoops
I found ones that claim to be esd safe but they are also cheap from china so idk if that's real
Oh iFixit sells a set, they are pretty reputable
I trust them well enough
The big thing is that if you are doing SMT parts, you need something that's ridiculously and dangerously pointy.
Yeah the iFixit one was advertised as such
I'm looking for the kind of thing you use to take out those hair thin cactus spines
First time in the American SW I thought to myself "Hey that cactus has no spines" and patted it to see
It did have spines
Hehe...
Cool!
You don't have to worry about it, "airwires" are part of the new wireless technology that fab houses have, they handle it all for you
heh
the only issue i see right now is the size. it's a huge PCB, and i'm not sure where i can get such a thing made
how huge?
honestly i'm not sure. i can't seem to get the mark tool to work right
mm go to Manufacturing on the RHS
then click board
it will give you your dimensions
the dimension tool doesn't work super hot
sorry my fingers are cold so I went with abbreviation of Right Hand Side. I've yet to learn that unnecessary abbreviations lead to more typing
ok right now it's 12x17 in
that's a big boi
i know that's going to get smaller when i work on routing stuff
BUT the school is funding the manufacturing so i don't really need to worry all that much
JLCPCB can do that
YES
their max is 400x500mm
thank god
but it'll cost you especially for lead free
eh i might pass on that
I guess you can expect college kids not to lick the boards 😉
i'm not in college
it's for college folks right tho?
I saw school and made what seems to be a bad assumption
nah don't worry, i get that a lot
yeah i go to a tech school and major in industrial robotics and electrical engineering. It's a lot of work
but it's going to look great when I go to college
Yeah. i really hate talking about myself like this cause it feels like bragging
tons of people enter engineering school with no background in engineering
It's OK to be lucky and be glad about it
*and to be a hard worker
i'm really happy with this. the reason i know a lof of this stuff and not evev be in college is because of my relatives and my girlfriends dad.
Uncle one: used to work at Sun microsystems, now works at oracle
Uncle two: worked at Microsoft in the 80's up to the early 2000's
Girlfriends dad: Worked with the people who designed the intel 8080
you should apply for tons of internships your first summer too. or even co-ops. Lots of people don't when you def can get them that early
even if you're putting toner in a printer and getting coffee it's something
yeah i applied for a few. one of them is at a silicon wafer laser diode fab!
that's awesome!
yeah it's super cool
i also got my dad's C64 when i was around 10-ish, and got into programming because of that
that might of helped too
could be 😉
You could probably get hired as a tutor for your classmates pretty easily too, once you've taken the classes. It's good money for college and you can set your schedule.
totally
last year i got to teach the digital logic class when the teacher was out from knee surgery. most fun i've ever had in school
Cool!
yeah! it was great
it was pretty simple stuff (gates, flip-flops, counters) but it was so fun teaching people
the thing was i didn't have to do any grading lol
i'm not a certified teacher. i'm just a student who was taking a digital class for a year. i know the teacher out of school, and he asked me to teach the class. the class also had a sub because i was a student, not an adult
so the sub did all the grading and i did the teaching
nice:)
yeah it was great
did they pay you?
nope, i was enjoying it too much to ask for pay
plus i'm not sure how legal that would be
yeah, might be a problem... for a school to hire someone to teach, there are a lot of hoops to jump through
yeah, it was still really fun
once the world stops ending, i'm going to see if i can host a workshop at a makerspace i go to
it's going to be on digital logic
i am actually working on a demonsteation kit for that
oh cool! have any pictures? also i think we should move to #general-chat
Anyone know how to export a PCB from Fusion360 to F3D?
Every time I attempt this Fusion crashes
@plush phoenix question for you about the ESP32-S2
so I'm seeing that CHIP_PU is used for reset.. should I have a button on it? Or should I just be concerned about having GPIO00 and GPIO46 connected to the buttons?
okay so CHIP_PU needs a pullup resistor and a capacitor to ground.
Can I leave GPIO45 unconnected?
Hey can please someone tell me what is that symbol ??
usually an input or supply symbol
yeah
a lot of people like the up arrow because it points to "higher voltage potential"
you should be able to
ok thank you!
yes...
do check TinyUF2... for resistor and capacitor values if you want to enter UF2 bootloader on double press of reset button.
its 100K and 1uF
so instead of 10K that adafruit lists on theirs?
have you checked soala schematic? I think 100K value in documentation is from there
also, the series resistor and capacitor for the DM/DP lines?
I see Limor didn't use them on her design
so maybe just a "would be better if you did" but not necessary
interestint
they use the DP/DM lines for debugging and use a USB-Serial converter as well
Would you say that people who use the arrow instead of a circle in their schematics are the designers who really show potential?
@plush phoenix one other question
is it necessary to break out the JTAG debugging headers for programming?
bottom view
top side
Hmm, I could actually move the USB off a little bit
much better
Easier to assemble I bet
probably lol
This was one heck of an undertaking
I started around 10am EST
it's 4:42PM
lol
almost completely straight
That's p fast in my experience
I'm a verty determined person lol
I start finals this week and I needed a little motivation for the week haha
thanks lol
This probably won’t be the smallest ESP32-S2 dev board
But it will likely be in the running
how much flash?
But that’s mainly due to it being so hard to source
Should support up to 64MiB
Which I think is the largest SPI flash you can buy in 8-soic
I’ll probably sell it with a 32MiB SPI flash
nice
That's mibibytes right?
Yeah
I have to look that up every time
Which is basically a MegaByte
I don’t remember the exact correlation
But it’s pretty close
One is closer to 2^20
I probably need the overall design verified by someone with more expertise than me with RF design
chip not module, so RAM is 320KB (48K available to CircuitPython)?
Yeah, just the chip
Kind of like a QT Py with wi-fi
Basically 😃
Actually, TMS/D42 for neopixel
oh I see, you have both DACs on pins 😄
Yeah 😄
and three GPIOs from ADC1, that's about the best config possible
I took a page from ladyada
Nice thing with the ESP32-s2 is any of the GPIO can be configured for i2c/SPI
But I think for circuitpython you define which are which
yeah, doesn't matter
as long as they are otherwise unconstrained pins
there are a lot of "special" pins
Overall, about 6 hours total designing and routing
Had a buddy of mine who is doing his masters in microwave RF design help with the matching network selection
So the thing should be pretty well tuned for 2.4GHz
with two more pins, you could reroute and make it compatible with your QT Py power board 😉
If I chose smaller buttons, I might be able to get things even smaller
True lol
I’m sitting here wondering if I could get away with reducing the number of filtering caps
Right now it’s following the design manual cap for cap
Shoot, I forgot a series resistor for the crystal
32.7**kHz
I’d rather the 32kHz crystal rather than trying to use a 40MHz oscillator 😅
*an SMD one I could easily solder
that makes sense
Yeah
How did you decide on 32.7**? Is it from the datasheet?
For my chip it specified a 32.678 kHz if you want to avoid using an oscillator
ah wait
looks like it say it only supports a 40MHz crystal for the internal clock
37.768kHz for the RTC sleep clock
Oh gosh it's 768
I could only find parts that I can't solder and thru hole can ones. So I went with the thru hole can
I have a hot air gun so all SMD here lol
nice, that's next on my list of tools
Definitely worth the investment
round 2
top
everything on the top is mostly the same
though.. I need to move that resistor in the button footprint
what size traces?
6mil with 5mil clearance
Dang that's smol
yeah
I also changed the antenna trace going from the matching network to the esp
chose to use a fatter trace before making it small to reach the pin
board file view
I think I have enough space for a stemma connector
on the bottom that is
Is the power plane cutout an RF decision?
yeah
antenna like the one I'm using (a chip antenna) require a keepout area
it's sized as best I can get for the manufacture recommendation
Alrighty, I squeeze a Stemma connector
how about it @misty escarp ?
lol
My enthusiasm can't be STEMMA'd
makes me want to put stemma on everything
they are pretty great
the Rev B of the Mega Sapling board I have in the works has Stemma lol
I'm a big fan of the stemmafication of all the I2C board from adafruit
You said any port can be I2C right?
yeah
Are you saying that there are headers with i2c and the stemma and they are separate pins?
*sets of pins
not exactly
it's more or less to be a guide
more advanced users would have no issues swapping pin definitions for their project
Hm I'm not groking
my board will use these pins
these ones
and these
all but two of those are broken out to headers.
the two that are not broken to headers go to the Stemma/Qwiic connector
that would be GPIO 10/GPIO11
so realistically, 5 channels of the ADC. 3 channels of the capacitive touch, both DAC pins
pretty nice all things considered 🙂
I'm kind of impressed by the ESP32-s2
what do ya think @marble gazelle ?
I added a Stemma connector for more connections
I've never designed a board, so...
but no ADC1 pins? they are unencumbered by any wi-fi entanglements
GPIO 1-10 are prime real estate
and not only that, you also get the free bamboo steamer
I have totally started putting STEMMA QT connectors on all the things.
lol
honestly, it was about ease of routing
I have assembled my breakout board for my sensor with the pads underneath. To check that everything is OK I visually inspected and it looks like none of the connections are shorted, but my multimeter reports a short between GND and a lot of other pins, same with Vin. Any clue if that could be due to how the sensor works or if it's guaranteed to be a short?
Or maybe I killed it during the process
not sure @reef flicker can you share a good picture or two?
maybe a view of the board in your cad program?
Sure, give me 2 seconds
My first attempt looked like this, definitely shorting all three of these pins
This attempt now i see a clear space between all of them
Now it looks okay tho
After quite a few tries lol
Mind that this is extremely tiny so taking a decent pic is very hard, but the actual pads don't look shorted
As for the cad, I have this
yeah, hard to say. It's too bad you don't have a microscope camera to inspect with
GND seems to be continuous with pins nowhere physically close
So I'm thinking maybe that's just a normal thing?
might be
have you attempted to interface the board with a microcontroller or apply power at all?
Not yet, I'm scared something will blow up due to these "shorts"
I do have the adafruit breakout I could compare results with, but that one has pullup resistors, capacitors, a diode
So I'm unsure if that will impact the comparison
well, if you haven't smoked a device, are ya really learning? 😄
i understand not wanting it to "blow up" but honestly, the worse it'll do is heat up and maybe smoke a little
I'm observing similar shorts on the adafruit board, so that's promising
this looks like it could've been a big error 🙃
Hm
I could give a shot at throwing a tiny bit of solder to meld them together
Btw, my testing so far shows that it's functional!
that's great!
I am getting some odd behaviors, but tracing that is going to be hard
Blowing continuously on the sensor has these weird "cuts"
Using my finger directly on the pressure sensor and pressing/releasing renders these expected gradual curves
The only difference is that I use my finger. Could it be that my finger acts as some sort of ground?
nope...
Ok guys, so life-size print, a lego tile for size comparison
Also seems like my PCBs arrived, so now I need to get to the post office 😉
Also @distant raven jtag headers are used for debugging
Yay! Look what I received today
What a beauty!
Although, back side didn’t turn out as well
Very nice
That exact moment when you realize that your first ever and soldering includes 0404 resistor array
Why are the pads silver? Did they come pre-coated in solder from the fab?
tin coating was probably cheaper that ENIG
Or simple HASL
for JLCPCB, ENIG coating is much more expensive than the default HASL
@vapid grove did they charge you extra for panelized board?
No
I had mixed experience there - twice I used JLCPCB for panelized boards (panelized myself, copies of same design, separated by V-Cut)
Mine are stamp holes
once it went through without a problem, the other time, they added $4.50 extra charge for panelized
Given how many designs I have squeezed into my snap-apart boards, I've never risked sending one to JLCPCB because if they added an extra charge, it would be huge.
so where did you send it?
DirtyPCBs.
Basically, I keep a file open that's got a 10cm x 10cm square in it and I just throw random bits on it until it gets full and then send it away.
There's a significant price bump if you go over 10cm x 10cm
Turns out yesterday's misreadings were caused by a glitch between the board and the chair I was sitting in 😂
Forgot to tie the address pin, so the address was floating and meant the sensor got disconnected randomly
Connect the chair to 240VAC. Problem cured.
I would have thought that canada banned the electric chair
Not for home use.
Personal consumption is decriminalized?
Just in the prison system
Oh haha I meant closer to the bottom edge
But that's Also a good spot
Depends on your enclosure design.
@inland quest Are those ICs through hole?
yes
You may not agree with this, so make your own decisions.
I'm kind of a nut about eliminating anything that in any way might reduce reliability. That means eliminating vias wherever possible. A via is just less reliable than a straight trace that has no vias. There are several places on you board where a trace leaves a pin, flips to the opposite side, runs for a distance, flips back to the first side and then connects to a pin. All that could be done on one side with no vias.
I also prefer to have the traces on the bottom side for through hole boards because it is easier to inspect.
The way I do this in my CAD system is force the board to be single sided, bottom only and turn the autorouter loose to get as much done on the bottom. Then turn off rip up and re-route. Then allow double sided and turn on the autorouter again. I then hand route what is left with rip up and re-route turned on along with the interactive router which will plow. Very old school but very effective. Probably not worth while unless you intend to produce high volume.
yeah there's a lot of things that could be improved
i'm only planning on producing 10 at most
plus i'm on a tight-ish deadline, so i wanted to get it done quick
It’s such a sweet feeling seeing your commits to Adafruit repos get merged in
Especially for boards you designed
Waiting for mine! Can't wait
😄
EXPERTS! I need an expert opinion: Should the QWIIC connector on my hall effect keyboard have its own LDO?
Well, an LDO is only $0.16 and on a keyboard I have plenty of room so I'm thinking, "why not?"
In fact, I'm taking ideas for anything else you think a hardware hacker-friendly keeb should have. I have loads of room and little components and connectors cost basically nothing. This isn't a for-profit enterprise so let's make something awesome!
temperature sensor?
maybe some RGB LEDs (if you're not already using them)
set it so people can enable temperature variant keyboard color
@ivory jasper one thing I did with my last keyboard is a connector for extra modules, so that I can add things to it, such as an encoder or a joystick
@distant raven Already got per-key RGB LEDs 👍
even a gesture sensor
@silk lark Yeah I've got loads of 2.54 header holes on the back of the keeb for stuff like that. Any and all unused GPIOs are present (except one I think... Because I couldn't get a good route for it... it would cross my analog signals)
"Gesture sensor"? When I think, "sensing gestures" I think, "cameras" or "multitouch surface".
Oooh! JLCPCB has an "attitude sensor" as a basic part! I can make the keeb react when you're angry, sad, or just plain hungry!
hehe
Attitude sensor: https://lcsc.com/product-detail/Attitude-Sensors_TDK-InvenSense_MPU-6050_TDK-InvenSense-MPU-6050_C24112.html/?href=jlc-SMT
TDK InvenSense TDK InvenSense MPU-6050 US$2.57 LCSC electronic components online Sensors Attitude Sensors leaded datasheet+inventory and pricing
I've actually only got one free non-basic part slot in my BOM
...and it looks like they don't have a temperature sensor as a basic part which is frankly surprising
@distant raven Yeah I'm thinking that. Add some through-holes for a DHT11
The chip (stm32f401ceu6) has a built-in temperature sensor but I'm pushing it pretty hard with the ADC so it'll probably be hotter than ambient
yeah, good idea to use off chip.
the internal temp sensors on MCUs are pretty fun to work with
I also added a port on the back that connects to the tail end of the WS2812b-b chain so you can hook up more LEDs if you want
(the ws2812b-b is the newest version of that line of chips and uses much less current and doesn't need resistors or capacitors! It's kinda awesome)
I wrote a small tutorial on my company page about using the temperature sensor and displaying the temp based on the LED color
I'd use the mini version but JLCPCB is all out
do you plan to solder it yourself? that would be impressive
Yeah, hot air reflow
What's the most common screw sizes to use for fastening PCBs?
I think I see a few M2s and M2.5s
I think it depends on a lot of factors
I'd go with what fits in your enclosure well
Just don't do what I did, which is look at a tap and drill chart and accidentally pick the tap hole size instead of the clearance hole size
Which seems to define larger holes than the actual scew size
Those look like loose fit clearance holes
which should be what you want
"loose" meaning .2mm on either side as opposed to .1mm for the M2, for example
Hmm. Am I misusing the hole tool in Eagle perhaps? The hole dimention presets are all smaller than M2 screws
you can change it
I can make them bigger yeah, but why have holes this small?
one use case is for panelization, you can make little mouse bite cutouts so it's easy to cut/snap off the boards
but yeah I'm not sure of any other reasons for such a small hole
strain reasons or something maybe?
although that would make the board weaker
Gotta figure out how all of these board shaping tools work now
There a way to move the lines defining the edges of the board while keeping their angles? For some reason the move tool doesn't behave the same as traces
what I usually do is Right click on the edges and define their coordinates in order to resize my board
but be careful if you have rounded corners, I usually remove the rounds first
if I only need to write a little bit of data (just a time_struct) to an FRAM, is there any reason not to use I2C (100kHz) over SPI?
Main reason to use SPI is to get experience with it but I'm using CP so the SPI of it all should Just Work(TM)
No particular reason if your FRAM accepts the interface... I2C is perfect for modest amounts of data.
Is this too close to the edges of the board?
DRC isn't flagging it, so I assume it's fine
Yeah sorry
It's not too close for fab, I don't think, but it might be close enough that it isn't very strong
Can I get away with a 10 uF decoupling cap where a 1 is specified?
yes
in general, for decoupling, bigger is better - except that you also want to keep ESR low
but difference in ESR between 10uF and 1uF shouldn't be too serious
this doesn't apply to feedback capacitors in buck voltage regulators - there you do want to use specified values. But this is different from decoupling
Yeah it's just on power input for an IC
I ended up going with an LDO reg for my design in the end
Less empty space now!
Just gotta clean it up heh
Is this zigzag in a diff signal a problem? The trace distance for D- is just under 0.25"
No, it should be negligible. The speed of light is about 1 foot per nanosecond.
Thanks
Now I just need to find another peripheral to add so I can fill up the upper right hand corner
What do you currently have?
for peripherals?
I2C FRAM, an RTC, an I2C Level Shifter IC, SPI Storage, and a Darlington array
Everything is I2C for this board. Next project I'm gonna pick something that's all or mostly SPI
I think I'm gonna just redo this with a true display instead of 14 segment LEDs
well it's gonna just sit in a box
I do want temp/humidity in the chambers of the box at some point but I need to figure out how to organize that first
use the IMU to detect if it's fallen? lol
I'm gonna go with a biological auditory sensor for that 😉 The box is 2x1x1 ft and wood
working on finishing a design from my first semester of senior design
Maybe an over current sense of some kind would be good
Nice! That looks simpler than what you're used to!
does it have battery power?
maybe add the option for battery power
I was thinking of a backup coin cell
maybe do LiPo and the MCP73831
the MCP73831 is what I use on the LiPo power pack
Adafruit also uses it
I'm honestly afraid of lipos
This is meant to be plugged in for months at a time, do I need to worry about the lipo overcharging?
wow.... this is some serious PCB enclosure
I wanted to make sure it had plenty of room to feel comfortable
The enclosure itself is about 1/4 of that volume but still real big
I am almost afraid to ask what size is your PCB
Well there are 5
"Soviet microelectronic devices are the largest in the world!"
3 of them are 4x1.5, 1 is 1.5x1.5 and the brains is ~2.2x2.2
inches, I hope?
the 4 x 1.5 are honestly bigger than they need to be but I did them in JLC so it wasn't super expensive for 10 of them. The others are going to be done via OSH so I'm making them as small as I can
Inches yeah
this is not too large, in fact - but why do you need 2x1x1 ft box then?
To fit stuff in ha
TBH the hardest part is gonna be making the box, I am a sub par woodworker
but 2 ft??? even for 5 PCBs this is an overkill
Ah I'm not explaining, the 2' constraint is because of hte size of things I need to put in the box that aren't PCBs.
🤣
TBH it's a bit bigger than it needs to be but there was a special on plywood one day so I have plenty
If you make more of these, telecom has solved this enclosure issue of yours 😉
The "enclosure" really has a completely different function and only incidentally has a little space leftover for (most of) the electronics
Oh I see, are you amplifying the sound mechanically?
I'm relying on nature for the bonk sounds
Is that the right term? mechanically doesnt seem right, there must be a word for what Im talking about
physically?
I am pretty sure I'm on the page you're on
I would use the term mechanically
if you get down to it, all sound amplification is mechanical
Not electrical amplification
but a speaker is an electromechanical device
but what is sound if not the projection? That's more of a philosophical tree-in-a-forest question though
I see what you mean though
Yeah, I was exaplining my thought process but now while I still disagree, I see what you mean as well
I've had hour long discussions about this exact problem with friends before. we agreed to disagree
We agreed to disagree
A rare find
Oh just telecom boxes are the best, you can fit PCBs, radios, cabling, sensors, elements, they have holes for conduit to be ran, or for accessories used with conduit, they usually have a mechanism for locking, bugs dont get in them, its waterproof, and will age well in the UV light
You can get metal or plastic variants, they are also cheap
When I did a squirrel tracking thing, thats what I used
I think I know what you're referring to. those are p useful, I just don't need it for this project. Maybe for my next one
With telecom boxes, whatever you want to do, you conduit.
You really need a ToS, I never agreed to these puns 😆
EULA never know when one will pop up
sigh
also, it's final exam season for the college/university folks on the server
including me 😛
so how do I study? by doing the exact opposite of what you would consider "studying"
lol
You don't give a ToS about my puns?
Very nice, you know, having the designators under ICs looks nice, but I hope no other poor soul needs to know which chip is which
One time in college, we declared one of the guys on the floor dead and "sold" all of his stuff, during exam week
Lmao, I want to be mad
The odds might be stacked against you
Just pin down the problem, work hard and you'll make some headway
Oh, hm, no, they are a DigiKey value add
Order today, ships today. SSQ-107-03-G-S – 7 Position Receptacle Connector Through Hole from Samtec Inc.. Pricing and Availability on millions of electronic components from Digi-Key Electronics.
nice catch
also weighing putting this BMS chip on the LiPo power pack
battery management isn't really all that big of a value add, except that it can extend the life of a battery over time
Order today, ships today. BQ298012RUGR – Battery Battery Monitor IC Lithium Ion/Polymer 8-X2QFN (1.5x1.5) from Texas Instruments. Pricing and Availability on millions of electronic components from Digi-Key Electronics.
it's crazy that if you use a LDO on a same41 you can get away with not using a ferrite bead
which is nice.
Drop some 10uF ceramics for those caps and it should be good
honestly, could probably get away with 4.7uF ceramics
Yeah, but higher power draw
Worth a few BOM items to me most of the time
I mean, what's really the different in power draw? a few uA?
maybe a few mA
also curious, can you leave the external crystal off the same/d51 boards?
it says it has an internal 32.768kHz internal oscillator
but I don't know if that means you can opt out of using an external crystal
Makes a huge difference
Even a few uA in sleep mode is huge
Difference between 1 and 10 year battery life
Even a voltage divider for a battery, with two 200K resistors cant really be used
Every uA counts
4uA vs 8uA, not nearly as significant as say 4uA vs 80uA. I'm just curious what the actual difference is on average
If you are using low powered parts, and are making a low power product, 4uA means you can or cannot have other features if you have a battery life constraint
Take for instance my environment monitor, it would not be able to also monitor sound constantly if I used the LDO in my MCU, and that feature is something customers looking at other products want
An extra 4uA constantly also means a considerable decrease in battery life ignoring that
I wasn't intending on primarily using the internal LDO
but maybe I misunderstood what you meant
Probably, and you are probably quite correct in using the LDO, I was just pointing out, there are two options for a reason, and in many cases might really effect your design if you default to it
right, and I'm not quite sure what people would use the board I'm making for
should probably go with the lowest power option right? leaves your customers the most room
right now, tentatively just making a dev board, 24 broken out pins and a few i2c sensors
battery charging, and whatnot.
Nice, have fun, gotta love SAMD based boards, they are always a pleasure to work with. Though nrf52 is trying to take my love
the esp32-s2 is pretty new so I'm trying to make a sapling with that
Indeed, S2 is going into a wall mounted display for a customer
the board is mostly done, though Ladyada on sunday showed off the new ones with SPI Flash integrated
which as far as the datasheet goes it's a pin for pin drop in for non-integrated versions.
which removes the need for SPI flash on my board
and removes 7 components.
Integrated on a SoM or a SoC?
Interesting...
just with 2MB or 4MB depending on your needs
I will need to look more into that, but if external does it support a larger flash?
I imagine it supports up to 64MiB external like the regular variant
but I imagine it's a "use one or the other"
Alright, I might need to go with integrated flash and find another solution for my issue
it was a pleasant surprise and good for my design and my hands
they were already cramping at the though of placing all the caps and resistors on the bottom side of the board.
Hm, if Nordic Semiconductor started restricting more heavily who could use features of the chips, would that mean they nRFed the boards?
the process of making a footprint perfect
so many measures
pins labeld. Almost done with the footprint
symbol created and connected. now for a 3d package
SAME51J20A
Ok
decided I wanted to make a board with an M4 with a bunch of capabilities
@distant raven for the qt py charging board - most of the header pins are not connected, right?
correct
thought so
only 5V GND 3V are connected
btw, why did you need to make a footprint for the SAME51?
isn't it a standard 48TQFP?
64TQFP
oh
but still, that footprint must be in plenty of libraries
🙂
isn't adafruit releasing their CANBUS feather now?
so you are in direct competition with them?
the CP Sapling is technically a competitor for the Qt Py
plus there are plenty of CAN Bus boards that use the SAME51
this is the 1MB version though so it's 2x the FLASH
So it's a real CAN-do sort of processor.
I haven't worked out the name yet but preemptively is the CAN Tree
I want to make some sort of gantry pun given industrial control but probably nobody would get it.
lol
and have an 18+ logo
Or just a 2can
choosing between this https://animals.sandiegozoo.org/sites/default/files/2016-11/animals_hero_toucan.jpg
I pick the second one for..reasons
I'm using some 5V PC fans controlled with PWM, any reason to sense their current draw?
At this point I'm just looking at any useful features I could add
@distant raven which tact switch do you use for reset button
Thanks
it is pricey...
@elder peak the ones on the pygamer are soooooo good
the little bit of rubber squish makes all the difference
Yah, like, the 6x6 tact buttons are pretty nice in general, but I'm always like "Well, if I just had something smaller than that and maybe SMT, I could use it for reset buttons and stuff"
and I've got an assortment of attempts
don't we all!
Also, those buttons I linked too are much cheaper on DigiKey
I am using these ones: https://lcsc.com/product-detail/Tactile-Switches_BRIGHT-TSA453G38-250_C294494.html
BRIGHT BRIGHT TSA453G38-250 US$0.02 LCSC electronic components online Pushbutton Switches & Relays Tactile Switches leaded datasheet+inventory and pricing
I found this part with the Digi-Key mobile app. https://www.digikey.com/product-detail/en/KSR223GLFG/401-1704-1-ND/958078
Order today, ships today. KSR223GLFG – Tactile Switch SPST-NO Top Actuated Surface Mount from C&K. Pricing and Availability on millions of electronic components from Digi-Key Electronics.
Like $0.20 cheaper
Still pricy at $0.76 a piece but they are nice
the ones I linked are quite cheap, but are quite nice. Maybe a tad too stiff for my taste, but they are large enough so that they are easy to press and give you a very satisfying click
is there a footprint for the qt py anywhere? Or would I need to make my own?
I'd need a cutout for the flash chip so I guess making my own is the better choice?
haven't done anything with internal corners before, should be a fun challenge
well, if you just use header holes it would need it because the headers provide the clearance necessary
Yeah I was thinkin of taking advantage of the castellated pads
it only adds like... 2-3mm to your total height compared to using the castellated pads
I was saying just solder the headers
Ah yeah i gotcha now
but removable is a great option too
If the DS3231 lib worked with the D21 I could scrap about half of my existing board design for one project
But in true me fashion I am starting another before the first is finished
do people prefer english screws for their PCB designs or Metric?
Or rather how would you prefer to mount a PCB in a 3d printed enclosure
I usually go for screws but if there's a better option I'm all about improvement
oh definitely Imperial, I love the fact my car gets 14 rods to the hogshead (sarcasm intended lol)
So metric?
sry for bursting in, i just wish the world would go metric and be done with it...
How would you mount into 3d printed material? I haven't 3d printed much but my intuition says heat press inserts
I do too
press in inserts or just self tapping screws
I think I'll go with inserts so it can be removed repeatedly
i guess that is the criteria, cost or long term serviceability
thru hole flat heads from the bottom creating a stud?
creating a stud?
You can do a captive nut.
the ends of the screws protruding into the case, put bd on and add nuts
this is where I wish inventor was tied in with eagle
captive nut is prolly better, nobody likes loose nuts inside their electronics
waiting for it....
Like, pretty much, you can just model a hexagonal nut with a bit of clearance on the blind side and leave it be or you can add a bit of glue to keep it in place.
Oh, that's close to where the community moderators would want to step in so I didn't insta-pun on you.
You might say that it's a tough nut to crack.
lol
like aircraft sytle with the plastic insert?
The other trick I generally do is make sure that all of my screwholes are on a 5mm x 5mm spacing so that I can make a chassis that holds any multitude of my project boards.
That's not aircraft style. 😛
yeah they have those at my local hardware store. They don't have captive nuts tho
ok, very small "aircraft style"
I usually think "safety wire through the cotter pin hole" when you say aircraft style, although yeah nylock nuts are also a thing.
I'll probably order online though, since my local hardware store seems to be the gathering place for my town's chin-maskers
So, problem is that you have a single blind side, inevitably.
yeah the safety wire is likely overkill
Nylock does have a reduced chance of unscrewing, but doesn't help the blind side.
So, easiest way to handle the blind side is to make a 3D printed projection that the sides of the nut can be affixed against, which will work with nylock or plain old hex nuts or square nuts.
Square nuts have the added advantage of also working within laser printed chassis designs.
I'm having a hard time visualizing what you mean, do you mind expounding?
Um, minus the "pause to make it actually embedded" part.
Hm I think i'll be able to get away with printing the whole thing and then inserting
@distant raven any chance you know where to find that footprint? the official XIAO fpt doesn't have holes for the headers
Carriage bolts on the blind side and then a nut on the other side is another option, but they don't make tiny carraige bolts, like the smallest is M6.
I was thinking of being gross and using machine screws with nuts
I could make one for ya
I mean, here's my intentionally-exposed thing that hangs on my wall: https://www.wirewd.com/make/blog/esphome_geekroom_node
Some five months ago , I wrote about how I got started with ESPHome with an ESP8266 and a temperature/humidity sensor on a breadboard. I figured that I'd build it over time. I'd realize that there would be something that would be really nice to add, and so I'd find some parts to do it, or try out…
ah I can handle making it, I was just being lazy
Just give me like.. 20 minutes or so
I like helping and I already have Eagle open lol
Sounds good
idk how accurate the usb length is but pretty sure the outline is correct
Should probably make these fit the castellated aspect somehow
hm vias are probably too small as well
ack another mistake
Not bad
I realized the pads are in the wrong spot
I got wrangled into bath time so I’m delayed in makinng lol
how dare your children come before strangers
😂
also weird is that the drill for the official pads is in mm instead of in
but I guess 40mil is close enough to 39.37008
mixed units never caused any problems
bettah
pure SMD castellated
unless you want through-hole
pads could probably be rounded
I was wondering if thru holes could be added on top of SMD but that would be via in pad hm
castellated is usually for soldering without pins
yeah
but I think with the haxpress addition, having thru hole pads to either add female headers or a permanent header installation makes sense
just do a cutout?
Yeah
sorry I meant what do you mean by that
Oh, just add a polygon in the spot where the SPI flash would be
ohh duh
Just realized I set up my SAMD51 in switching mode but I'm using an LDO. Do I need to redesign?
@misty escarp the switching/linear mode for the SAMD51 is for its internal LDO, it doesn't matter what the upstream regulator is.
If you do put the SAMD51 into switching mode in the firmware, make sure you have the necessary external components for that.
ah makes sense thanks. I am using an external LDO, is that a bad idea?
no, no, that's fine & normal
Your external LDO is basically what's supplying "IO Supply" in that figure
I'll take things I never hear about my plans for 800, Alex
The internal LDO for the SAMD51 takes VDDIO and regulates it down to 1.2V (which you can monitor from the VDDCORE pin)
yes and no. 🙂
the chip runs at multiple voltages - VDDIO for digital peripherals (and a few analog pins), VDDANA for analog peripherals, and VDDCORE for the cpu, memory, and bus.
Section 7.1 of the datasheet is where you can learn allllll about that
I think I missed that section of the 100s of pages 😛 I'm getting thru it slowly
It takes a while
Part of me misses AVR chips but also circuitpython
There's still large parts of the SAMD21/51 I don't know about because I haven't had to use them yet.
CircuitPython doesn't ever use switching mode for the internal regulator, but most Adafruit boards have the requisite inductor for it.
what's the benefit of switching mode?
lower power consumption
ah ok, I wonder if the boards were built that way so that an eventual version could use sw mode
ah right
That lower power consumption comes in handy for battery powered things
makes sense. It would be nice to have that in CP
I haven't been keeping up with that too much but I know they're working on sleep/deepsleep
(I've been sitting out on all the 6.0 stuff while working on a non-circuitpython product, so I've missed a bit)
Yeah I've been watching that, i'm excited
Eventually interrupt-like stuff is coming
got the photo of the sample assembled board from the fab house
will look at it VERY carefully before confirming.... and then in several short days I will have my 55 boards!
now try to unsee it 🙂
IMU: ICM 42605
This is for RC/Drones right?
more for general (land) robots/smart cars
with closed-loop motor control, IMU, inputs for sonars and GPS, etc
oh very cool
Nice
PID?
yes
there is a video there in crowd supply page, take a look
I am quite proud of how well we made it work
precise turns using IMU
looks like you used the entire chip!
Are you using the fancy motor control features of the SAMD21?
no, we are just using timers for PWM
Cool
to be honest, I didn't know much about fancy motor control features
so we wrote our own PID etc
but we used almost all pins of TQFP48
The TCC peripheral has some wild features for motor control, I haven't ever had a use case for that stuff.
next step, state space!
maybe it is worth looking into for next version... that is, if we can get some funding for it - it was hard enough to get the necessary number of backers
Yeah funding hardware is hard.
I'm lucky with my stuff that I've been able to self-fund, so I haven't had to do crowdfunding.
I just can't really hand solder tqfp48... that is, I can but half the boards will be wasted
and if you want to order assembly, ordering a couple is prohibitively expensive - you need a lot
Yeah. Minimum for our stuff is about 150 units.
Anything lower than that just isn't financially reasonable.
Oh here's the SAMD21 motor control evaluation board, you might find some interesting stuff in there: https://www.microchip.com/developmenttools/ProductDetails/atsamd21bldc24v-stk
thanks - will take a look
I spent a lot of time on Arduino forums looking for help on low-level commands for SAMD21
setting up clocks and timers