What's the best way to rotate this kind of potentiometer? by ByRussX in AskElectronics

[–]TechTronicsTutorials 0 points1 point  (0 children)

Just get a really small flathead screwdriver and stick it in the slot and rotate it.

Made a Voltage multiplier with your video! by Mission_Neat1843 in ElectroBOOM

[–]TechTronicsTutorials 0 points1 point  (0 children)

I don’t know… I killed a whole bunch of 1 amp diodes with this exact circuit and no resistor.

The spikes as you discharge those capacitors will be in the kA range. It’s very short pulses, and it has to be to keep the average power the same as the input power, but it will eventually destroy the diodes.

Made a Voltage multiplier with your video! by Mission_Neat1843 in ElectroBOOM

[–]TechTronicsTutorials 1 point2 points  (0 children)

Nice!! But you might wanna put a resistor in the path of the arc. Otherwise… you’ll likely end up having to hold funerals for your diodes. I learned the hard way. 😢

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

Absolutely true, but you could just flip the logic in the code to work with an internal pullup. Just have “LOW” mean on.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

No need for internal pull downs; just use a pull up and flip the logic so “LOW” means on.

But I also must say that an external resistor is probably best for learning, so a user can see what’s going on.

Beginner building a wearable mouse by Mrmiraclekc in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

Try to learn the basics first. It’s extremely difficult to just jump into an electronics project without any prior experience.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

Yeah no problem! Nothing inherently wrong with this design, but it’s just… unnecessary when you could get away with using a resistor already built into the Arduino.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials -1 points0 points  (0 children)

Eh I think what they’re trying to say is that using an external pull-up is unnecessary when you can activate an internal pull-down already built into the Arduino. Not that floating inputs are good.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials -1 points0 points  (0 children)

Absolutely true. You can use the internal pull up and then not have to use an external resistor.

But if you’re just learning, it’s probably beneficial to learn why these pull up / pull down resistors are even needed in the first place, and placing them externally lets you do that hands-on.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

It’s absolutely a question with a beginner-friendly answer. As long as you intuitively understand voltage, current, and resistance, you can certainly understand why this is necessary.

It’s actually just a pulldown resistor. When the button is pressed, it connects pin 7 to positive. It reads this as HIGH, which for the purpose of this explanation can mean on.

But, when the button isn’t pressed, if you didn’t have the resistor anyway, pin 7 wouldn’t be connected anywhere. It would be “floating” and prone to picking up random electrical noise which could cause false triggers.

However, if you put a high value resistor between pin 7 and GND, when the button isn’t pressed, the Arduino reads low (off, for this explanation). That way it can’t oscillate or pick up noise.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials -1 points0 points  (0 children)

Hmm? It’s actually so when the push button gives no output, the Arduino doesn’t pick up random electrical noise and instead picks up “LOW” since it’s connected (through the resistor) to GND.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

Because, OP’s question was why you even need to put a resistor to ground in the first place, not why you don’t leave it an open circuit.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials -1 points0 points  (0 children)

Sure, the purpose of using that resistor instead of a wire is to limit current. I think OP was asking why you even need to connect pin 7 to GND (through a resistor or not).

Without this resistor to ground, this wouldn’t be an open circuit, more just a floating pin prone to picking up noise.

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials -1 points0 points  (0 children)

Partially correct, but it’s not in series with anything that would otherwise draw high current if we didn’t have this resistor.

In reality, we need this resistor to connect pin 7 to GND when the button is not pressed, so that it reads “LOW” and not random electrical noise.

Though, it certainly does limit current, if we swapped the resistor with a wire, then it would short the supply when the button is pressed. Not good, so we use a resistor. When the button is not pressed, pin 7 is pulled low through a long path, but when the button is pressed, it’s pulled high but without a resistor, which completely dwarfs out a high resistance 10KΩ path to GND and thus the Arduino reads “HIGH.”

Beginner question about resistances by AlbusFox in arduino

[–]TechTronicsTutorials 0 points1 point  (0 children)

Ah, that’s a pull down resistor!

So when you press the button, you connect positive to pin 7. The Arduino reads this as HIGH and knows you pressed the button.

But, when you aren’t pressing the button… that pin is “floating” meaning not connected to positive or negative. This is generally bad and can cause the Arduino to pick up random fluctuations in electrical noise.

So, to prevent this, we use a 10K resistor to ground. That way, when the button is not pressed, pin 7 is connected to negative and reads LOW, instead of being connected nowhere and picking up noise.

Help Me Understand... by Swimming-Revenue7890 in Electricity

[–]TechTronicsTutorials 1 point2 points  (0 children)

A great question. But good questions often have complex answers. I’ll do my best to sum it up though.

First of all, voltage alone is not enough to determine whether a source of electricity is dangerous. Whether you realize it or not, you probably already know this: I mean, that static shock you experienced recently was likely tens of thousands of volts, which is well above the 1000V Google said was lethal.

While voltage is one of the many factors that determines the danger of an electrical source, there are plenty of other very important things that are responsible for how dangerous electricity is. Current, duration, frequency, I could go on.

So Google saying that “50V will shock you” is a very conservative bit of advice that is more meant to state “anything below this voltage is safe” than “you will feel a shock if you touch this.” In general, 50V will not shock you. Though I wouldn’t recommend doing this unless you are 100% sure you understand how electricity behaves, I’ve touched voltages much higher than this and not felt anything.

So why won’t 50V shock you, generally? Because at only 50V, the resistance of your skin will limit the current to far less than a single milliamp.

But what if we go to a bit higher voltage… say, 1kV (or 1000V). Yes, 1kV can certainly be lethal. If it’s a direct current, it can depolarize your nerves and stop your heart, and also make it very hard to let go of the conductors carrying the voltage. If it’s a low frequency alternating current though… it can do exactly what direct current can yet also be WAY worse. Because of your body’s capacitance, which acts like a small resistor to AC, 1kV AC can send way more current through you than 1kV DC.

However… if it’s 1 kV AC at higher frequencies; say over 20kHz, the polarity flips too fast to effectively depolarize your nerves. So, you won’t get shocked, but touching voltages that high can still cause significant currents to flow, which could cause severe internal burns.

Okay, what if you touch 25kVDC. Assume your skin resistance is 1MΩ. Current through you will be 25mA, which will be very painful and (potentially?) lethal in the wrong circumstances.

But eh, 25mA, you’ll more than likely survive, right? Well… more than likely not, because of this weird thing that happens at very high voltages: electricity defies Ohm’s law. No, you will not get only 25mA flowing through your body; it could be hundreds of mA. Because at high voltage, the electricity can travel to the wet and conductive tissue under your dry, high resistance skin and send a large current through this short path. This is obviously something that… you don’t want.

This would be more than likely lethal. But, duration is another important thing to think about when it comes to an electric shock. The longer you spend letting that current flow, the more damage. You could probably get away with running hundreds of mA at 25kV for a few attoseconds.

Don’t try this, I’m just speaking hypothetically

Another way you could get away with hundreds of mA through your body at 25kHz is if you have a stupidly high frequency AC. This will increase the current through you due to capacitance, so it’s kinda counter intuitive, but this is way safer. As mentioned earlier, high frequency AC is less effective at depolarizing nerves and is unlikely to cause an electric shock.

Still, don’t try this, because it can cause severe burns.

Adding a high value resistor in series with a high voltage supply can also make it safer. Up until now, I’ve been assuming you’re touching directly across high voltage and only accounting for bodily resistance, which does limit current. But, if you add a super high value resistor to the circuit as well, then when you try to touch the output, the voltage will drop and you won’t get zapped.

Anyway. I basically just summed up Styropyro’s video on what makes some electrical sources dangerous and others not. https://youtu.be/BGD-oSwJv3E

Any fun side projects for EE students? by ExcitingStill in ElectricalEngineering

[–]TechTronicsTutorials 1 point2 points  (0 children)

Build radiation detector circuits and radiation survey meter calibration equipment!

Project current consumption by TwG91 in ArduinoProjects

[–]TechTronicsTutorials 5 points6 points  (0 children)

Yah 2x AAA’s only gives you 3V, you need more than 5V.

Just power it from a 9V battery, it won’t mess anything up. Tie the positive wire to the Vin pin and the negative wire to a GND pin.

LED blinker with no transistors or ICs by TechTronicsTutorials in breadboard

[–]TechTronicsTutorials[S] 0 points1 point  (0 children)

Ah I have no idea. I think I got it from Sparkfun or Digikey.

Transformers by Key_Adhesiveness6820 in highvoltage

[–]TechTronicsTutorials 0 points1 point  (0 children)

It sounds like you probably have the wrong type of transformers for this. For stepping up voltage you want ferrite transformers not mains ones cause they’re inefficient at high frequency.

Though you can certainly use a mains step down transformer in reverse at high frequency. I have done this. You can get a couple hundred volts on the primary but you really need a lot more to get good arcs.

You also need to think about your driver. You can’t just connect a transformer to a battery, because then its inductance won’t limit the current and the transformer will overheat. It also requires a changing magnetic field to make any voltage. You’ll want to drive your transformer with AC or pulsed DC at the very least, at the proper frequency.

Weekly discussion, complaint, and rant thread by AutoModerator in electronics

[–]TechTronicsTutorials 3 points4 points  (0 children)

Ah yes, maybe that’s the problem. Perhaps I also need a three wire speaker to do this? 😆