[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 210 KB, 770x500, 1516736257191.jpg [View same] [iqdb] [saucenao] [google]
1371574 No.1371574 [Reply] [Original]

old truth thread: >>1363100
>I'm new to electronics, where to get started?
There are several good books and YouTube channels that are commonly recommended for beginners and those wanting to learn more, many with advanced techniques. The best way to get involved in electronics is just to make stuff. Don't be afraid to get your hands dirty.

>Books?
Beginner:
Forrest Mims III, Getting Started in Electronics
Charles Platt, Make: Electronics
Michael Jay Geier, How to Diagnose & Fix Everything Electronic

Intermediate:
Kybett & Boysen, All New Electronics Self-Teaching Guide
Paul Scherz and Simon Monk, Practical Electronics for Inventors

Advanced:
Paul Horowitz and Winfield Hill, The Art of Electronics

>YouTube?
mjlorton
paceworldwide
eevblog
EcProjects
greatscottlab
AfroTechMods
Photonvids
sdgelectronics
TheSignalPathBlog

>Project/idea websites?
http://adafruit.com
http://instructables.com/tag/type-id/category-technology/
http://makezine.com/category/electronics/

>Components/equipment sources?
Mouser, Digi-Key, Arrow, Newark are global full-line distributors with small/no minimum order.
eBay/AliExpress sellers, especially good for component assortments/sample kits (caveat emptor)
Independent retail electronics distributors
ladyada.net/library/procure/hobbyist.html

>Circuit simulators?
This mostly comes down to personal preference. These are the most common ones though:
LTSpice
CircuitJS (quick, dirty, interactive)
NI Multisim
CircuitLab
iCircuit for Macs

>PCB layout software?
KiCAD (recommended)
CircuitMaker
Circuit Wizard
Various high-end commercial offerings (Altium, etc)

>My circuit doesn't work. Halp?
Check wiring, soldering, part pinouts, and board artwork if applicable, then post schematic. Supply ALL relevant info and component values when asking a question.
>Li+/LiPo batteries
Read this fine resource first: https://www.robotshop.com/media/files/pdf/hyperion-g5-50c-3s-1100mah-lipo-battery-User-Guide.pdf
>I have junk, what do?
Take it to the recycler.

>> No.1371576 [DELETED] 
File: 51 KB, 1275x1650, 1522843545967.png [View same] [iqdb] [saucenao] [google]
1371576

this thread's digits brought to you in part by the MAX1574 charge-pump LED driver IC

>> No.1371580
File: 275 KB, 1062x1375, 1503343929994.png [View same] [iqdb] [saucenao] [google]
1371580

this thread's digits brought to you in part by the MAX1574 white LED driver

>> No.1371679
File: 373 KB, 2226x1623, 1500092160518.png [View same] [iqdb] [saucenao] [google]
1371679

Please help an Arduino fag. Why isn't pic related working?

I'm trying to use a transistor to turn the Arduino on or off. If I press the push button then the transistor is turned on. Then the Arduino should automatically continue powering the transistor via the 5V pin but that doesn't work.

>> No.1371686

>>1371679
What are the symptoms.
Does powering the arduino directly work? What transistor are you using? Sure it's not backwards?
Ditch the arduino and try powering a series LED+resistor using the transistor, make sure that works at least.
Test the voltages everywhere when the button is pressed / not pressed.

>> No.1371687

>>1371679
maybe you need to connect both ground pins to the negative of the battery? Not sure.

>> No.1371696

>>1371679
the base voltage has to be higher than the emitter voltage for an NPN transistor to pass current. no way for that to happen here
maybe try a PNP transistor that gets pulled low by a switch *and* by a digital output in your sketch. be careful that you don't overvolt the digital output port, if you have like a 5V zener you could use that in line with the I/O port and resistor to drop some voltage

>> No.1371707

>>1371696
>the base voltage has to be higher than the emitter voltage for an NPN transistor to pass current
I thought you can use a transistor to control higher voltages with a lower voltage. If that's the case then why does the base voltage have to be higher than the emitter voltage?

>> No.1371714
File: 7 KB, 706x592, 1518895386986.png [View same] [iqdb] [saucenao] [google]
1371714

>>1371707
transistors are current-mode devices. you can use a smaller current to control a higher current. base-emitter current controls collector-emitter current, so you could use a PNP transistor instead (Q1, R1, SW1) and pull the base toward ground to turn on the lolduino
the MCU won't be happy with unregulated 9V on its inputs or outputs, so you have to translate the level before applying it to Q1. thus, Q2 and R2. in your sketch, turn the Dx output high first thing, and when you want to shut down, turn it low

>> No.1371718

>>1371714
Alright thanks Anon, I'll try that

>> No.1371732

>>1371679
God these diagrams are awful. How am I supposed to tell which way around the transistor is?

>> No.1371745

why is it that a capacitor doesn't make an led flash when I have it in series with one in the circuit? Am I just misunderstanding how they work?

>> No.1371746
File: 6 KB, 400x400, tegaki.png [View same] [iqdb] [saucenao] [google]
1371746

>>1371745
to give the benefit of the doubt, i assume you're giving it a square wave from a microcontroller or something. the problem is that you're charging the capacitor one way when you put the pin high and push current through it and the diode, but then you can't pull current the other way to discharge it because the diode/led blocks it. so the capacitor just stays charged and doesn't let any more current through it.

you can solve it by putting another diode in reverse in parallel with the led. you're not really gaining yourself anything doing it this way though.

>> No.1371750

>>1371732
presumably whether or not the flat face is facing you
unless the diagram always has the flat facing you in which case it either only allows one way of placing them or the person who made the diagram program doesn't know how transistors work

>> No.1371752

>>1371746
I'm using a shitty power supply off of amazon, not sure what the waveform is, haven't been able to buy an oscilloscope yet

>> No.1371756

>>1371752
capacitors only pass AC, so since your DC power supply has almost no alternating current the capacitor won't pass anything at all, and it'll act like an open circuit. if things are sized right the led should blink only once on startup as the cap charges, though it might be imperceptible. what do you want to do?

>> No.1371757

>>1371756
it does blink, very dimly. I'm just experimenting right now, seeing what happens when I do x, y ,z, etc.

>> No.1371758

>>1371757
>it does blink, very dimly
what sort of power supply are you using there boy

>> No.1371759

>>1371758
I meant blink once when I close the circuit, if that wasn't clear
https://www.amazon.com/gp/product/B071RNT1CD/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

>> No.1371761

>>1371752
>>1371746
alright I put an LED in parallel with the capacitor, didn't change much. Only the new LED lights up, no flashing

>> No.1371762

>>1371761
just kidding I put the LED in the wrong place. They both light up, but there's still no perceptible pulsing

>> No.1371764

>>1371761
yeah if you want flashing you'll need some transistors. you won't get it just by fucking around. capacitors pass AC, they don't create it on their own.

>> No.1371774

How do I convert these k maps for the inputs of a D flip flop to two k maps for the inputs of a JK flip flop?
I've been trying for about 45 minutes and I still can't get the first one right.

>> No.1371777
File: 23 KB, 556x494, jkgate.png [View same] [iqdb] [saucenao] [google]
1371777

>>1371774
FUCK

>> No.1371791

>>1371777
google it, this is homework

>> No.1371807

Hey /diy/, complete fucking scrub here. I just bought a cheap starter set for electronics (meter, iron, solder, etc.) and tried taking a crack at the busted AC adapter for my monitor.

Opened the sucker up, carefully discharged the big fucking cap with a rubber-gripped screwdriver because I'm not an idiot. A high-pitched squeal came from the adapter under load. Without any load it was reading the 19V it should, but when plugged into the monitor it would give around 18.5V and then drop to 0 for a while, the monitor not even being able to present an image before it power cycled. The smaller cap near the DC out jack was bulged, and I thought it would be one of those really easy "change out a cap" fixes. Electronics store was out of 680u 25V caps that would be an exact replacement, it only had up to 10V and even scrub me knows it has to be equal or higher. I opened up a dead laptop charger from a laptop I no longer even have and hey, two Nichicon-brand 680u caps are right there, 35V ones that should work just fine.Desoldered one, popped it in place for the monitor adapter. My first soldering job was admittedly a shitty cold joint with too much solder on it, but it wasn't contacting anything else and seemed physically stable so I thought I'd leave it like that for now.

Plugged it in, grabbed the multimeter. Now it's all over the fucking place voltage wise, and when I popped the lid off the perfectly fine cap I put in 10 seconds ago was bulging hard.

Any ideas what the fuck it could be? I'm not going to plug this into my monitor unless it's giving me 19V stable again, obviously, but at this point I've got nothing to lose.

>> No.1371809

If I read all this books will I be able to do any eletronic project without worries?

>> No.1371811

>>1371791
I am googling it, and I've been trying to solve it on my own for a few hours and haven't made any progress. I wouldn't be asking for help if I thought I could figure it out myself.

>> No.1371841

>>1371807
Sure you didn't put the cap in backwards?

>> No.1371852

>>1371745
maybe it's just flashing so fast you can't see it. add a reverse diode across the LED and try a bigger cap (~220uF)

>>1371809
no, you'll have to do exercises too
but you'll almost always know what you don't know and have half a chance of finding it

>> No.1371864

>>1371809
not exactly. some of the subjects you’ll see in the art of electronics need a whole other book to have a comprehensive treatment of the subject. also you need experience to build an intuitive understanding.
but those books will go a long way.

>> No.1371866

>>1371807
whining means the switching converter in the supply has decreased its frequency so much that it's entered the audible band. the transformer in the supply is literally acting like a buzzer. that can be caused by the supply either having no load or having too high of a load. in the case of no load, the supply can overshoot its target voltage and damage the caps. that should only happen in poorly designed circuits though even when components have aged. so i think something else has failed, like an output diode has shorted or something. you can check for such things but you'll only have a hope of success if you understand practical isolated switching converters (or at least flybacks) first. that's a lot of effort so if you don't want to do that then just trash the adapter.

>> No.1371876

>>1371777
I can't figure out how to write the inputs with only 3 variables down from 4 variables. If it helps anybody who could help me, C is the input that reverses the counting direction. I think my issue might be figuring out the last state of the JK flip flop

>> No.1371877

>>1371679
What the hell is it doing?

>> No.1371910
File: 2.00 MB, 300x300, 1471874950353.gif [View same] [iqdb] [saucenao] [google]
1371910

>>1371574
is bigclive gay?

>> No.1371916

>>1371910
YEs.

>> No.1371931
File: 102 KB, 960x720, State+Machine+Design+Using+J-K+Flip-Flops[1].jpg [View same] [iqdb] [saucenao] [google]
1371931

>>1371876

>> No.1371938

they say caps only work on AC but why is it i see the RC guys using them in the battery side when that part is DC. they do this to reduce voltage drop/ripple so what is the right answer then? does caps work on DC circuits and can you use caps every 3 meters on a 100m cable run to stop voltage drop? as i see it volts get passed from battery to C1 then charges C2 then passes to C3 etc all way to end of the 100m cable run. should no volt drop then... right?

i wish i was smarter :@

no i haven't watched that much caps tutorials sorry for sounding like an idiot.

>> No.1371943

>>1371938
forget whatever you learned about capacitors and relearn from a textbook, not some arduino or rc forum tards.

>> No.1371960

>>1371938
Calculus time:
For a capacitor, I = C*dV/dt. That is to say, if voltage across it remains constant, there is no current, and if the voltage across it changes, the current is proportional to the rate of change of voltage.

In AC, as V = A*sin(w*t), dV/dt = w*A*cos(wt), so the current is I = C*w*A*cos(w*t). Using the RMS average of these, V_RMS = A*√2, and I_RMS = C*w*A*√2. A is voltage amplitude and w is angular frequency) In other words, at higher frequencies, the same capacitor will conduct better, and increasing the capacitance has the same effect.

In DC, we need to take account of the resistance in series with the capacitor. In the simplest instance, we have the resistor from the voltage source to the node we measure the voltage of, and from there the capacitor to ground. When we switch the source on, the voltage jumps to it's maximum effectively instantly. Now the current through the capacitor is once again I = C*dV/dt, and since this same current is going though the resistor, the voltage across this resistor must be R*I = R*C*dV/dt. Hence the voltage across the capacitor is 1 - R*C*dV/dt, which is a differential equation. The solution to this is V = A - A*exp(-t/(R*C)). In "RC circuits" like relaxation oscillators, the known resistance and capacitance are used to generate a consistent delay or time period. In power supplies, the effective resistance is very low but unidirectional thanks to a diode, so the capacitor will charge up very quickly when the voltage gets boosted to it's maximum, but when the voltage before the diode drops back down again (like with a simple rectified AC power supply) the capacitor remains charged, and can only be discharged via the load. So if the load only pulls 10mA and this will barely drain the capacitor in the time it takes for another AC cycle to charge it up again, the voltage at the output of the capacitor will barely ripple.

>> No.1371967

>>1371960
Cont.
For DC power supplies we can make an approximation for their ripple voltage. Since at t = 0 the rate of change of voltage dV/dt = I/C, we can say that over the time it will be discharged, or 1/f where f is the AC frequency before the rectifier, dV/dt * t = V_ripple. Hence, V_ripple = I/(f*C), so the higher your frequency is the lower your ripple voltage, one of the reasons why switched-mode power supplies use kHz frequencies as opposed to 60Hz. Note that using a full-bridge rectifier will half that ripple voltage again, but it does cause another diode drop.

Inductors are described as V = L*dI/dt, so there will only be a voltage across it if the current within it changes. In this way, the current through the inductor in AC decreases with increasing inductance and/or frequency.

Study some network theory, it's good shit.

>> No.1371974

>>1371938
The caps used for the DC side is still kind of working on AC, the AC component of the current draw is supplied by the capacitor. Caps don't stop DC voltage drop along the cable, but can be used to reduce AC voltage drop = ripple.

>> No.1371989

Hey /diy/, I have a strange micro issue. I got a Teensy 2++ for a project and it's acting very weird. Right at the start, when I first plugged it in, it had no code preloaded even though the others had the standard blink. The flasher detected it though and I was able to flash the code myself. It went good but after a few seconds I got a "USB device drawing too much power" error and the board went dark. When I try to reconnect it, I get the same error on both PCs. dmesg shows it as "overcurrent detected with port status 0x4000". Plugging it into a powered hub doesn't help. When I measure voltage on the +5V pin, I get only 0.5V. I am completely stumped, what might be causing this?

>> No.1372005

I know how to code and wire things. What type of hardware do I need to make electronic door locks?

>> No.1372010

>>1371750
The problem is that not all BJTs have the same pinout.

>> No.1372021

>>1372010
I think for the most part all the common small-signal BJTs are (2222, 547, etc.), but it's still a pain. I hope their MOSFETs don't do the same thing because they certainly vary a lot. But formal circuit diagrams are much better.

>> No.1372029

>>1371841
AAAAAAAAAAAAHHHHHHHHHHH
GOD DAMN IT I AM A FUCKING IDIOT HOW COULD I FORGET
I know when the old blown cap was in I couldn't read the capacitance on it because it was obscured by other components. I checked, that means the white stripe would have been in the other way around. God fucking damn.

>>1371866
I thought it might have been coil whine from the bad cap, there's an inductor right next to it. It's the switching IC?

>> No.1372035
File: 8 KB, 500x596, diode_matrix.gif [View same] [iqdb] [saucenao] [google]
1372035

How exactly does a diode matrix work and how do you decide where to connect diodes and not? Been looking around but little info to be found

>> No.1372037

>>1372035
Looks like those are diode-based NOR gates, at least if you treat the switches like NPNs to ground, i.e. closed = logical high. Each of the 4 outputs is NOT(A+B+C) where A,B,C are any number of switches 0 to 9. What's this for?

>> No.1372048

>>1372037
>What's this for?
Picture was just taken from google images, not mine. I was wondering how diode matrices work, or perhaps some recommended books that explain it.

>> No.1372049

>>1372029
if you put the cap in backwards then that's that. i'm just pointing out that it's standard operation for the converter to run at low audible frequencies
during no load or short conditions, so your blown cap may only be symptomatic of another failed component. i'd definitely find and check the output diode with your meter because if that's shorted it'll both kill your cap and give you the random output voltages you say you have.

>> No.1372052

>>1372035
That particular one, where only one of the switches is closed at a time (or the input is low) is quite easy to understand. Note also that this does not work "properly" if you close more than one switch. Similarly, no switch closed might count as an invalid state as well.
All the 4 outputs are pulled high via the 4 resistors - unless they're pulled low via diodes. So, if the switch "0" is closed, all the 4 outputs are pulled low and the output state is 0000. If switch "1" is closed, then the 3 leftmost outputs are pulled low, but the remaining one is high, so the output state is 0001. And so on.
If you wanted to add 11th input/switch to it, you could implement it by first converting "10" to binary (since this is a decimal to binary converter), which is 1010. Thus, you'd need two diodes, first for the 2^0 output and the second for the 2^2 output.

If you want to do the inverse of that matrix (binary to decimal), then you have the problem that more than one of the inputs can be low. To handle that, you'll need both the input signals and their inverted versions. Then for every (interesting) input combination, you'll find the combination of the inverted and non-inverted inputs where they are all high and combine them in the similar manner as in your pic. That is, when you have the correct input combo, the corresponding decoded output is NOT pulled low.

>> No.1372053

>>1372021
kek, westfags
otoh I can't think of any SOT-23 transistors that use any but the standard pinout

>>1372005
an electrical door lock, a logic-level-controlled relay, and a microprocessor with at least one GPIO

>>1371989
sounds like the Teensy is bad, look for obvious soldering/component errors and/or contact the seller

>> No.1372058

>>1372053
Yes, seems like the chip went bad. I found that +5V has continuity to gnd but the cause is not apparent form the outside. Luckily it didn't kill any of the usb ports. But it's still weird that I was able to flash it the first time without any problems.

>> No.1372068
File: 144 KB, 1456x1078, Screen Shot 2018-04-21 at 12.45.34 AM.png [View same] [iqdb] [saucenao] [google]
1372068

Camerafag here, the 556 circuit is sitting in a pile of dysfunctional wires waiting to be re-breadboarded, but that's not what I'm talking about here. I went through the definitions of F-stop and ISO and found myself a general equation for a well exposed shot:
>I = F^2/(ISO * T)
Where I is the effective relative intensity, F is the F-stop which is proportional to the inverse of aperture diameter, ISO is the sensor sensitivity, and T is exposure time. It makes sense because rearranging it 1/ISO = I/F^2*T since 1/F^2 is a unit of area. So I guess ISO has units of inverse joules, or perhaps volts/joule or volts/photon, but that's also not particularly relevant.

What I want to make is some small light sensor that gives me a reading (checking with a multimeter is fine) that I can convert into an ISO, exposure time, and F-number to tell me how to get a well exposed shot, primarily for multi-hour exposure star photography.

So I calculated this intensity value for a series of well exposed shots under different lighting conditions, where I also taped an LDR to the top of the camera and measured its resistance. For relatively normal lighting conditions (curtain up to curtain down, camera pointed at opposite wall) I got a pretty good relationship between LDR resistance and intensity. Pic related. However once I darken the room further (inside at night time with a small dimmable LED), the resistance went up past 60MΩ (the maximum my meter can read) and my camera started to tell me it was too dark for its maximum non-bulb exposure time coupled with the largest aperture size. I think I can compensate for the latter problem by cranking up the ISO, but the LDR is still a problem. Anybody else tried detecting very low light levels? I can't seem to find much documentation, besides advertisements for $100 avalanche photodiodes.

>> No.1372073

>>1372068
you can use a photodiode with an op amp gain circuit. their spectral response doesn't line up with that of the eye though so you may want to browse the options for digital light sensors and see if any of them go low enough for you. they're all surface mount so your selection is limited to the ones you can get on breakout boards.

>> No.1372076

>>1372073
Well I was figuring that since I'd mainly be using this for the stars, I'd calibrate it for that, and it would't matter if it were a visible photodiode or an infrared one (which it is). Are they better than phototransistors for low-light? I'll have a look on Digikry or Mouser to see what kind of sensitivities their sensors have. One digital sensor (OPT3001) goes down to 0.01lux as it's smallest division, which is 10 times lower than an LDR datasheet states as giving its "dark" resistance, and it uses a photodiode, so I guess that's what I'll try next. I've not had any luck with the phototransistors I bought anyway.

>> No.1372097

>>1372076
Never seen anyone using phototransistors for anything requiring sensitivity or accuracy.
0.01lx isn't particularly challenging with photodiodes, particularly if you can use a diode with large area, but as you're measuring nanoamp scale currents, some care, better than shit opamps and huge resistors (1G for example) are needed.

>> No.1372113

>>1372068
ISO film speeds are arbitrary units, but indeed not relevant.
>cranking up the ISO
>on star photography
wew lad
noise is going to wash everything right out. if anything, set the speed as low as possible, take multiple shots, and add each pixel together then normaliz in your post processing

>> No.1372123

>>1372068
>multi-hour exposure..
If you really want to photograph stars the $2.17 Shutter-Release-Cable is all you need. Maybe you never have and you never will.
https://www.google.com/search?q=photographing+stars

>> No.1372191
File: 2.31 MB, 1792x3178, 0001.jpg [View same] [iqdb] [saucenao] [google]
1372191

Some time ago I was asking /ohm/ about the feasibility of using a chinkshit SCR dimmer to control the power in a DIY welder (the three MOTs on full power were way too much.)
Thanks for the answers - turns out it actually works!

>> No.1372193

>>1372191
that's cool but where's the forklift you use to move three mots at once?

>> No.1372196

>>1372193
It has wheels, senpai, you pull it like a toy duck.

>> No.1372209

>>1372191
>full retard setting
you done good, son

>> No.1372224

>>1372053
Can you give an example of an electrical door lock?

>> No.1372237
File: 240 KB, 1600x1600, 1505787019854.jpg [View same] [iqdb] [saucenao] [google]
1372237

>>1372224
Pic related
there is also a type for higher security installations with two flat magnets that attract one another, and an electromagnet that counteracts the attraction
plenty more on google images, happy searching

>> No.1372253

>>1372237
What is the "official name" for this?

>> No.1372279
File: 48 KB, 800x800, 1501254959747.jpg [View same] [iqdb] [saucenao] [google]
1372279

>>1372253
previous pic is called something like a striker latch
Pic related is called an "electromagnetic door lock"

>> No.1372383
File: 2.71 MB, 4160x3120, IMG_20180420_183010.jpg [View same] [iqdb] [saucenao] [google]
1372383

can someone help me figure why my flipflop isn't making the LEDs flash? They're not lighting up at all.

>> No.1372384
File: 12 KB, 1060x700, Astable-Multivibrator-2LED.png [View same] [iqdb] [saucenao] [google]
1372384

>>1372383
here's the schematic

>> No.1372415
File: 31 KB, 80x90, 1522976090897.gif [View same] [iqdb] [saucenao] [google]
1372415

So i have a water pump driven by a brushless motor I am trying to drive. im trying to control with a transistor and PWM. Works FINE when I give it the full 12 V. Moment I change it to an analogwrite, doesn't work. I'm still measuring the exact voltage drop across the motor. But I've verified this fucker works with less voltage.

I don't know much about pwm, so what could the problem be?

>> No.1372416

>>1372383
Where the w is, there is no continuity between the rails either side. Your power rails only go half the length of the board.
Depends on the board of course but these are wish? Because of the w? Pretty sure they are split. So check that first

>> No.1372419

>>1372415
If its dc brushless you know its not just a dumb motor, there's electronic circuitry inside there to sequence the coils. So its probably not happy about lower voltage.
Yes some pc fans work at lower voltage so its possible but depends. Also how much lower are you going, try hitting it full speed to get started then slow down gradually to overcome stall, getting started is harder than running. You are using a transistor or something right to drive 12v through it because I doubt a microcontroller can output enough current. Actually that's a common problem so watch out, current limit doesn't mean it will stop at the upper limit, it will try to do more but kill itself in the process. The chip that is.

>> No.1372424

>>1372419
Not much, tested it with a 9V battery and worked fine. Just using a digital pin to operate transistor. Rated for enough current and voltage. Then just have an emitter voltage of 12 V on this NPN. Voltage across the motor reads 9 V too, so I'm wondering if it's struggling to source enough current?

>> No.1372462

If I read this books and, of course, practice a lot, will I be able to consider myself an expert?

>> No.1372469

>>1372097
>1GΩ
Oh no.

>>1372113
The camera has the exposure slider on its front screen, and it only goes up to 12 units over/under exposed. With the ISO set to minimum 100, exposure time set to 30s, and F-stop set to 5.6, it will only give me an estimated exposure value if I'm not 12 units too dark. Switching to bulb mode cannot give an estimated exposure value since the exposure time is arbitrary. So by cranking up the ISO to 3200 and keeping it at 30s exposure, I can get an exposure estimate for a 960s exposure image at an ISO of 100. I'm not going to take photos at such high ISO values or at such low F-stops, but I'll be switching to them to take data points that I can convert into greater than 30s exposure times for lower ISO values and also higher F-stops.

>>1372123
I bought one already, and took it apart to make a remote and/or delayed shutter. I'll have a shutter release toggle on it also.

>> No.1372470
File: 5 KB, 300x300, s-l300[1].jpg [View same] [iqdb] [saucenao] [google]
1372470

Do these work well?
https://www.ebay.com/itm/Solder-Desoldering-Pump-Sucker-IC-SMD-Vacuum-Sucker-Suction-Pen-Remover-Tools/281995610609?hash=item41a83f89f1:g:5OwAAOSw3v5YtP~c

>> No.1372474

>>1372416
holy fuck, I didn't even consider this and now it's working perfectly

I spent 3 cumulative hours trying to troubleshoot this fucker, I can't believe it was so simple

>> No.1372476

>>1372470
not really

>> No.1372481
File: 677 KB, 1632x918, IMG_20180419_174721.jpg [View same] [iqdb] [saucenao] [google]
1372481

Has anyone here fixed and AOC monitor before?. Im triying to fix my LE19A1333, according to schematics i should have 12V in pins 3 and 4 in the upper right conector but im getting only 0.3V, all the other sources are fine

>> No.1372482

>>1372481
Then look at the PSU board instead of the control board and make sure that the 12V supply is working. If it does, trace from one to the other. If it doesn't troubleshoot the PSU instead.

>> No.1372487
File: 94 KB, 1029x515, sche.jpg [View same] [iqdb] [saucenao] [google]
1372487

>>1372481
>>1372482
There is nothing in the 12Vpins of the PSU board, i think its get 12V from 16V and R737.
I have 16V in the 16V side but nothing in the 12V side. Maybe the resistor is kill

>> No.1372497

>>1372487
>i think its get 12V from 16V and R737
I very much doubt this. Is that diagram supposed to be the of power supply board? Because I can't see anything resembling a mains input, nor does it contain anything akin to the control board. Or does it run off a power brick?

>> No.1372499

>>1372497
Its one part of the main board, the full schematic is pretty big so the manual separates it

>> No.1372531

Any recommendation for a compact 12V solution?
Or perhaps an alternative idea one what I'm trying to do that takes less volts.

I'm trying illuminate a small picture frame. My idea was to place some LEDs at the bottom of the glass and power it with some small button cells with a tiny switch.

Catch is button cells are 3V so a pair are 6V with a nice low profile premade deal that tucks into the frame well, but won't power strip LEDS (the type you can cut that come on a reel, those are 12v). The typical string of LEDs that do run on those 6V tiny battery packs you can get from craft stores stores, the so called fairy lights, don't seem bright enough and come in a messy strand of a ton of lights.
tl;dr Is there a good way to power small LED strip with 12V to hide in a photo frame, or a better LED type that takes less power?

>> No.1372548

>>1372531
Really lazy solution would be to use two CR-P2 camera batteries (6V) in series on the back of the photo frame if nothings behind it.

Otherwise you could make a charge pump or boost converter circuit if you still wanted to use the 12V LEDs strips and run them off some AA batteries

>> No.1372553

>>1372548
10Ah Li+ power bank with 12V boost module. it'll stay lit forevar
maybe you might recover some LiPos from discarded tablets or something. attach a protection/charging board and a boost module and it'll stay lit for quite a while.
be advised, however, that the LED strips aren't very efficient. if you knew how many lights you needed, you could use a current-limited boost module to drive the LEDs in a series string directly. there are a shit-ton of ICs out there for driving strings of white LEDs thanks to LCD televisions and similar applications

>> No.1372555

>>1372548
>>1372553
Sorry I'm getting a crash coarse here. I've not really done this before and only understand some of that.

I have to make several of these and they need to look decent too. It wouldn't be many LEDs, 10 at most probably 4 at the least, 6 fits well with the current idea but I'm trying to be flexible on the project. Just lighting up some small glass frames that have etched designs on them which should capture some of the light to look neat.

I could use something other than the LED strips if anyone has an idea, I just thought those would be compact and mostly premade solution for a beginner.

All I really want to do is light up some glass, possible better way?

>> No.1372556

>>1372555
Post a picture of one of the frames if you have them handy, might give people a better idea of what you're working with

>> No.1372558

>>1372555
Also, maybe if you want something pre-made something like "2pcs DC DC Converter 5V to 12V USB to xh2.54 Step Up Boost Module" off Aliexpress

Just plug that into one of those 5V USB rechargeable batteries and you pretty much have a 12V power cell.

>> No.1372562

>>1372531
Well firstly I'd veer away from coin cells unless you want it to be particularly compact, but if you're not pulling much power from them there isn't really any downside. Now the only reason LED strips are 12V is because they've got 3 LEDs in series with a current-limiting resistor, so if you get individual LEDs you can just throw them behind a tiny resistor and a single coin cell. You could easily use no resistor and just put all the LEDs in parallel with the coin cell, but they may not last long without current regulation.

To see if coin cells are the way to go, take the cell's Ah rating (mAh rating/1000), multiply it by its voltage (probably 3V), multiply that by the number of coin cells you're using per frame and divide by the power that the LED array on one frame will use. The result is how many hours it will last.
>Q*V*n/P = t

>> No.1372567
File: 68 KB, 582x669, frame2.jpg [View same] [iqdb] [saucenao] [google]
1372567

>>1372556
This is one of the larger ones.

>>1372558
That is a possibility I suppose. I don't mind doing some work either it is DIY after all. I'm just trying to keep it cheap compact and fairly easy is all. And while I love DIY there isn't much point if there is something easy and already existing. Most of my work is really the etching it will light up.

>> No.1372635

>CLRW sets Z
ugh

>> No.1372642

>>1372470
Desoldering pumps are okay for removing large amounts of solder from large joints like through hole connectors.
There practically useless for cleaning solder out of a through hole so you can put a new component in. Desoldering braid is the way to go then.

I'm not sure what those chinks are selling on amazon there, it looks more like a small suction pump for holding QFPs and the like, which can be handy if you're dealing with chips that have fragile legs.

>> No.1372643

do any of these books have projects in them? the one book i have doesnt have any projects

>> No.1372654

>>1372469
Well scratch that. I've got the ISO at 3200, the F-stop at 5.6, and it's telling me that 0.1s is a good exposure at this light level, but turning down the pot any further on the LED gives me a "Subject is too dark" alert and nothing else. Putting the ISO back to 100 doesn't even give me 30s+ as my exposure but 2.5s, and it hits the "Subject is too dark" alert at the same light level regardless of ISO. Looks like I'll be stuck trying to extrapolate the sensor-voltage/camera intensity graph to very low light levels, which should be a relatively good estimate.

Thinking about it some, since the illuminance of the night sky will not change much, and since it's mostly black, I won't get much of a result by setting it up for a normal exposure. Trial and error should be more than enough for just this single illuminance, so I'll just solder the toggle switch on to the cable now and start testing. And it's raining.

>> No.1372663
File: 37 KB, 866x778, comperator.png [View same] [iqdb] [saucenao] [google]
1372663

I'm doing this on a couple of inputs on a mirocontroller.
But it floats like crazy. What am I doing wrong?

>> No.1372668

>>1372663
The LED acts like an open circuit as LEDs still obey the diode equation. It will only close the circuit when there is enough voltage, basically when you have a logic output of 1, at logic output of 0 you have a resistor floating in the air.

You could put a large, actual pull-down resistor in parallel with your current stuff.

>> No.1372673

>>1372668
In the datasheet it says the MCP6544 has a Push-Pull Output.
The LED is only there as indicator.

>> No.1372677

>>1372673
Hmm, sorry my mistake, I haven't read the datasheet.

Have you tested stuff on the MCU side of things?
I would test both the output of this circuit and the input of the MCU separately from each other if you haven't already.

>> No.1372679

>>1372677
I don't have a scope, so here is what I did:
>Remove MCU
>attatch pin change interrupt to pin of known good MCU
>Make a led on an output pin light up for 200ms whenever the Interrupt is called
>test on 5V led keeps off
>test on GND led keeps off
>float pin led flickers
>attatch to output of curcuit led flickers.
the in led in the curcuit behaves like it should by the way, but I guess the eye is to slow to catch it when it goes on and off quick

>> No.1372681
File: 22 KB, 303x223, file.png [View same] [iqdb] [saucenao] [google]
1372681

>>1372654
you don't need gigaohm resistors necessarily. just a dual picoamp bias op amp and some 0.1% resistors. you can make something similar to pic related, through hole, for under $5. i haven't done any math on the values but it's 1V/nA.

>> No.1372708
File: 116 KB, 720x1280, MSGR_PHOTO_FOR_UPLOAD_1524312761997.jpg_1524312768116.jpg [View same] [iqdb] [saucenao] [google]
1372708

I just fried my arduino, probably because of a short circuit between VIN (+12V) and a digital pin (12).
What died? The board or the chip? The chip get very hot.

>> No.1372710

>>1372474
From experience I can tell you that no matter how much you think you will never make this mistake again you will absolutely waste time on this at some point, on the plus side it will be immediately obvious to you when looking at other peoples project. Yes, like a curse.

>> No.1372713

>>1372424
Try it with a capacitor, to smooth out the pwm into a constant voltage. The brushless driver is probably just pissed off at you not giving it a stable voltage.
Try it with the battery but switch it on and off a thousand times a second see if it works then lol.

>> No.1372722
File: 63 KB, 600x600, 1498890205794.jpg [View same] [iqdb] [saucenao] [google]
1372722

>>1372642
>desoldering pump
oh the keks I am having

>>1372708
>D12
if you hook up USB and see that the voltage on VCC is still correct and the USB-serial device is still recognized, it's probably just the chip

>>1372710
this is why I love /ohm/

>> No.1372799

>>1372191
LOL Lamba core

nice.

>> No.1372815

how is polyphony achieved in synthesizers? All the basic VCO circuits I've seen and built are monophonic only.

>> No.1372819

>>1372815
I'm assuming it's done by having an individual oscillator for every note, right? Or is there a more efficient/elegant way of going about it?

>> No.1372875
File: 181 KB, 897x666, 1511346238386.jpg [View same] [iqdb] [saucenao] [google]
1372875

>>1372815
multiple VCO/VCF/VCA sets, yes

>> No.1373057
File: 12 KB, 512x512, Untitled.png [View same] [iqdb] [saucenao] [google]
1373057

i am completely unfamiliar with how to hook up 12v generators and electromechanical regulators to a battery. pls halp.

>> No.1373076

Does anybody here use a CNC router to carve their PCB traces and drill holes? I've been thinking of getting/making a CNC router and it's one more thing that I'd want to use it for.

>> No.1373116

I should read these books in this order?

>> No.1373123

>>1373116
From beginner to intermediate to advanced? I'd wager you only really need one of each category, but I've not read any of them. I get my electronics know-how from trial-and-error and google.

>> No.1373132

>>1373123
I downloaded the first 2 and read the summary and some pages. The first one don't seem to have projects, and the second one is only projects. Well, I'll just read and see what can be skipped.

>> No.1373228

>>1373076
Got one at work. Never used it myself, but had a couple of boards made.
Seems pretty fiddly to get to work propperly. And you still have no soldermask and no plated holes. At least for my usecase a good perfboard is more fit. That doesn't mean there is no use for it though.

>> No.1373294

>>1373228
Looks like you can buy plated inserts/rivets, and it should be trivial to make solid vias with some scraps of solid core wire, but in both cases you'd either need to leave the mask off, or put mask on after soldering them to each side. I'm not planning on using it for tiny SMD stuff anyways so if I do decide to use solder mask I figure I can do so by hand. Not like I plan on mass-producing anything anyways.

>> No.1373331
File: 566 KB, 1961x1130, file.png [View same] [iqdb] [saucenao] [google]
1373331

Should I connect these?

>> No.1373332

>>1373331
whoa, line and neutral produce multiple DC rails - that's awesome

>> No.1373338

>>1373332
I'm pretty sure those transitions are powersupplies

>> No.1373340

>>1373338
i really should be more careful with dickhead comments lol

>> No.1373342

>>1373331
no. a benefit of the power supplies you're using is that they're most likely isolated. it means that instead of grabbing one wire you now have to grab two in order to create a current path. your voltages aren't a risk to you, but it does make it harder to destroy your project inadvertently.

it also means you can't explode your oscilloscope if you have one.

>> No.1373343
File: 3.67 MB, 4032x2268, IMG_20180422_141726.jpg [View same] [iqdb] [saucenao] [google]
1373343

My first ever solder joints. Any feedback?

>> No.1373346

>>1373343
>Any feedback?
When you want to take a pic to show something to people, make sure it's actually in focus.

>> No.1373360

>>1373331
If you're using a power supply from a PC (because 12V and 5V) the black (negative) conductors are already grounded.

>> No.1373363
File: 2.23 MB, 4032x2268, 1524407244220.jpg [View same] [iqdb] [saucenao] [google]
1373363

>>1373346
Sorry, all I have is my shitty phone that can't do proper close-ups. Here are three more attempts (of the finished product), as I tried to make it clearer in a couple of different lights and angles

>> No.1373365
File: 2.27 MB, 4032x2268, 1524407311946.jpg [View same] [iqdb] [saucenao] [google]
1373365

>>1373363
2

>> No.1373366
File: 2.99 MB, 4032x2268, 1524407419134.jpg [View same] [iqdb] [saucenao] [google]
1373366

>>1373365
3/3

>> No.1373371

>>1373343

looks like not enough solder. you want a good looking fillet, 3/4 of those look starved.
but they look blurry like you have poor focus or a shitty ancient phone camera with the lens covered in vaseline.

also it's a good idea to reflow solder after you clip the leads. (looking at the dangling leads above) this is because clipping leads AFTER soldering them can potentially weaken or crack them, and it's also better to not have the bare (clipped) metal exposed.

some soldering specs say to bend and clip the leads before soldering. good to learn this early on.

in the other pics you posted it looks like you have some stray solder junk on the board. don't do that

some of those look okay, some look like too much solder, some don't look shiny enough (incorrect temperature)

keep at it anon

>> No.1373381
File: 2.68 MB, 4032x2268, 1524409109185.jpg [View same] [iqdb] [saucenao] [google]
1373381

>>1373371
> looks like not enough solder. you want a good looking fillet, 3/4 of those look starved.
Yeah, I agree about that for the corner switch components. They have narrow legs and the gaps were wide, so the solder flowed through the hole.

> also it's a good idea to reflow solder after you clip the leads. (looking at the dangling leads above) this is because clipping leads AFTER soldering them can potentially weaken or crack them, and it's also better to not have the bare (clipped) metal exposed.
I've actually read about people saying that reflowing the solder like that can hide a bad joint or overheat things, while the risk of fracture is negligible. Were they full of shit, or is it a matter of opinion and personal experience?
Also, what's wrong with having the clipped lead exposed?

> in the other pics you posted it looks like you have some stray solder junk on the board. don't do that
There's a bunch of flux in some places, which I'm pretty sure is no-clean. I think I do have little bits of actual solder, though, and yeah that's my bad. Main thing I've learned here is not to hold off on clipping annoying leads (which I did because I forgot to find the wire cutters before starting).

> some of those look okay, some look like too much solder, some don't look shiny enough (incorrect temperature)
Here's a pic after clipping. This might be clearer? To me it looks like a whole bunch actually have too much solder, is that right?
>incorrect temperature
I did everything between 347-352°C (if my iron is to be believed), but I think I fucked some things again due to having unclipped leads.

>> No.1373391

Same anon learning to solder here. One led wasn't working, so I spent maybe a couple of minutes trying to desolder it. I was pretty sure I ruined it by the point I gave up, tested the board again, and lo and behold it works now. What the fuck

>> No.1373392

>>1373381
>Also, what's wrong with having the clipped lead exposed?
bare copper oxidation (is this that big a deal? maybe not, but i have seen untinned and clipped component leads look like absolute garbage just from corrosion/finger oils/moisture/whatever.)
I've also had intermittent issues due to what was possibly a microcrack, and reflowing fixed the problem.

http://www.ipc.org/committee/drafts/5-22a_d_J-STD-001F-Feb2012.pdf
>When lead cutting is performed after soldering, the solder terminations shall [N1D2D3] either be reflowed or visually inspected at 10X to ensure that the original solder connection has not been damaged (e.g., fractured) or deformed. Lead trimming after soldering that cuts into solder fillets shall [N1N2D3] be reflowed (Figure 6-2). If the solder connection is reflowed this is considered part of the soldering process and not rework. This requirement does not apply to components that are designed such that a portion of the lead is intended to be removed after soldering (e.g., break-away tie bars).

just sayin'

>> No.1373398

>>1372474
I've had this happen to me too. These cheap white, Chink boards are shit for that. There are some other Chink ones that are fine, but these really White ones are limiting in a way.

>> No.1373400

>>1373392
Alright, I'll definitely keep that in mind.

Thanks for the advice and feedback anon!

>> No.1373428

>writing a pic i2c master to control a 36ch led driver
>check scl/sda with scope
>all bytes getting sent with acks
>no leds light up
i swear to god

>> No.1373441
File: 973 KB, 1920x1080, snibeti snab.jpg [View same] [iqdb] [saucenao] [google]
1373441

>>1373428
nevermind it lives.

>> No.1373446

is soldering wick a pain in the ass to use or do I just suck

>> No.1373448

>>1373446
my chinese shit is definitely a pain in the ass. there's no point even trying to use it without separate flux. it's best if you can run your flux pen directly on the length of wick you'll be using.

>> No.1373452

>>1373448
How have I never thought to put flux on the wick holy shit

>> No.1373456

>>1373452
Because it's supposed to be there to begin with?
But yeah, if you buy bottom of the barrel wick, you usually have to add flux. It can be kinda shitty even with the extra flux, if it's made of too thick wire.

>> No.1373569

>>1373441
post full porns

>>1373446
wicking and sucking each have their purposes

>> No.1373577
File: 590 KB, 2987x896, file.png [View same] [iqdb] [saucenao] [google]
1373577

>>1373569
here you go. it's meant to change colors (modes) on encoder pushbutton and inc/decrement from 0 to 255 on encoder turn while sweeping the leds to provide visual feedback on the value. my algorithm didn't work though so i just overrode it and turned all the leds on at 20%. i intend to use it for volume, mouse sensitivity, and monitor brightness controls when i'm done writing the i2c code and get around to finding some usb code to steal.

https://pastebin.com/raw/D0rx09XH

>> No.1373584

>>1373577
FFC for ICSP? fascinating
cool though. maybe this is gankable http://wordpress.codewrite.co.uk/pic/2013/07/26/usb-interface-using-pic16f1455-2/

>> No.1373595
File: 255 KB, 1280x1507, 1515616514890.jpg [View same] [iqdb] [saucenao] [google]
1373595

Is is better to put some external pull up resistors on I2C lines or just wire them in directly?

>> No.1373599

>>1373595
not clear what you mean but there's never a case where you won't need those resistors, so you'd might as well integrate them into any board you're doing. don't use the weak pullups in your uc unless it has an unusually high pullup current (~250uA at the very least)

>> No.1373627
File: 130 KB, 276x279, 1520101901933.png [View same] [iqdb] [saucenao] [google]
1373627

>>1373599
Thanks man. Is this just a more general rule of good practice with all comms stuff?

E.g. If I use a UART, should I be doing the same thing? (I mean, pull or pull down, depending on the protocol)

What about with GPIO ports? Say if I connect one uC to another and have a GPIO port signal "busy", should I also be adding pull ups and pull downs? I don't really know "good practice" to do with hardware at all.

>> No.1373635

>>1373627
the advice applies specifically to I2C where the open-collector wired-OR action is integral to the protocol and pullups are part of the spec
>If I use a UART, should I be doing the same thing
not unless you plan on the UART port being electrically disconnected during use, but even then, the internal pullups should be enough
>Say if I connect one uC to another and have a GPIO port signal "busy",
unless your BUSY signal has open-collector outputs, you won't need to pull them up, and even then, the internal pullups should be enough

>> No.1373637

>>1373577
choice of driver & led vs e.g. ws2811 was because?
what software for layout? how did you position leds?

>> No.1373644

>>1373637
packaging was a constraint. the board is sized to a knob that i found (1.75"/45mm) so if I was to use multiple 8ch or smaller drivers I wasn't confident that I would be able to fit them on a board. i've had trouble with qfns so I chose the only qfp on the market that does 36 channels.

i used altium to route, with excel using trig formulas to compute the angles and positions.

>> No.1373660 [DELETED] 

ravioli is still good surprisingly. i've been top damage on t10 games all day.

>> No.1373707
File: 2.06 MB, 2400x3200, 1524435770194884989450.jpg [View same] [iqdb] [saucenao] [google]
1373707

>>1371574
How do I determine how much power this light needs?

>> No.1373708
File: 1.41 MB, 3200x2400, 15244358777452091832158.jpg [View same] [iqdb] [saucenao] [google]
1373708

>>1373707
This is the only writing on the whole light.

>> No.1373710

>>1373707
It vaguely looks like there's 4 leds in series and 18 pairs in parallel. i don't think those are COBs so you can assume a 2-3v drop. you can easily read the value off those surface mount resistors (eg 3300 = 330 ohms + (0) zeroes added on. so if those resistors really were 330 ohms, you could start with a safe current of 20mA giving you a supply voltage of 0.02*330+4*3=~18V. that's how i would do it with no other info. if you have a power supply of any known voltage and a multimeter you can calculate the forward voltage of the leds.

>> No.1373718

>>1373707
>>1373708

Give it about 1.5 amps at 37 volts to start off

>> No.1373719

>>1373710
You are correct about the number of LEDs.The resistors say 1800 on them. The only spare power supply I can find right now is 12V 3A. My multimeter is MIA but I am looking for it.

>> No.1373720

>>1373718
37 volts sounds like way too much for a small aquarium LED.

>> No.1373728

How often should I tin my iron? After every X joints? Every X seconds/minutes? Some other metric?
What about when I put my iron down for a few minutes while fiddling with components - tin before putting down, tin after (once the "few minutes" have passed and I pick it back ip), or doesn't matter?

>> No.1373782

>>1373719
i'd suggest you give your 12v supply a shot. (12-4*2)/180=22mA at the absolute worst fathomable case. realistically it'll be way less because 2vf is low. so you can see how dim it is at 12v and decide if that's suitable enough for your needs. if not then you can hunt down that multimeter.

>> No.1373803
File: 31 KB, 1000x1000, leviton-lamp-accessories-r52-01403-00w-64_1000.jpg [View same] [iqdb] [saucenao] [google]
1373803

my garage is lit by 1 shitty light bulb. its a 20x20 garage, so pretty small but still the lighting sucks. i was thinking about using one of these bulb to socket adapters and running some led shop lights. the shop lights take 48 watts each and i wanted to run 4, but i suspect 2 would suffice. i dont know the rating of the bulb socket, but id suspect its just a standard 65 watt one. how dangerous is it to overload one of these sockets by so much? should i just remove the socket and try to wire in an outlet instead? its a brand spankin new house so id rather not cut any new holes if possible.

>> No.1373804

>>1373644
QFNs don't suck. QFN die paddles suck, at least if you mean to hand-solder them.

>>1373803
>remove the socket and try to wire in an outlet instead
this

>> No.1373809

>>1373803
my dad this exactly this. it looks pretty bad desu senpai. hopefully the box underneath the lamp mount isnt round, though. if it is, throw the fixture back up and use that ugly ass adapter.

>> No.1373810

>>1373803
also, replace the bulb with an LED one and you have nothing to worry about, amp-draw wise.

>> No.1373829

Anyone know of a good small button or switch for projects?

Everything I'm finding that is tiny is momentary and I need something for turning things on and off.

>> No.1373873

>>1373829
A PCB-mount toggle switch? A computer on/off button is another way to go.

>> No.1373879

>>1373873
Just for some LEDs but it has to be tiny.

>> No.1373882

>>1373879
Then how about a DIP switch?

>> No.1373888
File: 33 KB, 492x332, 1498798553765.jpg [View same] [iqdb] [saucenao] [google]
1373888

>>1373879
the latching mechanism takes up quite a bit of space and volume.
Pic related can be found on aliexpress
alternative: if you can afford space for a couple of SOT23 packages and a touch pad, consider a TTP223 and a MOSFET

>> No.1373896

>>1373882
>>1373888
Found some little slide switches that may work. Just took forever because I wasn't sure what to use as a search term.

>> No.1374023

Is it alright to switch out a LM393NG for a LM393ADR, the ADR performs better right?

>> No.1374058
File: 21 KB, 715x808, oscillator.png [View same] [iqdb] [saucenao] [google]
1374058

I don't understand why my Hartley oscillator won't oscillate.

>> No.1374065

>>1374058
Don't need a base resistor? R7 is doing nothing there since the gate is already at 0V.

>> No.1374072

>>1374058
because you trolled it

>> No.1374078
File: 24 KB, 715x808, wtf.png [View same] [iqdb] [saucenao] [google]
1374078

>>1374058
It is hard to understand what you were trying to do.
There is no signal connection between these three parts.

>> No.1374081
File: 8 KB, 300x350, 300px-Op-Amp_Gyrator.svg.png [View same] [iqdb] [saucenao] [google]
1374081

>>1374078
2 and 3 are the inductors. I simply made the inductors out of op-amps instead of actual inductors.

https://en.wikipedia.org/wiki/Gyrator#Application:_a_simulated_inductor

>> No.1374084
File: 23 KB, 715x808, wtf.png [View same] [iqdb] [saucenao] [google]
1374084

>>1374081
That's nice, but look at what you have done:
C3 is short.
B-C of Q1 is short.
"inductors" are short as well.

Try it like this.

>> No.1374085

>>1374084
Still not oscillating but I have a -500mV DC offset now so... that's something.

>> No.1374105
File: 63 KB, 1397x574, Screenshot from 2018-04-24 01-39-20.png [View same] [iqdb] [saucenao] [google]
1374105

>>1374085
Play with values.

>> No.1374106
File: 50 KB, 809x694, Screenshot from 2018-04-24 01-39-06.png [View same] [iqdb] [saucenao] [google]
1374106

>>1374105

>> No.1374109

>>1374105
>>1374106
It turns out after dealing with that short the reason why I wasn't getting a signal is because I forgot to change the initial conditions for the sim from "determine automagically" to "set to zero." It started oscillating no problem with the initial values afterward. I was hoping it'd be a bit more sinusoidal though.

>> No.1374110
File: 24 KB, 2551x1279, sim.png [View same] [iqdb] [saucenao] [google]
1374110

>>1374109
forgot pic

>> No.1374111

>>1374109
>"determine automagically"

Cringiest term ever invented. If you are in electronics or computers and you think that's a cool term, I'd rethink my career goals. Maybe designer coffee or something like that.

>> No.1374113

>>1374111
I do like it actually. I think you're just being an autist about a term that was obviously meant to be a bit jokey. Of course there's no magic under the hood but to the layman it would seem like it.

>> No.1374179

>>1374106
Remove C4

>> No.1374189

Well fugg. Gotta abandon the gyrator Hartley osc. Once side of the gyrator is always grounded and with two of them the center tap is always at ground. Doesn't work for electron coupled oscillators where the center tap needs to be at the cathode voltage. Could probably do it with four op-amps (2 makes 1 inductor floating from terminal to terminal) but fuck that. It's a pain to make coils for low frequency oscillators but I probably have some mu-metal cores somewhere so I can minimize the number of windings. Well thanks anyway /diy/, we tried.

>> No.1374192

>>1374189
nonsense

>> No.1374205

How do I choose a hydroponics "atomiser"?
Sheer power? Geometry of the receptacle?

>> No.1374209
File: 118 KB, 2122x1182, fig1.png [View same] [iqdb] [saucenao] [google]
1374209

>>1374192
Here's an easy to use diagram explaining why you're wrong.

>> No.1374228

>>1373728
Nobody? Is tinning the iron a meme?

>> No.1374270
File: 93 KB, 1215x712, toogoodtobetrue.jpg [View same] [iqdb] [saucenao] [google]
1374270

If I buy a pi cam from aliexpress what is the likelihood of me getting shafted?
Like what am I trading off here, picture quality?

>> No.1374331
File: 30 KB, 942x647, hs10.png [View same] [iqdb] [saucenao] [google]
1374331

Ive been using this solder for years now. It leaves a lot of flux and its hard to get off, isopropyl just wont touch it.

What brand/type you guys recommend is the best?

>> No.1374333

>>1374270
Check feedbacks to see opinions.

>what am I trading off here
I can only think of dead pixels, but its unlikely.

>> No.1374366
File: 72 KB, 660x716, 96169114761.jpg [View same] [iqdb] [saucenao] [google]
1374366

Im in urgent need for a decent bright LED solution for outdoor installation, harsh wind and rain
im looking at 100-200W Light bulb replacement strength, directional to at least the sites and color RED
Any ideas?
also, is there any LED hoose brighter than
>>https://www.amazon.de/Neon-Lichtschlauch-L%C3%A4nge-au%C3%9Fen-Gartenpirat%C2%AE/dp/B0763M7LRH/
with 100 LED per meter?
pls help out a dumb frogposter

>> No.1374368
File: 1.81 MB, 2304x1728, DSCF1438.jpg [View same] [iqdb] [saucenao] [google]
1374368

>>1373363
shine a flashlight on the board and take a photo through the magnifying glass of your 'helping hands'

>> No.1374376

>>1373803
there are led 'corncob' bulbs with an ordinary e27 edison screw, meant for streetlight retrofits. 60 watts of led light in a 20x20 room would be fookin' bright.

>> No.1374424

Sorry for the noob question, I'm trying to learn a bit more about the esp8266, what is the difference (if any) between these two?

https://www.aliexpress.com/item/ESP8266-CH340G-CH340-G-NodeMcu-V3-Lua-Wireless-WIFI-Module-Connector-Development-Board-Based-ESP-12E/32800966224.html
https://www.aliexpress.com/item/NodeMCU-WIFI-module-integration-of-ESP8266-extra-memory-32M-flash-USB-serial-CH340G/32739832131.html

>> No.1374438

>>1374228
Well I tin the iron while soldering, but that's just how I solder.

>> No.1374452
File: 38 KB, 633x416, oscillators.png [View same] [iqdb] [saucenao] [google]
1374452

>>1374209
First you trolled your circuit and now you're trolling yourself by ignoring the fact that you have two independent and _grounded_ inductors that are _not_ a single L but part of a network.

A PI network (4-pole, not 2-pole) can be either CLC ('Colpitts') or LCL ('Hartley'). Now you trolled away the important capacitor, C3 in your earlier circuits, so as not to see the network.

For equal L's (your case) the required loop gain only needs to cover the (small) losses. Yours is insanely large and the result resembles a blocking oscillator.

Yes, it oscillates. What does that tell you? I'm in the timezone, good night.

>> No.1374503

Could hotsnot cause problems with 230VAC lines?
I have to fix some wires but i cant avoid hotsnot getting on the pcb pads with mains.

>> No.1374558
File: 5 KB, 454x120, diode67.gif [View same] [iqdb] [saucenao] [google]
1374558

I'm an electronics brainlet.
Apparently you can clip a signal by placing two zener diodes in series, but from this image it appears to apply to sine waves with two outputs.
I want to put them on the audio out of... whatever, to see what it sounds like. I don't think I'm supposed to bridge it from positive to earth, and the only other way I can think to wire it up is like in the pic I'll post in the next post.

how retarded am I

>> No.1374561
File: 7 KB, 540x597, zener.png [View same] [iqdb] [saucenao] [google]
1374561

>>1374558

>> No.1374584

>>1371679
electricity flows from the negative terminal to the positive. probably not the problem.

let's say the he push-button has the following terminal layout:
12
34

1&3 and 2&4 will connect when the push button is depressed. you have 3 & 2 wired. meaning nothing will pass.

idk what the pin output for the transistor is soooooo .

>> No.1374619
File: 4 KB, 431x388, 1496489547110.png [View same] [iqdb] [saucenao] [google]
1374619

>>1374424
the antenna on the second one doesn't particularly impress me

>>1374228
when it looks dry, and before I put it in the holder

>>1374558
across
beware that zeners have power ratings. you probably don't want to do this with a speaker amplifier of any significant size. neither the amp nor the zeners will have a good time of it
some fuzz pedals use two regular diodes in parallel at approximately line-level, as in Pic related. the graph shows a rough sketch of the transfer function but the knees will actually be sharper. add the resistor crudely drawn-in to protect the signal source, 100 ohms is usually plenty

>> No.1374721

does this stupid website work yet? Wtf is hirohito doing

>> No.1374724
File: 1.90 MB, 4096x2557, 1517432295711.jpg [View same] [iqdb] [saucenao] [google]
1374724

https://www.bunniestudios.com/blog/?p=5259
PAPER & TAPE DETERMINED SUPERIOR PROTOTYPING MATERIALS
SOLDERLESS BREADBOARDS & THT ON SUICIDE WATCH

>>1374721
no

>> No.1374767
File: 1.98 MB, 3840x2160, DSC_0077.jpg [View same] [iqdb] [saucenao] [google]
1374767

Hello fellow /ohm/ies. I am a noob who is planning to do a DIY portable speaker for bicycle riding at night. Initially I planned to use some chinese components from Aliexpress, Ebay etc. but after searching through local auctions and flea markets I came with a better (imho) solution. 2x20W full range car speakers (supposedly from bmw e39), TDA7297-based diy amplifier, 12v battery pack with booster and some bluetooth module (or a used Sony Walkman e053) should do the trick, in my opinion. However, the main problem for me is the enclosure. I thought about using plywood but it is way too heavy (though the sound quality is nice).
Again, I am an almost complete noob in audio-related projects so my question is: how much would I suck if I used 4 mm thick PVC pipe with foam layer as an enclosure? I could do ported design for each speaker and use a divider inside. My goal is quality, not excessive car bass. Also, any ideas about budget waterproofing?
Pics related.

>> No.1374771
File: 239 KB, 1321x682, 44.png [View same] [iqdb] [saucenao] [google]
1374771

>>1374767
Here are additional pics

>> No.1374772
File: 123 KB, 1179x520, 55.png [View same] [iqdb] [saucenao] [google]
1374772

>>1374767
Here are additional pics2

>> No.1374774
File: 500 KB, 762x504, 66.png [View same] [iqdb] [saucenao] [google]
1374774

>>1374767
Here are additional pics3

>> No.1374776
File: 499 KB, 954x606, 77.png [View same] [iqdb] [saucenao] [google]
1374776

>>1374767
Here are additional pics4

>> No.1374778

>>1374771
>>1374772
Ports will be properly closed and vented outside, of course, this design is crude, just to measure the dimensions and such.

>> No.1374842
File: 99 KB, 1075x802, this guy walks into your local DIY store and slaps your girlfriend's ass what do you do.jpg [View same] [iqdb] [saucenao] [google]
1374842

is the esp32 destined to become the arduino of the 21st century?

>> No.1374883

>>1374842
I thought rasPi already took that role?

>> No.1374973
File: 1.83 MB, 3264x2448, IMG_1144.jpg [View same] [iqdb] [saucenao] [google]
1374973

>>1374767
It's not me this time I swear.

>> No.1374984
File: 121 KB, 750x784, aiyima-tpa3116-dual-channel-stereo-high-power.jpg [View same] [iqdb] [saucenao] [google]
1374984

>>1374767

i cannot help you with the enclosure

however with the amp , i suggest you go with a D class tpa3116, tda7297 being AB is arguably better sound but eats way more power and gets very hot, riding outside you wont notice shit except your power going down. Using drone lipo battery's and boost it to 12v-24v for better weight reduction.

amp needs no heat sink will be a lot more efficient. might be easier mounting a 10 dollar Bluetooth speaker to your bike, but then ruining your diy project so dont do that. Anyways pretty good effort in salvaging parts to make it happen.

pic related. about 5 bux. you can also find ones with built in bluetooth.

>>1374973
neat! little 386 variant? :D

>> No.1375014
File: 1.66 MB, 1536x2048, IMG_20180425_142029.jpg [View same] [iqdb] [saucenao] [google]
1375014

Ive got an ebike battery that wont work. Ive checked the individual banks, and most are good but one is 2.7v, but the battery as a whole will put out something like 48v.

The battery charger never indicates its putting out high current (charge light normally goes red when this happens). Ive left it on charge for days with no change in voltages, so I don't think it is doing any balancing.

Cant get anything more than 3.7v on the output side/external connector that goes to the bike.

I think the BMS is flakey, but I have no idea how to diagnose further.

Should I just ditch the BMS and wire it directly up?

>> No.1375024

>>1375014
>Ive checked the individual banks
By bank you mean ~4 cells in parallel? Your BMS will have measured that 2.7V with sense lines and decided that it shouldn't try to charge it. Either that or the BMS failed to balance the cells causing that bank to droop to 2.7V, possibly both. Replace (or rejuvenate) those cells anyways but keep an eye on their voltage as you put them through a charge-discharge cycle or two, and stop using them if they drop below their min (probably 3.2V). In that case it's definitely the BMS's fault, assuming you already checked for shorts/dodgy connections within the case.

>> No.1375028

>>1375024
>By bank you mean ~4 cells in parallel?
yes.

Now you say that about the low voltage cells, It may be that the bms has been trying to balance it but the batteries are just too far gone.

I don't have any experience with these spot welded strips, could i just cut it out and solder a new battery/strip in its place?

>> No.1375030

>>1374561
no
download ltspice, build some circuits, and convince yourself this is not the way to do it

>> No.1375031

i posted this question in the stupid questiond thread but it seems dead rn and this seems like a better thread for it

>this question might be retarded, I think ac circuits would be diy. electrolytic capacitors need to be in correct polarity to work and capacitors don't work with dc. i thought ac didn't have polarity because it switches in polarity?

>> No.1375040

>>1375031
Think we got the same question earlier in the thread. The idea that "capacitors don't work with dc" is plain wrong, they just work differently. Just check out google image results for capacitors in DC, particularly with a resistor too. Now a capacitor will resist change in voltage (calculus here >>1371960), and since the voltage in an AC circuit is always changing, it acts like a resistor, more or less. But any DC load (amplifier, microcontroller, logic gate) save maybe a heater will not have a constant power draw, the current they draw will fluctuate depending on what they're doing. A battery or any virtually other DC power supply can only provide so much current before its voltage begins to droop due to internal resistance, so people put large electrolytic capacitors across the outputs of these power supplies that resist this momentary change in voltage that would happen if they weren't there. Capacitors store energy when they're charged up by DC, and can in some cases be used as energy storage devices themselves, particularly for either low-current applications or high current applications.

http://hyperphysics.phy-astr.gsu.edu/hbase/electric/capchg.html
And the map on:
http://hyperphysics.phy-astr.gsu.edu/hbase/electric/capcon.html
Are great resources for this sort of thing. But go ahead and download a free circuit simulator and experiment.

>> No.1375043
File: 612 KB, 1600x1089, 10fa11fb-59ce-4511-b0cd-3340c05c330f.png [View same] [iqdb] [saucenao] [google]
1375043

How difficult would it be to devise a prototype displaying pic related using 2 brush motors?


Or Would it be possible/easier with one motor, which could have so much power pushing it to the required speed and then alternate its direction with whatever required power?

I imaginr it'd be more difficult using one motor
Also open to ideas, I'm not used to doing this sort of stuff

>> No.1375045

>>1375043
Motors aren't precise, so you using torque is proportional to current probably won't be sufficient, but you can try. Instead I'd use some hall-effect feedback to program the desired motion somehow, since you'll need some way to keep the speed constant anyways. You can solve the equation easily with angular kinematic equations, by the way, though since sphere radius isn't specified you kind of assume they're point masses.

Any point to this endeavour?

>> No.1375049

>>1375045
It's for a class project, calculating the angular velocity and all isnt an issue, mainly the building of it

And so a hall effect sensor is what you mean? Controlling a motor? That does seem easier or did you mean without a motor?

Sorry im a little out of my depth when it comes to electronics

>> No.1375055

>>1375049
Yes, controlling the angular frequency of the motor via a microcontroller. Using a permanent-magnet brushless motor would be easier though, probably no microcontroller required.

But if the speed doesn't have to be exactly 20rad/s you could use a brushed DC motor with some sort of current sink and adjustable voltage rails, which would be by far the easiest method. The voltage would sit at a constant until you flip the switch, activating the current sink, which runs until it hits the 0.7V limit of the transistor and thus leaves the motor spinning. I'll see if I can whip up a circuit of that.

>> No.1375059

>>1375055
wow that's a big help man thank you

setting the initial conditions seems to be the easiest part and i should be able to set that up without even taking the torque into consideration.

the final velocity will be the same in the opposite direction, so the value acquired by the sensor should be the exact same, but the difficulty now is accurately setting the torque to 30 N*m because the time of transition is the most important part.


Would i be able to work out the math and figure out the theoretical time required, then have the sensor control the speed of the motor according to whatever value necessary in increments? seems like a backward, overly complicated way of rigging it for the correct answer

are motors really that inaccurate regarding torque?

>> No.1375068
File: 205 KB, 1518x1370, Screen Shot 2018-04-25 at 6.54.41 PM.png [View same] [iqdb] [saucenao] [google]
1375068

>>1375059
>seems like a backward, overly complicated way of rigging it for the correct answer
Certainly, but it is correct.

>are motors really that inaccurate regarding torque?
They're probably pretty good, good enough for your usage case at least, but you have to set the speed by voltage and torque by current, which may take some tweaking and an overly complicated PSU for the voltage. Unless you have access to a good enough bench power supply that is.

Pic related is my shot at it. At t = 1ns the two PNPs switch over, deactivating the pull to +6V and activating the current sink. Replaceable with a DPDT switch I suppose. Since the speed of the motor is proportional to the voltage, the energy/momentum stored within the rotating system can be represented with a capacitor across the motor. This constant current flows until the voltage across the capacitor and motor hits the limit of the current sink, stopping at a constant voltage and therefore constant speed.

Measuring the torque/current and speed/voltage proportionality constants may prove difficult. Motor ESR and inductance will be easier. But by setting I*w^2 = C*V^2 you should be able to get a nice electronic model. Then you just pick voltages and currents that will result in a reasonable motor reversal time (5s or something)

>> No.1375076

>>1375068
This is kind of a lot to take in for someone who hasn't taken electrosystems yet, or any experience with circuit diagrams. Not sure how I'd account for it, seems pretty complex


would an arduino suffice for this? I understand the other symbols to a point, but why are there 4 voltage sources on your diagram? also, why is the capacitor across the motor necessary if the voltage through the motor is already indicative?


i'll be reading some of the recommended books for this, although there is a time constraint. appreciate all this immensely

>> No.1375091

>>1375076
>This is kind of a lot to take in for someone who hasn't taken electrosystems yet
Yeah, oops.

The two voltage sources on the left make a + and - voltage rail, so you can have the motor pulled to either a positive voltage or a negative, which is necessary for the motor to be able to go forward and in reverse. The other two are just used as switches in conjunctions with the PNP transistors, Q1 switching off when Q4 switches on. You can ignore those transistors, voltage sources, and the resistors connecting them. R6 is just a current shunt, the diodes are probably to prevent a voltage spike from the inductor, not sure if they'll work with a real PSU though, might want to replace it with a couple of appropriate zener diodes in series across the motor. The transistors Q2 and Q3 make up a current mirror along with R3: R3 powers the base of Q2 to allow I = ~Vcc/R3 of current, and since the same base voltage is at Q3, so the same current flows through Q3 to ground (assuming the transistors are identical). Since collector current is proportional to base current, the same collector current will flow through both Q2 and Q3, hence sinking I = ~Vcc/R3 through the motor, which is a constant current. When the voltage after the motor approaches 0.7V or so it will stop conducting through Q3, so the maximum voltage and minimum voltage across the motor will be of slightly different magnitudes.

>> No.1375133

>>1374984
Audio noob here. Many thanks for the info about the amp. I'll check it out, just haven't seen this variant yet so you really helped me.

>> No.1375164

>>1373456
Tbh I've never encountered wick that had enough flux on it. Adding flux always makes a massive difference.

>> No.1375179
File: 31 KB, 500x500, 3 Way Commercial Mate N Lok Kit MNLC3K-500x500.jpg [View same] [iqdb] [saucenao] [google]
1375179

I got a crimping tool for those horseshoe terminals and it works great

Now I need one for Dupont, JST and Molex connectors. Is there such a thing as a crimping tool that is cheap and will let me crimp all of them, from pic related down to 2mm JST?

>> No.1375194

in case anyone is interested in buying cheap tools:
>>65678362
>>65678412

be warned: many of these products don't even have any feedback.

>> No.1375198

>>1375194
fuck, I forgot to modify the links
>>>/g/65678362
>>>/g/65678412

>> No.1375200
File: 13 KB, 400x400, 1504222487423.jpg [View same] [iqdb] [saucenao] [google]
1375200

>>1375179
I bought Pic related 20 years ago and it's bretty gud (can be made to work with quite acceptable results) for almost all open barrel terminals. it costs the better part of 100 burgers though
"Engineer" of Japan's PA-21 crimp tool is well-renowned but its range seems a bit limited to me. see their application chart on their product page
if you really want cheap *and* good, you might have to pick up two or three tools. for "Dupont" connectors I use the SN-01BM crimp tool and it works well and with little trouble, other than the occasional cocked angle if I crimp too hard. the SN-28B also works, sorta, but I almost always have to dress the finished crimp with long nose pliers so it fits into the shell. there are a few models/series of crimp tool on alibay that have interchangeable dies within the series, which might work okay IF you can find the right dies for the terminal types you want to crimp

>> No.1375201
File: 53 KB, 1001x1001, 476585768576.jpg [View same] [iqdb] [saucenao] [google]
1375201

>>1375179
you want a W shaped crimp die.
look at this pic, the lower jaw is a simple C while the top is made of two W of different high. the higher W is meant to crimp the contactor, the lower W crimps the strain relieve.
This should work for all pins of the style like your pic

>> No.1375204

>>1375201
also, this pic is the first result searching "molex crimp tool" at around 20€. It even has a dial for crimp force

>> No.1375218

>>1375200
That's very noice advice, buddy

Can that SN-28B be made to work with the SN-01BM dies?

>>1375201
>>1375204
Thank you very much I'll look for that

>> No.1375230

>>1375218
the "SN-01BM" I got (marked Plato) doesn't interchange with the "JX-1601" I got, the thickness of the slot in the pliers doesn't match the thickness of the mounting tab of the die thus the dies themselves won't be well-aligned. as with all things chinkshit, your mileage may vary
the SN-01BM I got was only like $15 shipped. it's possible you may find ali sellers that offer both a "Dupont" compatible crimp tool and also additional die sets

>> No.1375259
File: 412 KB, 2040x1535, 1519711316987.jpg [View same] [iqdb] [saucenao] [google]
1375259

Sup lads. Long story short I am looking to build two of these oxygen sensor simulators based on the schematic from this site:
https://www.chippernut.com/blog/o2-simulator
I have zero electronics experience past splicing wires in my car and the electronics class i took in 10th grade like 13 years ago. That being said im trying to crash course my way into this because it really seems pretty simple.

Heres my questions/concerns:
The schematic calls for 2x 1.7v@20mA LEDs. Im buying a kit off amazon (https://www.amazon.com/gp/product/B073ZC68QG/ref=ox_sc_act_title_6?smid=A2XZVOPECQVFD3&psc=1)) that has a bunch of components and stuff for beginners, and among them are sets of different color LEDs. Ive been reading that red LEDs are typically the ones that are of this spec, but ive also seen them listed as 1.7v-2.0v... How do I know which one it is? Is it safe to have a range? How do i know what the specs are for the diodes in my kit if they arnt listed outright? Ive tried looking online for a diode of this exact spec but all I can find are ones from radioshack that cost 5 dollars a piece which is retarded. The rest dont seem to list the amperage, only voltage. Again i sorta dont know wtf im dealing with so is the amperage a concern here?

Another question: can I/should i use a car battery for testing this device? I need 12-15v power source, and since itll be wired into my car, I figured the best way to test is using a car battery. Is this a stupid idea? Is there a better/simpler way to do this?

Sorry if these questions are really dumb or something, again I know extremely little on electronics. Just want to make sure im not going to screw something up and fry my cars electronics.

pic unrelated

>> No.1375281

How do I a throat microphone?

>> No.1375282

>>1375230
That SN-01BM is also sold with a lot of dies so I'll go for it, thank you buddy

>> No.1375298

>>1375259

- dont sweat a difference of 0.3V on the LEDs. it'll work fine with any red LED or even a yellow or green. there will be such a tiny current thru D2, it wont even light up. D1 will run off whatever current the 555 uses nominally. it could be around 10mA for an old bipolar 555 or much less for a newer CMOS 555. so dont worry about current ratings for the LEDs, they can handle it.

- dont use a car battery for testing. use a tiny 12Vdc transformer, rated around 0.1 to 0.2A. this way, if you made a mistake, you wont send 100A thru your circuit. once it tests out fine, then you can connect it to a car battery.

>> No.1375299
File: 73 KB, 467x348, 1505440921896.jpg [View same] [iqdb] [saucenao] [google]
1375299

>>1375259
the correct way would be to put 20mA through them and read the voltage drop across them. that's a bit involved, though. in this circuit, the voltage drop isn't so critical so you can assume a red LED would be close enough. you could substitute greens or yellows with minimal effect on circuit operation, but to substitute blues you might need to make R3 more like 91k if the ECU is going to be picky about post-cat O2 input voltage range
current (amperage is a term mostly only used by welders) is only a concern because the voltage across (Vf) will vary slightly with current through (If), Pic related. usually the rated voltage is specified at the rated current, which for those little guys is customarily 20mA
>can I/should i use a car battery for testing this device
sure, if you don't have another source of 13-15V handy. a wall wart that outputs 13-15Vdc would work best, if you happen to have it. the advantage of using the smaller supply is that the battery offers enough energy to melt your project into glowing slag if you happen to make a wiring or assembly error, or got a bad component in the kit. please use an inline fuse on the +V wire, close to the supply end of the wire, or use a fused lighter/accessory plug and cord for testing

>>1375282
excellent chioce, cheers

>> No.1375306

Just bought a crimper for jst/dupont stuff. Is there a go to place to get crimps/connector housings? The prices on Amazon are ridiculous and digikey wasn't much better. I'd rather not pay $.80ea for 1x1 dupont housings.

>> No.1375310

>>1375306
aliexpress, of course

>> No.1375350
File: 1.53 MB, 3264x2448, IMG_3443.jpg [View same] [iqdb] [saucenao] [google]
1375350

Are these equivalent?

>> No.1375460

>>1375310
Well I had thought of that as well as eBay Chinese sellers. I was hoping I wouldn't have to wait 20-40+ days for stuff to arrive.

>> No.1375472

>>1375350
Yes, but technically you should have an OR gate where the select line comes in.

>> No.1375531
File: 1.49 MB, 1357x1281, KE6QNYV.png [View same] [iqdb] [saucenao] [google]
1375531

If I connect a negative voltage point to ground, can I generate free energy?
If yes, please nobody steal this idea before I can copyright it

>> No.1375541

What's the best way for me to run a RasPi off of an 18650, have it be USB chargeable, and have it able to be used during charging?

>> No.1375545

>>1375541
Plug it into a USB power bank. Barely any of the circuitry is reductant anyway, just find a form factor that works. Else, get yourself the USB charging and boost modules for like $1 each on ebay/Ali, they should let you charge and discharge at the same time, but check how many cells they're made for since they could push too much current through. And don't solder onto the contacts of an 18650, either spot weld them, use cells that have solder tabs on them, or put them in a battery holder.

>> No.1375546

>>1375545
Oh and you can buy empty single-cell power banks like:
https://www.aliexpress.com/item/Bush-did-911/32579622369.html
Which is a cheap option if you already have a cell, though they are only 1A max.

>> No.1375559

>>1375531
there's actually a lot of ways to generate free energy. we just hide them from the plebs.

hint: if you put a large enough current through an inductor and then cut it off fast enough you can create an infinite voltage (= infinite power).

>> No.1375578
File: 247 KB, 509x433, exclusive-OR.png [View same] [iqdb] [saucenao] [google]
1375578

>>1375546
>>1375541
This is the typical socket configuration used to tell the customer that the device has no feed-through function i.e. the output shuts down during charging and you cannot use it as a UPS. This doesn't mean that all others can do though. Unfortunately the charge+supply feature is rarely specified.

>> No.1375586
File: 267 KB, 397x301, fortheswolebois.png [View same] [iqdb] [saucenao] [google]
1375586

>>1371574
Hey swoles,

What're your thoughts about soldering up a hundred or so of these small piezo plates, and stacking them all on top of each other (with a layer of electrical insulation between them) and pushing a voltage through all of them at once.

Will it result in it extending and contracting 5-10mm, or will nothing happen? Thoughts?

>> No.1375610

>>1375586
>a hundred or so
Two or three are enough to think it through.
How do they deform?
How would you arrange them?

>> No.1375621

>>1375610
>How do they deform?

Applying a voltage results in the expanding longitudinally.

>How would you arrange them?
Literally like I said - stack a hundred or so directly on top of each other.


I'm asking if people have experience with these plates and what their theories are, not for a thought experiment.

>> No.1375638
File: 646 KB, 2758x3900, 1515290924443.jpg [View same] [iqdb] [saucenao] [google]
1375638

>>1371574
Alright lads. Anyone know a decent ESC I can use for a drone that's documented more thoroughly than "push the joystick to max to go fast lol". Finding an ESC with a decent datasheet is a nightmare.

Or alternatively, is there anything else I can use to switch a low-power PWM signal to a high power 3 phase PWM signal?

>> No.1375643

>>1375586
piezeoelectric stacks have hundreds of piezo plates and only move a few microns.
so no, you probably won't see anything.

>> No.1375651

>>1375621
You can buy that shit. It's expensive. But you can atleast look at the datasheets and find out how many layers of what dickness result in what displacement.
Just search fot Piezostack
http://www.pi-usa.us/tutorial/4_44.html

>> No.1375661

Roughly, how much of a pain would it be to have a 220V 30A line installed in my lab? It's already going to be a huge pain because of red tape with the school but barring that, what's the deal?

>> No.1375678

>>1375661

easy peasy. it's more or less what every home has in N. Amerikkka to run the stove.

>> No.1375686

>>1375661
Very easy, you can find anything you need online. As far as the amperage goes, 30A is a lot. Might be a little expensive. Definitely look online for someone who has done the same/similar thing.
>>1375678
That is NOT what every north american has. That is European(mainly UK) mains power. US is 120v nominal

>> No.1375688

>>1375686
>>1375678
my bad, you said stove, youre right. Stoves use split phase 240 and a center tapped neutral.

>> No.1375694

>>1375686
M8 just connect 2x 120V outputs together, 240V.

You guys are such pussies lol

>> No.1375695

>>1375678
>>1375686
Doesn't matter how easy it is for me, I can't do it. This is at a university so facilities needs to do it, the drawings of the room need to be redone to indicate an outlet, tons of red tape. It's for an ultracentrifuge (motor spins at >41k rpm, 200k x g) which also has a vacuum and temperature control device, with the following requirements as per the manual

Instrument rating: 220 to 240 VAC, 50 Hz, 20 A 200 to 240 VAC, 50/60 Hz, 20 A

Power line range: 180 to 264 VAC, 60 or 50 Hz (single-phase), 30 A

Electrical supply: Class I

It draws 20A but needs a 30A line to handle surges when it's turned on and whatnot. I'm sure this would be simple if I could do it myself or just call an electrician but I can't.

>> No.1375698

>>1375695
https://www.amazon.com/LiteFuze-LT-2000-Voltage-Converter-Transformer/dp/B008GQTXS0/ref=sr_1_1?ie=UTF8&qid=1524763669&sr=8-1&keywords=120v%2Bto%2B240v%2Bconverter%2Bindustrial&th=1

>> No.1375709

>>1375638
>Or alternatively, is there anything else I can use to switch a low-power PWM signal to a high power 3 phase PWM signal?

Not very fond of drones, but there are integrated BLCD/3ph motor drivers. Using one however, means you should provide with the pwm signal wit a mcu or such to make the motor spin.

>> No.1375843

>>1375694
This works if he has two phases

>> No.1375971
File: 152 KB, 895x640, Screenshot from 2018-04-26 22-57-47.png [View same] [iqdb] [saucenao] [google]
1375971

Hello ohm. My boss got some light sockets to install into into a sandblasting cabinet. Notice anything strange here?

>> No.1375973
File: 89 KB, 191x222, A5ZEnDE.gif [View same] [iqdb] [saucenao] [google]
1375973

So I know mixing copper and aluminum wire is pretty bad news, but is it long term only? I have a project I am working on for tomorrow, and just realized some of the wires are aluminum. Can I wire nut it just for tomorrow and then disassemble it and fix it proper later? Only dealing with a Max of 4-5 amps mixed to a central power cable.

>> No.1375974

>>1375971
The external screw terminals? Also it says porcelain but it looks like plastic.

>> No.1375977
File: 213 KB, 1227x511, Screenshot from 2018-04-26 23-08-10.png [View same] [iqdb] [saucenao] [google]
1375977

>>1375974
>>1375971
Yes exactly right. How the heck are you supposed to install this safely when the terminals are both on the exterior?

>> No.1375982

>>1375977
Well at least it's not for a water-jet cabinet.

>> No.1375985 [DELETED] 
File: 443 KB, 2302x1188, 1497328976607.jpg [View same] [iqdb] [saucenao] [google]
1375985

hey /ohm/
I just picked up one

>> No.1375987
File: 443 KB, 2302x1188, 1495073928541.jpg [View same] [iqdb] [saucenao] [google]
1375987

hey /ohm/
I just picked up one of these power supplies. any idea on how to remove the voltage spikes that happen on power on / power off?

>> No.1375992
File: 347 KB, 1024x767, catto.jpg [View same] [iqdb] [saucenao] [google]
1375992

Quick question about Zener Diodes.

I am trying to protect the I/O pins of my MCU, these have a voltage range of -0.6V -> 4.1V. Normally the I/O pins see either GND or 3.5V.

Is using a VESD03-02V-G-08 sufficient to protect against >4.1V transients? This Zener has a Min Breakdown Voltage of 4V (1mA) and a Reverse Standoff voltage of 3V (20uA). Here is the full datasheet: https://www.vishay.com/docs/83367/vesdxx02v.pdf

>> No.1375994

>>1375987
what do the spikes look like on a scope?

>> No.1376002

>>1375992
Low voltage zeners are a bit shit, have a look at their V/I curve and determine if the current that flows at 3.5V doesn't matter. And actually measure that voltage to make sure it is 3.5V.

>> No.1376004

>>1376002
Yea would if I could, the only useful data-points I have are (x;y) 4V;1mA & 3V;20uA

>> No.1376007

>>1376004
Well that's probably not good enough, unless you put a dropper resistor somewhere such that 1mA is enough to get the voltage down significantly.

>> No.1376050

>>1375992
Like the other anon said, low voltage zeners generally suck and that particular one is optimized for ESD protection instead of general use. It is also rated for just 3V, so your 3.5V is bit iffy.
It might still be ok for very short transients. If your overvoltages last relatively long, consider basic diode clamps (schottky to VCC and GND). Even a plain old series resistor (with MCU's internal protection diodes) might be sufficient in some cases.

>> No.1376090

>>1375091
Do you have a discord or something I can message for any further questions?


I think I figured a simpler way to make the project, simply have a motor supply constant torque in one direction up to a certain speed and then stop. Whatever time it takes to reach that speed can merry be doubled so a single direction would suffice.


You mentioned a brushless motor being easier, I could just calculate the Kt (torque constant) and apply the current accordingly but how exactly does voltage factor into this? The torque supplied doesnt have to perfectly match my calculations


Seems like all the brushless motors i find for sale have ridiculous RPM, when I only need 190 or so


I would also downsize the project, 30 N*m is way too much torque and makes the whole thing more difficult,

>> No.1376092

>>1376090
>a discord
I'm ignoring like 3 responsibilities by not logging into my discord.

>simply have a motor supply constant torque in one direction up to a certain speed and then stop
Yes, but what would you do to insure constant torque? Isn't that what you wanted to figure out how to do in the first place?

>a brushless motor being easier
Only if you were going the cheaty "digital speed control feedback" route, as they're synchronous motors (they spin at a multiple of the frequency you send to their coils), so they're easier to control the speed of than a brushed motor, which requires an encoder of some kind. But brushless motors can be driven at any damn speed you want to, though ones with few poles will be pretty jerky at low speeds. I don't suppose you've got a stepper lying about do you?

Now as far as power goes, with those4 weights and the specifications given, it will be pulling an average of 300W for 2.72s, probably double that at either end. Now this isn't unfeasible, but it will certainly require quite some electronics, namely ones that can handle a few dozen amps, so stepping down the scale of the project is a good idea.

>> No.1376100
File: 32 KB, 400x119, robertmach_5-pin-DIN.jpg [View same] [iqdb] [saucenao] [google]
1376100

I'm trying to replace the keyboard on a screen printer because the current one is old and a lot of the keys don't work.
The keyboard on it has a 5 pin DIN connector and I'm trying to replace it with a keyboard with a PS/2 connector.
I've cut the PS/2 connector off the new keyboard and soldered a 5 pin DIN onto it.
I've definitely wired it correctly as the PCBs in both keyboards have the cable connections labelled as VCC, GND, Data and Clock.
For some reason, whenever I attach the new keyboard, I get a keyboard error / no keyboard found from the BIOS.
The new keyboard is definetely still working as I've now soldered a 2nd cable into it with PS/2 to check it on another PC.
What the hell am I doing wrong? Is there some protocol issue?

>> No.1376105
File: 331 KB, 1500x1101, 91Sb6QABcZL._SL1500_.jpg [View same] [iqdb] [saucenao] [google]
1376105

>>1376092
> I don't suppose you've got a stepper lying about do you?

No, as far as materials already on hand I only have an arduino uno, small breadboards, and a box of random arduino parts/sensors such as a potentiometer.

I have a week to do this and factoring in my full time job and classes, along with lack of parts, I think simplifying it further would help alot.

You seem to have an engineer/physicist background, i guess the point of the project is to demonstrate linear impulse and momentum. I don't think maintaining constant torque is feasible like you said

All I really need to do is make sure the motor achieves 20 rad/s in 1.36 seconds, giving the proper average torque right?

How would this be done? If voltage controls speed, and current controls torque, would calculating the power required work? and using any correct combination of current and voltage

I don't know if i necessarily need it to stop at that correct speed, but if i do then once it reaches that speed, the voltage remains constant? and what happens to the current? does it drop off?

Could I do this with an computer psu?

I don't suppose i could use one of these breadboards...

>> No.1376106

>>1376100
>Is there some protocol issue
I suppose so, assuming you soldered it correctly. But I'd check the datasheet of the existing old keyboard, and maybe their internals are similar enough that you can just transplant a few parts.

>> No.1376116

>>1376105
>make sure the motor achieves 20 rad/s in 1.36 seconds
Well if that's fine, just experiment with your motor and find out what voltage equates that speed with your load on it (V0), then just have a linear voltage ramp from -V0 to +V0 in 2.7s. You may want to use PWM instead, if the resultant load on your buffer is too high. There are a few ways of having a voltage ramp, such as using a 555-timer, current-source + capacitor, or op-amp.

Though it's not necessarily simpler than putting a current source across the motor itself, like the first circuit. And I think that first circuit could be simplified to 2 resistors, an LM337, a transistor, and a toggle switch plus your motor by the way. But either way you'll still need a split power supply, for which two batteries would suffice.

>> No.1376117

>>1376116
>you'll still need a split power supply
Oh this is only for going from negative speed to positive speed, you can have a single power supply for going to or from 0rad/s.

>> No.1376126

>>1376116
I think PWM would be easier with the arduino. Have any recommendations for A motor? Stepper or brushless? I imagine it'll have to be pretty small since the arduino can only put out like 30mA but I can design the prototype size around what the motor is capable of. Light materials, aluminum foil balls for the weights for precision


I guess speed measuring is also something I could solve with a hall effect sensor near the rotating balls, one with a magnet attached, measuring RPM right?

I want to at least get the speed correct before integrating the parts you mentioned for the reversal

Again, thanks a ton

>> No.1376134
File: 51 KB, 692x406, mosfet_hb2.png [View same] [iqdb] [saucenao] [google]
1376134

>>1376126
Well for just PWMing the motor as a crude way to control the average voltage and hence its speed you'd use a brushed DC motor, which is probably easiest. For a brushless motor you'd need to just change the frequency at which you drive it and it would stay precisely at the correct speed. I'd recommend the first method because the normal brushless motor will be running at 3.2 turns per second, which I don't think would work well. Depending on how the brushless motor needs to be driven you could PWM it, but it will be more difficult.

If you just want to get from speed A to speed B without caring what kind of torque curve you're sketching then turn down the PWM on the arduino until the brushed motor spins at the right rate, and write 5 lines or so to transition from 0% to that duty cycle. Don't forget to use a mosfet and a freewheel diode.

But if you actually want to give speed feedback to the arduino then a hall-sensor near the magnets of the motor would probably be good enough, or an optical encoder (LED+phototransistor) with a piece of reflective tape on the motor shaft. Calibrating the feedback code may be less than trivial however.

The parts I was talking about weren't just for the reversal, they were a standalone constant-current supply to pull the motor at approximately a constant torque. Integrating the reversing function into your arduino model wouldn't be too hard at all, you'd just need to either make an H-bridge for your motor or use a split supply. PWM one line of the bridge to go clockwise, the other line to go anticlockwise, and if you use P-fets on the high-side you won't need a driver, just some inverted arduino outputs. Something like pic related, except instead of the two BJT inverters you'd just use two more I/O pins.

>> No.1376143

>>1376134
If the transition from 0-100% of the voltage to the top is linear, doesnt that mean that the torque would be constant anyway? Since the acceleration is the same throughout the process

>> No.1376146

>>1376134
Why do you have two bjts connecting to the gate of your fets. What purpose do they serve?

>> No.1376148

>>1376134
>For a brushless motor you'd need to just change the frequency at which you drive it and it would stay precisely at the correct speed.

Really? I thought the cheap ones used EMF feedback to set the frequency, and the good ones use an encoder or shaft sensor; BDCMs are NOT synchronous motors in the AC sense; they are synchronous only if the applied signal tracks the rotor, and the rotor position depends on inertia during acceleration, and load torque at all times. Just slapping a frequency on a BDCM does not erase this fact.

>> No.1376150

>>1376100
You sure the original keyboard is actually a PC compatible keyboard and not just something sharing the same connector?

>> No.1376154

>>1376143
Torque is roughly proportional to current, no load speed is roughly proportional to voltage.

With a constant voltage source acceleration is roughly a straight line from maximum acceleration at zero speed down to zero acceleration at the no load speed.

To approximate constant torque/acceleration you'd need to use a current source, for better results you could use a lookup table of current vs present speed to compensate for it being not quite constant.

A linear voltage ramp could be close enough too with a small inertia load.

>>1376146
The BJTs allow using a lower voltage logic input than the voltage used for the motor supply, so it'd work with for example 3.3V logic at D1/D2 to control the 12V. Without the BJTs there a 3.3V microcontroller can't go high enough voltage to turn Q1/Q3 off.

>>1376148
If you've got a predictable load it is possible to drive a BLDC entirely open loop with just a variable frequency like a synchronous motor (or even a fixed frequency if you haven't got much inertia to start up), but you have to be careful with the frequency and voltage profile to make sure the rotor can keep up, if not it's going to stall.

>> No.1376166

>>1376154
>The BJTs allow using a lower voltage logic input
This is incorrect, they're being used as inverters since P-channel MOSFETs turn on with a logical 0, so you can power both Q2 and Q3 with the same line D1.

>> No.1376175
File: 371 KB, 400x300, 1513582069313.gif [View same] [iqdb] [saucenao] [google]
1376175

Any ideas for converting a (stereo) DAB radio that is obsolete now to an internet radio (wifi) / bluetooth speaker on the cheap?

I'm looking at an esp32 and an I2S DAC. Planning on reusing the amp, controls (rotary encoder + numpad) and display (20x2 or something like that) if they're reasonably accessible.

Anything else I should be considering? A cheap orange pi maybe? I saw a project on memeaday using an esp8266 and a VS1011 but the VS1011 makes the whole thing too expensive, and I can't seem to find a cheap alternative. Surely it must exist since $1 mp3-players are a thing.

>> No.1376179

>>1376106
>>1376150
Never mind, I found a PS/2 connector buried inside the machine and connected a new keyboard into it

>> No.1376181

>>1376166
Read the rest of the post before jumping to "correct" someone on the internet.

>> No.1376271

>>1374113
>Of course there's no magic under the hood but to the layman it would seem like it.

so your post was for the laymen browsing /ohm/

gotcha.

>> No.1376276

>>1376154
>but you have to be careful with the frequency and voltage profile to make sure the rotor can keep up, if not it's going to stall.

correct.

so people actually do this? instead of using the normal method that simply works, where you get the rotor position from EMF or a shaft sensor? Why would you try to predict something that you can sense?

>> No.1376298

I started messing around with HDLs and FPGAs and I read that a lot of the stuff they teach about RTL-design for example in Universities doesn't really align with industry practices.

My knowledge is mostly based on uni-courses and I was wondering how I would best go about learning about industry practices without actually working in the industry.

Are there books that teach industry practices? Journals, Magazines? Any other resources?

>> No.1376335
File: 33 KB, 800x480, 1509973102216.png [View same] [iqdb] [saucenao] [google]
1376335

>>1375994
here's the turn-on spike. the turn-off spike is only about 400mV above the 5V setting which is within the 1V spec they advertise. Im thinking I need a zero cross circuit but not entirely sure.

>> No.1376341

>>1373076
I got one of those tiny Chinese CNC routers specifically for making PCBs. It's a little fiddly but it works. The key is using good software to compensate for the shittiness of the machine. I think I went kicad->flatcam->chillipeppr. Flatcam can generate indexing holes for two-sided boards and chillipeppr has an autoleveling mechanism to compensate for board thickness.
It's really useful when you need a board *right now*, also for DIY smd projects. Otherwise, you don't have through plating, vias, soldermask or silkscreen, so if you can wait a week or two a fab house is the way to go.

>> No.1376357

>tfw you just need one tiny component but there's no local diy electronics store so you need a 2000 ton container ship to travel halfway around the world just to bring it to you
Is diy electronics the most environment-destructive hobby there is?

>> No.1376358

>>1375977
It might be a base for those fixtures with plastic/acrylic cover over them.

>> No.1376394

How are those cheap helping hands on AliExpress, the ones with the nice bendy arms? I need one, but I don't know if I should spring for a nice one or gamble the chink ones.

>> No.1376409

>>1376357
>just to bring it to you
>just
no, that would be competition motorsport
3/8 b8 m8

>> No.1376423

>>1376357
It's not that bad. The ship is also bringing me a one hung lao android watch

>> No.1376458

>>1376276
Well for a very simple program on a low load, a simple frequency ramp would essentially be guaranteed to get a BLDC motor up to speed.

>> No.1376467
File: 187 KB, 1500x1500, vtech turtle.jpg [View same] [iqdb] [saucenao] [google]
1376467

Anyone know where I would be able to find circuit schematics for vtech toys? I want to try to make my own learning toy.

>> No.1376470

>>1376467
it's all software. there's little to no real magic in the circuitry. just write lolduino code

>> No.1376487

>>1376276
It's the standard method for initial start up of drivers that then switch to EMF sensing, since when it's stopped there's no EMF there to sense.

>> No.1376490

>>1376487
Though the models with a hall-encoder could do either.

>> No.1376497
File: 20 KB, 384x384, images (16).jpg [View same] [iqdb] [saucenao] [google]
1376497

Someone gave this to me
None of my friends will buy it
Any project ideas?

>> No.1376500
File: 150 KB, 1920x1080, 1518264582374.png [View same] [iqdb] [saucenao] [google]
1376500

>>1376497
enjoy

>> No.1376510

>>1376497
What sort of relays are they? Are they good for mains voltages or high-current DC?

>> No.1376536

>>1376510
If the pic there is the exact model those are 10A 250VAC / 10A 30VDC.

>> No.1376605

I want to drive this pump with an arduino (https://www.aliexpress.com/item/DC-12V-19W-Submersible-Water-Pump-High-Lift-9m-500L-H-Car-Wash-Bath-Fountain-Submersibles/32838678555.html))
>12V
>1.5A at full load
I just need to turn it on for a couple of seconds at a time, maybe less, and not very often (off-time is random, can vary from seconds to minutes/hours). No need to reverse direction of the pump or anything fancy like that.

I need a mosfet, right? But how do I go about selecting one? Knowing that a digital out from the arduino is 5V I need the mosfet's threshold voltage to be lower than 5V, yes? Then looking at the graphs on the datasheet, Id with Vgs=5V and Vds=12V should be higher than 1.5A, yes? Finally, looking at Rds and knowing that Id=1.5A will tell me that the power dissipated by the mosfet will be P=Rds*Id^2, and the voltage drop over it will be V=Rds*Id. That means that if I power the pump with a 12V power supply, the pump itself will actually get a voltage equal to 12-(Rds*Id), correct?
If the above makes sense, is the IRL540 a good choice? https://www.vishay.com/docs/91300/91300.pdf

Last thing: should I put a flyback diode in parallel with the pump? Or with the mosfet? And this diode should have a breakdown voltage of at least 12V and a max current of at least 2A right?

>> No.1376623

>>1375987

nothing you can do except redesign the circuit correctly. a workaround is to install a big switch that cuts off all outputs. so you switch on the supply, it spikes, then you turn on the outputs.
or, it might help if you wire in permanent load resistors to eat the spikes.

>>1376100

should work unless you screwed up the wiring. i would have use an adapter made for that very purpose. (i bought two in 1995)
could be you missed wiring the cable shield to the metal shell of the connector.

>>1376605

you put the diode across the load (backwards of course). a 1N4001 rated at 50V 1A is more than enough.

>> No.1376628

>>1375987

nothing you can do except redesign the circuit correctly. a workaround is to install a big switch that cuts off all outputs. so you switch on the supply, it spikes, then you turn on the outputs.
or, it might help if you wire in permanent load resistors to eat the spikes.

or instead of the switch, another idea is a timed relay that kicks in a few seconds after the unit is switched on. this is used in old stereos to avoid the DC thump caused by the charging output capacitors.

>>1376100

should work unless you screwed up the wiring. i would have use an adapter made for that very purpose. (i bought two in 1995)
could be you missed wiring the cable shield to the metal shell of the connector.

>>1376605

you put the diode across the load (backwards of course). a 1N4001 rated at 50V 1A is more than enough.

>> No.1376632

>>1376181
But you ARE incorrect. 100% so. as you can see, the control signals go directly to 2 out of the 4 FETs. so, obviously the bipolars arent there for converting voltage levels, but as inverters.

>> No.1376637

>>1372663
>>1372673
>>1372679
Pls send help.

>> No.1376640

>>1376637

no idea what you mean by ''floats like crazy'' -- my guess is the thing is chattering. you need to research comparators with hysteresis. maybe somehting like this: http://www.analog.com/en/analog-dialogue/articles/curing-comparator-instability-with-hysteresis.html

it's not as complicated as it sounds, just choose a feedback resistor that gives you about 10% hysteresis, and you're good to go.

>> No.1376662

>>1376640
chattering is the word I was searching for there. Thanks I'll have a read.

>> No.1376682

I don't know if there's a phrase for what I'm trying to describe, but how long did it take you all to feel comfortable with electronics, enough to know your way around building them, and could generally just go with the flow, understand what everyone was talking about, etc etc?

>> No.1376700

>>1376632
If you didn't want level conversion you wouldn't need the BJTs, can use the two drive signals connected to left side gates connected together and right side gates. Using the layout as shown just makes control harder if you have 12V controk available in as it requires having D1 always driven as !D2 and can't do braking.

>> No.1376718

>>1376682
> don't know if there's a phrase for what I'm trying to describe
fluent?

>> No.1376730

>>1376623
>>1376628
>you put the diode across the load (backwards of course). a 1N4001 rated at 50V 1A is more than enough.
Got it. And is everything else correct? I'm about to order 15 IRL540 just so I have more for future projects.
Or does /ohm/ recommend other mosfets (possibly that work both on 5V and 3.3V logic)?

>> No.1376778

>>1376682
If you get a cheap kit with an arduino and a bunch of sensors and actuators and stuff from somewhere like banggood you can pretty much start tinkering immediately.

>> No.1376803

>>1376458
>on a low load, a simple frequency ramp would essentially be guaranteed to get a BLDC motor up to speed.
>>>

I agree. Typically my applications involve a load of some sort, so I'm not familiar with these applications where a motor doesnt' do much of anything except spin.

>> No.1376806

>>1376487
>It's the standard method for initial start up of drivers that then switch to EMF sensing, since when it's stopped there's no EMF there to sense.
>>1376490

It just seems like such a clusterfuck, since the motor can start in the wrong direction.

I suppose saving 20 cents matters in some cases.

>> No.1376845
File: 86 KB, 341x338, 1521835868524.png [View same] [iqdb] [saucenao] [google]
1376845

>>1376605
diode max forward current is usually specified as a steady-state value. if you're just absorbing back EMF, you're probably more interested in the peak rating
otherwise, your design methodology is spot-on. have another (You) >>1376605

>>1376730
for solderless breadboarding the IRLD series has a unique hotness: 4-pin DIP packaging. the IRLD024 is rated for 5V logic, not 3.3V, but will still pass 2-3A at 25°C at 3V Vgs, which should be plenty for prototyping, Pic related
IRL540s are good all-around switches. I recommend you also stock a P-ch complement, as sometimes low-side switching a load doesn't work. unfortunately there is no IRL9540 so you get to pore over the selector guides and find something close enough. enjoy!

>> No.1376861

>>1376845
Thanks a lot for the feedback! I actually finished placing my order a moment before your post, and I went with the IRL540. I guess I'll keep in mind to get a few p-channels too. On the other hand those IRLD024 seem quite expensive?

>> No.1376862

>>1376682
Like everything it depends how much time you invest in it. I had some electronics classes at uni and have been dabbling with small circuits, but I still don't understand a lot of what is discussed on here.
The 80-20 rule applies though (ok maybe it's like 70-30?), so if you learn the basics well that can get you already pretty far. Then it's a matter of learning with time and by doing.

>> No.1376880
File: 12 KB, 540x730, 1497812932819.png [View same] [iqdb] [saucenao] [google]
1376880

>>1376861
the IRLD024 are a bit expensive, but that's less critical for prototyping, where a smol package that fits easily onto your breadboard without wearing it out can be really fucking convenient. not strictly necessary
the IRF9540 is a P-channel complement of the non-logic level IRF540. that's probably okay for switching high-side loads at 10V or higher where your low-side level shifter can be made tolerant of the higher voltages. the IRF9540 should also work well when driven by 5V CMOS logic levels and Ids requirements are only 1A or so

>> No.1376898

Once I've finished breadboarding, is it expensive/time consuming to design and make a PCB? I've never done it and don't have a 3D printer. Should I just get some veroboard and solder the parts?

>> No.1376924

>>1376898
pcbs are very cheap. elecrow sells 5pcs 4"x4" for $5+s&h. oshpark sells at 3pcs $5/in^2 but with no s&h, gold plating, and realistically 5/4 capabilities (though they state 6/6). making them is pretty annoying to be honest. i use altium and the actual process of routing is quick, easy, and fun but if you're making a simple board with ten things on it it gets real fucking tedious handling all the enterprise software overhead.

>> No.1376930

>>1376898
going from the layout to the finished board takes a while (because you sent out for it) or is mildly annoying and vaguely unpleasant and/or mildly hazardous (because you wanted that board today and therefore decided to pattern and etch it yourself from a blank)

>> No.1376987

>>1376898
>don't have a 3D printer
Can you 3D print circuits now?

>> No.1376988

>>1376806
It can't start backwards since it's a three phase drive sequence.

>> No.1377019

>>1376987
the light-projection printers are surprisingly useful for patterning sensitized pc boards

>> No.1377034

I'll be the first one to admit that I'm a beginner to electronics, but I am becoming more comfortable with it.

However, is it normal that I'm somewhat comprehensive to move up to anything higher than 9v?

>> No.1377053

>>1377034
anything 48V or below is considered low voltage and won't kill you. just don't lick it
also, a power supply with a reasonable power limit (<40W) is unlikely to create any explosion that might send pieces of component flying into your face, unless you install a polarized cap backwards or something like that

>> No.1377054

>>1371574
How stupid would it be to connect one of these wire ends (OP pic) to an alligator clip? Would it arc?

>> No.1377055

>>1377053
I just basically want to move forward to relays and automating waterpumps and what not.

>> No.1377067

>>1377019
You mean light curing resin? That's not really what I think of when I hear "3D printer". Though I guess you could 3D-print over the top of a PCB as some sort of stencil for UV exposure.

>>1377055
Arcing won't happen without particularly high current (a few dozen amps), so you'll pretty much never get it from something that isn't a welder or a car battery. Besides, what do you mean by connect one of the wire ends to an alligator clip? You mean short two voltage rails together? Or just use it as a wire in a reasonable circuit?

>> No.1377168

>>1377055
remember your flyback diodes and don't plug things in backwards. you'll be fine.

>> No.1377170
File: 1.30 MB, 3264x2448, IMG_1186.jpg [View same] [iqdb] [saucenao] [google]
1377170

Dingus is need of help here, had a power surge during a storm last night. The ac adapter on the left stopped working, I'm hoping the cell phone booster I had it plugged into is okay.
I ran to walmart and grabbed this variable voltage ac adapter on the right. None of the connectors fit my device because standardization is for plebs. Since my old adapter is trash could I splice the end and insert the wires into the two holes you see there? Would it work? Is it safe? It would only be temporary. I just want to know my device still works before ordering the new adapter.
Yes I will use a surge protector next time.

>> No.1377203

>>1377170
>Would it work?
yes
>Is it safe?
not in a consumer sense obviously but if you're asking the question you're fine.

>> No.1377210
File: 145 KB, 800x533, splice and tape.jpg [View same] [iqdb] [saucenao] [google]
1377210

>>1377170

the more legitimate (but still amateur-certified) way to do this is to cut both cords, strip wires, and splice together, then tape it all up.
you need a voltmeter to check polarity, tho.

>> No.1377218

>>1370907
>>1370914
>>1370925
Someone asked me to try my component tester with an inductance. I actually managed to find one, according to its color scheme it's 100uH with a 10% tolerance. The tester measured 0.09mH and 3.7 ohms.

>> No.1377482
File: 976 KB, 950x533, dys.png [View same] [iqdb] [saucenao] [google]
1377482

hey guys i need some help making a very simple circuit, ive tried teaching myself electronics but im a little dyslexic about it. I'm good with my hands though and am determined to make it work

what i want to do is make a random number generator. It will be a simple circuit and the output will be a single flashing LED. I want it to randomly generate in binary, so the light off would represent 0, and the light on will represent 1

here's how i need it to work: it has to have two operations, "calculating", where it flashes on and off rapidly, and "display", where it either shines the light on or off.

flipping a switch will make it "calculate", and flipping it back will make it stop on whatever the light was flashing at the moment the switch is flipped. That right there is the part im having the most trouble with, how can I get this circuit to recognize what the light is displaying in that instant, and to hold it? I really need a degree of accuracy here, the "random"ness factor comes from the instant i decide to switch back, with the calculating phase being too rapid for me to track and predict

i know its kind of a weird request and i feel bad for coming here with no concrete understanding, but i have this idea for kind of an interactive wall made of hundreds of these little circuits. kind of an art piece with randomization being the theme. its all in my head right now, but I would really appreciate some insight on how possible this is, i mean if I could get it working with just a few switches and resistors soldered together that'd be great, but if its too complicated for that and I need to get into arduino to host these operations, I'd rather hear it from you guys than try and assume because the answer isn't immediately clear to me.

I'll be lurking in this thread if any of you can get back to me on this. Thank you for any insight you can give me

>> No.1377496

>>1377482
I personally don't know what IC can achieve this, but I think Arduino is the easiest solution for this.

>> No.1377500

>>1377482
Also, maybe this will help you: https://sci[add -
here]hub.tw /10.1109/ICECS.2010.5724498

>> No.1377502

>>1377500
its difficult to understand as a layman but it sounds really similar as a layman, maybe all I need to do is take the individual units from this circuit since i dont need big numbers generated

>> No.1377537

>>1377218
Sounds fine, is there a problem?

>>1377482
Use a D-flip-flop for the memory latch. You can probably make one out of a half dozen transistors and resistors if you don't want to buy an IC for it. But chances are your RNG will produce a really fast oscillation anyways so you'll need to step it down with a frequency divider anyways, and frequency dividers are made of flip-flops anyways.

What are you using to generate the numbers?

>> No.1377560
File: 95 KB, 1350x1050, binary counter.gif [View same] [iqdb] [saucenao] [google]
1377560

>>1377482

cant think of a way to do this with just passive components, but if you can into chips, then what you wanna do is very simple. you need an oscillator that runs at high speed (fast enough that you cant anticipate a certain count when pushing the STOP switch) and a binary counter chip. you put a toggle switch between the two, so when you open the switch, the counter stops at some unknown count. when you close it, it counts fast again.

see pic attached. this particular counter (4040) can have up to 12 binary digits, but you use only as many as you like. if you want 4, use the Q0 to Q3 outputs only.

>> No.1377569

I want to play audio samples with a micro controller but I don't know.how to go about doing it. I want to be able to play different samples by pressing buttons. Anyone have some good sources where I can learn this stuff? I'm guessing I would need to have a wav file and then the waveform would need to be filtered and amplified before reaching the speaker but I don't really know how to go about doing this.

>> No.1377571

>>1377569
I forgot to mention the microcontrollers I have are arduino uno and msp430

>> No.1377572

>>1377537
>Sounds fine, is there a problem?
not really, some anons asked me to check how well it did with inductances and so I did

>> No.1377576

>>1377067
the standard sensitized resist films are sensitive to the shorter wavelengths that the UV-curing printers emit. in some experiments I did a while back, it took about 120-150s to expose the film. in theory (have not tried it) you could just cure the normal resin in place as a resist layer, wash uncured resin off in IPA, etch in a compatible etchant, and remove with a strong solvent. in theory, that should be good for 5/5 spacing

>>1377218
cool, cheers
>>1377537
I had asked earlier, was curious about precision, a bit disappointed it didn't read into fractions of a microhenry

>>1377482
so a coin flip kind of thing? two traditional means of generating real (as opposed to pseudo) randomness are Zener diodes and B-E junctions, each reverse-biased. take the (analog) noise, optionally amplify it, run it through a comparator to get binary, feed the binary to a transparent latch, and just turn the latch enable on/off with the switch

>>1377569
when I did this many moons ago, I put my samples in a serial EEPROM with a custom format, because the PIC I was using didn't have enough flash and/or CPU time for FATFS or variable audio formats or any SD card control crap
in short, when the button calling for a sample was pressed and released, I looked up the address/length in the EEPROM's "directory" page, held the flash's nCS low, sent a read command for the sample data, and just streamed bytes out as I needed them until the sample length was exhausted. then raise nCS and wait for the next button press. those bytes were loaded into the PWM generator of the timer, whose output pin was low-pass-filtered and amplified to a speaker. in my case I had one button and samples were pseudo-randomly selected so I combined the button with the nCS line to fit an 8 pin micro
grab the datasheet for the chip you'll be using, and read up on the timer (especially PWM) and the SPI port. you'll need to use a timer interrupt if you want playback frequency to stay constant. good luck

>> No.1377580

THIS WAY PL0X
>>1377579
>>1377579
>>1377579

>> No.1377582
File: 1 KB, 322x194, rnd.png [View same] [iqdb] [saucenao] [google]
1377582

>>1377482
>>1377500
https://en.wikipedia.org/wiki/Linear-feedback_shift_register
output can be from any stage of the shift register, clock frequency sets speed, start/stop via enable/disable clock.

>> No.1378578

>>1371679
why would you do this? it's only going to run while you have the button pressed.

>> No.1378741

>>1377569
DFPlayer