#help-with-hw-design

1 messages · Page 12 of 1

summer pier
#

Thats a good idea. Might save me some headaches.

long wraith
#

Lots and lots of single cell BMS boards available on eBay

#

Might take a month or two to get from China… but they’re there and cheap

distant raven
long wraith
#

That’s just a charger tho — won’t help with overcurrent/undervoltage on discharge

#

LiPoly BFF is the full management package, but it’s also good practice to have a BMS on the cell

distant raven
#

Mcp73831 has built in charge protection

long wraith
#

Is that what’s on the MicroLipo? That’s only a charger tho

distant raven
#

Yeah

#

Most BMS are wrapped up in chargers these days

long wraith
#

But the cell won’t have overdischarge protection still

distant raven
#

Most lipos cut off at 3V

long wraith
#

If they have a BMS, yes, they were looking for a BMS

#

So cells without a BMS

distant raven
#

Are from supplies you probably shouldn’t trust anyway and should avoid

long wraith
#

Or they’re raw cells meant to be used with a BMS

distant raven
#

Modern and reputable LiPo suppliers can very cheaply add them.

#

And they regularly do

#

You don’t really need raw LiPo packs unless you’re building your own multicell setups

long wraith
#

I use recovered LiPo cells from laptop batteries, which don’t have individual protection, just a shared BMS… maybe they’re doing the same?

#

Actually… @summer pier were you just looking for a small charger? Or do you want to have battery management as part of a larger project?

distant raven
#

It’s either a single cell or a parallel cell battery based on the voltage given

long wraith
#

Yeah. But there’s the question of if they’re trying to add battery management into a board, or design their own version of the MicroLipo, or protect a raw cell that lacks overdischarge or what

distant raven
#

Harvesting LiPos from old laptops does get into the “don’t try this at home” category of fun lol.

long wraith
#

Fair XD

#

CAREFUL

#

I always treat LiPos like a bomb

distant raven
#

In all seriousness, batteries (especially LiPos) are dangerous and should be treated like they could explode for no reason

#

Like my emotional state

#

Usually exploding into tears but that’s besides the point

long wraith
#

Mood

worldly schooner
#

Even inside of commercially available consumer products.

I’m looking at you, Samsung.

worldly schooner
#

Though in all seriousness, I prefer to compare them to gasoline. Similarly hazardous, but it retains its utility if you think about how commonplace it is in modern society.

distant raven
#

Yeah, very true

long wraith
#

Like with high voltage AC… very dangerous if you aren’t careful. With knowledge and care, you can stay safe

summer pier
summer pier
long wraith
balmy tide
#

@summer pier a common protection chip is dw01 you can buy prebuilt tiny boards or chip itself and can combine with a charging circuit

twin hedge
#

I wanna make a USB that is actually a Linux SBC that runs GPT-J. I have a 16GB LPDDR4 RAM chip selected, but I need a processor and a storage medium. I was thinking of using an ARM64 processor and using an eMMc chip. Could anyone help?

worldly schooner
#

You want to design your own miniature single board computer in a usb device?

worldly schooner
worldly schooner
twin hedge
worldly schooner
twin hedge
#

So I just find an existing SBC that has at least 16GB of RAM? I'm assuming that the model only needs 16GB of RAM to load itself, and actually running it doesn't need much processing power.

distant raven
#

Why not run on a Jetson Nano or something?

twin hedge
#

I want to be able to plug it into a computer's USB port and it'll run. I may also have it emulate an HID, but that depends and doesn't matter at the moment.

balmy tide
#

Why not 2 separate devices? A simple mcu acting as hid, communicating with a computer running gpt-j as starting point

unreal flax
#

Watch out for USB power limits. A RasbPi4 can suck down 3A or so.

distant raven
#

Max power draw, nominal is closer to like 700mA or something like that. Still 200mA over my 3B+ though lol

#

I take that back, they’re idling somewhere around 600mA

#

This 60W charging hub works perfectly for running Pi on

fierce apex
#

@distant raven charger with display , nifty !!

distant raven
fierce apex
#

@distant raven i have a RP3B+ , i want to use to run a greenhouse ( simple setup ) , a power backup and solar panel would be good to use - exploring ideas

distant raven
#

Ah neat, raspberry pi are great for niche applications like greenhouse management

fierce apex
#

i also want to have a indoor hydroponics so i can have cooking herbs freshh all the time

distant raven
#

Oh nice!

fierce apex
#

some systems have so many sensors - it may not be necessary

fervent lance
fierce apex
#

i dont know about plant nutrition - so PH sensor may not be useful now , however can manage water and temp , add sensors as i learn

fervent lance
#

i think starting with automated irrigation should be the first step, everything else does not bring much of an advantage if your not a professional horticulturist

#

but can be fun nevertheless

#

adaptive lighting might be fun and maybe necessary for indoor setups

fierce apex
#

front room window will do for now , maybe use a light sensor to plot light , temp , then individual moisture of plants

#

hmm open to ideas

fervent lance
#

what kind of plants you want to grow?

#

invest in quality sensors, if you want to be more serious about it. they might be expensive, but cheap sensors do not produce reliable data

fierce apex
#

cooking herbs , fresh cilantro would be nice

#

at first i would be using dirt - potting soil , small scale

fervent lance
#

well, that does not sound to complicated

fierce apex
#

i have seen real hydroponics setups , and the plants died becasue no water for 3 days

fervent lance
#

growing them in soil or other substrate provides the advantage an some kind of puffer for moisture and nutrients 😄

fierce apex
#

well i did get ( free ) 2 old sprayer pump mechanisms , from .... ROUNDUP.... sprayer ...... may not use at all

#

hmmmm - open tiny solenoid - water drip sounds safer

fervent lance
#

ROUNDUP like in herbicide?

fierce apex
#

ya

#

i tend to make stuff overly complicated - trying to do simple

fervent lance
#

they might no be very use full for GROWING crops 😂

fierce apex
#

well wondered.... if i can pump massive amounts of water or a leeching fluid ) throug pump to clean it

#

slow drip - i have seen that here and there

fervent lance
#

use influxdb for data storage, grafana to display data and maybe node RED and mqtt for control

fierce apex
#

was considering one plant and use a comparator and timer / x , to turn solenoid on

fervent lance
#

you mean a valve?

fierce apex
#

making notes on suggestions

#

ya , ultra simple at first then learn the pros/cons along the way

fervent lance
fierce apex
#

water sensor - 2 pieces coat hanger and alligator clips and speaker wire to DVM to look at it

#

if i can see a pattern maybe just a comparator

#

when dry --- beep

#

dont know the feed back loop to water - i imagine overwatering a plant easy to do

fervent lance
fierce apex
#

my water sensor for now is my finger - want to update

fervent lance
# fierce apex dont know the feed back loop to water - i imagine overwatering a plant easy to d...

easiest setup: have soil moisture sensor, read its value periodically (every 5 min or so) and see if moisture is below the threshold. if its not, do nothing, if it is, then open valve / power pump / whatever for a fixed amount of time. you might be going well over the threshold, but that is not bad, as long as there is enough time for the substrate to dry below the threshold before the next irrigation cycle happens

fierce apex
#

i have a 17 yr old orchid - i dont trust to automated watering

fervent lance
fierce apex
#

i have a bunch of aloe vera i , ignore them - seem to do well

fervent lance
fierce apex
#

low sample rate to allow - water to drain

fervent lance
fierce apex
#

aloe vera love crowded pots -- one vera in a pot withers

fervent lance
fierce apex
#

hmmm wondering..... have a data logging setup - then i do the human thing by hand - and refer to data to see if anything

#

hmm i can imagine - many configurations of water sensors , besides 2 coat hanger bits

#

humidity does have a correlation

#

and temp

fervent lance
#

i dont quite understand what you are trying to say?

fierce apex
#

i have a habit of making it , overly complex - im trying to simplify

#

pino tech , 75 Mhz - its a ANtenna ?

#

the water in the soil changes the permeability arount ANT ?

#

ohhh capacitive

fervent lance
#

it will not corrode in the soil

fierce apex
#

im looking at the C code on site

#

looks like C

fervent lance
#

its for arduino

#

might be c, might be c#

fierce apex
#

10 bits = 1024 ADC

fervent lance
fierce apex
#

thats a new sensor - i wanna take it apart

#

3rd electrode is a ? , is this still capacitive

#

70 Mhz........ something

woven pasture
#

Hi All, couldn't find exactly the correct channel to ask, but this one seemed to be the closest.

Can anyone tell me what this type of interface connector is called?

long wraith
#

I think that’s a mezzanine connector

woven pasture
#

Thanks for the lead, I think you're almost right. Mezz connectors ( IEEE 1386 ) appear to have the contact pins symmetrically mirrored.

#

A quick search and I haven't been able to find a mezz connector with those triangular keyed edges, and offset pins

long wraith
#

Hmm… might be proprietary

#

That looks like a TPM module from a PC? A lot of the ones that don’t use regular 2x(n) 0.1” headers use proprietary connectors so you can’t just use any module

woven pasture
#

You're spot on there! It's a TPM from Tyan and I cannot find a supplier anywhere, so I was going to make my own "translation" board so I could piggy-back a TPM from another OEM

#

The pin-out for the Infineon TPM over SPI is super simple. The OEM's make it difficult to lock you into buying their AICs

long wraith
#

I find the situations with TPMs to be infuriating... But personally I'm disabling fTPM on my devices that have it and not putting TPMs into ones that don't so Microsoft can't "accidentally" "upgrade" my computers to 11

distant raven
woven pasture
long wraith
distant raven
#

Yeah true

woven pasture
#

At this point I think I'll just test it out with my YubiKey

distant raven
#

I need to disable fTPM at some point

#

I have a YubiKey for work, seems to work great

long wraith
#

I disabled fTPM on my systems as soon as I found out Windows 11 had a TPM requirement

twin hedge
woven pasture
twin hedge
distant raven
#

Apple doesn’t support hard tokens for MFA windows connections though which is sad. Not through the Microsoft RDP app anyway. You have to use some kind of VDI client like Citrix which is a pain

distant raven
#

And Microsoft broke but won’t acknowledge they broke RDP on windows 11 with it randomly switching to UDP when my employer’s servers only allow TCP/IP sessions

#

It was kind of broke in 21H2 but then broke broke in 22H2

#

Found that out the hard way

long wraith
#

And THAT kind of random crap is why I refuse to implement 11 in my environments

twin hedge
#

Same.

still cypress
#

Working on a design for a PCB that powers some 24v fans (one of them is a bit of an odd fan) and some thermistors for a project I'm working on. It's meant to run on a kb2040/rp2040 pro micro/Boardsource blok. Before I get much further with the design, was hoping someone could spot check any obvious mistakes. First time using kicad, and not super familiar with electronics, but that's never stopped me before!

dry pelican
#

Looks good, but what’s going on with the weird zener thing with PWM on the roborock fan? (Also, it seems like you called Schottky diodes Shockley diodes (after one of the inventors of the transistor))

twin hedge
unreal flax
dry pelican
#

That thing has some insane specs and is extremely pricey

#

I would use something where you won’t have to brew your own VRMs, high frequency length-matched, loop-optimized, high frequency traces, a 12 layer PCB, and your own software support. And I can imagine soldering that thing will be a nightmare.

#

I would just get an SBC that has the specs you need. There are some powerful pi alternatives out there.

#

And it doesn’t seem to have a datasheet

still cypress
rustic linden
#

CPAP as in the therapy for sleep aponea?

distant raven
#

Length matching isn’t terribly difficult, just time consuming

still cypress
distant raven
#

Get the ones with the open patterns on the bottom of the die

tulip topaz
#

I'd tie it to gnd, not mosfet0/-24v.

#

Your motor snubber diode is wired wrong

still cypress
#

Motor snubber diode?

tulip topaz
#

The schottky, should connect across the motor leads, pointing up. Also known as flyback diode.

#

Its wired in series, no reason for that. The github link shows it wrong too.

still cypress
#

It PWM's on GND and has to PWM along with the PWM signal due to how the fan board that connects to it works. It's intentionally disconnecting that for reasons that the designer of that bit of the circuit understands that I don't.

#

It fails when not switched, that's the extent that we know.

tulip topaz
#

Your board has the luxury of a full time ground. Condotabb is applying some band-aids since his gnd is coming and going with pwm. When his pwm is off, everything tied to gnd will float up to 24V hence all those zeners and schottky diodes.

#

Plus he is bringing in a pin from a motherboard without a ground reference.

#

I'm guessing the motor needs a 0-5v pwm signal.

dry pelican
#

I forgot about flyback diodes. I'm not sure if brushless fans have them integrated (with the little controller IC), but it's good to have them so inductive current spikes don't kill your mosfets. I'm not sure what current rating to go for, but I would go for diodes with a continuous current rating of the current you're running the motors at to play it safe.

tulip topaz
tulip topaz
still cypress
woven bluff
#

does it matter where the wiper is tied into

tulip topaz
#

Electrically it won't matter, but if you care about adjustment direction being CW vs CCW, it will.

nova drift
#

How dangerous are LiPo batteries? Are they more dangerous than phone batteries?

distant raven
#

Phone batteries typically are LiPo or Li-Ion

unreal flax
distant raven
#

And puncturing is bad regardless of capacity

#

Toxic fumes, fire, etc.. are common dangers of mishandled Lithium batteries

long wraith
#

“Dangerous” also depends on what you mean. Aforementioned toxic fumes and fire are going to be similar risks between a phone battery and pouch style cells if both are safely inside a device. 18650 or solid cells like those are a bit more resistant to damage, but equally likely to burst from a short without protection.

nova drift
nova drift
nova drift
nova drift
long wraith
nova drift
long wraith
long wraith
humble swift
#

I watch some RC channels and the cavalier way they handle LiPo batteries CONCERN me

nova drift
#

Okay, great! I'll definitely be careful, but it's nice to know my ham radio pager won't randomly explode.

long wraith
#

Chances of random explosion are about the same as any phone, generally — so unlikely

humble swift
#

Make sure any battery you get has the appropriate protection circutry, some very cheap ones dont come with it

#

the adafruit ones do obviously

nova drift
#

I'll be using Adafruit batteries

humble swift
#

Good call, i bought a cheap one off ebay and then found out that it needed the circuit, by the time i bought and installed it i paid more than just buying the adafruit one -.-

elder peak
#

If you watch Bigclive on YouTube he's got the explosive battery containment pie dish.

nova drift
#

What is the best way to put a power switch on a Feather with a LiPo?

#

I'm fine with soldering

distant raven
nova drift
#

Yeah, to turn the whole thing on and off

#

Behavior when the switch is turned off with USB connected doesn't matter

distant raven
#

You can wire a switch between EN and GND on most boards

#

The en pin going to ground would turn off the regulator

nova drift
#

So the switch would actually go "on" to turn the board off?

distant raven
#

Right

nova drift
#

Okay, that would be fine

young jacinth
#

hello friends! i'm super new to hardware design (i actually... don't know almost anything about circuits, even though i fab them for my internship). what i'm looking to do is to create a programmable LED matrix for a thomas bangalter daft punk helmet. are there any recommendations on what I should buy? having the display be see through is very, very helpful, but if there's no good way to do it, i could always be fine with not having that

nova drift
#

Is there any power consumption when the board is off?

distant raven
#

You could still charge the LiPo but you’d turn it off to use the microcontroller with usb

#

Turning the regulator off should just leave you with a small amount of quiescent current

nova drift
#

So the LiPo would charge at either setting?

distant raven
#

Right

nova drift
#

Okay, a small amount is fine

distant raven
#

The LiPo charger will also leak a small amount as well, maybe a few dozen uA

nova drift
#

What would happen if you plugged it into a computer with the switch set to turn the board on?

distant raven
#

So if the switch was open?

nova drift
#

Yeah, with the switch open

distant raven
#

The regulator would turn on when it got USB/battery power

nova drift
#

So when it's connected to a computer or other power source by USB, the setting of the switch wouldn't matter?

distant raven
#

No it’s going to matter

#

The regulator powers the micro

#

So if it’s not enabled you’ll only power the charger

nova drift
#

Oh okay

#

So for charging it can be on or off, but for reprogramming it needs to be on?

dry pelican
distant raven
worldly schooner
humble swift
#

I have a question, assuming the fault with this ESP32 feather v2 is that the usb-uart bridge doesnt work, is there any way to bypass that and program it anyway?

young jacinth
worldly schooner
humble swift
#

spicy

worldly schooner
young jacinth
#

ah, i mean to link all of those strips into a grid haha

#

maybe i could just twist and turn the strip a bunch and see if i could make it into a grid?

young jacinth
worldly schooner
#

You can arrange them in a grid, sure. Probably easiest to just use horizontal rows and connect the ends.

#

With wires or something

#

This project uses two rows, but theoretically you can use as many as you can fit in the visor. Hopefully you can still see between the rows, though.

young jacinth
#

i could definitely do something like that! is the connection just two copper bits?

#

(as in, like, how many traces are there to connect?)

worldly schooner
#

Three. Power, data, ground.

#

Direction matters for data, make sure not to connect two data ins or two data outs together.

nova drift
#

Is it normal for a Raspberry Pi Pico PWMing a pin to make a very quiet, high pitched hum? I have to hold it to my ear, but I can hear it.

#

It's underclocked to 18 MHz

young jacinth
worldly schooner
#

Sure, why not.

nova drift
young jacinth
#

perhaps the underclocking is the issue, then?

worldly schooner
nova drift
#

*thank you

tulip topaz
pale umbra
#

that was like one of the first project

#

determine my range of hearing and my fps range with an arduino 😄

dry pelican
#

Cheap gadgets sometimes have a very low pwm freq (like 1-2kHz or maybe even lower). The noise is very annoying when you try to dim the pwm controlled thing

pale umbra
#

like at 58 fps I can't see the LED flash anymore

#

so my eyes/brain are defective 😦

dry pelican
#

No. I think that would be pretty normal

#

Otherwise every single led light would appear to flash

#

Mains powered

worldly schooner
#

Can’t see individual frames at 60fps, so that’s more than reasonable

dry pelican
#

eye fps is limited by the speed at which the receptors reset (since it's all chemistry), which leads to persistence of vision

worldly schooner
#

A lot of LED projects recommend 400hz since there’s little chance of anything audible compared to motors or inductors

sleek ice
#

I need an 80mm (preferably) or 3 inch round display without an octagonal backlight and bulk. Can anyone find that? I've looked all over aliexpress.

humble swift
#

dang, only one i can think of is 2.1

worldly schooner
#

I see 3.4 and 2.8. If you need something exactly 3.00-3.15” you might need to custom order…?

#

There are a lot of 1.28” for smart watches, and a lot of 3.5”-5” for VR applications, anything in between has far less demand to have significant market share.

#

I’m surprised 2.8” even exists off the shelf, to be honest.

sleek ice
#

Okay. I might have to

worldly schooner
#

Any other requirements? Interface, resolution?

#

Minimum order quantity?

worldly schooner
sleek ice
#

Too large of an outline

worldly schooner
#

What exactly is this for, anyways? Do you need these in bulk for a product, or is this a personal project?

sleek ice
#

Personal project. Basically trying to replace the Gamecube jewel with a video display

rustic linden
#

Smaller with a border might do fine

sleek ice
#

But I need a controller board. Any suggestions?

nova drift
#

What are the rectangular holes in the bottom of the Feather cases for?

#

And why are the cases quite a bit wider than seemingly needed?

#

Oh it looks like it's to allow connecting a battery cover?

nova drift
#

(I know the mounting holes won't line up; I'll use hot glue or two-sided tape)

nova drift
#

I just thought, the charging port will be hard to access.

#

Although I could have the board raised up in the lid

#

A way to plug it in without opening it would definitely be better

nova drift
#

Probably not, but would sandwiching the Feather and battery between sheets of styrene and wrapping it in electrical tape be enough protection?

worldly schooner
#

Oh, wait, those enclosures are tiny.

#

Hm.

nova drift
#

Oh, that cable is a bit too expensive.

#

I'll look to see if I can find anything comparable cheaper.

#

I really only need charging; it's okay to take it apart for reprogramming. A dedicated external adapter for charging is okay. Does that simplify anything?

#

Is the "USB" pin on the Feather 5V USB power in?

unreal flax
nova drift
#

It's the Feather RP2040.

unreal flax
#

Yep, from the schematic the USB pin is connected directly to VBUS 5V on the USB connector.

nova drift
#

Okay, thank you! So if I use some kind of connector to connect "USB" and "GND" to the positive and negative wires of a USB cable, that will charge it?

unreal flax
#

I mean, it should, but if you're using a USB cable already, is there some reason you wouldn't want to just use the existing USB connector instead?

nova drift
#

A round connecter would be easier to get through the case because then I could drill a hole

unreal flax
#

Ah, gotcha.

nova drift
#

I'll probably do that; it's made for panel mount use and only $1 more

#

It looks like all the connectors I need are available in panel mount versions fairly cheaply

#

Other than the case and a 3.5 mm to 2.5 mm stereo cable, both of which are cheap on Amazon, everything is available from Adafruit

#

Does it hurt Adafruit LiPo batteries to drain them to the point where the protection circuit shuts them off?

sleek ice
#

I think it's a 40 pin 0.5mm pitch but idk

worldly schooner
twin hedge
distant raven
#

They come in packages that are actually usable for the average person

#

BGA tends to requires lots of advanced techniques in routing and expensive board manufacturing processes

worldly schooner
#

Imx6 is a solid processor with a lot of support, but I don’t think off the top of my head I could tell you if it could run a chatgpt instance.

distant raven
#

Plus they tend to have lower yield because it’s harder to fix electrical issues under the chip after it’s soldered

worldly schooner
#

It’s pretty common in commercial devices, but not exactly accessible to hobbyists.

#

I know they have system-on modules available for this processor though. Doesn’t help with your unusually high memory requirements, but could ease development costs otherwise.

distant raven
#

Definitely look at Octova I think is the brand

#

They have very nice SoM with big pitched BGA

worldly schooner
#

Octavo iirc

distant raven
#

Yeah

worldly schooner
#

Do they do MPU sips?

distant raven
#

Yeah

#

Only one in stock currently at Digi-Key lol

#

A7 + M4

twin hedge
distant raven
#

If you want to grab one

#

30 right now

#

Just above 10 now

twin hedge
#

I need a minimum of 16GB of RAM. This won't do.

twin hedge
distant raven
#

Why do you need 16GB of RAM?

#

Where and how did you derive this requirement?

worldly schooner
#

GPT-J

distant raven
#

Is that what they suggest?

worldly schooner
#

I think he’s trying to load the full model into memory

#

I think most applications use gpu ram though

distant raven
#

I think he’s misunderstanding the requirements

#

16GB VRAM

#

Many models want 32GB or more of RAM on top of that

#

You’re not going to get that in a PCB that’s easily designable or manufactured

#

Just being realistic here, you will need a GPU, CPU, etc..

twin hedge
# distant raven 16GB VRAM

I believe I can use CPU RAM. This is only after adding an argument to the model and using the float16 branch to get the model's requirements to 12.1GB.

distant raven
#

All that is going to take months to design a USB ready device assuming you’ve done the design to get that

#

My understanding is 12.1GB is just the size of the instance not the resources needed.

worldly schooner
#

I don’t see a capable cpu being able to operate as a bus-powered device. At least not with our current generation of hardware.

distant raven
#

Yeah

#

If you find something that can do PCIe over USB C and have a host that can do that as well, sure maybe

twin hedge
#

Why would I need PCIe?

distant raven
#

Not trying to be a killjoy but something like this would take a team of 2-3 experienced engineers a couple months to do.

distant raven
twin hedge
#

So I can use a processor capable of running the model?

distant raven
#

I would find a small gaming PC with a dedicated graphics card

#

GPT-J appears to heavily rely on GPU power

worldly schooner
#

udoo bolt comes to mind

#

I just checked coral dev board, even that only goes up to 4gb

#

And that’s designed for machine learning

distant raven
#

Yeah

worldly schooner
#

We’re talking an application that traditionally requires a cloud hosted server to run properly

#

I don’t mean to be a Debbie downer, but I think this needs a lot more research before you start shopping for hardware

#

Even most standard PCs wouldn’t be able to do this, and you’re trying to squeeze this into a thumb drive haha

distant raven
#

It would probably get thermally throttled right away

worldly schooner
#

I think the biggest issue is the number of constraints you’re setting for yourself right from the get-go. Before jumping into MPUs and RAM, start with some feasibility studies. See if you can run this on your home desktop before trying to go smaller. Approach this as a multi-part problem and go one step at a time.

#

What hardware do you have that successfully runs this model? How much memory does it use in practice? How much power is it drawing? How fast is it running? How can I reduce the hardware requirements with minimal performance impact?

#

I admit I didn’t really think about what you were trying to do when you first brought it up, but these are all important design steps that all contribute to a successful design.

distant raven
#

And also evaluate how your own skill level in designing things to.

#

Some of these parts require quite a bit of experience to route and use in manufacturing. Plus the cost for a few one off boards might be more expensive that simply going with an off the shelf solution

long wraith
#

… NVidia Jetson? I dunno what the whole project is, but I know Jetson can come with large amounts of RAM for training models and stuff, and the Nano can be had for under $200

worldly schooner
#

Right, but the nano doesn’t go up past 4gb ram. Jetson Orin might manage, though.

#

Only 721 for the module.

distant raven
#

Yeah

#

Looking, a lot recommend running GPT-J in VRAM because it tends to be better optimize for the tasking

worldly schooner
#

Add a minimal carrier board and we have something that might meet the specs and is only a little bigger than a lattepanda.

distant raven
#

LattePanda ahhh such a great board

#

Someone shoved a Zynq 7000 on a feather so maybe Pi Zero W sized if you really know what you’re doing

worldly schooner
#

Still uses like 10W min, not something you can provide to a USB peripheral. Maybe usb-c or thunderbolt…

distant raven
#

USB C external source

#

Definitely a must

long wraith
twin hedge
#

So where should I start? Build a gaming PC? Get a Linux SBC?

long wraith
#

What’s your end goal?

#

Like, what do you want to do with ChatGPT-J that you were thinking of building your own SBC?

twin hedge
long wraith
#

Ahh. I’d say if you want to do any software development before deploying, start on your PC; but for portable, I’d just find an existing SBC instead of trying to create your own

supple pollen
twin hedge
long wraith
long wraith
#

Probably just one would do it? But more is faster

twin hedge
long wraith
#

That's a bit past my knowledge -- but usually the configs for such models allow selection of accelerators

#

Or some automatically provision and use available accelerators and GPUs

young jacinth
#

@worldly schooner new idea, clear me on this if i'm wrong, but could i grab a bunch of those old red dot leds and address them by writing some arduino code?

twin hedge
long wraith
#

Should be able to!

twin hedge
#

How would I write the script? What all do I need to do?

long wraith
#

Like I said, past my knowledge -- I haven't used GPT-J or USB accelerators

worldly schooner
young jacinth
#

not the matrices, just pure old school dot leds

worldly schooner
#

Regular LEDs don’t have “addressing” so you would need extra hardware to control a large number of them

#

A lot more wiring and complex design, too. The LEDs themselves are cheap, but you’re on your own when it comes to controlling them.

young jacinth
#

ah, i see

twin hedge
#

At some point, I plan on getting a laptop I can use for development (e.g Unity, LFS, etc.) and maybe some gaming. Once I get one, I can possibly get the model running on it.

supple pollen
balmy tide
#

TL. DR. Do i need to worry about how much power this type of shunt resistor dissipates?
I am building a soldering iron, pretty common thing hakko 907 clone iron controller. I want to measure current, to simply calculate power. I want to use this shunt resistor (combination with a low pass filter to average out PWM), and couldn't decide on value. I am using 20V supply so full-on peak current is 5A, and when hot it's close to 3A. With 50m shunt peak power is 1.25W. According to conversations we had before here, I also need to consider signal to noise ratio. I will have to use low pass filter so I don't think there will be issues about that. What power should I aim for shunt resistor dissipation?
My choices are 2m, 5m, 10m, 20m, 30m, 50m, 100m, 120m, 150m, 200m, 300m, 500m. Open to suggestions but I would like it more if I learn to make decision myself.

fervent lance
#

Quick question regarding RGBW-Neopixels. If i just want to run one of the colors or white on full power, but no mixes of colors, is a JST XH-Connector (max 3A) safe to use for the NeoPixel Matrix (64 LEDs)?

#

Are the 80mA / pixel-figure mentioned in the Überguide on the website for ALL colors and white on full blast at the same time?

latent jungle
distant raven
#

Ah the bald engineer! 😄

#

I love your work

#

(I’m Oak dev tech on Twitter)

latent jungle
#

And same!

distant raven
#

Thanks! You’re retro rebuilds/repurposing has given me some ideas for my SEGA genesis

#

I have no idea if it works in its current condition though ha

latent jungle
#

They’re pretty robust. Start with a recap and clean the cartridge port.

distant raven
#

I plan to convert the power supply to USB C in the process

#

Make it easier to power in the future since I don’t plan to re home it

latent jungle
#

That would be cool to see.

distant raven
#

I need to find some games too, all the ones I had from years ago are long gone

supple pollen
fervent lance
fervent lance
dry pelican
young jacinth
latent jungle
dry pelican
#

Maybe. That would make sense

balmy tide
#

The heat will be dissipated on shunt resistor away from soldering iron's heater core

dry pelican
#

For some reason I was thinking it was a shunt and heating resistor. But in hindsight that really does not make sense

balmy tide
#

It makes sense but you have to know temperature coefficient of resistor. Not really reliable way of doing for a no name Chinese clone

supple pollen
#

That's why I was thinking of skipping the shunt entirely and just measuring the drop over the heating element instead. Granted, it's going to be a higher temperature range and would likely require correction, but it's simple enough to measure the values to build the coefficients.

dry pelican
#

resistance does increase with heating, so it could also be possible to measure the temperature that way

#

you could tap the heating element to effectively create a shunt

supple pollen
#

That too. However, a tap wouldn't add much information if the entire element was at the same temperature.

dry pelican
#

a tap could measure current though. And wouldn't require a hot shunt

dry pelican
#

although I think it's just based on material, so you could make an educated guess and see if it works out

supple pollen
#

I don't really see how a tap could measure current in this situation, but just measuring the voltage across the element could, once you'd determined the thermal coefficient.

ocean coyote
#

hey everyone, looking to buy a couple of pico w's but im not a fan of the micro usb port, im either looking for a clone of the product or a usb c connector that has 5 pins to work in place of the micro usb port

#

i found these online but idk

rustic linden
#

Since it doesn't have a datasheet or any such, there's ultimately no way of knowing entirely other than purchasing them and testing them out

ocean coyote
#

yeah

#

when i go to order them, there is no where to change country

#

and its set to india

#

if anyone knows of another website with them give me a ping

long wraith
#

Oh, wait, you said W, oops…

worldly schooner
rustic linden
#

that's not impossible, though

worldly schooner
#

No, but I expect them to be decently expensive haha

ocean coyote
#

and i cant get the ones i linked above

#

they only sell within india

distant raven
#

For Wi-Fi with RP2040 you could use the Challenger RP2040

compact frigate
balmy tide
#

its almost like one is successor to another

wheat trellis
#

I want to use the value from a 4-wire load cell to a comparator, can the SIG- be bridged to ground? Assuming excitation + and - are used as normal, and SIG+ goes to the comparator.

balmy tide
wheat trellis
#

makes sense, i ask because most ADCs designed for load cells (ie HX711) have specific inputs for A+ and A-

#

By leaving it floating, would there be any function loss? I would think maybe measurement of negative force???

#

(Not that I need it)

balmy tide
#

IDK what hx711 is but normally you put a differential amplifier between green and gray (R1 or R4 is strain gauge, doesn't matter too much), and use opamp output for your task. Could be MCU ADC could be comparator or sth.

balmy tide
# wheat trellis By leaving it floating, would there be any function loss? I would think maybe me...

I don't think so. The idea at rest green wire settles at 2.5V. If you apply force 1 side you observe that green wire voltage increase. If you apply other side green wire voltage decrease.
With differential amplifier you measure voltage difference between green and gray, and amplify as needed or if needed. (more advanced explanation would be R2 and R3 creates common mode voltage and opamp measures difference to common mode.)
If you don't use differential amplifier (assuming 10 bit ADC) at rest you would read 512 and when you apply force you read more than 512 one way and less than 512 other way. If you remove 512 from read value, you virtually made same thing as differential amplifier. I don't expect you to read 512 on rest, due to how voltage dividers work.

dry pelican
#

RP2040 has no native PDM interface, but it can be accomplished through PIO

dry pelican
jade cliff
#

I'm hoping to get some suggestions on a soldering station. I had a cheap soldering station that had an iron, and a hot air rework tool. The fan in the hot air tool bit the dust, so I'm looking for a replacement. I want to get a quality replacement, and I'd like to be able to solder through hole, and smd parts. I did really like having a hot air station, but if it's hard to get a combo tool, I could go for just an iron and hot air separate. I want something that will last, and don't mind spending a bit of money.

distant raven
#

Probably a Hakko

#

They sell decent irons and hot air stations from my knowledge

#

I use the Chinese cowboy brand Yihua

#

(It sounds like Yee Haw lol)

#

Seems to work well enough for me

jade cliff
#

I've been looking at Hakko, they're pretty spendy, so I was hoping to get feedback on if they are worth it. Thanks for the input.

dry pelican
#

I highly recommend the pinecil. It's portable, USB-C powered, reasonably priced, and open source. It also somewhat outperforms my RadioShack soldering station.

#

by Pine64

jade cliff
#

Whoa, I didn't know such a thing existed. $26 seems super reasonable.

dry pelican
#

They are hard to find though unless you want to wait for shipping from Pine64

dry pelican
distant raven
dry pelican
#

kinetic maintenance lol

#

would be cool if an open source version existed

#

or a handheld, portable one

jade cliff
#

Interesting, It looks very similar to the station I have. The hot air tool started making some awful noises, and wasn't moving air. I might have to try the kinetic maintenance.

#

You can see where the nozzle is all blue because the heater was just going crazy without any airflow

nova drift
blissful frigate
vagrant cairn
#

are there any templets for EASYEDA of a bare bones rp2040 board with power, flash, and module? Just like a templete that has all that taken care of that I can use to build on the other functions i need?

balmy tide
balmy tide
#

@dry pelican yesterday, I've reviewed your schematics in show and tell and I've got a question if you don't mind. I've noticed you haven't put any denouncing capacitors. How was the real life performance? Was it noticable, any shadow clicks? Especially concerned with rotary encoders which I decided to use myself too

distant raven
#

They’d rise up and take over!

#

Lol

balmy tide
#

Any real world feels?

distant raven
#

I put debouncing on some buttons

balmy tide
#

I feel like I have to put them for rotary encoders because they are interrupt controlled. I think polled buttons are generally fine with no hw debounce.

#

I just wanted to take opinion when I saw someone doesn't use them, maybe I am being in my head and parts and tolerances got so good that it doesn't need anymore. 🤷‍♂️

distant raven
#

It’s not so much debouncing that you get but smoothing.

#

True debouncing would need like a Schmidt trigger

#

It’s pretty close to the same thing though

balmy tide
#

True but cap is like 20 pennies and Schmidt trigger ic is more than 50 times price

distant raven
balmy tide
#

Yeah but I'm not buying 1k caps or buying from bulk salers

distant raven
#

I have reels of caps

#

But I also do this

vagrant cairn
distant raven
#

I don’t

#

Just follow this and you will be straight

vagrant cairn
#

ooh they have kicad stuff, ima try to import it into easyeda

dry pelican
balmy tide
#

I have a concept and almost a full design but i am second guessing some aspects of my design i think there might be too many interrupts. That main loop will be empty.

dry pelican
#

I'm pretty sure that someone has written a good library for CP or MP

balmy tide
#

Hey. My kicad footprint associations somehow lost. I cannot chose footprint while adding new symbol. Do anyone know why that might be? Turns out its only some of the footprints missing not all the parts. Eg. atmega mcu footprints are there but not connector_generic footprints. Already tried to uninstall and reinstall with and without deleting my documents folder and %appdata% folder(s).

vagrant cairn
# distant raven I don’t

I was able to get the rp2040 basic into easyada, all goes well, but i get a warning when i check connections warning is for 1.1V. That is not required r ight due to the rp2040 regulator

#

iirc it says that in the manual

distant raven
#

Vregin takes 3.3V and spits out 1.1V on VregOut

#

VregOut feeds DVDD pins

#

So three pins total should have the label 1.1V

vagrant cairn
#

ok

#

but an e rror for 1.1 during connection check is ok

supple pollen
#

It would help if you told us the specific error you are getting. In most cases, it's worth digging out why any errors or warnings occur, many of them are important clues for getting your board implemented correctly.

vagrant cairn
#

it just says incomplete connection please check for the 1.1V

#

for context this project is exactly the same as the official demo

#

i imported the project directly from their website. and also in the manual it said something about like not needing the 1.1 due to regulator

supple pollen
#

It might be a pin definition problem. Most of these programs have notions of pin types like "input", "output", and "power", so in this case the 1.1V in pins would be "power/in" and the 1.1V regulator would be "power/out".

#

It would be annoying if the official demo had the pin types wrong, but not unheard-of

vagrant cairn
#

"At its simplest, RP2040 requires two different voltage supplies, 3.3V (for the I/O) and 1.1V (for the chip’s digital core).
Fortunately, there is an internal low-dropout voltage regulator (LDO) built into the device, which converts 3.3V to 1.1V for
us, so we don’t have to worry too much about the 1.1V supply."

supple pollen
#

It is correct that the on-board regulator is sufficient for the required supply, which is why I'm positing the error occurs because the software does not understand that this is the case, possibly because of a pin definition problem. Normally the ERC (electrical rule check) tries to verify that every input is connected to something, every power pin is connected to a power net, etc. But the details of what a power net is, and where the power source for one comes from, can be subtle.

#

In this case, the 1.1V net would be a power net, and connected to all the 1.1V supply pins. The wrinkle is where that 1.1V comes from: in this case, it's an output from another pin (the regulator output) that constitutes the 1.1V supply.

vagrant cairn
#

@supple pollen so its a false alarm?

supple pollen
#

We don't know that for sure.

vagrant cairn
supple pollen
#

My usual approach is to check all the pin definitions and assure that they are correct (to the extent that the software supports the pin types required). Then check net definitions (in particular, that the 1.1V net is declared as a power net). Then chase down what the specific error means ("incomplete connection" seems fairly vague to me, but hopefully there's documentation as to what it refers to). If you can remove the error by correcting the pin and net definitions, that's ideal, because then the checking is working for you. If you can't (because the software doesn't support your specific situation), then you're stuck going through the netlists by hand and verifying that they all do what they need to do, and manually doing any other appropriate checks (for decoupling, impedance, or whatever).

vagrant cairn
#

ok

#

also im getting this error now

#

wonder if they are related?

#

nvm thats a application error

#

another thing, its making me update a lot of footprints, for like resistors and stuff, how do i make it use parts from JLCPCB store?

full hearth
#

Does an “8-channel ADC” mean there are 8 separate I/O pairs that execute simultaneously?

vagrant cairn
#

i was able to update footprints for all of them except the rp2040

#

which is slight problem

supple pollen
full hearth
supple pollen
#

I'm not clear on exactly what you're looking for here, but for example, the DigiKey parametric search includes a selection named "Ratio - S/H:ADC" which may be useful. Presumably a 1:1 ratio would have a converter per S/H channel (what I don't know if there's a S/H channel per input, or what it means to have multiple converters per S/H channel)

vagrant cairn
#

what do i do if i need 3 3.3V and pico only has 1?

supple pollen
#

If other limitations (current draw, noise propagation, etc.) allow, you can connect multiple loads to a single voltage source.

vagrant cairn
supple pollen
#

"en" often refers to an enable input to switch a regulator on or off. "out" generally refers to a voltage supply.

vagrant cairn
#

ok

#

so i cant connect to en if i just want power?

#

also can i just make pin X high to output 3.3V and make many 3.3V pins,, or should i look for external power

supple pollen
#

"en" is normally an input, not useful as a source of power.

#

While you can get 3.3V out of an I/O pin, the available current will generally be quite low, so it's only useful as a very low power power source. Normally, I connect the 3.3V regulator output to all the things that need 3.3V power (again, subject the the limitations of the regulator)

vagrant cairn
#

ok

vagrant cairn
#

adafruit gps and adafruit bno085 IMU

supple pollen
#

You'd have to look up (or measure) the current draw of each one, add them all together, and compare it to the current available from the regulator (which should be specified on the Pico data sheet)

vagrant cairn
#

@supple pollen srry noob ? current draw is amps?

supple pollen
#

Yes, current draw is measured in amperes

vagrant cairn
#

k

#

25ma+7.14ma<300MA

#

so we are ok

#

thanks

distant raven
#

Just an FYI, you can no run the RP2040 off a coin cell, the startup current is more than coin cell can deliver if you’re considering one.

vagrant cairn
distant raven
#

These three are 1.1V

#

VregOut drives the dvdd pins

vagrant cairn
#

i only see 1 though

vagrant cairn
distant raven
#

Yes

vagrant cairn
distant raven
#

I’m not certain but maybe

vagrant cairn
# distant raven I’m not certain but maybe

ok, yea i was using their sample project as kinda like a shortcut to get a basic version, but then when i uploaded their KiCad files into EasyEDA, it is asking about footprints over and over again...

vagrant cairn
#

in that one layer only is on part of it

#

is this normal

#

if im using the MKT3339 chipset, what do i absolutly need, there are like 11 ports on the chip

balmy tide
#

Would anyone want to review my design? last minute preflight check?

rustic linden
#

Looking for a voltage regulator for 3.3-5V up to 5V, would there be a universal pinout with a few options in case one or a few are out of stock, or do they all have different pinouts and packages?

balmy tide
#

1117 series regulators

#

Could be ams1117 lt1117

balmy tide
#

I guess lt317 is industry standard part

#

A bit old but should work

rustic linden
#

Does it allow for a varied input or would the output need adjusting according to the input?

unreal flax
#

There's an allowed input voltage range, but the output would be the same.

rustic linden
#

okie :3

distant raven
#

I'm going off people who've used like 2032 coin cells and had issues

worldly schooner
distant raven
#

So probably a 200uF or better cap

#

Might get away with a 100uF

#

Assuming startup was just a few ms, maybe something as small as a 47uF cap might be suitable.

#

Top google result for max current draw of a coin cell suggests a 47-100uF capacitor in parallel with the battery if your circuit exceeds 15mA draw

sick geyser
balmy tide
balmy tide
supple pollen
#

1mA lights most LEDs fine. You'll get visible light even with a hundred microamps (as it happens, LEDs are more efficient at low current)

distant raven
#

I’m fond of ones with 1mA of test current because they turn on pretty brightly like you mentioned

#

Though I usually end up getting 2mA and 5mA one

balmy tide
#

As mentioned I don't want an led shies bright at 1ma

#

I want 20ma led to light with 1ma and give me 1/20th or even less light

distant raven
#

Brightness isn’t really perceived linearly and some 20mA actually have minimum “turn on” current so be aware of that

balmy tide
#

That's the part I'm worried but it's tht so should be hard to botch another resistor

distant raven
#

Yeah

#

In the past, the smallest resistor I’ve used is like 6k8 resistor and it just barely “turned on” (with 5V) so you might be okay at 24V

supple pollen
#

Very few have a minimum "turn on" current like that. Ordinary 20mA LEDs generally light just fine at 1mA. And due to their greater efficiency at low currents, as well as non-linear perception of brightness, they seem much brighter at 1mA that 1/20 of their brightness at 20mA. To get 1/20 brightness, you may need to run them well under 1mA.

distant raven
#

Which I guess 6k8 resistor is ~310uA for a 2.8ishV LED off a 5V supply

#

And it’s kind of “on”

#

Which I understand I’m preaching to the choir here lol

spice turtle
#

so parallel to R11/R14

#

@balmy tide basically like this, but you dont have to have values for them yet. Its to save you a potential revision as sometimes Op-Amps can oscillate.

C6 on my diagram is the simple way.
C10 Helped too IIRC (its been a while)
C3, C5 and R4 formed a filter to stop oscillations.

#

that reminds me: I should really finish that project 👀

balmy tide
spice turtle
balmy tide
twin hedge
#

I've done some research before going back to my GPT-J Linux USB. So what if I make it a standalone portable device? Possibly powered by a battery, it could work by itself and accept user input. You could also connect it to a computer for additional capabilities, such as outputting GPT-J's output as an HID keyboard.

worldly schooner
twin hedge
worldly schooner
#

Would your desktop or laptop run GPT-J?

twin hedge
#

Unfortunately not.

dry pelican
twin hedge
dry pelican
#

Google has an accelerator stick that can plug into a USB port

#

But maybe they killed it

#

Or maybe it doesn't have the specs

#

Not sure

supple pollen
frozen sinew
#

Hey! Would someone mind doing a quick review of my design for a keyboard PCB? 🙂 See if I'm missing something obvious.

vagrant cairn
#

should i be worried if theres a hole in my PCB?

#

that middle black part

frozen sinew
#

What do you mean by hole? Are you referring to this?

#

@vagrant cairn If so, that is just a void in your top and bottom copper layers, not the PCB itself.

frozen sinew
vagrant cairn
#

ok

balmy tide
hushed smelt
#

@vagrant cairn the hardware questions you're asking are better suited here. 😉

vagrant cairn
#

so how would i write it

#

cause these are the events that need to happen when switch is flipped
SCL is cancelled
SDA rerouted to RX
P0 is shorted

#

those multiple complicated events need to happen

hushed smelt
#
1.
Board 3V to sensor VIN (red wire)
Board GND to sensor GND (black wire)
Board SCL to sensor SCL (yellow wire)
Board SDA to sensor SDA (blue wire)
2. 
Board 3V to BNO085 Vin (Red Wire). 
Device GND to BNO085 GND (Black Wire)
Device RX to BNO085 SDA (Blue Wire)
Board 3V to BNO085 P0 (Purple Wire).
#

give me a little bit to think about it.

vagrant cairn
#

ok

#

alr, ill try too

#

If we keep the scl connected for the rvc mode, even though its not required, will there be issues?

hushed smelt
#

is the BNO the adafruit breakout board or a standalone chip?

vagrant cairn
#

ada

hushed smelt
#

which one because there are 2

vagrant cairn
#

bno085

#

4754

#

if the scl can stay and it will be benign, then it will make it super easy to do

hushed smelt
#

oh nvm there's an 085 and 055

vagrant cairn
#

yes

vagrant cairn
hushed smelt
#

is this to change the operating mode?

vagrant cairn
#

yes

#

from i2c to RVC

hushed smelt
#

so you really only need to pull PS0 high to switch between I2C and UART

#

are you against an external switch or is this for a custom PCB?

vagrant cairn
#

custom pcb

vagrant cairn
#

iirc thats what it says

hushed smelt
#

the pins in red are UART RX/TX

#

on the pico they share the same pins sometimes as I2C and SPI

vagrant cairn
#

ooh

#

thats good idea

hushed smelt
#

so you just have to use one of those pins, and flip it in software

vagrant cairn
#

but that doesnt work

#

cause sda lines up with Tx not RX

#

but even with these 2 changes only, i guess switch is prob easier, how does the wiring for the switch work??

#

the diagrams look kinda complesx

hushed smelt
#

yeah easyeda's diagrams for switches are kinda horrible and confusing

vagrant cairn
#

like are they interchangable, or not?

hushed smelt
#

that i'm not sure, i haven't experimented with the pico enough to know for sure.

vagrant cairn
#

also ur diagram is diff than mine

hushed smelt
#

hmm i got it from a 3rd party site and looks old, might be outdated.

vagrant cairn
#

ok yea

#

but as long as the scl can stay connected, its just a matter of rediction which is not that hard,

#

how does wiring for this work?

hushed smelt
#

actually it's the official adafruit reference card

#

god i hate the way switches are laid out in easyeda

#

the direction the latch is pointing is normally closed for 5, normally open for 1

vagrant cairn
hushed smelt
#

2,3,4 are for power input, where your power comes from

#

5 and 1 are the switch

vagrant cairn
#

so do i connect 3v3 to 2 3 and 4

hushed smelt
#

why there are 3, i don't know.. and it's confusing and bad

#

yes

vagrant cairn
#

Ok that makes sense, and where do i connect the common stuff??

hushed smelt
#

5 can go to sda and 1 to tx if you want

vagrant cairn
#

oh oh oh

#

where does input lead go

#

prior to switch

#

and then i would need 2 switches right??

hushed smelt
#

also if you can spare the GPIO i would use a separate pin for sda from the pico and tx from another pin

#

will make your life a little easier if you have spare GPIO to use for whatever you want so you don't have to try to use 1 pico pin dual purpose.

vagrant cairn
#

yea thats what i want anyway,

#

but this switch where does the input go

#

input as in prior to direction ing

hushed smelt
#

oh right you're not just switching data lines you have a power cut involved too

supple pollen
hushed smelt
#

yeah the way easyeda has switches is horrible even for something simple like spst

vagrant cairn
#

are there any fork switches

#

that just take a common and route it depending on the toggle

hushed smelt
#

maybe a transistor would work automatically but i don't know how to do transistors yet :/

supple pollen
supple pollen
#

That's not a switch, that's a relay. It's what is known as a "Form C" type, in which the switch portion corresponds to a SPDT switch

vagrant cairn
#

so is this an spdt switch

supple pollen
#

That does appear to be an SPDT rocker switch

vagrant cairn
#

ah

#

and i guess 1 of those is input, other is out 1 and out 2?

supple pollen
#

That appears to be an SPDT toggle switch

vagrant cairn
#

and is this the wiring?

supple pollen
#

You can use the common terminal as either an input (with two switchable outputs) or as an output (with two switchable inputs). Switches can be thought of either which way, depending on what they're doing in your circuit.

vagrant cairn
#

i need something to fit on the PCB

supple pollen
#

Those pictures don't show a scale, so anything I would say about the sizes would be guesswork.

vagrant cairn
#

how is this

#

sdpt

hushed smelt
#

one thing i usually do is go through lcsc to find a part i like then input the manufacturer part # into easyeda

#

kinda like browsing digikey, it's very similar

vagrant cairn
#

alr

#

these seem like good solutions, but i need something small enough for pcb

hushed smelt
#

and sometimes you can find the same exact part on digikey, order the board from jlcpb, get the part from digikey, and assemble it yourself.

supple pollen
#

The manufacturers provide nice diagrams (this is a C&K 7101 series PCB mount SPDT switch)

vagrant cairn
#

nice

#

those are too big though for the pcb

supple pollen
#

You may want some other style of switch if you need something smaller.

vagrant cairn
#

what are smaller options

#

i need something that can :"fork"

hushed smelt
#

here's one i recently used in a project: K3-1280S-K1

supple pollen
#

How about this Alcoswitch DIP mount one?

vagrant cairn
#

actully really well

#

i would need 2 of them right, one for sda and one for 3v3

supple pollen
#

Would you want to switch them together, or individually?

vagrant cairn
#

togehter, but they have different destinations

#

and different inputs

supple pollen
#

Then you might want a DPDT switch instead (double pole, double throw), which operates two electrically separate sets of contacts with a single actuator

hushed smelt
#

that would work

vagrant cairn
#

nice

#

what would go where?

supple pollen
#

That's not a very clear diagram, so again it would be guesswork

hushed smelt
#

problem is easyeda parts library doesn't even recognize spst or dpdt finding switches is a nightmare

#

so are battery holders because china has a completely different naming convention

vagrant cairn
#

yea also i think these dpdt thigs are too big for a pcb

hushed smelt
#

what we know as AA or AAA batteries they call like size 4 or size 5 kind of thing

#

so i usually shop on digikey for parts. the manufacturer part number is usually the same if lcsc carries it

vagrant cairn
hushed smelt
#

and if lcsc carries it then they'll have a footprint you can more easily use inside easyeda

vagrant cairn
#

on lcsc?

hushed smelt
#

yeah i'm looking for you

vagrant cairn
#

alr thanks much!

hushed smelt
#

through hole or smd?

supple pollen
vagrant cairn
hushed smelt
#

are you going to have jlcpbc assemble it or will you?

vagrant cairn
#

i dont wanna pay them

#

cause they cant even do it

hushed smelt
#

through hole it is then

vagrant cairn
#

ok ..

supple pollen
#

Dimensions on that one

vagrant cairn
#

inches?

supple pollen
#

Inches, followed by mm in parentheses

vagrant cairn
#

k

supple pollen
#

So it's 0.283 inches or 7.2mm long

hushed smelt
#

use the footprint from kpelltier

vagrant cairn
hushed smelt
#

yes it's a user contributed part but the footprint is good and you can buy the part from digikey to assemble on the board yourself

hushed smelt
#

i've contributed many adafruit footprints of parts. 😉

#

not all user contributed footprints are good though, you kinda learn from experience which ones are going to work and which ones people just guessed while trying to make.

#

so that's how i design with easyeda, make pcb's with jlpcb, and use digikey parts to assemble myself 😉

#

notice the manufacturer part # on digikeys website is the same as the part jlcpcb and easyeda use

#

sometimes might take a couple tries to find one that both use

vagrant cairn
#

can i leave the 3v3 blank for the non short, or do i need to ground it

hushed smelt
#

any pin that you're not going to actively use you green X as non-connect (NC)

#

the X should be in your wiring tools panel

vagrant cairn
#

like that??

hushed smelt
#

yes, needs to exactly be on the end of the pin or it'll show up as an unrouted net when you go to make the board file

#

it'll complain if it's not actually connected to the end of the pin

#

here's a recent design where i didn't use a bunch of pins

vagrant cairn
#

im getting net lable not connected

hushed smelt
#

i didn't have to fork like you do

vagrant cairn
#

for p0 short, even though its done

hushed smelt
#

drag the one connected to the SW1 to the right a little

#

when connected properly a green line should automatically drag a little

vagrant cairn
#

still an i ssue

hushed smelt
#

i always drop the nets onto the pins then drag the label out to ensure it's connected with a green line

vagrant cairn
#

nvm gopt it

hushed smelt
#

just a matter of figuring out what makes easyeda happy 🙂

vagrant cairn
#

now im getting this

hushed smelt
#

it should show in the left pane with yellow exclamations which nets are not connected that it expects to be

#

if you click on them it'll zoom you into the spot that needs attention

vagrant cairn
#

thatrs on the pcb

#

btw

#

not the schematic

hushed smelt
#

ah ok in board view do an update, that'll import the changes you make in schematic view into board view

#

design>import changes

vagrant cairn
#

still there

#

i did that

#

its dixeds

#

nvm

hushed smelt
#

in schematic view doing design>update pcb is the same as when in board view doing design>import changes. both do the same thing just from different places.

vagrant cairn
#

just had do do it 3 times i n each place???

hushed smelt
#

in schematic view you want to ensure all your nets are completed first before trying to update pcb. it won't let you update the pcb with disconnected nets, so it forces you to fix stuff in schematic view first. it's honestly a better way to go so you know the stuff you're working with in pcb view is good to go.

twin hedge
#

Maybe all I should need is a decent processor and 16GB of RAM. I still can't find anything about the performance requirements though.

unreal flax
#

There might not be a strict requirement, it'll just... run slower on a slower CPU.

supple pollen
#

Usually such things are run on TPUs or GPUs. If you want to run it on a CPU, I'd suggest a pretty powerful board such as a BarrelEye or Raptor.

unique flare
#

Would anyone have recommendations on a smd MCU that can send UART and have 4+ (i think)PIO? I'm wanting to use it as an in-between for controller buttons & a bluetooth module. Unfortunately the IO on the BT I'm wanting to use doesn't support what I need, so UART is the only solution. I'm trying to keep everything as small, low profile, and low power as I can in order to reduce battery drain.

#

The controller has a 3.3v or 5v pin I can use

#

inexpensive is a plus, too

unique flare
supple pollen
#

UART is the circuitry that does it, the protocol is asynchronous serial

distant raven
#

The nRF52840 can handle buttons just fine

#

Has a good ADC if you’re doing joysticks

#

Fairly easy to solder modules available (you need a stencil and solder paste)

unique flare
#

This is actually for bluetooth audio. How difficult would that be to set up?

distant raven
#

NRF52 support Bluetooth audio

supple pollen
#

I take it that Bluetooth module uses serial for control and gets the audio stream separately, as I doubt squirting audio over an asynchronous serial link would work well.

distant raven
unique flare
#

Yeah, the FSC-BT802 does have separate input for audio

hushed smelt
#

I thought the only module that supports BT classic is the ESP32 classic?

#

Supposedly BT classic might be coming to the Pico W.

crude ocean
#

I presume bluetooth before the low energy spec, stateful connections!

hushed smelt
#

BT classic is BT streaming audio. Otherwise BT is mostly BLE data only. BLE doesn't have enough bandwidth to do audio so there's a big distinction.

#

Any BT that can stream audio is referred to as BT classic and pretty much everything else is BLE.

#

There are only like 2 microcontroller types out of thousands that will actually do BT classic and they come with caveats like you have to disable Wifi on the module to do BT classic. It's all in the fine print.

#

It's why DIY headphones using microcontrollers aren't a massively popular thing. Like you can build your own BT keyboard and that's a very popular thing to do but those use data only and only need BLE. Audio is a whole different ballgame because BT classic is a heavily licensed technology, kinda like HDMI has licenses but BT is locked down much harder. It's why the Pico W possibly getting BT classic support is such a major deal, like that's a big deal for makers. 😉

#

If Pico W gets BT classic support and it works well the amount of DIY headphone projects will be off the charts. Makers have been waiting like a decade for it. Yes there are BT classic boards out there but not easy to work with like the Pico W is.

twin hedge
twin hedge
#

So I think an NXP i.MX6 ULZ would work for the processor. What chip would work for RAM?

unreal flax
#

Looks like it supports DDR3.

twin hedge
#

Now that I think about it, power also has to be taken into account. A high-power USB Device can receive a maximum of 5V at 0.5A, so I'll have to power the processor, the RAM, eMMC or microSD Card, etc.

unreal flax
#

You can get more with USB-PD if the source supports it.

twin hedge
#

I'm not sure if a normal computer would though.

#

Also, where can I find DDR3(L) chips on DigiKey?

distant raven
#

Search dram

unreal flax
#

Note that to get 16GB you're going to need to use a bank of multiple chips.

distant raven
#

And also keep in mind that these require matched length routing

#

And probably at least 6L

supple pollen
#

And likely controlled impedance

twin hedge
distant raven
#

Better than 64 of them using the cheaper modules

#

There’s these but they are $45 for a single

#

So you’d spend.. a lot of money

twin hedge
unreal flax
#

Generally they'd be connected in parallel, so the same voltage as one chip but more current.

distant raven
#

The imx6 supports only up to 4GB of RAM too because it’s 32Bit

#

So be mindful of that as well

twin hedge
distant raven
#

Probably an iMX8 since it’s 64bit

#

I would definitely suggest not trying to go this route. It’s going to be extremely difficult and expensive, especially compared to other options. I understand the ambitions (I’m working on a phone that’s using the iMX8 currently) and it’s hard. The routing especially is very critical to these things operating properly. The mistakes are expensive too. When people develop SBCs, they will usually spend $1000 or more just for a working prototype because of how hard this is. Not to mention the time needed. Experienced teams of 3-5 people spend months working on these.

#

I’m not trying to be a downer, but there are better, cheaper, and less frustrating routes to go than building an SBC from the ground up

supple pollen
#

The goal is a portable, battery powered ChatGPT box?

vagrant cairn
#

how much power can a VBUS pin on pico put out?

distant raven
#

Probably something made for AI and ML like an NVidia Jetson

#

Or doing what @supple pollen suggested and using an accelerator with a raspberry pi like the Coral

twin hedge
distant raven
vagrant cairn
supple pollen
supple pollen
#

It depends on the USB power bank (and the quality of the USB cable). Some of them will supply a couple of amperes.

distant raven
twin hedge
#

I guess I'll move to something else then.

distant raven
# twin hedge I guess I'll move to something else then.

I just want to make sure you manage your own expectations properly. It’s definitely possible to make an SBC for this but it will take a lot of time and money to achieve. More than you’d spend configuring your own local server that you can interface with over your home network for instance.

#

Plus you’d likely need to spend a bit of time refining the skills necessary to route the high speed signals for the RAM and other interfaces.

twin hedge
twin hedge
#

Now that I think about it, does anyone know any Xtensa processors besides the ESP32 that can run Linux?

vagrant cairn
#

small servos

#

also will JLCPCB assembly put adafruit stuff on my PCB?

twin hedge
supple pollen
supple pollen
distant raven
#

Looks like they’re mostly used by companies like Espressif

#

Actually it looks like Espressif is the only company to have used the Tensilica Xtensa architecture in a widely available product 🤔

#

Also TIL that Cadence owns Tensilica

supple pollen
tulip topaz
unreal flax
twin hedge
#

I'm going to at least attempt my project. What i.MX8 processor would be best?

worldly schooner
#

Have you tried a smaller variety of GPT? I believe it’s possible to run GPT-2 on a Pi 4.

twin hedge
worldly schooner
twin hedge
#

Thanks.

worldly schooner
#

Just curious, @twin hedge how much pcb design experience do you have?

worldly schooner
twin hedge
worldly schooner
#

How much budget do you have to spend on SBC development?

twin hedge
worldly schooner
#

But you know how expensive this endeavor can be?

worldly schooner
#

Alright, if you have that much financial liberty, I guess I’m not in any place to tell you otherwise. Just make sure you hit all the bases with running GPT locally on a traditional computer before scoping out a board layout.

#

The single-board computer design is mostly uncharted territory for most of the professionals here, even.

distant raven
#

Yeah, you likely will need to use the application’s engineering support from NXP if you want an evaluation of your design

worldly schooner
#

Will NXP even provide application engineering support without a company and a sales forecast behind the project?

distant raven
#

Maybe not

#

Could try their support forums

#

I also have serious doubts that an SBC could offer the performance necessary to effectively run these AI work loads.. GPT-2 maybe..

worldly schooner
#

Gpt2 has been done, technically anyways. Anything more than that probably needs a dedicated server or cloud hosting.

distant raven
worldly schooner
#

Ah, right. Pretty sure that doesn’t match the pi 4 performance.

distant raven
#

I know GPT-2 can run on Broadcom chips but those are heavily restricted under NDA and minimum purchase requirements

#

I had read somewhere someone wanted to purchase $1m in Broadcom chips and that wasn’t enough to get access to documentation

#

It makes me wonder what the minimum order is to get access to their documentation and support

#

It might have been an anecdotal story

flat vigil
#

I've found datasheets for the broadcom peripherals and the GPU