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
Cyril Sneer
Aug 8, 2004

Life would be simple in the forest except for Cyril Sneer. And his life would be simple except for The Raccoons.
I want to implement a low-pass filter with a non-linear/arbitrary group delay. That is, I specifically want to delay slower frequencies by a different amount than higher frequencies. There's lots of stuff out there on the group delay properties of different filters, but I'm not having much luck finding anything on how to specifically design for a desired group delay response. Any suggestions?

Adbot
ADBOT LOVES YOU

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
You could go for the all out general filter design theory. I think cameron's book has a section on group delay.

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe
You'll probably have better luck finding material on designing filters with a given phase response rather than group delay. Group delay for a given frequency is just the slope of the phase response at that frequency, so if you take your group delay function and integrate it, you get a phase response function you can plug into a filter design method.

Stack Machine fucked around with this message at 18:20 on Dec 16, 2020

Forseti
May 26, 2001
To the lovenasium!
How many different bands do you need? Could you do something like band pass a signal at different cutoffs and run each band through separate delay lines?

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
I found a book in my collection that has a chapter on designing filters with arbitrary phase response. I don't understand it well enough to sum it up, and the book describes everything very clumsily. It is also in German : "Synthese elektrischer netzwerke und filter" by Unbehauen.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

FISHMANPET posted:

So let me preface this with the fact that I have no idea what I'm doing but the best way for me to learn something new is to just dive in to the deep end with a project that's way over my head.

So I saw this at a conference and I'm a little obsessed and I'm going to build my own, following the (incomplete) instructions: https://github.com/martinwoodward/DasDeployer. My confusion is all about the components and not the Raspberry Pi part, so I assume this is the best thread for that sort of thing.

I think between the parts list, the diagram, and the recorded talk (I'm the one in the video that got to push the button!) I basically understand what's going on. The slide and the talk include some things that he would like to change if he did it again, so I'm skipping the 12V/5V power supply and replacing it with one that just outputs 5V. Another note that I don't quite understand related to power is the idea for an "External USB Battery input as alternative power" but I'm not sure what that means. The PSU he used output 7A at 5V and I found a PSU that does 7A at 5V, but I'm not sure if such a battery exists that will output that kind of amperage that could then be charged via USB.

Also gonna try lay this whole thing out with a breadboard first, and also try and implement the "pull down resistors for LEDs" while I'm at it.

Like a year ago I started this, and got some useful information here, but the pandemic and lockdown and work from home hit, and I couldn't really get the enthusiasm to work on a project that was for a bunch of people gathering together in a room, and I dropped it for a while.

Well, I'm picking it back up, and I've got another (hopefully) simple circuit question.

The whole point of this is just an elaborate rube goldberg machine to push a button and send a signal, but it's all about show and ceremony. I want to control power to the device with a key. I've got a keylock, the CK-L12B. I want my device to not power on unless the key is inserted and turned (and the key can't be removed when it's on, so using the device will require the key). If the key is turned "off" I want that to cut the power. The simplest way I could do that (I think) is to put my keylock inline with the +5V coming directly off the power supply, so when it's in the "off" position it just breaks the circuit, and putting it in the on position completes the circuit, like this:


But my switch is only rated for 3A, and I my PSU outputs up to 5A. I suspect I'm well under 3A of current draw right now, but I haven't done all the math, and I might also be in the future adding additional components to this that might push me over 3A, so I'd like to not do the inline route.

Based on earlier experience using a mosfet to trigger an LED (you can see by looking at my post history) I'm thinking I might be able to achieve this with a mosfet? I'm imaging something like, while current is flowing through my toggle key switch, it signals the mosfet to allow current to flow into "the thing." I made a lovely diagram, but obviously not knowing what specifically should be wired into what, or even if this is the right path, it's obviously not very detailed.



I've found some information on using mosfets to toggle power using a momentary switch (press the button, power is toggled on, press the button, power toggles off) but not using a toggle switch like this. Maybe this can't be done with a single mosfet, and I need something like this instead?

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
The sane solution is to get a keyswitch that is rated for 5A.

With the kind of fun project you have, I would look for a nice loud and big old fashioned relay.

Foxfire_
Nov 8, 2010

Switch a GPIO and power the thing from a normal battery/wall wart hidden inside it.

Have the actual mcu powered normally/practically and treat all the presentation/flashy stuff as IO. That's both easier and gives you more freedom to do fancy effects. You can have a flashing light labeled 'MAIN POWER' without it actually being related to power. You could do things like have 'power' be a big chunky knife switch, or have to turn keys simultaneously if the inputs don't actually do anything to make the circuitry work

(If you do just want to use that 3A switch with a 5A power supply that you never overdraw, put a 3A fuse in front of it)

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe
Agreed that big clunky relays look cooler, but if you want to use a MOSFET, use a P-channel logic level power FET and use this circuit:



The switch will only need to pass half a milliamp if you do this so it'll last practically forever.

Stack Machine fucked around with this message at 03:33 on Dec 22, 2020

Cojawfee
May 31, 2006
I think the US is dumb for not using Celsius
I would also suggest a big clunky relay if you want it to be showy and preposterous.

Forseti
May 26, 2001
To the lovenasium!

Foxfire_ posted:

Switch a GPIO and power the thing from a normal battery/wall wart hidden inside it.

I would do this, if I'm understanding correctly your proposed plan means you have to wait for the Pi to boot up? And then it also gets a hard power cut at the end? You really don't want hard power cuts with SD cards, they work by erasing huge (relatively) blocks when you have to change some data. You also don't really want to use a journaling filesystem on one, so there's a high chance of data corruption.

If you want to use the switch on the power, I'd probably just ignore the rating and use it anyway in this case to be honest. I can't imagine you'd be using anywhere near 3A sustained (my official power brick for the Pi 3b is only 2.5A), let alone 5A. And since you're supposed to be in the room with it, if it does catch on fire it's part of the show, right? :v:

Edit: You can of course throw a 3A fuse inline with it if you're concerned

Forseti fucked around with this message at 22:12 on Dec 16, 2020

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
There's a separate button that will actually "shutdown" the pi, so I'd use that before cutting the power with the key. The primary reason for the key is to provide some (tiny) semblance of security, since the button would deploy software to our environment, I don't want anybody to just grab the box and start doing stuff (there's other things in software I can do to prevent this so the key isn't my only line of protection). The Pi itself won't draw anywhere near 5A, but I've got 7 LED switches, a 20x4 character backlit lcd display, and a couple of NeoPixel ring lights. Still I'm guessing nowhere near 3A, but I may add more to the system in the future (earlier this year in this thread I discussed adding some additional rotator switches with some LEDs).

I might put this all together without the switch being functional, but at least order the parts to play around with that kind of circuit in the future, so I can get some semblance of done. I've got N-mosfets but no P-mosfets...

Forseti
May 26, 2001
To the lovenasium!
Ahhhh, I see, I interpreted your diagram to mean that the LEDs and such were getting their power from the GPIOs (and therefore be limited to somewhat low currents) and the 5V supply would just be going straight into the Pi.

Stack Machine knows waaaaay more about electronics than I do so I'm sure there's a reason I don't know about but I think you could put an N-type on the USB port's ground side and use it to sink the current from the circuit rather than source it with a P-type?

I. M. Gei
Jun 26, 2005

CHIEFS

BITCH



I’m getting back into electronics now that COVID has given me enough free time to actually learn and do poo poo with it. Is the Hakko FX888D still considered a good go-to soldering station, or should I think about dropping a bit more cash on a Weller/Cooper thing?

I. M. Gei fucked around with this message at 05:46 on Dec 17, 2020

Mrenda
Mar 14, 2012

Forseti posted:

If synths sound like fun to you that would be a great place to start I think. Get yourself a 4046 PLL and jump on in. Oscilloscopes are awesome but expensive if you're not sure you'll stick with it. For an audio synth though, you can probably get away with using a sound card as an oscilloscope since you'd be looking at audio frequencies mostly in such a project.. I'd get a cheap USB one so you don't have to worry so much about damaging it by feeding it too much voltage though.

Here's a hackaday series of articles on just such a project if it sounds like a fun one to you: https://hackaday.com/2015/08/07/logic-noise-4046-voltage-controlled-oscillator-part-one/

Shame Boy posted:

If you're into synths a classic place to start is building an Atari Punk Console, which is just two 555 timers that output various square waves:

https://sdiy.info/wiki/Atari_Punk_Console

It's easy as heck to get running (you can do it on a breadboard), uses dirt-cheap common parts, and it makes fun beepy boopy sounds. Then you can have fun tweaking various components to see what happens, etc.

That page has tons of links in the references to a bunch of different ways to build it / guides / etc.

Jumping in on Cheese Thief's question about learning for audio-making stuff, if I wanted to get together all the pieces necessary for four or five projects, without having to pay €6 shipping on each IC I need for the next project, and to get me up to speed right at the very start, is there a list anywhere of what I should be getting first off to start up (including the inevitable practice I need with cock ups.)

Immediately I know I need a;
Soldering station
Flux (of some size)
Wire Strippers
Pliers
Wire (of some size)
Breadboard (of some size)
Resistors (of various sizes)
Potentiometers (of various sizes)
Batteries
Something to connect the batteries
Perfboard
And the ICs (which I don't even know which ones I do need.)

That's a lot to put together without some guidance, never mind what I left out and filling in all the "various sizes" with actual specifics. There's no electronics shop within 200 miles of me, so realising I need something involves ordering a small piece at hefty price with a delay in shipping.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

I. M. Gei posted:

I’m getting back into electronics now that COVID has given me enough free time to actually learn and do poo poo with it. Is the Hakko FX888D still considered a good go-to soldering station, or should I think about dropping a bit more cash on a Weller/Cooper thing?

Yeah, it's solid

poeticoddity
Jan 14, 2007
"How nice - to feel nothing and still get full credit for being alive." - Kurt Vonnegut Jr. - Slaughterhouse Five

I. M. Gei posted:

I’m getting back into electronics now that COVID has given me enough free time to actually learn and do poo poo with it. Is the Hakko FX888D still considered a good go-to soldering station, or should I think about dropping a bit more cash on a Weller/Cooper thing?

The Hakko is great. My personal iron is the older analog model and the one you linked is the model I have at work. Years of use on both and zero complaints.

kid sinister
Nov 16, 2002

Mrenda posted:

Something to connect the batteries

Battery holder. If you're just testing, get one that holds more batteries than what you need. It's fairly simple to connect up your croc clips and test leads to the springs inside to get the voltages you need.

kid sinister fucked around with this message at 06:55 on Dec 17, 2020

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe

Mrenda posted:

Batteries
Something to connect the batteries

I'll start with this because it's an easy question. If you're getting started with analog audio and don't want to spend the money to get a benchtop power supply of some kind, a 9V battery and a bunch of 9V battery clips will serve you well. Op-amps, transistor amplifiers, 555s and their ilk, comparators like the LM339, will all be quite happy at 9V. Nothing digital will, but using a cheap linear regulator to get to 5V or 3.3V from 9V isn't totally out of the question either.

If you're more interested in digital audio synthesis/processing than analog that's a different can of worms and really the main thing I'd recommend is a nice cheap FPGA board like a lattice icestick. Those have a 3.3V pin you can use to power another chip or 2.

As for what chips you'll want to have on your bench, high fidelity analog audio processing is all about op-amps. Really, just find some cheap quad op-amps, TL074 or whatever. For most circuits they'll be interchangeable. Get some comparators too if you want to do synths. They show up everywhere in oscillator-type circuits.

kid sinister
Nov 16, 2002

Stack Machine posted:

9V battery and a bunch of 9V battery clips

Fun fact: 9V batteries daisy chain. Somebody link the 9V series welder video.

Cojawfee
May 31, 2006
I think the US is dumb for not using Celsius
I wish I knew more about opamps. I never got to mess with them because my professor kept cancelling class.

KnifeWrench
May 25, 2007

Practical and safe.

Bleak Gremlin

FISHMANPET posted:

There's a separate button that will actually "shutdown" the pi, so I'd use that before cutting the power with the key.

Would it be feasible to add a solenoid that prevents the key from turning while the Pi is running? I know it's overkill, but I'm swept up in the ludicrously impractical spirit of your project.

Forseti
May 26, 2001
To the lovenasium!

Mrenda posted:

Jumping in on Cheese Thief's question about learning for audio-making stuff, if I wanted to get together all the pieces necessary for four or five projects, without having to pay €6 shipping on each IC I need for the next project, and to get me up to speed right at the very start, is there a list anywhere of what I should be getting first off to start up (including the inevitable practice I need with cock ups.)

Oh man, I hate to say it, but I am not the most organized person and frequently fail to get everything I need in one order myself :D

I think your list is actually pretty good, one tip I've got if you want to get yourself a nice stock of passives (resistors, capacitors, etc) the E series of preferred numbers are the "standard" values that you'll most likely see in designs and will also tend to be less expensive than values not in the series. A couple months back I ordered 100 of every resistor in the E12 series from 0.1 up to 10M (IIRC) from lcsc.com in 0805 package for not a ton of money. I got a bunch of capacitors too varying between E3 and E6 numbers depending on where I was in the range (capacitors get relatively expensive as you go up in capacitance). Inductors you probably don't need to keep on hand but they are useful in audio circuits so you may want to get a spool of magnet wire to make your own in arbitrary values

It looks like the project is dead now, but the hackaday article I linked has an associated hardware project on github: https://github.com/hexagon5un/klangorium. Might be worth poking around the project and seeing if there's a BOM (Bill of Materials) that lists all the components it uses as a starting point.

Foxfire_
Nov 8, 2010

Mrenda posted:

Shopping List
(Assuming you are mostly looking at through hole things since the perfboard is on there)

22-28 AWG are good general purpose wire sizes. You will probably want solid for connecting things on perfboard and stranded if its connected to stuff that moves.
PVC insulation is cheaper, but burns more. Teflon won't melt/burn as much if you overheat it with a soldering iron
Multiple colors are nice for organizing

- You can get books of a few hundred of all E series through hole resistors for $5 or so
- Flush cutters. They have angled blades so that you can cut pins without leaving pointy bits
- Some form of multimeter if you don't already have one
- A mat to work on unless you've already got a bench you don't care if gets burned by an iron
- A brass wool thingy for cleaning soldering iron tips
- Brand name solder wick if you want to get solder off stuff
- Tweezers

Mrenda
Mar 14, 2012

Foxfire_ posted:

(Assuming you are mostly looking at through hole things since the perfboard is on there)

I put the perfboard down because I thought through hole stuff was the standard for "at-home" projects. If that's not the case then I need to be enlightened. It was simply that everything I saw in the videos I watched had people testing on a breadboard then putting it onto perfboard, and that seems like the route to go at the beginning.

Cojawfee
May 31, 2006
I think the US is dumb for not using Celsius
If you're using breadboards to test, then through hole stuff is what you'll want. I need to buy an SMD kit to see if I'm any good at it, then I'll use SMD components for a project I'm working on.

Foxfire_
Nov 8, 2010

Mrenda posted:

I put the perfboard down because I thought through hole stuff was the standard for "at-home" projects. If that's not the case then I need to be enlightened. It was simply that everything I saw in the videos I watched had people testing on a breadboard then putting it onto perfboard, and that seems like the route to go at the beginning.
Through hole is best for starting out. Surface mount PCBs are within hobby range, but its extra skills and time lag to get stuff shipped from china.

If you're gonna use solderless breadboard, get a kit of precut, stripped, and bent jumper wires in a bunch of colors. Those are also cheap and convenient.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

Foxfire_ posted:

Through hole is best for starting out.

Kinda disagree. Largish pitch surface mount tends to be a little easier, because it's all on the same side of the board that you're soldering on, and doesn't try to get away from you. Looks more intimidating than it is!


All of it's easy though, I've never seen anyone have problems when they have proper gear and have read the "soldering is easy" web comic

Shame Boy
Mar 2, 2010

ante posted:

Kinda disagree. Largish pitch surface mount tends to be a little easier, because it's all on the same side of the board that you're soldering on, and doesn't try to get away from you. Looks more intimidating than it is!

Yeah but you can't (easily) use stuff like perfboard with surface mount, you'd have to either etch your own boards or send them off to get them made. Learning a whole electronics CAD program is kinda a big barrier to entry for someone who just wants to plug some stuff into a breadboard and make a beepy boopy 555 circuit or whatever to see if they like this hobby. I mean they'd need to learn it eventually but eh might as well get them building something first before you get bogged down in layout n' poo poo.

Once that's no longer really a problem yeah I agree SMD is way easier than thru-hole and I almost exclusively use it these days.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
Totally fair

KnifeWrench
May 25, 2007

Practical and safe.

Bleak Gremlin

Foxfire_ posted:

Teflon won't melt/burn as much if you overheat it with a soldering iron
Teflon is a trademark, for the benefit of the newbies. PTFE is what you'll see on generic stuff.

quote:


- Flush cutters. They have angled blades so that you can cut pins without leaving pointy bits
Note that said pointy bits will fly away at high velocity in marginally predictable directions. Safety goggles are a better idea than my personal habits would indicate.

Regarding perf board: Adafruit's perma proto series is the best in the biz, IMO. They're laid out in the same rows and columns as a solderless breadboard, so you can transfer your design once you've tested and tweaked it.

Forseti
May 26, 2001
To the lovenasium!
Is there much practical difference between PTFE/Teflon and silicone insulated wires? I remember I used PTFE at my first job when making prototypes but I've been using silicone for my own projects lately. The insulation is definitely thicker on the silicone but I don't know if that's generally the case or just for the particular wires I'm comparing in my head. I etch my non-trivial prototype PCBs these days, the thinner wires are very nice for making them on perfboard though.

Foxfire_
Nov 8, 2010

Silicone is noodlier than PTFE and has to be thicker to get the same voltage isolation. I think there's also some solvent compatibility differences if you're gonna dunk them in motor oils. Silicone is also usually more expensive I think

Forseti
May 26, 2001
To the lovenasium!
Good to know, thanks. I just grabbed silicone when I got tired of the PVC insulation on the wire I had on hand melting back when soldering. For whatever reason silicone was what first popped into my head to grab, but I never really considered the differences between PTFE and silicone. The noodliness makes it great for things like twisting together a pair to make a power lead, but PTFE being thinner makes prototype boards a lot easier if you have a lot of connections to make.

tuyop
Sep 15, 2006

Every second that we're not growing BASIL is a second wasted

Fun Shoe
If I have a meat thermometer with a leave-in probe that's broken, what would I do to replace it? These things all have the same probe jack and Amazon has them in stock for a pretty high price. Is this a standard part I can grab from Digikey or something? I don't really know what they're called and kind of need it more regularly than Ali Express would support.

Sagebrush
Feb 26, 2012

It's probably just a thermistor or thermocouple inside the metal tube, but no way to know what kind exactly without opening it up and no those aren't really standard parts. The thermistor will be but I doubt those things are made for disassembly.

If you need them regularly, order a bunch in bulk from aliexpress so you always have some at hand?

Forseti
May 26, 2001
To the lovenasium!
The main bit is called a thermocouple and is a standard class of part but there are different types within that class. I've also never seen them with a TRS (aka 3/8" phono) connector like that or the metal stabby bit around it. The ones I see tend to look like this: https://www.amazon.ca/Connector-The...8333511&sr=8-25.

Do they break frequently? Can you tell where they break? I probably wouldn't mess with the part that gets stuck into food but you might be able to patch a broken part of the lead or replace the connector.

PRADA SLUT
Mar 14, 2006

Inexperienced,
heartless,
but even so
Anyone have a take on a desktop pick-and-place? Looking to spend less than $5-6k. Was looking at the CHMT36VA.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
Really want one, but have repeatedly done the cost/benefit analysis and there's no way I can justify it as anything other than a shiny toy

Adbot
ADBOT LOVES YOU

Dominoes
Sep 20, 2007

Knurling has been building tools for Rust; I just switched the remainder of my tooling to it. It's been making steady progress; I'm abandoning the quickstart I posted earlier for this. Compared to my prev setup with OpenOCD, ITT printing etc, it's a better experience; the printing and panic handling is more like a multi-level logging (Similar to Python's logging module, but without the config), and fast, since it's done on the host, vice the MCU. Also uses tricks to turn stack overflows into something more manageable.

This stuff works with ARM MCUs like STM32 and nRF, but YMMV on others. If you're curious, I think the instructions on the page I linked will be enough, regardless of your prev experience.

Dominoes fucked around with this message at 17:58 on Dec 20, 2020

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