askelectronics

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Funkster, in Mixer makes loud pop when powered on

When powering up a sound system, the power amps always get turned on last so that clicks and pops from upstream devices don’t get to your speakers!

minticecream,

Yep, seconded. Those older mixers all do that. Power on your amps after powering on your mixer.

JTode,

-i live in the country, power outages happen, I cannot reliably prevent things from turning on all at once.

-my other mixers make noise when turned on, but they are not loud enough to kill speakers; even so I do try to turn things on in the proper order. This one is dangerously exceptional and won’t be used if this can’t be fixed.

Besen,

There are timing relays for under $50 that can delay the power to the amps for a few seconds. You just need to buy a 230V model (for input and switch) that has the current capacity for your sound system.

XTL, in How to solve power supply whine with continuous dimming LED?

It might be doing the PWM in software somehow, making it useless for this kind of control.

You could see if there’s some other class or library or option or particular pin that can use a pulse generator or timer to do PWM instead.

I’m not really familiar with the exact environment but that’s just what comes to mind.

Faceman2K23, in Electrolytic Caps and Vacuum/Pressure
@Faceman2K23@discuss.tchncs.de avatar

Not too sure about the vacuum effects, I suspect the electrolytics wouldn’t last long as they are built to handle a certain pressure then pop to vent in a controlled manner in the event of failure. The positive pressure under operation is also likely to inject liquid refrigerant into the components and into layers of the PCB and such, that cant be good for any of it, that would definitely kill capacitors by displacing and or dissolving the electrolyte fluid.

As for the longer term, I know that pretty much all of the phase change fluids you would likely use act as pretty strong solvents in their liquid states, so I doubt the hardware would survive terribly long.

There are immersion cooled computer systems using an inert liquid like Perfluoro(2-methyl-3-pentanone) but that is a different process to phase change refrigeration.

cmnybo, in How to solve power supply whine with continuous dimming LED?

Try adding a large, low ESR capacitor across the power rails on your board. Preferably a polymer electrolytic if you have some.

nucleative,

Thanks for the idea, I’ll give this a try but have to go and get some

draz, (edited )

Caps are definitely the first thing to try. To add on, the higher your frequency, the smaller caps you’ll need. At 10kHz you’ll need around 200uF of decoupling but at 50kHz you’d only need around 40uF. The smaller capacitance means you can find caps with better ESR, or just fit into a smaller space in general.

The drawback of higher frequency is that you’ll be charging and discharging the gate of the MOSFET more often, which could mean heating it up and hitting thermal limits quicker. There’s also a tradeoff within the MOSFET itself between low on-resistance and lower required gate charge - for slow switching you can find a FET with low Rds and high gate charge since youd be switching less often, but for very high frequency applications the amount of energy you put into charging and discharging the FET (mostly since the FET will spend a longer time in its linear region) can outweigh the savings of the lower resistance. Yay tradeoffs!

nucleative,

Thanks for typing this up! This helps me understand a lot more about what is going on.

I may have purchased too large of cap for the first try: 470uF. I bought it online so still waiting for arrival. I’ll get some in the 40uF to 200uF range for more testing

draz,

470uf should be fine - bigger is almost always better, except if you sacrifice higher ESR for it in an application that requires lower ESR. It’s pretty common to combine a large cap with higher ESR (like an Electrolytic or tantalum) with low ESR ceramic caps. That way the large cap can handle the high speed bulk C while the smaller cap can handle the high speed stuff and switching edges.

Did you make sure the cap you picked out was rated for the voltage you are working with? For hobbyist stuff it’s usually a good idea to heavily derate voltages, to avoid blowing things up. For example, if I was working with a 24V power supply, I wouldn’t nab a 25V cap; I would spring for a 35V (or even a 50V if I’m feeling particularly paranoid). You’ll see derating like this commonly in commercial applications, and extremely frequently in military/aerospace applications.

As a rule of thumb you should always derate by at least 20%, then increase to 100% depending on how much ripple or switching the cap will see. For this application I’d probably want to derate to at least 50%

sramder, in How to solve power supply whine with continuous dimming LED?
@sramder@lemmy.world avatar

What’s limiting your PWM frequency? You want it above 25 KHz so it’s outside the range of human hearing.

nucleative,

I think the limitation is my own knowledge of this LEDC library. When I run it with the frequency value of 25,000 it doesn’t output anything on my GPIO pin that I can detect with my multimeter.

sramder,
@sramder@lemmy.world avatar

I’m reading the docs and it seems capable of running up into the MHz range although at higher frequencies the duty cycle resolution is reduced. Although I wouldn’t expect most multimeters to detect a frequency that high, anything should pick up the voltage.

Do you get an error on the serial monitor? It should report if the frequency/duty-cycle range you’re requesting isn’t possible.

E (196) ledc: requested frequency and duty resolution cannot be achieved, try reducing freq_hz or duty_resolution. div_param=128

benzmacx16v, in Housing for resistor?

You can get panel mount resistors. They are usually rated at way higher wattage though.

I would probably just heat shrink the resistor. Your harness should be reasonably secure anyway.

I would question why you need a 2.2ohm 1/2w resistor in a harness in the first place though.

thisisawayoflife,

To fool the computer into not throwing an airbag light and disabling all the airbags. I have an early 00s car that swings double duty as street car and track car and when I pull the driver’s seat out for a race seat, the airbag light shows up. Then I go through a rigamarole to reset the light once everything is swapped and plugged in again. It’s a common mod, but just people usually cut up the harness. I’d like to keep things neat and tidy so I bought the seat side of the harness and want to cut the plug off, solder on the resistor and plug it in.

Number1SummerJam, in Housing for resistor?
@Number1SummerJam@lemmy.world avatar

Look for a higher quality resistor? There will definitely be something in your range that is made for durability.

cmnybo, in Housing for resistor?

You can get small project enclosures to put them in. Some PVC pipe and end caps could also work.
I would probably just use some good quality, adhesive heat shrink if they are out of the way though.

remotelove,
@remotelove@lemmy.ca avatar

Adding on to this line of thinking, maybe a thin plastic tube and epoxy to encase it with the solder joints. (Bonus points for using thermal epoxy, since it is a resistor after all.)

I have seen Bigclive on YouTube encase resistors and a diode rectifier in standard epoxy for use in lighting, so heat probably won’t be an issue now that I think of it.

thisisawayoflife,

This is intriguing and I’m going to think about this.

remotelove,
@remotelove@lemmy.ca avatar

I tried finding the video, but I cannot.

It’s the same concept as potting PCBs with black epoxy. Of course, it helps to be aware of heat sensitive components but China never cares about that.

Google for Epoxyseal 9000, if you want something proper.

SomeoneSomewhere, in 30 UV led circuit

Do you have a datasheet/part number for the LEDs, or at least a picture and diameter?

Because battery voltage reduces over time, the LEDs will get dimmer as the battery drains fairly quickly. If possible, running it off a mains plugpack (e.g.12V like for a router or external hard drive) would be good.

An example UV LED has a forward voltage of nominally 3.7V. Two in series on a 12 (8x1.5V) supply gives us 12V-(2x3.7V) =4.6V to drop across the resistor. We want ~15mA, so need a very roughly (V/I =R) 4.6V/0.015A=300 ohm resistor.

When the battery is nearly discharged, at 1.1V/cell it will be 8.8V, giving 1.4V across the resistor and V/R=I 1.4V/300ohm= 4.7mA.

So you would connect each pair of LEDs as:

BAT+ RES +LED- +LED- -BAT all in series. Like this.

You’ll need another 10 300 ohm resistors for 15 total, one per pair of LEDs.

MissJinx,
@MissJinx@lemmy.world avatar

Its a 5mm LedThis is the tech info

SomeoneSomewhere,

Three in series per 300 ohm resistor would be OK with those.

MissJinx,
@MissJinx@lemmy.world avatar

Thank you ao much! I’ll Try!

nothacking, in 30 UV led circuit

You could connect the LEDs in 5 strings of 6 parallel LEDs, each string with it’s own 100 ohm resistor. You will need a significant amount of voltage for that, at lest 7x the threshold voltage of the LEDs

MissJinx,
@MissJinx@lemmy.world avatar

Its a 5mm Led

This is the tech info

Do you think 6 AA batteries would hold?

Hagdos,

AA batteries can supply plenty current, the question is for how long.

You need about 1.3 Watt for 30 LEDs (I’m assuming 15 mA, 3V). A rechargable AA battery has about 2.4 Wh according to Wikipedia, so 6 AA batteries will last you 2.4Wh * 6 / 1.3W = 11 hours.

I have no idea how curing works, but 1.3 Watt feels very low. That amount of power is fine for visual lighting, or for signals (turn on a TV), but energy wise it’s very little.

JoCrichton, in RPi Pico "disconnects" after a few minutes to days

Do you have a pull up on the DHT20? If not that could explain the reliability issues. 4.7k is needed according to the datasheet.

Not too familiar with the RPi Pico but you might need to disable the internal pull ups if you do that but they are likely too weak so I wouldn’t rely on them.

agressivelyPassive,

I looked it up here: aqicn.org/air/sensor/spec/asair-dht20.pdf (I guess that’s the same datasheet you used)

There it says:

To avoid signal conflicts, the microprocessor (MCU) must only drive SDA and SCL at low level. An external pull-up resistor (for example: 4.7kΩ) is required to pull the signal to a high level. The pull-up resistor has been included in the I/O circuit of the DHT20 microprocessor.

This sounds to me like it’s already present in the package? I also haven’t seen any tutorial using any resistors (though that may be just an “error” made by all of them to keep it simple).

JoCrichton,

Yeah on that specific board it looks like it’s included . I was just going from experience. I just wired such a sensor to an Arduino the other day and I was having problems without the pull up. I was seeing garbled data packets on the data line.

edit: you can easily confirm this by measuring the resistance between VCC and Data on the sensor.

dgriffith, (edited ) in RPi Pico "disconnects" after a few minutes to days

Perhaps slightly adjust your logic a little and see what it does.

Read from the sensors first, then enable and connect to wifi, send the data, then disconnect. That would reduce the maximum power draw as only one function is active at once.

Small edit: I have a MagTag ESP32 board with circuitpython that can’t read onewire devices while the wifi is active. Whether that’s because of supply instabilities when wifi is transmitting, or interrupt conflicts, or just plain poor programming in the onewire drivers or the wifi drivers, I don’t know. But reading the devices first and then connecting to wifi and sending the data afterwards works.

agressivelyPassive,

I tried that. The loop was:

  1. Read sensor
  2. Prepare message
  3. Wifi on
  4. Send message
  5. Wifi off

That should nicely separate everything, but it still ran into similar issues.

dgriffith, (edited )

Hmm I’m not sure of the pin drive currents on the Pico, but can you power the sensors off a pin? At least then you can programmatically power cycle them if you need to.

The Pico also has a watchdog, you could set it up to give it a reboot if things don’t respond in time. It doesn’t solve the issues of course but at least it gets it back to a workable state. And if the watchdog fails, or it works but there’s still no USB serial, then that would point towards power instabilities or somesuch.

agressivelyPassive,

can you power the sensors off a pin? At least then you can programmatically power cycle them if you need to.

Not really, at least I wouldn’t really know how. The sensor needs +3V, GND and two data pins, and the pico only has one 3V out, that seems to connect directly to the voltage regulator. I guess, I could try to use a GPIO pin as a switchable 3V out, but that seems rather hacky.

The Pico also has a watchdog, you could set it up to give it a reboot if things don’t respond in time. It doesn’t solve the issues of course but at least it gets it back to a workable state

Unfortunately, a simple machine.reset() seems not to be enough. I didn’t use “real” watchdogs, but what a Java dev knows: try/catch. I wrapped the entire loop in a try/except block and simply call machine.reset() if something goes wrong. That does work sometimes, but not always. Of course the possibilities are a) some exception isn’t getting caught b) there is some electronic issue, maybe the SPI interface to the DHT is “stuck” or not properly reset. I can resolve the problems by completely disconnecting the device for a while from power.

drwho, in RPi Pico "disconnects" after a few minutes to days

I had something similar happen in one of my ESP8266 projects (also running MicroPython). What I wound up doing was, every five wall clock minutes (maybe a bit sooner than that, for your case) I had my firmware do a local_networks = wifi.scan() just to exercise the wifi functionality. If that failed I have the code do gc.collect() followed by sys.exit(1), which causes the 8266 to reboot automatically.

Give that a try.

agressivelyPassive,

I’ll give it try!

Do you have any idea, what’s causing the issue? Is it specifically the scanning part that’s relevant here? I’m starting/stopping wifi each minute, so the chip shouldn’t just idle around all the time.

drwho,

No, I don’t. My best informed guess is that the wifi connection’s state machine gets stuck once in a while, it misses a couple of packets, and then sits there doing nothing. So, by kicking it a little it doesn’t get a chance to freeze up.

agressivelyPassive, (edited )

I “kind of” solved at least parts of the problem by simply not turning wifi off. It’s more stable than before, but not stable as such.

Edit: I played around a bit and I think the problem is somewhere in the power supply. My workbench PC can drive the board just fine for hours, just plug it into the USB port, connect serial monitor and let it do its thing. However, if I’m plugging it into my router or a usb power supply, it stops working after a while again.

My theory is, that the PSU/router thinks the device is dead, because it draws too little power? That would explain, why not shutting down wifi improves the stability - it draws more power.

Now, that is just my naive theory, I’m not entirely sure, how to validate it. Maybe I’ll just add a useless busy-loop to increase power draw or add some power consuming components.

BigDanishGuy, in Calibrating vintage multimeter

Easy, you import this puppy www.ebay.com/itm/305042665748 and set up your own business offering calibration services to recoup the cost. Then you can apply for the calibration engineer position at Minerva.

Jokes aside, have you contacted a calibration lab? I don’t know what it’s going to cost, but I can’t think of another way, if you’re not going to built the sources yourself. There’s one in the Netherlands www.minerva-calibration.com/calibration-service/

It would seem from a quick google that I’m not alone in my conclusion. But at least I have found an article explaining the build of the sources you need wolfalex.bplaced.net/…/calibrator.htm

irdc,

have you contacted a calibration lab? (…) There’s one in the Netherlands www.minerva-calibration.com/calibration-service/

Their pricing for calibrating a device starts at around €400, which is rather more than I paid for this thing and way more expensive than building my own calibrator. So I guess I’ll have to do that…

(…) I have found an article explaining the build of the sources you need

Thank you! Not having to invent everything from scratch is going to make this a lot easier.

BigDanishGuy,

400? I guess that’s in the ballpark I expected it to be.

I haven’t studied the BOM for the DIY solution, but something tells me that you’ll only be able to keep the cost lower than 400, if you value your time at close to zero.

With all that negativity out of the way, I’d definitely want to build it myself too. Although my anxiety level is exponentially correlated to the working DC voltage and at 300VDC I’m definitely well in the thick rubbergloves territory. Be careful with the build!

irdc,

my anxiety level is exponentially correlated to the working DC voltage and at 300VDC I’m definitely well in the thick rubbergloves territory.

Having been walloped by 230VAC, which is far more dangerous, I’m not too worried.

Looking at the schematic you linked above, the amperage is going to be low, which is reassuring. As a safety measure, I’m looking into running the thing off of a battery, so that if the worst comes to pass it simply won’t have the power to be dangerous (1A at 12V translates to a mere 40mA at 300V).

I’d be far more worried about using lead solder TBH (love my Sn100Ni+).

BigDanishGuy,

Having been walloped by 230VAC, which is far more dangerous, I’m not too worried.

Well hello there Mr Edison, I didn’t realize the calendar read the 1880s again, please refrain from elephant ownership 😀 First off if you’ve got 300V I don’t care what form it’s in, I ain’t sticking my fingers anywhere near it! Secondly at least AC alternates, giving your muscles a break and possibly a chance to let go of the wire, DC isn’t that forgiving. The reason 230V AC is so dangerous is because it’s usually referenced to ground, meaning that if you touch a single wire, you’ll be drawing a current from that point and to your feet.

But that is all theoretical, because while 300V is stored, and the current may become quite high, it’s only backed by 100nF. Still, I’d want it discharged before poking about though.

The battery is a good precaution. Some of my co-students in university made an EKG apparatus. Our lecturer demanded that anything connected to the electrodes was to be powered by a single battery.

I’d be far more worried about using lead solder TBH (love my Sn100Ni+).

I may be a boomer in this regard, and I’m sorry for the rant I’m about to go on (that last part of the sentence was tagged on after writing the following). I prefer my Sn60Pb40 of which I got several kg from when it was outlawed, maybe throw in a little Ag in there for the 0.3mm SMD solder. TBH my love of lead solder may stem from the fact that I have more, in various diameters, than I’ll ever use.

The first couple of lead free solder brands I got just didn’t flow right. It didn’t help that the solder stations it was to be used with at work, by students, was old school Weller stations that just delivers a constant 24V AC to the iron, and the tips set the temp. All the tips we had were at a temp comfortable for lead solder.

But I digress… if you just wash your hands after soldering (and maybe use a bit of ventilation) then your absorption of lead is harmless ehs.harvard.edu/…/soldering_safety_guidelines.pdf

irdc,

Secondly at least AC alternates, giving your muscles a break and possibly a chance to let go of the wire, DC isn’t that forgiving.

Interesting. Your comment made me read up on all of this. Note that, since Vrms = 1 ÷ √2 × Vpeak, 230VAC has a Vpeak of 325V, so in that respect, it should be pretty much equivalent to 300VDC. I figured that the ability for AC to induce heart fibrillations was the most dangerous factor in all of this, but I hadn’t figured in that DC induces tetanus and can also temporarily stop the heart.

It’s not the volts that kill you though, it’s the amps (the volts just make it easier). I found a table listing the effects of various amperages. It does present DC as generally more safe when compared against 60Hz AC, but I’m not sure how that generalises to the 50Hz AC we have here. I do conclude however that I should be limiting the output current to something something generally safe, like 20mA (which should be fine for a voltage reference). I’m thinking a PTC at the input and being conservative wrt capacitor sizing should do it.

Some of my co-students in university made an EKG apparatus. Our lecturer demanded that anything connected to the electrodes was to be powered by a single battery.

TBH, when it comes to an EKG apparatus I’d also be worried about common mode across the chest, or the power supply having a disastrous failure mode.

I prefer my Sn60Pb40 (…) The first couple of lead free solder brands I got just didn’t flow right.

Yeah, those were horrid. Even the supposedly excellent SAC305 gave me dull joints (tough it flowed adequately). Still, I can only recommend Sn100Ni+ (supposedly closely related to SN100C): flows well and gives me the shiny joints I crave. Having a good soldering iron (I’m using a Pinecil) helps with solderability.

I do however still have some rosin core Sn60Pb40 for reworking vintage electronics. And I do agree that it’s just better when it comes to wetting ability. The peace of mind when working with lead-free solder really is worth it though, especially with pets or small children.

rstein, in Calibrating vintage multimeter

How much precision do you want to achieve?

irdc,

The device is supposedly a 6½ digit DMM yet I currently don’t even trust the first few digits when comparing it to a 3½ digit handheld Brymen DMM. Being reasonably sure that it’s at least more accurate than the Brymen would be nice, so 3½ digits.

I’ve got another desktop DMM, a 5½ digit GW Instek GDM-8255A, on the way, so I could conceivably just use that one as my local “standard” to calibrate against.

The problem however is that the Philips requires a large amount of references to calibrate against (just calibrating DC voltage requires 0V, 3V, 30V and 300V references). Building all references to recalibrate the whole thing would be rather involved, so I was trying to find an easier way.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • askelectronics@discuss.tchncs.de
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #