Thread cracked: >>2989599>I'm new to electronics. Where to get started?It is an art/science of applying principles to requirements.Find problem, learn principles, design and verify solution, build, test, post results, repeat.Read the datasheet.>OP source:https://github.com/74HC14/ohmOPbake at page 10, post in old thread>Comprehensive list of electronics resources:https://github.com/kitspace/awesome-electronics>Project ideas:https://hackaday.iohttps://instructables.com/tag/type-id/category-technology/https://adafruit.comhttps://makezine.com/category/electronics/>Books:https://libgen.is/>Principles (by increasing skill level):Mims III, Getting Started in ElectronicsGeier, How to Diagnose & Fix Everything ElectronicKybett & Boysen, All New Electronics Self-Teaching GuideScherz & Monk, Practical Electronics for InventorsHorowitz and Hill, The Art of Electronics>Recommended software tools:KiCAD 6+CircuitmakerLogisim Evolution>Recommended Components/equipment:OctopartLCSCeBay/AliExpress sellers, for component assortments/sample kits (caveat emptor)Local independent electronics distributorsladyada.net/library/procure/hobbyist.html>Most relevant YouTube channels:EEVblogW2AEWMoritz Klein>microcontroller specific problems?>>>/diy/mcg>I have junk, what do?Shitcan it>consumer product support or PC building?>>>/g/>household/premises wiring?More rules-driven than engineering, try /qtddtot/ or sparky general first>antigravity and/or overunity?Go away
>I have junk, what do?Use it to practice soldering and desoldering.
>>2996880Eyeballing the dimensions and using the density of barium titanate (which is apparently what ceramic caps are made of)...>(40cm * 20cm * 20cm) * 6.02g/cm**3 = 96.32 kgThat picture is total bullshit, there's no way she could lift that, especially not with that grip
>>2996936If you look closely you will see that they're schoolgirls practicing board assembly using painted foam blocks and Velcro to stick them on the PCB. Also, it's a drawing and nothing is real, Percy.
been fiddling with a Wien bridge oscillator today, trying to get the amount of distortion down. -80 dB THD here, a huge improvement of my previous attempt at -40 dB or soevery now and then, modulo breadboard connection crappiness, that second harmonic is down in the noise floor, so -100 to -120 dB. the trick is to bias the JFET just right so that it only has to servo the gain in a narrow gainthere's circuits that can go as low as -140 dB but I can only use parts that are roughly 0402 size in my application. this means no LDRs
>>2996943forgot the circuit
>>2996951Put another diode in anti-parallel to D1.
>>2996953no, that'll ruin the AGC function. D1 acts to pull the gate of Q1 low when the oscillator reaches a particular amplitudean earlier version of the circuit did have an antiparallel diode, but with a 1M series resistor. this was to pull the gate voltage up slowly. putting a resistor to the source of Q1 proved simpelr
>>2996936No it's not a massive PCB, rather the girls are tiny, and maybe they're even robots. As per the square cube law, they'd be extremely strong for their size, much like insects. With one on each corner, they could likely lift that QFN, but it would be more fun to imagine them wearing hard hats and directing a crane to move it into place.>>2996951Putting a resistor in series with D1 would prevent the gain changing as quickly, and would probably reduce distortion. But conversely it would reduce your amplitude control. I've never made a sine oscillator though so I'm just spitballing.I know some people make sine oscillators using an incandescent light bulb as the variable resistance, perhaps you could use a tiny thermistor? Like 0402 or 0201, so only a few milliwatts are required for it to regulate itself.Is it for a certain purpose?
>>2996958>Putting a resistor in series with D1 would prevent the gain changing as quickly, and would probably reduce distortionnope, tried that. makes things worse>I know some people make sine oscillators using an incandescent light bulb as the variable resistance, perhaps you could use a tiny thermistor?can't really do that, because I need to keep the power dissipation low. self-heating is a concern>Is it for a certain purpose?it needs to fit in a 3 mm tube (2.5 mm ID) because reasons. power and signal goes through an RG-178 coax. it's for basedence!
>>2996960Commit the circuit to protoboard just to get a baseline. I don't trust breadboards.
>>2996961yeah I just had the same thought. tomorrow
Why am I having such a difficult time finding stereo FM transmitter IC chips on Mouser? Something like the BA1404 or NJM2035. I want to take two audio channels and transmit them over FM at low power. Just like BT FM car radio transmitters.I've looked in the modulators section, the RF transmitter section, and the audio transmitter section. Do I have to have a computer generate the signal instead?I do not have a great understanding of modulation and wireless transmission. Ideally I wouldn't need to in order to use an IC chip for the job.>inb4 FCC needs license and registration for thatLet me worry about that
Volume box done. Input jack, output jack, and a headphone bypass on a switched jack.
>>2996983>Do I have to have a computer generate the signal instead?before bluetooth, there were hundreds of FM transmitter models being soldfrom super-cheap ones with fixed frequencies, to sophisticated ones with digital frequency display, and MP3 decodingi got half-a-dozen from the thift-store for around $2 eachfind 'em on ebay, tooit's ridiculous to make your own; you''ll never match the price and features
>>2997000Still worth designing if he wants anything other than the default antenna or input filtration. Maybe he wants to add an amplifier or BNC or SMA socket, or maybe he wants to ditch the high-pass input caps and transmit a DC or very low frequency audio waveform. Or maybe he just wants to optimise the design to something with a lower noise floor.I’ve got the PCB from a cheap product (inline headphone remote) inside one of my projects, but it frequently malfunctions in ways I do not understand. Even just knowing how these things are designed and what their limitations are can be very useful.On that note, if anyone can figure out what chip is inside these apple-style 3.5mm earbuds that would be appreciated. I couldn’t find anything, so now I’ll try looking into the other end, the chips behind the TRRS sockets in cell phones, to see if they describe the protocol. Maybe there’s info in the Pinephone or other open source device documentations, or maybe there’s a relevant chip name in an ifixit teardown.
I’m not exactly an expert but I can do some arduino stuff. I gutted a broken robo vacuum and want to re-use some parts. I identified and tested most but wondered if you could help identify the others and say if/how theyre usableFirst one is the suction motor. The only motor that doesn’t start to spin when I put 12V on it, tried both polarities. It has 2 large and 2 smaller wires (I think Hall effect sensor). Does this need PWM to run? No markings visible without breaking the fan off, except ‘Nidec’
>>2997034Then there is this one. Sensor seems very simple but it’s the only sensor that comes with its own complex PCB. It used to look down at the floor, it says HTW225A but that doesn’t yield any result. What could it be?
>>2997035Finally a camera with a ribbon cable. The camera itself in the housing is a small cube shaped module with zero markings. Was wondering what to connect this ribbon to, or what kind of protocol this would be using
>>2997034I'd guess that there's a motor driver on the board, and that that's a 3 phase brushless motor. The driver would be activated by talking to it via the comms wires, maybe it's I2C or SPI or UART, or just PWM or even an analog voltage. Maybe it's like a 4-wire PC fan, and one wire is tacho and the other is PWM, maybe it just needs 3.3V or 5V or whatever on the PWM pin to turn on. But I'd hold off on putting voltage on those small signal wires especially, very easy to damage stuff.By feeding it negative voltage you probably fried the driver, but it's possible you didn't. To do anything with it, you'll want to reverse engineer that PCB, should be very feasible if you can actually get it out of that housing.>>2997035Where was the sensor? I'd guess maybe it's an ultrasonic transducer, for distance-measurement in addition to the camera(s).>>2997036That one you're either going to have to reverse engineer the camera by tracing wires back to the main ICs inside the housings, or by tracing the other side of where that ribbon cable connected to on the vacuum's main board. There looks to be 4 differential pairs, it's probably something like LVDS.Ideally you'd want to use an oscilloscope or logic analyser to see what happens on the wires as the full vacuum operates, or at least attempts to operate.
>>2997037Thanks a lot anon. I’ll try 24 and 5V or 3.3V PWM on the small wired. It seems a bit like the motor holds itself in place when applying just 24V. I’d have to break it to see the board and it may be broken already so if that doesn’t work I guess I’ll scrap it> Where was the sensor?Bottom of the machine facing down at the floor. I’m mostly curious as to what the PCB does and why this is the only one they didnt connect directly to the main board The camera ribbon is just a tiny bit too large for the rPi camera port (2 pins too many I think) but looking at the ribbon it looks like only 6 are connected (the rest looks like either ground or isolated) but maybe in missing something
>>2997000I want to integrate it into a portable music player. I could just buy some old BA1404 on eBay, and that might be the best solution. I was just hoping there is something equivalent available through Mouser
>>2997041>I’d have to break it to see the boardOk then at least do some measurements with your meter, to see if there's diodes between the input power pins (e.g. the body diodes present in an H-bridge or 3-phase inverter). And use current limiting resistors on your PWM signals (1-10k should suffice).>facing down at the floorNot sure what it would be. Maybe something to do with the charging dock? Or a sensor to discriminate between flooring types?>looking at the ribbon it looks like only 6 are connectedFrom bottom to top:>1 - GND>2+3 - differential pair>4 - GND>5+6 - differential pair>7 - GND>8+9 - vias going to other side, possibly another differential pair>10 - GND>11 - via going to other side, probably a control signal>12+13 - GNDs>14 - via going to other side, probably a control signal>15 - GND>16 - NC>17 - via going to other side, probably a control signal>18 - GND>19+20 - vias going to other side, possibly another differential pair>21 - GND>22+23+24 - NC>>2997044Gonna make it the right size to fit in a cassette deck too, with magnetic transducer pickups along the top? It's only a matter of time before someone makes an extra thin MP3 player that beams data into a CD player's optical pickup.
>>2996998And here it is flipped and mounted under my desk. Next to my audio mixer.
>>2996983what kind of range do you need from your transmitter? what kind of CPU do you have in your device? if you have a PWM channel that goes up to say 100 MHz then generating FM is quite easy. if it doesn't go that high then you can use a lower frequency like 33 MHz and pass the signal through a diode, then through a band pass filter to extract the 3rd harmonic
>>2997048Broadcast FM varies the frequency by up to +/-75kHz modulation depth. For 16 bit audio, a least significant bit would be 2Hz of modulation. To do that digitally would be extremely difficult, requiring that your PWM channel be clocked 2^16 times faster than the output 100MHz.An MCU with a 400MHz clock can produce 400, 200, 133, 100, 80, 67, etc. MHz from its internal timer/counter, it’s infeasible to generate pre-modulated FM.Instead you want a PLL. Digitally, you could hop around multiplication and division registers to create arbitrarily finely divided frequencies, but you’ll probably still get glitches. For FM, a conventional VCO is probably the best way to go. For stereo, that requires analogue circuitry to amplitude modulate the difference of the channels on a supersonic carrier, and add that to the sum of the channels, before piping that into your VCO. Seems like a fun project, but a big time sink.
>>2997050https://github.com/cnlohr/channel3https://github.com/cnlohr/avr_vhf
>>2997050>what is phase modulation
>>2997053CNLohr’s videos on generating NTSC from the ATtiny and 8266 just show him generating black and white video, which is fixed frequency.But his video on generating LoRa chirps with an ESP shows that semi-continuous frequency sweeps are possible, by generating varied lower frequencies and relying on their higher square harmonics. You could get dozens, maybe hundreds of frequencies from this technique, more than enough for a proof of concept of FM broadcast radio, could probably even make it stereo and/or dither the frequency to give a higher effective number of bits. But I doubt you’d approach 16-bit audio quality.>>2997054I’m not sure I understand how phase modulation or phase shift keying could be relevant to outputting broadcast FM from a microcontroller. Might you enlighten me?
>>2997117you can twiddle the PWM phase using the derivative of the audio signal. push the phase forward when the derivative is positive and vice versa. you can add dithering to get more bits. this probably consumes most if not all cycles in anon's CPU, unless it has more than one core
>>2997118If your PWM counter is going up 100 steps in a triangle wave, and the counter is clocked from the main clock directly, then that’s 200 different phases, which isn’t very much. It also requires that your system clock is 100 times faster than your PWM output, so it would still be infeasible to directly output that 100MHz broadcast FM signal. With downsampling techniques it’s possible.The limitations would be different to changing the output frequency conventionally, you’d get the full dynamic range up at the 15kHz range, and down at 150Hz you’d have 100 times less range. And because it’s still outputting edges synchronously with the main system clock, you still have the same fundamental resolution limit as just adjusting the counter’s output frequency. Maybe they can be dithered differently, and maybe it’s easier to subsample, but I doubt it.Some MCUs like the ESP32 have a built-in PLL piped to output pins that would be better for this than subsampling alone. You might instead be able to mess around with clock calibration registers to output a continuously varying square wave.
>>2997129perhaps generating a baseband signal and then writing a tightly optimized mixer loop that said signal is fed into could work? that is, one could use a GPIO pin as a 1-bit ADC and push SDR samples to it. such a scheme could be expanded to say 8 bits with an R2R ladderit sure would be good if anon told us what he's working with, CPU-wise
need a sanity check please, is that op amp upside down to buffer the square wave coming in at pin 9?
>>2997158>is that op amp upside downyepreverse + and - inputs
>>2997161it works either way up in Falstad, but is this one of the cases where simulation doesn't reflect reality?
Yesterday I sold my old soldering station and today I sold my hot air station. And my new ones haven't arrived yet and won't arrive for another week at least. I feel cortisol spiking, /ohm/.
>>2997158This original configuration makes positive feedback, producing a comparator with hysteresis. Any input wave with sufficient amplitude will produce a square wave output, while a low amplitude input wave will produce a DC output. In reality, if that’s a single-supply rail circuit (e.g. 0V GND to Vee and +12V to Vcc), it probably won’t work as a proper comparator. If this is intended, it’s somewhat odd to be using an op-amp instead of a dedicated comparator IC.If you flip the op-amp, it will instead act like a non-inverting amplifier with a gain of 11, and will work well regardless of the supply rails. Though if the input wave’s voltage ever goes above Vcc/11 or so, it will see clipping distortion on the amplifier’s output.Considering the input is something akin to “square raw” and the output is “Clock 1”, a digital output of a comparator circuit seems more sensible than an analog output of an amplifier. So I’d suggest the original orientation is intentional and correct.For confirmation you’d be trying to answer the questions “what task is this amplifier circuit supposed to be doing” and “are the power rails and input signals correct to facilitate this task in one of the circuit orientations”.>>2997163Use spice, or some other simulating software where op-amps have supply rails, input and output voltage ranges, and can clip.>>2997168How are you going to fix your new soldering station when it dies if you don’t have a backup?
>>2997170>How are you going to fix your new soldering station when it dies if you don’t have a backup?After I listed them for sale, I was expecting that it would take me weeks to sell. Instead, both were gone in 2 days. I recovered about 70% of what I paid for the new ones and I'm happy about that so all the hassle of not having any tools is worth it. I'm just an amateur who does it as a hobby. Anyway, poor people problems.
>>2997173Mind telling us what you sold and what you bought?
>>2997174>Mind telling us what you sold and what you bought?I sold a Weller soldering station and a Yihua hot air station. I bought replacements from China. Got a battery-powered soldering iron that uses C210 cartridges and bought an Atten hot air station.I didn't spend a lot of money and feel like I'm upgrading by a lot.
>>2997176>battery-powered soldering iron that uses C210 cartridgesHow many watts? I haven't seen a battery iron above 30W, and most of the compact ones are down at 8-15W.
>>2997199>How many watts? I haven't seen a battery iron above 30W, and most of the compact ones are down at 8-15W.28W on battery and 65W when plugged in over USB-C. Given the specs for C210 cartridges, it has enough juice to drive them well. Everything I use an iron for, this can do it. After looking at various cartridges, I went with C210 since they're like 2ohms and heat up insanely fast.Last month I was at a local makerspace to get a piece of acrylic laser cut and while there I tried few of their tools. They had few battery irons and I've been lusting over one since then. Having one less wire on the desk, especially for something I use all the time, is worth the loss of power (most of which I don't even need).But your mileage and use case might be totally different of course.
>>2997225Link? I can’t find any rechargeable irons that come close to those specs. Better not be a fanttik t1, saw a review where it was like 80C too hot.
>>2997258>Better not be a fanttik t1,kek, no. it's a (better?) version of JBC's B.IRON 100.https://en.alientek.com/Product_Details/80.htmlI bought it the moment I saw the specs. I haven't seen many reviews of it (most were in Russian I think).
Before I burn my house down, I got a 24v 600w psu who's power switch seems to have failed closed. When I push the switch to turn off power it almost springs back to the on position and even if I get it to stay in the off position its still not off and power is being supplied. I just opened this out of the box and have only hit the switch like 5 times. Is this an issue with the psu or am i being an idiot somehow. Secondly Im trying to power like 5 or 6 dc motors possibly multiple at a time but its not worth a house fire and I can get away with running two at a time. I just need to know how much power they are drawing so I can get a psu with a current limits thats just 1.25 that. I thought about just using a multimeter but the concern is that the motor controller im using might try to brake the motors and use significantly more power during that time. Should I get watt power meter plug or is there something more inline I can use besides say an oscilloscope .
I think I worked out why my board (once again) doesn't work - it's not going to go very well sending +12 V signals into a chip powered off +5 volts, is it.This is a stupid error from when I was translating my breadboard prototype into a schematic, but it's got me wondering, how do you guys do it? How do you make a schematic and order a board that works flawlessly the first time around, with no mistakes?The best plan I have going forward is to build the prototype, finalize the schematic, and then re-build another prototype from scratch exactly following the schematic that I've made, that would seem to be a good way to catch errors.Some days I think I should have just stayed as a Python coding babby rather than trying to wrangle actual electrons
>>2997261Damn that looks nice. Might buy one for my brother, he doesn’t really like his current iron.>>2997280It’s not a software power button? I’d disconnect the thing from mains and measure continuity through the switch. And replace the switch anyway because switches are cheap.Are they brushed DC motors? The most they’ll ever draw is their stall current, which you can trivially calculate by measuring their DC resistance. If it’s below a few ohms, you’ll want to use a test current of 0.1A or even 1A. Or power it up with a low voltage, clamp the output shaft so it stalls and measure the stall current there, and calculate the DC resistance from that. The same sorta applies to BLDCs.But often these stall currents are stupid high and you never want to pump that many amps into a motor in the first place, at least not for more than a second. So instead you should be looking at a motor driver that measures current and prevents stall and short-circuit conditions from frying the motor. If you want to use a simpler motor driving scheme like simple MCU-controlled PWM, then I’d just look at the motor datasheet, there should be a continuous current rating. If you can’t find a datasheet for it, look for cheapish brand name motors of equal dimensions, voltages, and speeds.>>2997298Yeah analog switches are strange, you should familiarise yourself with the internal transistor diagrams of parts you don’t understand.I design a schematic first, it helps me organise my thoughts. Anything I’m unsure of I’ll simulate or breadboard, but just little segments, not the entire circuit. If it’s just something like not knowing a resistor value, I’ll leave testing that to the final build. Be that strip-board or a fab-house PCB. When getting boards manufactured, I’ll leave uncertain parts as THT, with jumpers and spare footprints as needed. Even if I’m getting SMD assembly. Often I’m not forward thinking enough and have to do bodges or board revisions.
>>2997298>how do you guys do it?we were all noobs once, sticking toy motors into 120V socketsbut we learned from our mistakesso, after 20 years, we are now godlike: making 10% fewer mistakes than when we were noobs
>>2997316>Might buy one for my brotherWait for my review. If it's any good, I'll let you guys know. I still think that getting that SI012 Pro Max is a much better deal and a much more capable iron (it can def solder XT60 connectors which this battery one will probably fail at). More versatile too. If you don't mind a wire, it's a much better buy too. With that soft liquid silicone 240W USB-C cable, it's an unbeatable setup.
>>2997320Why the Pro Max? Isn't it just a Pro with RGBs? Or is it capable of 100W while the Pro can only do 65W? I have a Pro, but only 8 ohm T12 tips, not the lower resistance shorter TS-style tips (second from left) that Sequre call "SI", but I've also seen called "ST" by others. I wonder if an Si012 Pro will output 100W if I get a lower-resistance tip into it?This picture also suggests it works with the SH72-style of shorter T12 tip (or T65-style), but they have a collet flange further up than a TS and further down than a T12, so I can't see how they'd seat properly. They only have two sets of electrical contacts from what I can see, so I think you could only use it with these SH72-style if you locked it in place with the M2 screw. Doesn't seem ideal, I'd like it if they made an iron with three sets of contacts. While the TS and SH72 contacts would probably be too close together, you could make their flange sit at different depths since the TS tip flanges are much wider.Anyhow, my brother specifically wants a battery iron (he already has a T12 station that runs on an M18 battery), and his birthday is in a month.
>>2997336>Or is it capable of 100W while the Pro can only do 65W?Correct. Pro Max can do 100W and Pro caps at ~65W. A different tip won't help you reach 100W with Pro.That battery iron will never be as versatile as wired irons. It's OK only for light hobby use with SMD and small THT components. They're definitely not good for an 8hr job type work since they last less than 40min on a full charge and take 9hrs to recharge. If you do some back of the napkin calculations, you can theoretically remove 8-9 large caps before it';s empty. Yeah, you can use it while plugged in but then you have a shitty wired iron.Get him a SI012 Pro Max and he will be much happier if he's a semi-pro.
>>2997339>A different tip won't help you reach 100W with ProConsidering it's 25V maximum, you're not getting above 78W with the DC jack, or 50W with USB PD, with 8 ohm T12 or TS tips. Only with the "SI" tips can it draw enough power.The Pinecil website describes TS tips as having 8 ohms, and the shorter ST tips as having 6.2-6.5 ohms. 25V @ 6.2 ohms is 100W, so I'm guessing the SI tips from Sequre are the same. Sequre's website describes the SI tips as "max power 100W", with no such labelling for its TS and T12 tips.That also means that with 20V PD on the Si012 Pro Max you're getting no more than 65W. I'm wondering what would happen if you put an ST/SI tip into a non-Max Si012 Pro. Would it PWM itself to limit power to 65W? Would it assume it's drawing less power than it really is, and force a 65W supply into hiccup protection? Would it detect a faulty tip and not heat up at all? Would it draw too much current and damage itself?Hardware wise, what could the difference be? Different PD negotiation chip or beefier power MOSFET, that's all I can imagine. And there might be no difference in hardware at all. There probably is software difference though.
>>2997351>'m wondering what would happen if you put an ST/SI tip into a non-Max Si012 Pro. Would it PWM itself to limit power to 65W? Would it assume it's drawing less power than it really is, and force a 65W supply into hiccup protection? Would it detect a faulty tip and not heat up at all? Would it draw too much current and damage itself?It PWM-limits itself based on calibrated resistance, not a 65W hard wall limit.I don't know about USB-C PD but I'm pretty sure that if you connect it to a 4S or 6S LiPo it would discharge massive amounts of current without caring about a 65W limit... and probably fry the P-MOSFET.>Hardware wise, what could the difference be? Different PD negotiation chip or beefier power MOSFET, that's all I can imagine. And there might be no difference in hardware at all. There probably is software difference though.An updated PD controller and software of course.BTW, It supports IronOS and devs got the scehmatics for it: https://github.com/Ralim/IronOS/issues/2010
>>2997361>BTW, It supports IronOS and devs got the scehmatics for it: https://github.com/Ralim/IronOS/issues/2010Oh huh, didn't see that on the IronOS homepage a year ago.Looking now, my Si012 Pro has the same PD controller IC and same MCU, just the board is the V1.4 not the V1.5. Its MOSFET IC can handle 4.9A which is more than enough, I may try to flash IronOS onto it using that .hex file, and get an ST tip to test with. Having a bit more grunt could be handy. If that bricks or fries it, then all the more reason to buy a Pro Max.Additionally, that Pinecil page says the following:>Older Pinecil V1 can not use the short tips until firmware code is written to enable manual selection of 6.2 Ω or 8.0 Ω tip>Only the V2 model has the hardware to auto-detect the two kinds of tips short 6.2 Ω or regular length 8.0 Ω>If you would like to help with the code, see GitHub/IronOSSo it seems possible that the Pro Max is equipped to measure tip resistance while the Pro is not.
>>2996960updooted>25 BOM items>28.5x2.3 mm>castellated "fork" for soldering the coax shield tothe one complication besides the edge plating is that I need the vias filled. but at least I got away with not having to put those special vias-in-BGA-pads
>>2997402>2.3 mma wien bridge oscillator that fits in my pee-hole?i'll take a dozen, pls
A couple of horrible bodge wires later and my board works. But I wonder if I am setting myself up for a gradual failure over time, so would appreciate some advice.I am converting a sawtooth wave to a pulse wave with a comparator, so the op-amp is swinging between max and min voltages, -12 and +12. Elsewhere in the circuit, I want to send only the positive half of that pulse wave through an analog switch, which can't handle the negative part (it is powered between +12 V and GND).So after buffering the pulse wave at U1C I pass it through diode D1. This gives me the expected positive-only square wave for the analog switch and for a flip-flop frequency divider. But when the output of U1C goes to -12V, will I develop a slightly negative voltage at the GND side of D1 due to the diode drop voltage? Could this damage the flip flop and switch by exposing them to a slightly negative voltage?Please and thank you anons, I am so close to completing this project.
>>2997471I was so close to getting it right...thank you to the anon that recommended that desoldering alloy, it allowed me to easily remove the CD4053B that I cooked by powering from +5 volts while it received +12V input signals
>>2997471That diode won’t have enough leakage to cause the voltage to go significantly negative. Maybe a few mV, it’s only an issue once you get into the realm of 0.7V, and even then it’s current limited.Also shoulda used LM311 comparators for their intrinsic speed and level shifting capability. TL074s have ok skew rate for an op-amp, but they’re just not designed to be used with positive feedback.
>>2997475In a previous design I was using an LM393 comparator to get the pulse wave from the saw. I can't 100% remember why I removed it, but I think it was more convenient to use the TL074 op amps because there are plenty else on the rest of the board so it saves having a separate kind of dedicated comparator IC, which I would have to waste half of.This is just for audio frequencies up to about 2.2 kHz, so even if the TL074 isn't ideally suited, I can still get away with using it, right?
>>2997479Depends more on how fast you want that edge to be, but it’s probably fine. You might be able to add diodes to stop it from saturating itself too much.
I have a USB powered fan and I want to put in a speed control for it. Do I just wire in a pot in series? What values? Logarithmic or linear?
>>2997543You should use a PWM controller.
>>2997509>stop it from saturating itself too muchIs that a problem?I am going off of textbook understanding and simulations, but I know that doesn't necessarily capture every real world consideration.
>>2997546I've been doing some more reading and it looks like that design is FUCKED UP and I should use a proper comparator instead
>>2997543>>2997545I know this is /ohm/, but you can get dirt cheap USB PWM controllers from China all day long. There's a common "fan governor" with a pot on the side too, but that one just varies the voltage from 2.5-8V.
>>2997546It’s not going to damage anything, it would just make the response time of the op-amps a bit faster, maybe.
>>2997048I want 88MHz to 108MHz transmitting stereo audio.I'm making a portable music player. The intent is to use the RP2040. I plan to have a bluetooth transmitter as well.I found this pre-built circuit that does exactly what I want. Is there any reason I shouldn't use it?https://www.alibaba.com/product-detail/VMR6512-Hi-Fi-FM-Transmitter-Integrated_1601591382662.htmlWith this module I can even have the radio transmitting different audio tracks as the bluetooth and headphone port. Could even have the USB-C port outputting a different audio too.I can simplify the design and make my own transmitter later on. I just don't have the understanding of frequency modulation to do it right right now.
>>2997604 (me)There's also thishttps://ja-bots.com/wp-content/uploads/2026/01/KT0803L_V1.3.pdf
>>2997604Both those modules look good. I’d go for the first one (not necessarily from alibaba) and feed it digital audio, as that removes an unneeded DAC->ADC conversion.FYI, your MCU of choice may struggle with some audio formats, both for speed and RAM. Lossless and MP4/AAC especially, but even MP3 may pose a challenge. MP3 players from 10 years ago likely have more power than a 2040, at least in the narrow domain of audio processing.
>>2997546 (me)>>2997552 (me)I breadboarded an alternative design for my saw -> square wave with an LM393 comparator and it works. This keeps everything in the positive domain, don't need to worry about the diode, etc, and the edges seem sharp enough to drive the flip flop as a frequency divider.This should be a lot better, right? I honestly can't remember how I convinced myself this was not the way to do it. I'm sure I was previoiusly running into problems with the sharpness of the edges.
>>2997624Simulators are a plight on education. They invite people not to think, not to learn but instead just 'simulate' something without understanding how the simulator works, what limitations result from the inner workings and quite frankly without an idea what 'question' they are even 'asking' the simulator.This simulator is one of the worse offenders, as it seems to integrate several elements of the equivalent circuit of a real part into a symbol that is commonly associated with the ideal part.To begin with: What do you expect to happen at a node that is connected to a fixed voltage source and a (presumably voltage) signal source?You will find more value in reading about the basics of electrical engineering first and then look at circuits that are commonly employed to achieve what you want, conduct your analysis using oen and paper. You might find more value in analysing circuits made up if discretes only first, before checking how ICs might be employed. Once you understand the underlying principles and you have very specific questions regarding performance, stability, losses etc. then use a SPICE simulator and model relevant parts of your circuit.
>>2997626Learn how transistors work, but only to interpret the input and output sections of IC internal equivalent schematics. Op-amps are a more ideal and beginner friendly way to learn about analog circuitry. Learning about proper biasing and impedance problems can wait a little.
>>2997614Thanks mate. I expect the first iteration will be more for me to figure out how to make it right. I'm not too worried about getting it all right now. I'm mainly using the rp2040 because I'm familiar with them and have them on hand. Likely I'll change to the ESP32 or something and that should allow me to simplify a lot on the device
>>2997543Honestly a pot might work for a little DC fan. So long as the fan is sufficiently low powered such that the pot doesn't get roasted. Takes math to calculate the resistance though, and it depends on the current draw of the fan. Be easier to have a voltage-dividing potentiometer + an emitter follower, or a current-limiting potentiometer + a current amplifying BJT.
>>2997653>Honestly a pot might work for a little DC fannopeordinary pots are rated 1/8-th or 1/10-th wattno fan is so weak that a pot would survive unless it was wire-wound, or packed in dry ice, or held under a witch's tit
>>2996880Hi,I'm relatively new to electronics. I've been doing security research for a decade and only in the past year had an opportunity to work on a project and develop attacks on a HW piece of tech. I got myself a logic analyzer and learned how to use it and got good at it. Anyway, I have some time off this summer and would like to build my own electronics "lab". I have a soldering iron (crappy one) and a Saleae logic analyzer. That's all. At work I had an oscilloscope, DMM, microscope etc.Since the OP post has no actual equipment recommendations (a big omission IMO), maybe someone here can recommend me some tools. I'm not interested in bottom-of-the barrel stuff but also not the expensive shit that only the corporations can buy. Can someone recommend me a:-DMM-Oscilloscope-Soldering station-Hot air station-Microscope-Bench power supply-Hand tools: tweezers/screwdrivers/pliers-Wire strippers-Board holderAnything else I'm missing???Thanks in advance!
>>2997626I think you are hinting at the fact that I was missing R5? I chose R76, R75, R5 so that when the LM393 output goes high impedance I can't develop more than +5 volts at pin 3.
>>2997665There are so many products available in different regions it's hard to recommend anything specific. Instead of buying a piece of gear that you think you might need, just buy gear to solve problem you're working on. It's pretty useless to, for example, buy a 30V 30A power supply just to find out that output switching noise is messing up your sensitive circuit. Price is also sometimes not a good indicator of product quality. Sometimes cheaper option works better in specific applications than expensive one.
>first attempt: shit's broken>attempt to diagnose, isolate subcircuit>desolder IC and find one completely shot>/ohm/ points stuff I overlooked>squeeze in a few resistors>resolder everything>virtual ground still pulled down to the negative rail by *something*I want to fix this and get it working so bad, but fuck me I'm losing my sanity here. Wish me luck.
>>2997658Worst case it drops half the power. If it’s a little 30mm fan it’s fine, but a 120mm definitely not.>>2997675That works? Doesn’t the LM393 pull its output hard down to your negative rail?Also I’d be using a Zener to ensure its voltage remains under 5V instead of resistor tuning, as that allows me to more easily tune the other resistors.>>2997729Did you breadboard it beforehand?
>>2997731>That works? Doesn’t the LM393 pull its output hard down to your negative rail?Yes, but the LM393 is connected between +12 and ground, so it gives me a square wave at positive voltages only that the flip flop can handle (which is also wired between +12 and ground).Measuring the point between "PWM" (the DAC input) and R77 on the breadboard only ever shows me the voltage at which the DAC output is set, so I think I will be safe.
>>2997700>Instead of buying a piece of gear that you think you might need, just buy gear to solve problem you're working on.Good advice but not in this case. I can't do much without a DMM, oscilloscope, soldering iron etc.
>>2997746Well you could start off by explaining what you’ll be using the tools for. Speed and memory of the scope, power and size and portability of the iron, specs of the DMM, they depend on what you need to do with them. I’ve got two of each of those with different use-cases.
>>2997731>Did you breadboard itYes, of course, except for all the bypass caps, that were suggested by /ohm/ as I was about to solder, so I quickly threw them in. Also, some subcircuits were breadboarded separately for clarity. The only difference I had was the virtual ground being provided by an opamp on the breadboard, whereas the perfboard version has a simple voltage divider. Thing is, the virtual ground is hooked only to positive and negative through the bypass caps, and to opamps/comparators' inputs, so I'd expect it to not drift too far off target even with a simple divider due to the almost-zero current it would end up conducting. At this point either another opamp is shot (idk how they could die just like that), or I fucked up the schematics.
>>2997753You’ve triple checked your pinouts? Yeah all I can suggest is socketing your op-amps so you can swap them if needed.
>>2996880why is this dumb bitch pointing at resistor pads when they're carrying a cart full of capacitors? there's two pads right there that need caps.fucking dumbass normie artists
>>2997788Follow her pointing arm in her shadow, it's pointed downwards but only shallowly. The target of her pointing is off-screen, possibly a cap connected to U7's 7th pin. C50 and C51 aren't necessarily the same size capacitors as C49.
I managed to leave a nasty scorch mark on my desk. I need a soldering iron stand.Is this a good one? What do you guys have?
>>2997820>What do you guys have?i like this one coz it leaves the hot bits completely uncoveredany faggits hanging around my workstation will burn themselves, their pants or their expensive winter coats as they peer into my workteaches 'em to stay the feck away
>>2997822Kek, nice. I live alone so I have diff kinds of issues. Also, my desk is wobbly so I'd like something firmer. Also, how do you clean the tip on that little sponge? I;d prefer a bigger sponge so it lasts longer.
>>2997788>triple dubs wasted on low tier misogyny>against 2D no lessI hope you get better anon. It took me a long while, but if I can do it anyone can.>>2997820Pic related is great. Very stable, and using the brass sponge won't thermally shock the iron tip.
>>2997827>Pic related is great. Very stable, I like it! Any idea where to find one of these things?>and using the brass sponge won't thermally shock the iron tip.I had no idea about this. I've been using a wet sponge for like 2 years. I did some searching and you're right. i've been doing it all wrong.well, I can't find any iron stand without a sponge. since sponge is actually bad, I don't want a compartment for it at all. I did find this but you need a 3D printer for it.
>>2997845You should still use a sponge to clean the tip when you finish working. Then tin it with fresh solder and turn it off.
>>2997845The one he posted is specifically designed to work with T12 soldering stations, some irons, especially non-temp-regulated irons, may be too thick to fit.I’ve used copper wool and wet sponge in the past, I don’t really notice a difference in tip longevity. Wet sponge seems to leave the tip cleaner, though my copper wool probably needs replacing.
>>2997845I got it on banggood when I got the whole setup a ksger T12 and ksger SMD station i.e. the hot air gun, but it was a not insignificant number of years ago. It was all cheap, but it all works (mostly: I had to isolate the ground of the hot air because the heating resistance expands and shorts with the metal jacket which is grounded). The brass sponge holder was sold separately, and I did glue a rubber mat underneath the base, for added grip and reduced surface wear.
Is there a good list of component abbreviations for printing on PCBs? Like R for resistor, C for capacitor, etc.?
>>2997892https://resources.pcb.cadence.com/blog/2023-identifying-electronic-components-on-a-circuit-boardbut best to follow up with an AI query coz it's more messy than thatdiff people use diff letters, and there's often 2 letters for the same componente.g. a chip could be an IC or a U
>>2997892https://en.wikipedia.org/wiki/Reference_designator>>2997912And a voltage regulator could be IC, U, or it could be VR. But I've also seen VR used for variable resistors. There are formal lists, but they're not always adhered to.
My Sugon A9 arrived. It uses T210 tips. These things are ridiculously small. LOL. When you see pics online or the reviews, you have no idea about the actual size. They have no thermal mass whatsoever. Yeah, don't expect this size to be a general iron. T245 is probably a better choice if you need that.
>>2997665Ok, I'll give it a try, so at least you've got a starting point>-DMMFluke is usually the corporate way to go. And for a reason. They are reliable and good but you'll also pay for the brand. Personally I prefer Brymen. You'll pay half the price for 2 times the features. I've got a BM867s and I'm happy with it.>-Oscilloscopeno cheap recommondations on that part. Good stuff from work for the price tag of a new car is probably too expensive.Personally I've got a Siglent SDS 1104X-E. It is decent but I did not push it far, so who knows. You can hack it though:https://www.eevblog.com/forum/testgear/unlocking-siglent-sds1104x-e-step-by-step/msg3344060/#msg3344060>-Soldering stationI've got myself a "cheap" JBC station. And I don't want to use anything else. Used an old Weller at work and switching tips is just a pain in the ass.>-Hot air stationPersonally I don't have one and only ever used it at work. Don't know the brand but it was pretty old anyway. JBC makes the too. If you want to sell your kidney.>-MicroscopeI don't use one. I've got myself a baseball cap and ghetto-rigged a bracket for different magnifying glasses to it.>-Bench power supplyI've got a single channel and a dual channel digital power supply from Korad. Fairly cheap and I had no problem with them so far.>-Hand tools: tweezers/screwdrivers/pliersKnipex for pliers, Wera for screwdrivers. And I've got a chink no name repair kit for smart phones.>-Wire strippers95% of the time I use a pair of side cutters. Just get good.>-Board holderI think I've never used any professinal dedicated board holder>Anything else I'm missing???If you are working with anything that's connected to mains, so 110V 220V 230V 400V etc. (if you are not a professional you shouldn't) a isolating transformer can safe your life.A desoldering pump. Some use a big ass station. I feel very comfortable with using the small syringe like thing. And it costs almost nothing.Hope this helps
>>2997980To be fair T12 tips are stupid long. What’s the beefiest tip you can get for a T210? Is there like a D4? I’m considering getting one. I saw what looked like a D4 in the “C210-007” size, but the legend said it was 2.3mm not 4mm, man that scale messes with you. I’m going 210 because that’s what battery irons are using, not because I want to work on fine things.
>>2998003>To be fair T12 tips are stupid long. I'm not sure what they were thinking. Probably to give it some mass for thermal inertia?>What’s the beefiest tip you can get for a T210? I think it's K. It's like 2mm wide.>Is there like a D4? No. There's like I, IS, K, KU. That's it.?I’m considering getting one. I saw what looked like a D4 in the “C210-007” size, but the legend said it was 2.3mm not 4mm, man that scale messes with you. Yes, when you see these tips on YT or in images, they look huge. They're so damn small.Here's a comparison... it's much smaller than a ballpoint pen. T115 is even smaller... like 2/3 of the size of T210.>I’m going 210 because that’s what battery irons are using, not because I want to work on fine things.That's a silly reason. It will sit on your shelf collecting dust. You won't be able to remove even a through hole capacitor.I got the new station for phone repair. I've been buying broken phones and fixing them and selling them. I needed something for fine pitch SMT.
>>2998014>I'm not sure what they were thinkingAllows it to anchor in the base of the handle solidly, while retaining a long but sufficiently strong stainless shell for high thermal resistance from the hot element down to the electrical contacts would be my guess.>Probably to give it some mass for thermal inertiaI don't think so, only the last 1-2cm of the main cylinder are solid with the element, the rest is hollow. Any iron relying on a long thin thermal mass would be worse than a fat wide thermal mass like the C470s.>I think it's K. It's like 2mm wide.I'm seeing listings with K tips that are 3.4mm wide. From JBC themselves are the extra fat C210-039 and -042, which are 2.9mm and 3.9mm wide chisel tips respectively. Same for the -040 and -041 bevel tips. Though I've always wanted to try a barrel tip for THT work, that's got a whole bunch more surface area for both the lead and pad than even a chisel tip, though your work angle is fixed like with a bevel. Strange that T12 and TS and such tips have no barrel or cup tip varieties.>That's a silly reason. It will sit on your shelf collecting dust. You won't be able to remove even a through hole capacitorThermal mass aside, these irons can put out 65W. Might take a bit of time with big ground planes or other cases where an instantaneous 65W isn't sufficient, but so long as the thermal resistance from the heating element to the tip is low (it's a cartridge tip so it should be low) that's more important than thermal mass.Also the point is that it's for a battery powered iron, you'd leave it in your toolbox, not on your shelf.
>>2998019>which are 2.9mm and 3.9mm wide chisel tips respectivelyDiagonally. It's much less by width (between 2 and 2.5mm).>these irons can put out 65WMy A9 can put out 120W but that will burn up tips quick. These things are meant to operate at 40-50W max. You're supposed to use it for nano soldering of SMT components. Mostly re-work.
>>2998035>DiagonallyNo I’m talking about the chisel tips, not the knife tips. Pic related from JBC’s website.>My A9 can put out 120W but that will burn up tips quickWill it? There’s a thermistor right next to the heating element, so I’d never expect it to overshoot enough to be damaged by overheating the element.
>>2998036>from JBC’s websiteThat tip costs as much as most irons from China. Chinese haven't cloned that tip so it's pointless to me. If I had money to burn, I'd blow it on women and not overpriced tips. It's much more economical to buy a whole iron that's suited for the task than trying to get some extra juice out of an iron made for nano soldering.
>>2998042>That tip costs as much as most irons from ChinaYeah that's the other thing. The chinky T245 tip variety looks much greater than their T210 variety. Like spatula, barrel, spoon, fork, etc. Even solder pots and heat-set insert tips.>an iron made for nano solderingIdk, the thing puts out the same amount of power as irons with T12 and other tip categories:https://www.aliexpress.com/item/1005012335736983.htmlI just wish someone made a high-power T245 battery-powered iron. For 65W out of a lipo at 100C discharge rate that's just 170mAh from 1S, so it's definitely feasible to get more than 10-30W out of a battery iron. 3-20Wh is more sensible. If it draws 10W standby to stay up to temp, then that's 20 minutes to 2 hours of standby use. Though you might ditch tip longevity and just cool it down and heat it up as needed since these cartridge tips do that pretty fast.
>>2997988Thank you anon for an awesome list!>BM867sI really like it. I was also told that BM235 is quite good. Not sure which of the two is better. I'd probably go for a cheaper one and put the 'savings' into an oscilloscope.For the Fluke, after looking at a bunch of specs, I've narrowed the choices down to 116 or 117. I'll see if I can find any of these models used and if not, I'll probably go for the cheaper Brymen .>Siglent SDS 1104X-EOh, that's a nice one! I'll have to take a closer look. For whatever reason, I fixated on a Rigol DHO814. It checks off most of the things I need and like.At work I have access to a Tektronix MDO and I've learned how to use an oscilloscope on that. But those things cost more than my car.>I've got myself a "cheap" JBC station.I'm gravitating towards that as well.I have a lead on a used CD-1SQF at an industrial auction and I might make a bid for it.>KoradNever heard of them. But I do like the prices! Thanks.>95% of the time I use a pair of side cutters. Just get good.We had a pair of some German-made strippers but the name was rubbed off. I liked them. Would like to buy a pair because nicking wires gets boring quick.>isolating transformer can safe your lifeMost of the stuff I'm working on is small and battery powered but isolating transformers are cheap and good to have. I'll add it to the list.I think I can build-out a good home lab for under $2k.Thanks again! If anyone has other suggestions, please let me know.
>>2998074>We had a pair of some German-made strippers but the name was rubbed off.If the brand color was yellow I would take a bet that it was a Jokari.They got a collection of wire strippers. One for every taste.If it was red/blue it was most likely Knipex. Great pliers but they also got wire strippers.
Tested these LEDs at 3.3V & 1kOhm resistor to see if I could use them in my game project as indicators. Current was about 1.4-1.6mA for all of them. All the reds are quite usable. They could use even larger resistors (maybe 1.5kOhm) to make them more even with the other colours. Clear yellow & green are okay too. The frosted yellows & greens are unusably dim even when viewed from the front. The green side on the two bipolar LEDs is a bit dim too. Maybe could try that one with 680R or something.
>>2998090Side view. I plan to ditch the frosted 5mm yellow&green and try the others with: - reds: 2.2k - yellow: 1.5k - green 5mm: 820R- green 3mm: 1k - bipolar red side: 1k- bipolar green side: 680R
>>2998092>I plan to ditch the frosted 5mm yellow&greenand yet, they are the fairest of hue, texture and coherencetruly high-borne princes of the landif they need a bit of extra current, you must give them their due, to thank them for their gift of harmony and beauty
>>2998090You could always run them from the battery or other upstream power source, but that will create a brightness variation with battery capacity if you use resistors, and I doubt you want to voltage mirror them. If you have a 5V rail I’d definitely use that.Also that yellow clear LED looks gnarly. Full of bubbles.
This is the first thing I've ever built and I have a bit of an issue, I've ordered my pcbs already but d9 is a rats nest wire, it should be fine if connected it to the ring on the right with a piece of cable, you can kind of see what I mean on the pic, but the thing is so small I don't think I'll really be able to do it, could I like just scratch a line with a knife to connect them or is that a no go, or are there any other alternatives? I can post a pic of the pcb if that would help.
>>2998177Are you saying the trace from D9 wasn't in the design but you need to add it? If so I'd sooner add it a bit further down, as to join to the ground plane instead of the pad. Using a knife or whatever to scratch away the solder mask. Just makes it less of a pain to handle when you solder that ground pad.In future, run the "design rules checker" or DRC in your eecad software of choice, it should show all unconnected components, overlapping footprints, and other errors.
>>2998178That's what I meant yeah I need to add a trace, going diagonally is not a bad idea I'll try that, should I cover the exposed copper with something after doing it, wouldn't it oxidize and cause issues later down the line? And you're right I really need to step up my game and check designs before I order them. Here's a pic of the pcb, my glasses are on the left for scale.
>>2998179>wouldn't it oxidize and cause issues later down the line?It should be covered in solder, wouldn't matter for oxidization purposes. But it might matter for rigidity of the wire itself. The distance is short so it's probably fine, but some would lock the wire in place with a dab of UV-cure glue/resin/enamel, or solder-mask.The DRC also yells at you for overlapping silkscreens. Pretty complex for a first board, what does it do? Hope you got as many components in the basic/preferred parts library as possible, assuming JLC.
>>2998181Yeah I got it from JLC, I had to hand pick a few components but in the end I got pretty lucky.>looks complexI didn't design it, I don't have enough knowledge as of right now, it's something I found on the internet and thought it looked interesting so I wanted to try and put it together, it's for electrolysis, I still have to do the bottom side by hand that'll make for some nice soldering practice. Thanks for the help too I'll go about fixing it once the rest of the components come in.
>>2996884bingo. Wtf OP did you even have to say that??Also you could run electricity through it and make circuits.Wainscoting Herringbone
>electrolysisHad a customer at work wanting to buy a rheostat to vary power, 12V, up to 50A. After some interrogation the mentioned the load was sorta like electroplating, and the control needed to be varied through a mechanical linkage, and it clicked that he was making an HHO generator inside a car. He kept dismissing my suggestion of a DC-DC converter, even after I showed rheostats online were like $300 minimum. I didn’t try convincing him that it was a negative-sum process or might cause predetonation, far too stubborn for that.
> https://toptechboy.com/lesson-26-wire-wrapping/wire-wrapping/A long time ago somebody gave me this exact tool, but I had no idea what it was. I was like, cool a screwdriver with no end. thanks, buddy. They were like, "here kid", and left without doesn't explaining anything. The other day, I saw someone comment about using a wire wrapping tool instead of soldering. I thought, wot is a wire wrapping tool? And so I solved the ~decade old mystery. Now, your telling me all this time I could have been wire wrapping with this tool at the bottom of my toolbox instead of investing money in soldering tools and huffing solder fumes???thanks for reading my blog.posting a link cause my IP range is shit listed and I can't post images.
>>2998353https://learn.sparkfun.com/tutorials/working-with-wire/how-to-use-a-wire-wrap-tool>have a breadboard >still use a tool to twist wires to component leads point-to-pointjust toss it
I need my microcontroller to measure the frequency of a +/- 12V square wave, will this work to shift the logic level? I think that I can't just apply the +12V to the transistor base.The transistor will pull down a 3.3V pin that has an internal pull-up resistor.
>>2998562I don’t see why the first one wouldn’t work, or why Vbe would be a problem when you’re running 12v into it. The more classic approach would be to replace the series diode with a diode from emitter to base. Also 4.7k on the base with 50k on the collector is kinda silly, I’d use 100k on the base and 10k on the collector. Though if the MCU has a built-in pull-up, I don’t see why you’d need a collector resistor at all.If you’re extra paranoid, or might have issues with a ground rail shared between the square wave and MCU, you could use an optocoupler.Using a small-signal MOSFET like the 2N7000/7002 is also an option, they’re more than tolerant of +/-12V on their gate if I recall. A gate resistor is still not a bad idea, and depending on your square wave source and FET, a TVS diode and/or gate-to-ground resistor, since those gates can be ESD sensitive.
>>2998582I think I didn't mean VBe, on further thought, I'd misunderstood some other explanation I'd read. I guess I am wary because I've so far only generally seen transistors to shift to a higher voltage level, not using a high voltage to control a lower one. Usually I manage by repurposing some other schematic I found online but couldn't quite find one that matches this application.The idea with the diode is that I should only get the positive parts of the square wave to control the transistor base. So pic related would be better? I guess when the square wave goes to -12 V, the diode makes it so that the base is at ground potential?
>>2998585
>>2998591I do actually have some optocouplers to hand and am coming round to the idea of using one. Isn't it over-complicating things, though?
>>2998593Yes and no. It will work safely though.
>>2998591a typical opto-coupler's LED reverse voltage rating is 6Vso a series diode on the input is still a good idea
>>2998585>the diode makes it so that the base is at ground potential?Well more accurately it goes to -0.7V, but that's well within tolerance. Either way the current through the diode and base-emitter junction (which also acts like a diode) are being limited by that resistor. Actually it might be fine without the extra diode, I can't find any reference in a few BJT datasheets of absolute maximum reverse base-emitter voltages. Though I'd err on the side of caution.Not quite sure whether you mean a GPIO or a supply pin when you write "3.3V MCU pin". If the former, your resistor placement is wrong, pic related. Either you have an external pullup resistor to the same voltage rail as your MCU, or you enable the MCU's internal pullup resistor. If the latter, use proper symbols for voltage rails.
>>2998620You're right, but maybe an anti-parallel diode (to the opto input) would be better, like >>2998633depicts.
>>2998660Or just use an AC opto.
My boards came in today. My diy rig grows today.
battery-powered soldering irons based on vape handle are under $10. Has anyone tried them yet?
Newbie here. How do I measure the amount of watthours that my esp32 + sensors will consume? I need to know what kind of battery to get. There are documents that estimate the range of amps but I want to actually measure it.
>>2998722plug your power supply into a kill-a-watt
>>2998723I have a multimeter. Can I use that somehow? Or maybe the esp32 can run a script that keeps track of the power used? Idk. Is it worth spending $50 on a separate device?
>>2998725Sure you can, but there is a burden voltage from a multimeter that can cause voltage drops. With something like an ESP32 that can cause it to crash and have issues with how finicky the 3.3v is.Buy a KWS-2303C and itll tell you what the draw from USB-c is and it should be pretty close.
>>2998725Can you use a 5V power bank?
>>2998723>>2998728>>2998729Okay I can see it's worth having a specialty device. These are all good options, thanks. I'll probably go with kill-a-watt since a standard wall outlet has more uses than usb-c. I can play with it to measure other devices in my home at least.>>2998729That would be smart to just measure how quickly it drains a power bank. Unfortunately I don't have one. I wanted to measure first so I knew what size battery to buy.
How do you boost IR reception? I have a desk fan that is controlled by a remote. It was always bear to get it to work so I eventually got a programable remote and cloned the original. This remote is much more powerful (I can control other devices from much greater distances), yet my fucking fan is still a bear to control with it. I cleaned the IR receiver window but it didn't help.
>>2998661>>2998660>>2998633>>2998620>>2998594Alright I'm hoping anons can help me over the finish line given the amount of time it took to draw this. It all works with the optocoupler. I added D1 to protect the optocoupler LED from negative voltages. But the input +/-12V square wave is generated by a comparator with an open drain output. It feels like a problem that there is nothing to limit the current through D1 when the LM393 output is at -12 V. Do I need a current limiting resistor? I can't put too much resistance between +12 and the LED because the optocoupler needs about 10 mA.
I want to start with electronics. What's something I can do with aside from leds?
>>2998765>I want to start with electronics. What's something I can do with aside from leds?buy a cheap kit to learn how to solder. it's one of the most essential skills. when choosing kits, pick something that doesn't have any ICs and is analog because you won't learn anything if you're just soldering a bunch fo ICs. something like pic related is great since it uses a single transistor and you can actually understand how it works.you could also go down the breadboarding route but you won't learn how to solder and you'll be overwhelmed by the choices. If you're a dedicated self-starter, that might be a better option. But it will cost a lot more.
>>2998722I like the little USB power meters, though if you’re not powering via 5V with a battery but going into an integrated battery input on your MCU board, it might differ substantially from the 5V measurement due to the quiescent current an inefficiency of the regulator. Only usable method is to have something add up the amp-hours directly going into that battery connector.The next best option would be to measure the static mA drawn when it’s woken up and going tasks, extending those tasks if necessary to get across multiple DMM samples. Then doing the same thing to measure the μA drawn in sleep mode. And then calculating the sleep and wake time and adding it all up. Maybe doing it at 4.2, 3.7, and 3.2V to see how the power draw changes with battery voltage.If your code is already done, you could just use an 18650 or other spare lithium cell to test it. Power banks turn off when current drops too low, and have their own quiescent current you don’t want to deal with.The better option is probably to use another arduino or ESP or whatever with its ADC to measure voltage and current continuously and spit them out over USB UART over an hour. Cheap and accurate, I like to use a length of thin magnet wire as a current sense resistor, you’d just need to whip up a little current sense amplifier, LM358s can sense to the ground rail.You are using deep sleeps to extend your battery life, right anon?>>2998723With this you’ll get all of the inefficiencies of the wall adapter. For a 1A load maybe thats 5%. For a 50mA load the losses will probably be greater than the quiescent power draw, and for a microamp sleep load it’s thoroughly unsuitable.>>2998739Might be a slightly different IR wavelength?
2998762Usually you’d have the comparator pull current through the LED, not rely on the pull-up resistor. If the output polarity is wrong, invert the comparator’s input configuration. To avoid the diode, just put the LED’s cathode at -12V and use an appropriate resistor to limit current. Furthermore, if you want a nice square edge, you’d put the comparator on the output of the optocoupler, not the input.What’s the signal source in the first place? You probably don’t need the opto.>>2998765Why do you want to learn electronics? To make robots, synthesisers, radio transceivers, IOT devices? Or to fix or reverse engineer hardware? To get a job? Do you want to build other people’s designs, or make your own? Do you want to outsource production, or get your hands dirty? Only once you’ve set a goal can you work on your roadmap.There are general skills worth understanding for any field, like the basic intuition behind ohm’s law and equivalent sources, input and output impedances, and common components like diodes and capacitors.
>>2998769>Might be a slightly different IR wavelength?I mean, the original remote has the problem as well as the universal remote. The universal was able to read the signals from the original remote no problem. The only thing having an issue is the fan itself.
>>2998770>Usually you’d have the comparator pull current through the LED, not rely on the pull-up resistor.That actually makes so much more sense and solves the reverse polarity problem, thanks anon.I think I could well use a transistor instead of an optocoupler like >>2998633 but it seemed wise to keep my 3.3 V Pi Pico separate from the rest of the circuit which is +/- 12 V. The comparator is required in the first place to work as a kind of zero crossing detector so that I can measure the frequency of arbitrary input waves.
>>2998773Right, makes sense. To speed up the edge of the optocoupler, you'll want to mess about with the LED and phototransistor resistor values. The datasheet might say something about that, usually in the context of a current gain, e.g. 1mA into the LED corresponds to 500uA in the collector. Too large of a phototransistor resistor and it will react too slowly, but too small and it won't saturate properly, giving you something like 3.3V max and 2V minimum, for example. No clue about that 1M resistor, never seen aything like that myself.
What's the best way to make a housing for a DIY linux handheld without a 3d printer
>>2998739>How do you boost IR reception?if it bothers you so much, you buy or make an IR repeaterthey come in wired and wireless flavorsalternately, you walk up to it and hit the switch with your cock
>>2998809>without a 3d printeruse a 3d printing service like jlc3dp.comto get it made fast, go local: google "3d printing service <name of my town>"
>>2998809Designing your parts in CAD and paying someone else to 3D print or CNC machine them. JLC3DP are pretty good, though there might be local options with faster turnaround if you need that rapid protyping ability. Depending on what and how much you're ordering, it may be cheaper to buy the printer and be done with it, but it may understandably be something you don't want to waste your space or time. Especially if you go for resin parts.What kind of hardware are you going for? CNC machined aluminium is attractive for its heat sinking ability, but depending on CPU choice that may not be an issue. Just as important as designing a good case is designing something manufacturable, with 3D printing it matters somewhat (less so with SLS) but with CNC machined parts it really matters. I wouldn't really trust the chinks with designs that need to be reoriented by hand, there's room for error in the alignment (I've seen people run into problems like this from chinese CNC shops) and it's also probably more expensive too. A lot of my PCB part selection decisions come down to soldering price.If you're obtuse, you can try to go analogue. Make a mould or plug using modelling clay or plaster of paris, then use that to make a fibreglass or CFRP hard shell case. No CAD needed, but probably a silly idea.
>>2998809>linux handheldwat
>>2998821>watpoor deprived kid, your mom never got you one?
>>2998762>Do I need a current limiting resistor?Maybe between D1 and ground, so it doesn't create a voltage divider with the 1k resistor. Just guessing.
>>2998762>Do I need a current limiting resistor?put the diode in series with the LED and good as goldor at least pyritethe idea of putting a diode to ground makes sense for transistors, coz you're protecting against electro-magnetic noise that can turn on transistorbut LEDs are 217x less susceptible to EMPs so you dont need that
Optocoupler is working in a much simpler setup now, thanks to everyone who helped.>>2998777>No clue about that 1M resistor, never seen aything like that myself.I heard that it is used to "remove excess charge that builds up at the phototransistor base". It seems to improve my rising edge times. Although to actually measure the frequency on the MCU I will use the falling edge, which is a lot sharper. I can get a faster rising edge with a 1k pullup resistor, but that seems rather small for that purpose??It does seem a bit wasteful that the optocoupler uses ~10 mA (or I suppose 5 mA assuming a 50% duty cycle), but that's from the data sheet test conditions.
>>2998911converting a bipolar sine wave to a positive-only square wave :^)now I just need to write the frequency measuring code
>>2998911Wow that 1M does make a difference, I'll have to keep that in mind, shame my discrete phototransistors only have two pins.The datasheet says it has a current transfer ratio of at least 100%, so I'd try to design it with the same current through the LED and phototransistor. If they were at the same voltage then the same resistance would be about right, but because your LED side is on 24V and your phototransistor side is on 3.3V, your phototransistor side resistor should be approaching a much smaller value for optimum speed. Like 290 ohms, though I suspect that's diminishing returns. You're currently giving the LED side 10mA, the opto can handle up to 50mA which might be a tad faster, but I'd leave it as is. Maybe try a ~200k resistor instead of 1M if you're curious.>>2998916There's a little bit of phase offset, is that the maximum frequency you care about?What's this all for anyhow?
>>2998918300 ohms on the phototransisor side gave me a 5 us rise time, that seems bretty gud. Thanks for pointing out the need to match the currents on either side.I don't think the phase offset will affect my application. This is self-calibration circuitry for a synthesizer - I need to calibrate multiple voltage controlled filters to have the same response curve. So I'll measure the self-resonant frequency at a couple of different input voltages to establish calibration curves for each one, so I can get them in tune with each other.Rather than reference the comparator to ground, the next part of my plan is to use a DAC output as the reference instead. This should let me measure the maximum amplitude of the signal by increasing the reference voltage until a square wave is no longer generated.Been working on this for about 7 months on and off...
>>2998928Neat idea. I guess you'll use an analog switch IC (e.g. CD4051) to select which filters and waveforms to measure? Optical isolation isn't a necessity inside a synth, I'd probably have just gone with a resistor network to level-shift the signal, followed by clipping/TVS diodes instead for input protection. That would allow you to use the MCU's ADC or analog comparator directly.
>>2998930I guess there are many different ways to do it. Surely the optocoupler adds a bit of safety by isolating the MCU from the much higher voltage analog stuff. I've already accidentally killed one output pin by exposing it to the wrong voltage
Is it even possible to sodder these DFN-style SMT LEDs with an iron? Or should I just stick to something like 1206 or THT LEDs?
>>2998991>with an irononly if you want to experience pain.a hot plate or hot air is what I'd use.
I bought a set of trimpots on aliexpress (among other things)The outside bag was full of a clear bubbly liquid, and each smaller bag with the actual trimpots have the same liquid in them.Almost looks like soapy water, has no real smell that I can tell.Everything else in the package was dry, just the trimpots.Have you ever had this happen before? Am I going to die from exposure to this extremely toxic liquid?Is it going to ruin the variable resistors?
>>2998991>>2999006Looks doable with solder paste and an iron. Add a fat via under the each pad so you can reflow them with an iron from the underside if you want to try that.>>2999009Could be something like a silicone dielectric grease or oil.
>>2999009>Am I going to die from exposurenever heard a more outrageous story in this domaini would junk it immediatelybut, if you're curious,. go back to the product page and read the reviewsthere may be an explanation from a customer
>>2999016Its fentanyl juice, touching it will kill you
>>2999015>Looks doable with solder paste and an iron. Add a fat via under the each pad so you can reflow them with an iron from the underside if you want to try that.maybe. depends on the PCB layout and the size of the pads. if the pads are like in the spec sheet, it will be tough to heat up the pad and get the solder to flow under it.>>2998991 are you manufacturing the PCBs yourself? If so, just make the "outside" part of pads slightly longer and then you might be able to bring the iron to it.but still, a cheap hotplate or hot air is much easier. hell, even a clothes iron with a PID would do for this.
Sorry for dumb question but is there a technique to locate a short component in a circuit with just a multimeter? I know how to check if there is a short circuit and I'm also aware of the current injection technique. Just wondering if it is possible with just a multimeter.
>>2999075Probe for resistance.https://www.youtube.com/watch?v=GnxO3gwf8E4
>>2999075A multimeter’s resistance mode injects a current, but a pretty low one, and without 4-wire sensing, so it’s not really useful below a few ohms.A spare battery and a current limiting resistor (and a clamping diode) is cheap and pretty effective. Replace that resistor with a constant current circuit (e.g. LM317) if you want something more quantitative.
>>2999075>if it is possible with just a multimeterif you can read millivolts with good accuracy, make the CC source this guy describesbut arm yourself with patience as this asshole is ponderous as fuck, and has an incomprehensible accenthe made a second video to defend the idea that this circuit is NOT dangerous to componentsbut it's a bullshit explanation, as it only applies to probing the power pins, not regular IO pinsso, proceed with cautionhttps://www.youtube.com/watch?v=P_2GGNr4q1s
>>2999112If you clamp the voltage with a diode, the 0.6V won’t be enough to force open any transistors or diodes, so no current should end up flowing through silicon. Even better if you use a Schottky diode. There might be rare cases where internal silicon connections are broken out externally, like the two source pins of some power FETs, or the multiple ground pins of a microcontroller, but I suspect these are not likely to be in the path of your current. My diy current source has a 10mA, 100mA and 1A range, using the 10mA range makes for a convenient preliminary test to not blow anything up. Though honestly I just use my adjustable bench supply instead, despite its massive output capacitance.
How do you measure capacitors, resistors, inductors in-circuit without desoldering them? Is there a good way? I've been using my multimeter to troubleshoot a fault and my readings are all over the place. Definitely not the specified values. I suspect this is because I'm measuring them in-circuit. Desoldering them would seem like a massive PITA.................
>>2999300Try swapping the leads of the multimeter if there's an active component interfering. Suffice it to say your circuit should be off when doing that.Resistors usually have a labeling so you don't need to measure. Just lookup the color code or smd resistor code.Caps are often in parallel so there's not much to do here.If you have to measure the value of an inductor you have bigger problems.
>>2999300With one of these
>>2999309How do these work? I assumed measuring ESR was complicated since the impedance of the capacitor has to be disentangled from the ESR, and that ring testers were easier to make. But that’s just got a moving coil meter so it can’t be digital.
man i wish there was a clamp meter comparison table, like there is that eevblog forum meter comparison tablei want a dc clamp meter with min/max feature to chuck in the toolbox to replace my min/max handheld meter and my shitty dc clamp meter (e.g. uni-t ut203+)dual-screen ones are also nice since you can often see both ac and dc current, or ac voltage and frequency, but they are expensive (e.g. ut219ds)
>>2999309>>2999310Oh I see, if it's for caps over 1uF, 1uF @ 100kHz is 1.6 ohms, so it becomes a rounding error. 1uF and up is useful, though some really small motor caps are more in the 470nF range, so having a mode that goes up to 1MHz might be nice. Seems simple enough to DIY something with a battery, which plugs into your multimeter for it to measure the output volts. If the meter can measure AC volts at 100kHz then it's really easy, but mine doesn't go above 2000 so you'd need a rectifying stage with minimal dropout, a high-speed op-amp ideal rectifier would probably be pretty doable. To get DC volts proportional to ESR, you'd be amplifying, rectifying, and measuring the voltage across the capacitor, and for that to be linear you'd want a constant current AC source feeding it. That should be pretty doable with an op-amp transconductance amp circuit, but if the voltage range is 0-100mV compared to the voltage range of the op-amp (e.g. from a 9V battery) it will approximate a constant current if using a current limiting resistor. Clamp it with a pair of (schottky) diodes. I guess a square wave would be fine, all that matters is the voltage amplitude is pretty constant, though a square wave would run up into the slew-rate and GBWP limits of the rectifier and/or amplifier.Just looked up some schematics, I see one using a 400V rated DC isolating capacitor so it can measure caps while circuits are still live, seems sketchy but it could definitely be useful.
First board and i need a sanity check. I got a DIP28 and the dimensions between the holes are tiny. Is this, pic rel really the right way, or should I rather route three traces around top and two bottom?
>>2999489What i mean by routing around.
>>2999489Check your PCB fab-house's tolerances. It should be fine, but if it's not any inconvenience >>2999490 looks nicer and is more forgiving of problems. Be those fab-house problems (unlikely) or soldering bodges. You've got thicker traces for your power pins, the only issue I see is those pads making big cutouts in your ground plane. That might be fine, but you could consider reducing the ground pour clearance value so it fills between holes if EMI is a particular concern.
>>2999489>Is this, pic rel really the right way,yeah, DIPs have so much spacing i've even seen 2 traces go between pinsbut i'd space out the 45-deg sections so they're not hugging the holes so much
>>2996880anyone know good resources for thinking about and applying laplace transforms to circuit and amplifier design?i know fourier theory in all its different forms well, however i don't have a good resource for laplace transforms.they seem based more on analysis than linear algebra (even though they are linear transforms) and i don't know how to practically use them for engineering.
I want to convert some old organ pedals into continuous midi controllers.It's pretty simple in terms of construction, a hole where a switch used to sit is pushed into by the pedal, and I'm trying to think of the best way to measure that gap.At its lowest, the pedal sits about 11mm low. At highest, it goes maybe 4mm below the hole, and it moves in a slight arc, so about 7mm of travel. I initially thought hall effect would be good for this, but it seems maybe slightly far to get a good reading, and they seem like a pain to work with. I'm now thinking some kind of optical sensor would be better, the holes are fairly closed off from each other.What's good in this field? I want to spend about 1-3 bucks per sensor, and ideally use something that runs off 3.3v that just has an analog output.
>>2999680Guitar wah pedals move a potentiometer through mechanical linkage (gears).
r8 my breakout matryoshka, /ohm/>300x400 mil protoboard with pin headers>300x200 mil spacer/insulation board>TLR377GYZ-EVK-001 breakout board on top of that>TLR377GYZ on the very topthe chip itself is the world's smallest opamp. 0.88x0.58 mm 2x3 0.3 mm pitch BGA
>>2999688B-Higher grade if you remove the breadboard from the equation.
>>2999685Yeah, but potentiometers fail, and I want something that can deal with very fast movement. I saw a paper where a guy used VCNT2025X01 for harpsichord key sensing, so I bought some TCRT5000 boards because they were 30 cents each.
>>2999688>world's smallest opampthem giantastical wires hardly match the theme of the partytry 30AWG wire wrap wiresa wire so thin, it's almost wirelessshould always keep some at ohm
>>2999690You could use a rotary encoder, but it's digital. FWIW, a wah pedal can last a long time if it isn't abused and cleaning a pot isn't too much of a hassle.
>>2999698The main issue here is the hassle of gearing up 20+ pedals. They all pivot on one very long shaft.
>>2999696I do have some really thin wire but stripping it is more of a pain than using the 1.27 mm stuff
>>2999700IR emitter/sensor combos could work. It might be easier to mount them at the lever where the motion is more linear and the feedback is smoother.
>>2999680>some kind of optical sensor would be betterif the pedals are thin enough, an opto interrupter gives you a much cleaner and stronger signal than the reflective stuffand it works fine on dark surfacesno discrimination up in this bitch
>>2999720Not really possible, the hole at the top is smaller than the pedal width.
>>2999680If you’ll be interpreting it with a microcontroller anyhow, use a static hall sensor and have alternating poles of magnets on a rod that moves past it. If it’s a binary hall sensor, then you get a low resolution. If it’s an analog hall sensor, you’ll get plenty of resolution if your ADC can handle it. If you use a digital rotation hall sensor, like in the Open Micro Manipulator:https://github.com/0x23/MicroManipulatorStepperYou can achieve sub-micron precision.Think of it like a non-contact rack and pinion, where the rack teeth are the alternating magnets, and the pinion is the sensor.Equivalently, you could make other custom encoders. Say you have two or more static photointerrupters, and a series of cutouts move past them.>>2999721Gonna have to post a picture or diagram or two of the kind of space we’re working with.
>>2999724Seems like too much effort when I'm crushing it all down to 127 points anyway due to the MIDI spec. If I can get 0.1mm resolution over 7mm out of these cheap IR combo boards, that's probably good enough with a bit of software smoothing.
>>2999720I got tons of these from an old printer someone threw out. I once got a free printer when I bought something at this computer store, but the ink refill cost $100 so most people just throw out their inkjet printers and you can find parts in them. Newer printers, less-so though.
latest Veritasium is about the Smith chart: https://www.youtube.com/watch?v=GK2pZ_oVU1o
>>2999726>If I can get 0.1mm resolution over 7mm out of these cheap IR combo boardsWhat sort of combo board are we talking about?
>2200w sewing machine ac servo motor i just got this chinese motor and id like to put it on a drill press with a pair of simple spst foot switches for fwd/rev so the motor would only be on when the corresponding direction pedal was depressed does anybody have an idea if i could tap into anywhere on the controller do accomplish this? im used to vfds that have simple terminals for this basic control and im mildly retarded
>>2999767heres the existing control interface
whats the trick? what kind of a flux do you need to solder batteries?
>>2999771probably zinc acid like plumbers use
>>2999767I assume the D button is for direction, that will be a pain to interface with via pedals, so I'd want to bypass it.Do you want variable speed from analog pedals? Or just on-off pedals with speed adjusted by hand? The former is difficult. The latter just requires proper wiring of the foot switches. For a brushed DC motor you'd just need a pair of SPDT switches, but for an induction motor with a run cap, I suspect you may need DPDT switches for each pedal. Or relays if you'd rather not have the full motor current going to and from the foot switches.Assuming the potentiometer knob on that controller is for speed, If you do want variable speed analog pedals, you'd need to put a potentiometer in each pedal using a rack+pinion or pulley mechanism. In addition to the switch. If instead it's digitally controlled with the +/- buttons, you'd have to get in there with a microcontroller and some transistors or optos or reed relays to fake the button presses. And probably some feedback measuring the display segments to figure out what speed it's set to. Not easy or fun at all, to the point I'd be trying to replace the controller with something more hackable.If you can elaborate what sort of motor you have, and how the controller's interface works.
>>2999788i wish it was just cutting the leads to the control but thats a little board itself with a logic chip and the outputs arent directly connected to the buttons
>>2999788>elaborate what sort of motor you haveits a generic china ac brushless servo there were originally sold for sewing machines
>>2999793I mean, just take that board out and run some wires to where the button contact is? The easiest option would be just to have one pedal hooked up to the potentiometer for speed control, and a second foot switch to swap direction. Although I don't know what that pot actually does, you might have to go really simple and use 3 foot switches, one for speed up, one for speed down, and one for reverse direction.
>>2999796thers way more going on with the little controlboard than on/off since it interfaces the parameter settings too. the direction control button isnt instantaneous either. it goes through a ramp down then stop then accelerate sequence and clicking the button during the process does nothing. and if the speed pot is set to 0 the direction control button doesnt change the starting direction. its also used to confirm a parameter change
>>2999611anyone?
>>2999797Yeah, I'd just interface them all out to ports and hook up some labelled foot pedals.
>>2999793>>2999794Ah, so it's not an induction motor but a proper synchronous motor with a variable frequency drive, with its own encoder. You might be able to swap phases AND swap encoder wires in order to swap directions with mechanical switches and no extra logic, but it depends on how the encoder is wired.Again, my questions stand:>Do you want variable speed from analog pedals? Or just on-off pedals with speed adjusted by hand?>How does the controller's interface work, especially the knob on the front, is it a potentiometer or a rotary encoder?
>>2999611Isn't that control theory? Poles and zeroes, stability of feedback loops, that sort of thing? I haven't studied it myself, but there seem to be some freely available MIT lectures on the topic. At least I assume control theory uses laplace transforms. Maybe digital signal processing does too.
>>2999771don't solder batteries, dumbassif you must, use a low-melting solder like indium-tin>>2999611laplace is just fourier with a real term added. it's actually shocking that we don't just teach students the laplace transform immediately seeing how useful italso look up Brian Douglas' control theory lectures on youtube
>>2999771spot welder and nickel stripsaccept no substitutes
>>2999611>>2999798books on analog and digital filters.
>>2999771>whats the trick?the trick is to use a file or tiny grinding wheelthe metal has a zinc coating which will not wet solderyou file off a small section near a corner to reveal the steel beneath, and solder to thatsteel is not great at receiving solder, unlike copper or brass, but it will work eventuallygive the wire a tug to make sure it's solidly James Bond'ed
>>2999839There's actually a cheap jig you can buy specifically for that.But really >>2999813 is the way to go.
>>2999774>probably zinc acid like plumbers useI'll try to find some of that.>>2999812>if you must, use a low-melting solder like indium-tinwtf is that shit so expensive? I can buy a spot welder for that.>>2999813>accept no substitutesI don't want to wait 2+ weeks for it to arrive from China.>>2999839>the trick is to use a file or tiny grinding wheel>the metal has a zinc coating which will not wet solderThanks! I'll give that a try. I have find sand paper.I need to solder it today.
>>2999771For low current applications just use a 18650 holder
>>2997449update on the pee hole circuit. I've ordered boards and parts
>>3000125Mind telling us what this is for? Soviet spy microphone?
>>2999489>>2999490the parasitics in this circut must make tape worms jealousim guessing this is a 5V circut with no more than 10mA per pin and bus speeds lower than 20MHz so must be negligible
Was designing a CC/CV feedback loop for a 4-quadrant power supply, operating off 12V like a deep cycle battery. PWMing an H bridge with a pair of inductors and capacitors to make a bipolar buck converter from a single supply, using a conventional triangle wave comparator PWM circuit. Turns out LM324 differential amplifiers work for everything. One as a current sense amplifier with a gain of 10, one as an attenuator for the output voltage with a gain of 0.1, both referenced to 1V, as the DAC outputs go from 0V to 2V. With error amplifiers with a gain of 100 comparing those measurements to the DACs.But I just realised that my method of combining the two feedback loops with diodes won't work. Normally, if your DACs are set to +5V and +0.01A into a 100 ohm load, the 0.01A output would pull via a diode to stop the output going any higher, the voltage would stop at 1V, and the voltage feedback loop would be open-loop. But then if I tune the current past 0A down to -0.1A, the current would go up to -0.1A and the voltage would shoot down to -10V.What would be the best way to solve this? I know I could use the MCU to drive the H-bridge directly, but I'd rather have analog feedback loops. I could measure current and possibly voltage before the H-bridge, but then I'm losing information, which might matter especially when I'm doing some sorta galvanic cell or whatever that operates in the generating quadrants. There's a few power op-amps (e.g. LT1970) with integrated current limit that people are using as 4-quadrant linear supplies, in the same vein you don't appear to have any ability to specify whether the set current is negative or positive.More op-amps? MORE OP AMPS???
>>3000126converting capacitance to frequency
>>3000163you could build a max() circuit maybe. that way regulation happens on whichever of current and voltage that is "too high"
I've used KiCad 7 a little. I just loaded up KiCad 10 and plan to make a few projects. I don't feel like I need a "Drawing Sheet" to build my schematic. Any thoughts on that?
I feel retarded here installing a vent fan with a built in humidity sensor. I have 2 switches in the wall and don’t want to run another circuit. I’m going to put my light and fan on the same hotleg so they just come on together. I have no idea what to attach the brown and black wire to though. The red wire coming in is from the other unused wall switch so I know one of the brown or black wires go to it, I just don’t know which one and what to do with the other wire.
>>3000188What are you hoping the second switch will control?What is the unwired black wire labeled? What is it going to?The brown is labeled SC/H/M, right? It's hard to tell. What is the brown wire going to?
>>3000188Also, do you have either a schematic or a part number for the fan/whatever the brown and black wires are going to?
>>3000188It would help if you had a make/model, but I'm guessing that the humidity sensor (brown wire) is supposed to be unswitched because it controls a relay to the fan which is the black wire (hot to fan). So you either switch it at the wall, or the sensor switches the relay when humidity is high enough.Brown - unswitched hot supply for the sensor and relayBlack - relay-switched hot supply to the fan*It might be vice-versa. Read the instructions.
>>3000192>when humidity is high enough.and/or shut off when the humidity decreases
>>3000189I want to keep the second switch on at all times and it’ll just kick the fan on when the room fills with humidity. The brown, 1 black, and 1 neutral are bundled with the SC/H/M label. >>3000189>>3000190It’s a Kaze SNP100HLP. I’m not an electrical guy, but it looks like the brown goes to the red hotleg coming in. But that leaves me guessing what to do with the unused black. Does it go to the other black hotleg coming in/motor/light? Or do I just cap it.
>>3000188>I’m going to put my light and fan on the same hotleg>>3000194>I want to keep the second switch on at all times and it’ll just kick the fanI'm confused; these two statements seem contradictory. Can't you just wire it as your schematic shows?
>>3000194Tie all the black wires together. Tie the brown to red and keep the other wall switch on so the sensor works, or bypass the wall switch and hard wire the sensor in a junction box.
>>3000194I think you need to tie the black Motor wire to the black SC/H/M wire. So wire as the schematic shows omitting the fan switch
>>3000195I want the fan to come on when someone is pooping with the light on. But I also need it to come on when someone showers and the room fills with humidity. It’s a bathroom toilet closet inside the master bathroom. It’s gets very damp in there when showering and I need the fan to come on when we forget to flip the switch. Schematics show 3 switches in the box and I only have 2. >>3000196Ok. That’s the way I was leaning but didn’t want to fry the motor. I’ll give it a shot and see.
>>3000198Brown to red. All blacks and light togetherAll neutrals together. https://youtu.be/dHTBPa5fDkk?t=116&si=7rOQ06xu86cWgRfg
>>3000198SoIf the light is on the fan is on.If the light is off and there is humidity the fan is on.If the light is off and there is no humidity the fan is off.Is that what you want? If so, you need a 120VAC coil relay where the coil is controlled by the "LIGHT SWITCH" and the contact is the "FAN SWITCH" above "COM". Everything else would be the same as the schematic.Or you can do it without the relay by tying the black wire from the light switch to the blue of the light and the black of the fan. But then your light will turn on whenever there is humidity.
>>3000199If you do this your light will turn on when there is humidity
>>3000200Yea pretty much what I’m looking for. I may try the relay later if this >>3000201 gets annoying. Thanks everyone for the help. Really appreciate it.
>>3000202Anon, do the following:1. Tie all blacks together with blue.2. Tie red to brown.3. At the wall switch, jumper red to black or remove the switch and install a junction box so you can permanently wire the sensor.Then you can poop with the fan + light or shower in the dark and let the sensor switch the fan.
>>3000206or leave the switch and put tape on it so nobody turns it off.
>>3000207The humidity sensor controls a motor relay (built in).
>>3000209Yes, but he has two inputs for one fan.Humidity->fan onLight switch->fan onThose are not the same input
>>3000210One hot is switched at the wall. The other is switched by the sensor/relay. They are independently switched. Otherwise, the sensor has to be switched on which is confusing.
>>3000212>Otherwise, the sensor has to be switched onThis is a good thing because then you can turn the sensor off if you need to. Like if you need to dust the fan blades or get a bird out
>>3000214You can do that when the humidity drops and the fan is off. lol
>>3000215True
>>3000172A min() circuit is what the normal diode combination of error amplifiers of a CC/CV supply normally does. And as I said, -10V isn’t as high as a +5V limit.I should probably draw out a chart of all the possibilities for set-points of voltage and current in the four quadrants, and different types of loads. Because it’s for electrochemistry, the load could be positive voltage but negative current.>>3000183What you do is ignore the writing on the sheet and build your schematic anyhow. There’s probably an option somewhere to delete or at least hide it.
>>3000163>>3000228I guess the question I have to ask myself is the following:>current setpoint = 0.1A>voltage setpoint = -5V>10 ohm loadShould the output be -5V, -0.5A, or should it be 1V, 0.1A?Equivalently, what about when the current setpoint is 1A? Should the output be -5V, 0.5A, or should it be 10V 1A? The same questions apply to a negative load resistance, but for test values in the positive quadrants.I think I’d prefer 1V, 0.1A for the first, and -0.5A -5V for the second, but that’s kinda arbitrary, I don’t want it flipping quadrants just because the effective resistance passes through some non-zero threshold. So I guess the only answer is to ditch the min or max diode logic, and instead digitally control whether it’s operating constant-current or constant-voltage. With an analog switch IC, JFETs, or just something simple like transistors pulling the signal down. I could still pipe the sense amplifier outputs into ADCs to measure voltage and current if I want to add software limits.
>>3000243Actually I probably could have analog switches with multiple diode combinations so it can smoothly switch from CC to CV, or whatever. At least I think that makes sense.
Dumb question. How hard is it to get 6 volts from USB-C?I have an old device (Key Digital KD-CSW4x1 component video switcher, picture from Google) that is missing the original power supply. For some odd reason the OG PSU was 6 volts at 5 amps. That seems like a lot of electrons for a switcher but it apparently was a very good one for its day so whatever. A new chinesium PSU with the connector I need is $15. Assuming I can source a connector, can I cheaply get 6 volts out of USB-C or would that be not worth the cost?
>>3000358>How hard is it to get 6 volts from USB-C?6V is not a standard voltage. Arguably you can use USB-PD 3.0+PPS to get 6V at 5.0A, so long as you have a PD supply at that supports PPS at 5A, and a 5A rated PD cable, and a PPS-based PD trigger module. That's the hard part, I haven't seen any off the shelf PPS trigger/decoy boards that aren't kinda expensive, bulky, and with a screen and buttons. No clue if they even have the ability to save their programmed state. PPS is also kinda strange, you can't tell it "give me 6V" instead you activate PPS and tell it to increase or decrease the output step by step, so arguably it's not a very robust protocol. Plus it will be hard to find a 30-45W PPS-capable charger. Even if you can get it to run off 5V directly, a lot of 30-45W PD supplies are 3A maximum. It is still possible, with a custom PCB you could probably get a PPS trigger down to $5-12 per board, in lots of 5 boards, using one of those chinesium PD trigger capable MCUs, if you're willing to do that programming. If you need more than one of them, or want to sell them, or have other uses for PPS PD, go for it.Instead I'd probably lean towards a 3A@12V/15V PD trigger, followed by a buck converter, if not just buying a replacement PSU.I'd also look inside this machine, specifically why it has a 5-pin DIN plug. Maybe it's getting split-rail +/-6V, or +/-3V. A dual supply like that would be useful both for RS232 and analogue signal handling.
>>3000358I would just try a 5VDC PSU. Maybe it's 6V to compensate for voltage drop across a reverse-polarity protection diode.
>>3000358>>3000367just get a small USB-C power delivery board and set it to 5V and then boost it to 6V with a trimmer pot. pic related is an open source "PPSTrigger - USB PD Trigger SuperCharged with PPS" but you're better off getting one pre-made from China.
>>3000369yeah, this might work too. but I've had some issues in the past where 5V at the input was not enough to trigger some TTL ICs but 6 or 7V would. maybe he could remove input protection diode in such case and 5V would work just fine. no idea how far the anon wants to go.if not, something like >>3000370 is the way to go.
>>3000370Where do you get those from china? I'm kinda surprised I haven't seen any clones of those on alibay, it's been at least a year since that design was published.
>>3000371>remove input protection diodeAnon could inject 5V after the diode to test. If it works then just jumper the diode.
>>3000372>Where do you get those from china? I'm kinda surprised I haven't seen any clones of those on alibay, it's been at least a year since that design was published.the author of that wants <$10 on Lectronz.on Chinese sites look for "MT3608 Boost" boards and find one with the Type-C plug. It has a trimmer.>>3000373>Anon could inject 5V after the diode to test. If it works then just jumper the diode.Yep. He should def do that and that's the way to go (if the diode is the cause for the 6V req(. the USB-C board will act as a (much better) protection anyway.
>>3000375>MT3608 BoostNot at all the same, it's just a 5V non-PD board with a noisy chinky boost convert on it, and it's only rated for 2A. A PD supply wouldn't even provide 5A to something without a proper PD identifying IC on it, and for 6V@5A you'd need at least 5V@6A, which isn't USB PD compliant at all. You'd be better of stepping down from a higher voltage.
>>3000367>specifically why it has a 5-pin DIN plugThat is actually a picture from a different revision of the device. Mine has a "standard" barrel connector, as much as there can be. There are a couple dozen "standard" barrel connectors out there in common use.As for your suggested solutions, way outside my wheelhouse. I'd hoped it would be something simple I could bodge together using a cheap USB charger and a hacked together cable. Kind of like how you can power some old Atari computers the same way.
>>3000381>>3000367>>3000369>Maybe it's 6V to compensate for voltage drop across a reverse-polarity protection diode.I said, fuck it, it will probably have a chip in it that handles power. Open it up, find the chip, and google it. Twenty FUCKING three screws later, I have the inside of the device. More to follow.
>>3000382I am not really an electronics guy. I can solder well and have repaired a few old computers/consoles by finding bad chips and replacing them. When it comes to doing actual electronics stuff, not just fixing what is there, I am a dunce.That said, I can google IC numbers! It appears to be a LM2940C. TI says this thing takes input voltages of 6 V to 26 V. So, I could probably use a dirt common 9v or 12v PSU! Yay. I hope they didn't go with the minimum voltage so they wouldn't have to put a heatsink on it or a fan in the case.
>>3000383No traces on the bottom of the board. Multilayer PCB. Huh. Didn't expect that.
>>3000384The other end of the top side of the board, in case anyone wanted it.
>>3000382>>3000383You could use an external buck converter to bring 12V down to 6V so the regulator doesn't get too hot.
>>3000382>>3000383LM2940 has a minimum input voltage of 6V, but it's a 5V regulator so you should be able to bypass it if you run it at 5V. But it's only 1A rated, so it can't be where all the current goes. Overvolting its input would make it dissipate more power as heat, since it's a linear regulator.The real question is, what if anything runs at the native input voltage.>>3000384You can still look up other IC numbers, see what their voltage requirements are, and measure continuity from the +6V input to their Vcc pins.>>3000386Yeah, this or use a cheap PD trigger set to 12V.
I'm repairing my 35 year old stereo amplifier. I have a few of questions for you guys:1. The original speaker protection relays have been discontinued and are no longer available. Do you reckon if I remove one of them and go to an electronics store they would be able to find a matching replacement?2. The two 6800uF filter capacitors tested out fine for capacitance and ESR, but I think they look very slightly bulged. Should I replace them?
>>3000431Also, I heard somewhere that all fuse resistors should be replaced. But I think they were talking about Sansui and I have a Technics amplifier. Opinions on this?
>>3000431do the relays have any ratings on them? if so get replacements that meet those ratings. current is likely to be the most important thing
>>3000431Relay replacements should be doable. Absolute worst case scenario, you have to buy relays online with a different footprint and missing an internal component or two (e.g. snubber network or diode), using wires to donned them to the original relay’s pads. But relay footprints are surprisingly standard, so I suspect you’ll be fine. Local stores vary a lot, often they just have automotive-style relays. Do a search yourself before desoldering them, filter by maximum voltage and maximum current, to be equal to or greater than the old relay (or what the circuit will actually see), and also probably by dimensions, number of leads, etc. The parametric search tools on sites like Mouser and Digi-Key are great.Even if the caps are measuring good now, with a bias near 0V, they may not have low leakage at higher bias voltages. Unless you can test their leakage current at higher voltages and higher temperatures, I’d want to replace them.>>3000432No clue about fusible resistors.
>>3000387Eh, that is a lot of work to save $15. That you for the help though. Also, literally every IC except the power IC has had the numbers scratched off of it. Haven't seen that since I replaced the RAM on some old 80's arcade games. I guess they didn't want anyone to copy the design. I found a manual for this thing while searching for a schematic (which isn't available, natch) and this thing supports composite, S-Video, component, and RGBHV. Crazy.
>>3000431>remove one of them .. electronics store ... find a matching replacement?if you mean an actual store, the chances are very slimonline, you get a much wider selectionbut none of that mattersall you need is match the coil voltage and current capacitythen solder 3-inch long wires to each terminalturn relay upside down and hot glue him/her to the PCBas for the caps, leave 'em alone unless you hear hum at high volume, with a shorted inputreputable companies will over-rate their caps so they'll work ok even as capacity drops with age