Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
kid sinister
Nov 16, 2002

His Divine Shadow posted:

I added some 1uf capacitors and I got a slight hiss, that's about where I started out, it was like real bad last night so it's an improvement but a static hiss again. I tried different cables and one stereo to mono jack gave a hiss free sound.

Then I also found that one cable that's stereo works one way, but not the other. One end of that cable uses a metal bodied jack, the other is plastic. If I put the metal bodied jack into the phone I get no hiss. I double checked the channels and everything is connected correctly, no accidental stereo to mono.

Do you have a ground loop?

Adbot
ADBOT LOVES YOU

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.
I'm not sure, how would I determine that?

LimaBiker
Dec 9, 2020




Rocko Bonaparte posted:

Does somebody have a recommended method for homebrew PCB's or should I just get them fab'd?

Toner transfer works with solid reliability here. I use iron (3) chloride etchant just because it's always available in the lab where i work.
Benefit compared to getting boards made is that you can design your board in the morning, and have the circuit board the same afternoon. When i have the design, the whole process from printing to having a finished board takes 30-45 minutes for a single sided board. Double sided is a whole other can of worms, DIY'ing via's is no fun.

Quality of the board houses is almost always better than what you do yourself. But i want things quickly so i still do my own boards.

LimaBiker fucked around with this message at 08:08 on Feb 14, 2024

babyeatingpsychopath
Oct 28, 2000
Forum Veteran


Rocko Bonaparte posted:

Does somebody have a recommended method for homebrew PCB's or should I just get them fab'd?

For single- or double-sided that fit in the work envelope, the various 3018 CNC routers work pretty well. Etching works well, too.

Shame Boy
Mar 2, 2010

LimaBiker posted:

Toner transfer works with solid reliability here. I use iron (3) chloride etchant just because it's always available in the lab where i work.
Benefit compared to getting boards made is that you can design your board in the morning, and have the circuit board the same afternoon. When i have the design, the whole process from printing to having a finished board takes 30-45 minutes for a single sided board. Double sided is a whole other can of worms, DIY'ing via's is no fun.

Quality of the board houses is almost always better than what you do yourself. But i want things quickly so i still do my own boards.

Toner Transfer is definitely the easiest to get going if you already have a laser printer and works well enough, yeah. I've moved on to UV but it's definitely more fiddly, needs more stuff to do it and has a lot more variables to adjust. But yeah the only benefit is you can get your board in like two hours instead of a week, and if you can wait a week then getting it fab'd is better 100% of the time.

Rescue Toaster
Mar 13, 2003

Rocko Bonaparte posted:

Does somebody have a recommended method for homebrew PCB's or should I just get them fab'd?

Yeah there's no way this is worth the effort anymore. Especially considering what you can get for like 25 cents per board and $20 shipping (queue up a couple boards to spread that out if you like, but even paying full shipping every single time is worth it). Even 4 layer boards have gotten so cheap I almost don't even bother with 2 layer anymore, unless the board is very large and would make 4 layer prohibitively expensive.

If nothing else, the proper solder mask makes SMD soldering so much easier, the frustration alone is worth it. Add in stuff like having a silkscreen, lining up vias and holes on a 2 layer board, etc.... no loving way.

Rocko Bonaparte
Mar 12, 2002

Every day is Friday!
I'm pretty amazed by that. I never did my own PCB and my memories of it go back to classmates doing senior projects in college something like 20 years ago. So I figured I was going to have a miniature meth lab going on to prototype some stuff.

I'm just making a board to reroute pins for the Jumperless breadboard and various microcontrollers and microprocessor projects I have here like an ESP32 board I want to use, some older and newer Raspberry Pis, and some other things. So I was assuming I'd need a 2-layer just for worming stuff around. Now I get screw around in KiCAD for the first time.

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe

His Divine Shadow posted:

I'm not sure, how would I determine that?

If the phone is being powered by a charger and the charger is grounded separately from the stereo, that's a classic ground loop. You can also have AC ground loops where maybe there's not a physical connection back to ground but there's some stray capacitance between your phone or your cable and ground.

My experience with ground loops has been that they pick up power line hum more than static though. The best example I can think of is my car, where the line-in connector is between the seats and I keep my phone charger in the cigarette lighter connector in the dash. Each of these has its own local ground but the phone winds up being part of a huge ground loop and picking up a lot of alternator whine and ignition noise. The only way to get good sound is to unplug the phone from the charger.

LimaBiker
Dec 9, 2020




It all depends on how fast you want to iterate your designs. It's really satisfying to just have a completely finished prototype in a single day.

If you design a double sided board with a very limited amount of bottom traces (that will become jumper wires if you etch the board yourself, or get fabricated as normal if you order the board somewhere) you can easily try it out. The CAD stuff takes much more time than making a board.

The amount of lab stuff you need is limited. My first tiny boards i did in a 500ml beaker of etchant sitting on the lab hot plate with a stir bar in it. Only recently i made an actual etching tank that fits an eurocard, from some laser cut polycarbonate. Aquarium air pump and a glass rod i blew some holes in to bubble air through it. The etching solution stays warm enough for the time needed, so it doesn't have heating.

I never bothered with UV exposing transparencies, because i often only need a single board. Using the transparancies makes it easier to create larger numbers, but if you need larger numbers i'd just order them.

I have also been thinking about laser ablating etch resist, since we have a laser cutter (for plastics and wood) at work. That would be absolutely fantastic.

LimaBiker fucked around with this message at 18:29 on Feb 14, 2024

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
Home etching your own boards has flipped from "this is how you get started into the hobby, but few experts will do it" to "ONLY experts will do it, you really have to know you want to do it"

Charles Ford
Nov 27, 2004

The Earth is a farm. We are someone else’s Ford Focus.
Yeah, I etched my own boards a few times (using ammonium persulphate I think it was, it was much better than the "standard" acid because you could actually see through it and also it turned an extremely pleasant blue after use) and I would not recommend it to anyone. I only did it as I was a penniless electronics hobbyist about 20 years ago and though singlesided was manageable, doublesided was a nightmare (though I did get them to work) and every board you make looks incredibly home made.

Instead just spend like $25 and get incredibly professional looking boards.

ryanrs
Jul 12, 2011

custom 2-layer boards have the same NRE and turnaround time as custom vinyl stickers

Bad Munki
Nov 4, 2008

We're all mad here.


Big thanks to the thread for helping me with my greenhouse project a little while back. It’s coming along, and I’m getting pretty dang close to a wrap, here.

The board itself:


And the ridiculous back side that nobody will ever see, especially once installed, but I love the extravagance:


Assembled (edit: pre-solder, apparently) with the socket for the rpi zero that’ll sit above the majority of the components:


An enclosure I drew up, it has mounting holes and some areas that are fully enclosed to separate all the 120VAC parts from any foreign objects and such, acting as safety baffles. I dunno, seemed like a good idea.


Everything installed, power runs in through one end there, and there’s a slot at the other end for external connections (fans, lights, sensors, etc)


Super tidy, I love it


Everything seems to be working, the pi is happy, I can control the lights when I hook them up, even seem to have gotten the polarity right on the screw terminal for the light dimmers there. Even the weird fan connectors I had to order from a guy in a trench coat behind the ihop are perfect.

The only known issue is that when I dim the lights to zero, they aren’t shutting completely off, which is different from my breadboard proof, but I thiiiiink I might know what’s going on there and if I’m right, it can be addressed by leaving one specific capacitor off the board. Hopefully. If not that, then I think swapping the resistors for a different value may do it.

Anyhow, like I said: thanks, y’all! Super jazzed with how this went.

Bad Munki fucked around with this message at 02:34 on Feb 15, 2024

Cory Parsnipson
Nov 15, 2015
^^ Congrats on finishing it! Looks pretty slick in the enclosure and all.

https://www.youtube.com/watch?v=AF8d72mA41M

I saw this Veritasium video about blue leds. The story of how Shuji Nakamura invented it is pretty cool (too bad he got shafted by a company) and he's got a somewhat detailed explanation of how the physics work.

So apparently blue leds are a really recent thing?? Like only-easily-available-in-the-1990's recent. Occasionally I wonder why I never got pretty blue ones as a kid, but it never occurred to me that maybe they actually didn't exist back then.



I gottem now though...

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.

Charles Ford posted:

Yeah, I etched my own boards a few times (using ammonium persulphate I think it was, it was much better than the "standard" acid because you could actually see through it and also it turned an extremely pleasant blue after use) and I would not recommend it to anyone. I only did it as I was a penniless electronics hobbyist about 20 years ago and though singlesided was manageable, doublesided was a nightmare (though I did get them to work) and every board you make looks incredibly home made.

Instead just spend like $25 and get incredibly professional looking boards.

I made my own board once and I would probably do it again if I needed to because there's something about me that dislikes buying services.

ANIME AKBAR
Jan 25, 2007

afu~

Rescue Toaster posted:

Anyone have micro grabbers they're happy with? I've had various of the cheapo ones from aliexpress that work-ish but have slowly driven me mad or injured me.

I was considering the Pomona 72902 set (About $271 for 12 or 22 bucks per grabber).

I guess I could try a set of these: https://www.amazon.com/SDK08-Ultra-Small-Micro-Adapters/dp/B0B4DHVDRV

I have this set: https://www.amazon.com/Grabber-Probes-Silicone-Jumper-Analyzer/dp/B0BCNVSM1F which is functionally the same but without the grips. I've found the pin/connector side to be really annoying and not make good contact or stay in place on normal female pin headers or the like. Maybe with something that has more like a machined IC socket. I tried to solder a wire onto one and it doesn't want to hold, not sure what the coating is.

This page has a good breakdown of some options: https://sigrok.org/wiki/Probe_comparison
I think Pomona quality has gone downhill in recent years. Like they changed plastics and now their poo poo just melts at room temperature.

Recently I picked up a set of these from ProbeMaster. Haven't tried the micro grabbers but the rest is very good so far: https://probemaster.com/8000-series-test-lead-master-kits/

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.

Stack Machine posted:

If the phone is being powered by a charger and the charger is grounded separately from the stereo, that's a classic ground loop. You can also have AC ground loops where maybe there's not a physical connection back to ground but there's some stray capacitance between your phone or your cable and ground.

My experience with ground loops has been that they pick up power line hum more than static though. The best example I can think of is my car, where the line-in connector is between the seats and I keep my phone charger in the cigarette lighter connector in the dash. Each of these has its own local ground but the phone winds up being part of a huge ground loop and picking up a lot of alternator whine and ignition noise. The only way to get good sound is to unplug the phone from the charger.

Yeah it's definitely not that kind of hum, I know that one. I do think the phone is doing something fucky, seems with the right connector it might work. Need to test it in the car again.

Lemniscate Blue
Apr 21, 2006

Here we go again.
I have an AC adapter with a USB-C output (this one) that seems to have stopped charging. I bought it at the end of November so I may be able to persuade Anker to replace it if it really is completely broken.

I also have a multimeter, but I'm not sure if I'd be taking my life into my hands testing it without knowing exactly what I'm doing.

I could buy a dedicated USB-C tester that would be easier to use but is there a way to use a multimeter without electrocuting myself? I haven't found any useful videos (my usual go-to for things like this) but I might not be using the right keywords.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
You won't electrocute yourself on 5V, but also, you won't be able to hit USB-C contacts with a multimeter. Do you have any other USB-C devices?

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.

His Divine Shadow posted:

Yeah it's definitely not that kind of hum, I know that one. I do think the phone is doing something fucky, seems with the right connector it might work. Need to test it in the car again.

Success! Or so it seems like for now. I noticed the static noise started and stopped despite the phone being plugged in, happened when switching apps or going into settings, times when the sound was likely off. So I got pretty convinced the reason for the noise is the android software and the auto-impedance matching I hear it does. I believe it simply couldn't figure out the right match because this was no headphone, it was now hooked into the amplifier input of a car stereo. Probably not at all what it was expecting.

The solution turned out to be to put two 100 ohm resistors in series with each channel, along with the 1uf capacitors.

Why 100 ohm, it's what I had around. I had some higher resistance too but I have a gut feeling a lower value is better or I would likely be attenuating the signal too much. I think adding the resistors make it more like connecting to a pair of head phones so the phone can do a proper match. This is all pulled out of my rear end however.

Zero VGS
Aug 16, 2002
ASK ME ABOUT HOW HUMAN LIVES THAT MADE VIDEO GAME CONTROLLERS ARE WORTH MORE
Lipstick Apathy

Lemniscate Blue posted:

I have an AC adapter with a USB-C output (this one) that seems to have stopped charging. I bought it at the end of November so I may be able to persuade Anker to replace it if it really is completely broken.

I also have a multimeter, but I'm not sure if I'd be taking my life into my hands testing it without knowing exactly what I'm doing.

I could buy a dedicated USB-C tester that would be easier to use but is there a way to use a multimeter without electrocuting myself? I haven't found any useful videos (my usual go-to for things like this) but I might not be using the right keywords.

You can buy a USB-C "trigger" for $6 or less than that if you look around: https://www.amazon.com/JacobsParts-Voltage-Trigger-Module-Adjustable/dp/B08NWG1B3M/

They are little adjustable thingies that will plug in to your USB-C Anker Power Supply, and tell it what voltage they want supplied, which you can then verify by tapping your multimeter to the pads.

a USB-C power delivery (PD) supply like that Anker is supposed to be able to supply 5v, 9v, 12v, 15v, and 20v as requested by the receiving side, which is what those triggers do. Those triggers are good to have in general because you can use them to add power ports to all kinds of things.

ryanrs
Jul 12, 2011

Lemniscate Blue posted:

I have an AC adapter with a USB-C output (this one) that seems to have stopped charging. I bought it at the end of November so I may be able to persuade Anker to replace it if it really is completely broken.

I also have a multimeter, but I'm not sure if I'd be taking my life into my hands testing it without knowing exactly what I'm doing.

I could buy a dedicated USB-C tester that would be easier to use but is there a way to use a multimeter without electrocuting myself? I haven't found any useful videos (my usual go-to for things like this) but I might not be using the right keywords.

Tell Anker: "I tried it with a different cable and different phone, and it still won't charge. Please replace."

No way do they want you to poke it with a multimeter and try to debug it yourself.

kid sinister
Nov 16, 2002
I just realized my Rigol scope has an Ethernet port on the back. What the hell is that for?

Charles Ford
Nov 27, 2004

The Earth is a farm. We are someone else’s Ford Focus.

kid sinister posted:

I just realized my Rigol scope has an Ethernet port on the back. What the hell is that for?

If it's really ethernet and not them just recycling an RJ45 socket for something weird (which seems more common the more "enterprise" some equipment is) it might let you remote control it, including seeing the screen, possibly requiring some software you don't have access to.

The ~1990 HP logic analyser I have was available with a network card I haven't managed to acquire yet (occasionally they pop up on eBay for twice the price I paid for the machine with probes - but occasionally a machine pops up with the card in it for about the price I paid, so I might get that for spares too. Particularly since the cards in the "mainframe" are interchangeable), and if you have that, it starts an X server so you can access it remotely like it was a Unix app, and control all the functionality from the comfort of your PC.

If it's not ethernet it might just be a port for reflashing the microcontroller or something even weirder.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

kid sinister posted:

I just realized my Rigol scope has an Ethernet port on the back. What the hell is that for?

You can control it by sending it UDP commands.

I use this script basically weekly to grab screenshots:
https://github.com/rdpoor/rigol-grab


I also did some complicated scripting once, alongside an embedded device I was developing to get a whole bunch of data with different configurations.

kid sinister
Nov 16, 2002

ante posted:

You can control it by sending it UDP commands.

I use this script basically weekly to grab screenshots:
https://github.com/rdpoor/rigol-grab


I also did some complicated scripting once, alongside an embedded device I was developing to get a whole bunch of data with different configurations.

You mean I don't have to fiddle with a thumb drive to do a screen grab? I could kiss you.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
I trigger it from across the room, even.

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.
Hey finally installed in the car, turned out looking real well. Aux input next to cigarette lighter. Now if I'd find where I put that last plug so I can cover up the unused button space.

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.

kid sinister posted:

I just realized my Rigol scope has an Ethernet port on the back. What the hell is that for?

Controlling the device. There is probably some kind of GPIB over Ethernet functionality implemented, that you can use if you find the documentation.

Shame Boy
Mar 2, 2010

His Divine Shadow posted:

Hey finally installed in the car, turned out looking real well. Aux input next to cigarette lighter. Now if I'd find where I put that last plug so I can cover up the unused button space.



Looks real good, neat!

Rocko Bonaparte
Mar 12, 2002

Every day is Friday!
I'm trying to sort out typical ESP32 pinouts. I think this Whadda board is following fairly typical ESP32 pinouts:

https://cdn.velleman.eu/downloads/25/prototyping/manual_wpb109.pdf

But holy JPEG artifacting, Batman! It's gross to see it on there. Something I'm trying to figure out is if some pins are set aside for flash memory and can't be normally used. I've seen this come up before. I've also seen those pins come up for UART.

Look at this image for an example showing them that way:
https://www.teachmemicro.com/wp-content/uploads/2023/12/ESP32-pinout-diagram.jpg

What confuses me is that I usually see UART1 pins all in that area, (RX1, TX1, CTS1, RTS1). However, I'll see RTS2 and CTS2 taken over as well, which just seems kind of strange. Also, UART0's CTS and RTS pins compete with VSPI ports. Yes, I know these ESP32 ports are very flexible but I was trying to keep stuff together that's labelled together.

Edit: Do these ESP32 pins that are set aside mix a bunch of SPI and UART stuff together? I guess I see SPI roles for those pins too.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
Use this page:

https://randomnerdtutorials.com/esp32-pinout-reference-gpios/


There's a table down there with a much better description for which pins can be used for what.


For things like the native SPI port - Unless you're on the bleeding edge of what the ESP32 can do, it literally doesn't matter. You pass it the pins you want in software, and the internal crossbar switch will handle it. I vaguely recall that if you're trying to maximise the speeds on QSPI, then using the native ports matter, but there are few other cases. Don't worry about it.

Skinnymansbeerbelly
Apr 1, 2010
gently caress it, I'll ask here too: anyone got a rec for magnifying & lighting headgear that doesn't suck, but also doesn't break the bank? I'm having trouble telling the Tx from the Rx with this 2mm tall silkscreen text. Ready to go full dork.

Zero VGS
Aug 16, 2002
ASK ME ABOUT HOW HUMAN LIVES THAT MADE VIDEO GAME CONTROLLERS ARE WORTH MORE
Lipstick Apathy

Skinnymansbeerbelly posted:

gently caress it, I'll ask here too: anyone got a rec for magnifying & lighting headgear that doesn't suck, but also doesn't break the bank? I'm having trouble telling the Tx from the Rx with this 2mm tall silkscreen text. Ready to go full dork.

I have not used this brand but this is probably what you want, this visor design has been used by jewelers for a century: https://www.amazon.com/Dilzekui-Magnifier-Rechargeable-Magnifying-Optivisor/dp/B0C7LNGKLP/

They just stuck a USB-C rechargeable LED array on top and it seems to be angled correctly. No reason that shouldn't work fine.

Skinnymansbeerbelly
Apr 1, 2010
Alright, I skimmed the datasheet (pgs 15-16) but I still don't understand: on an ESP32-C6, what is the difference between the UART and the LP UART, and then between I2C and LP I2C?

kid sinister
Nov 16, 2002
I'd like to gripe for a second about rubber wiring.

Back in the 1940s before we had decent flexible plastics, cloth covered wire gave way to the first flexible total coverage material to cover wire: rubber! It worked great!... for a few decades. By now, it's hard, inflexible, cracking, falling off and dangerous. These days, it's best to replace said wires one at a time or, if you're lucky, slide heat shrink down the length and shrink those little suckers. If you enjoy monotony, you'll love replacing rubber wiring.

OK, gripe over.

Cojawfee
May 31, 2006
I think the US is dumb for not using Celsius

Skinnymansbeerbelly posted:

Alright, I skimmed the datasheet (pgs 15-16) but I still don't understand: on an ESP32-C6, what is the difference between the UART and the LP UART, and then between I2C and LP I2C?

Looks like it is low power, which means it works when the chip is in low power mode. I assume the other UARTs and I2C things do not work when set to low power mode.

taqueso
Mar 8, 2004


:911:
:wookie: :thermidor: :wookie:
:dehumanize:

:pirate::hf::tinfoil:

Skinnymansbeerbelly posted:

Alright, I skimmed the datasheet (pgs 15-16) but I still don't understand: on an ESP32-C6, what is the difference between the UART and the LP UART, and then between I2C and LP I2C?

I'm guessing based on a quick skim of the family datasheet but I think LP stands for Low Power, available in some situation when the others are shut down.

ryanrs
Jul 12, 2011

kid sinister posted:

I'd like to gripe for a second about rubber wiring.

Back in the 1940s before we had decent flexible plastics, cloth covered wire gave way to the first flexible total coverage material to cover wire: rubber! It worked great!... for a few decades. By now, it's hard, inflexible, cracking, falling off and dangerous. These days, it's best to replace said wires one at a time or, if you're lucky, slide heat shrink down the length and shrink those little suckers. If you enjoy monotony, you'll love replacing rubber wiring.

OK, gripe over.

Yeah, that's why you can't use SOOW rubber cord inside walls. Rubber deteriorates pretty quickly.

So what's a good 100-year insulation? I expect modern PVC will be cracked and brittle by then. Maybe PVDF?

Adbot
ADBOT LOVES YOU

PDP-1
Oct 12, 2004

It's a beautiful day in the neighborhood.

ryanrs posted:

So what's a good 100-year insulation? I expect modern PVC will be cracked and brittle by then. Maybe PVDF?

At work we have a couple of rolls of teflon coated wire that are supposedly surplus from the Apollo program. The wire itself looks like it could have been made yesterday but the tin rolls it comes on are very obviously old and have 1960s-ish style design. One of our old engineers bought it at an auction then gave it to the lab before he retired and nobody has used it because nothing we work on is cool enough to warrant breaking into the moon wire stash.

I'm on vacation right now but if anyone cares remind me after the 15th and I'll post some pics when I get back.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply