15
\$\begingroup\$

I was trying to visualize a beginner circuit problem on my breadboard and I plugged in my circuit, touched a resistor and got a nasty shock. I am a cs student playing with circuits to build some logic gates so I really am a complete beginner.

The power supply is 5V 2 Amps Why did this happen? How can I prevent this from happening in the future?

enter image description here

enter image description here

\$\endgroup\$
13
  • 7
    \$\begingroup\$ Was it a single jolt, or a continued buzz -- if you turned the feeling into a sound was it a "spap!", or a "BZZZT". The former was static electricity, like you might get from a doorknob after scuffing your feet on a carpet. The latter indicates that wherever you're working, you've got grounding problems. That power supply should be isolated, so it should be about as dangerous as a rock of similar size (and for similar reasons -- don't whack yourself over the head with it). \$\endgroup\$
    – TimWescott
    Commented May 8, 2021 at 0:25
  • 1
    \$\begingroup\$ @TimWescott I would say it was more of a single jolt. I pulled my hand away immediately. \$\endgroup\$
    – random0620
    Commented May 8, 2021 at 0:28
  • 1
    \$\begingroup\$ And -- sorry for not mentioning this before -- edit your question with your elaborations. StackExchange likes nice tidy self-contained questions that don't require the reader to delve into the comments to understand. \$\endgroup\$
    – TimWescott
    Commented May 8, 2021 at 0:30
  • 2
    \$\begingroup\$ Oh, I work on live 5V circuits from time to time. In a protoboard like that it's not a big deal. \$\endgroup\$
    – TimWescott
    Commented May 8, 2021 at 0:33
  • 6
    \$\begingroup\$ @s_kirkiles It's the required "pri-to-sec" bridging capacitor, most likely. Class II product, I'll bet. You can easily test this. Put an analog (needle-like meter) voltmeter into AC mode and measure between your body and that shocking point. You'll probably read a substantial AC voltage and it will be fairly stable. Depending on the details of the supply, you may be able to reverse the plug and it will be lots better. \$\endgroup\$
    – jonk
    Commented May 8, 2021 at 0:33

4 Answers 4

52
\$\begingroup\$

OK. You say that it was a single jolt, and you pulled your hand away immediately.

It was one of two things -- either it was static discharge and a true shock, but exactly what you would have gotten from a doorknob, you burnt yourself, or it was an actual shock and I can't count.

You're running 5V through a \$10\Omega\$ resistor, which means that it's dissipating 2.5 Watts. That means it'll get hot in the thermal sense. That is, in fact, why it's a bit browned compared to the two 100 ohm resistors (which will dissipate 0.25 Watts at 5V). If you're expecting a shock, and you get burnt, you'll think you got a shock (trust me on this -- even if you've been doing it for 40 years, you'll still do it).

I'm pretty sure that's what you felt. It's hard to describe how to safely test a part that's sizzling hot for temperature -- it involves holding up the back of your finger to the part without touching it and feeling for heat, or briefly touching it and seeing if you feel heat afterwards. In extremis (I'm really bad about thermal safety) you lick your finger, touch briefly, and listen for a sizzle.

Had you hung onto the thing a bit longer, the "tss" sound, the bad-smelling smoke, and the shiny, resistor-sized spots on your thumb and forefinger would have let you know that it was thermal, not electrical.

\$\endgroup\$
11
  • 7
    \$\begingroup\$ Aha that makes so much sense! Looking at the resistor, and looking at the effect it had on my finger it really seems like this could have been the issue! Is there a certain wattage range I should make sure I stay in? \$\endgroup\$
    – random0620
    Commented May 8, 2021 at 0:40
  • 6
    \$\begingroup\$ No -- the power dissipated by a resistor depends on the circuit. That 10 ohm resistor with one volt on it would dissipate 1/10 of a watt; those 100 ohm resistors with 20 volts on them would dissipate 4 watts each. Basically, if you're designing a circuit part of your job is to calculate the dissipation in each resistor, and select one with an appropriate power rating. \$\endgroup\$
    – TimWescott
    Commented May 8, 2021 at 0:43
  • 8
    \$\begingroup\$ Sometimes you calculate the power dissipated by the resistor and realize you have to completely redesign the circuit because the dissipation will create too much heat for you to get rid of. It is not just a matter of saying "Oh, OK, I need to use a 100 watt resistor in my battery powered gizmo." If you find you are dissipating 100 W, you need to rethink everything. \$\endgroup\$
    – user57037
    Commented May 8, 2021 at 0:46
  • 6
    \$\begingroup\$ @TimWescott totally. I tried to head off that comment by saying "battery powered gizmo" but I 100% agree with what you are saying. I just wanted to emphasize to the newbies out there that when you calculate the dissipation, you don't just automatically say "OK, now I need a 100 W resistor." Sometimes you have to say "Oh, I can't afford to heatsink for 100 W" or "Oh, my battery won't last long if I dump 100 W into a resistor." Maybe I am just over-complicating the issue for the OP. If so sorry. ;-) \$\endgroup\$
    – user57037
    Commented May 8, 2021 at 1:10
  • 3
    \$\begingroup\$ Straying from the original topic a little, but it should be noted that resistors have a power rating, and the pictured resistor is definitely not rated for 2.5 watts (probably it's 1/2 a watt or less). Using a sufficiently-rated resistor isn't going to guarantee it won't get hot, but it should guarantee that it won't get damaged. \$\endgroup\$
    – IceGlasses
    Commented May 10, 2021 at 6:02
2
\$\begingroup\$

It was either just a static discharge, or it can't just shock you, you must have also been in contact with some other metallic structure, such as a radiator.

If it was a short sharp pain, then it was just static discharge. You get charged up moving in your chair wearing plastic clothing. Then you discharge when you touch something, like another person or this circuit in this case.

If it was more of a tingling feeling that lasted longer, aka as long as you were in contact then it really was your classic electric shock caused by touching a somewhat constant high voltage source.

It could be that there is a short between the primary and secondary circuit of your power supply causing the high voltage from your wall outlet to be present on the outputs. Since the power supply is doubly isolated (as indicated by the symbol: square in a square), it is very unlikely that there could be a short between the primary and secondary windings, without the whole primary circuit/winding being shorted as well, causing your circuit breakers to go off when you plug the thing in.

If it wasn't just a static discharge, than the most likely culprit are your switched mode power supplies in your PC, that can generate a voltage (compared to earth ground) on the metallic parts of the PC and all other things connected to these metallic parts. This occurs, if the PC is plugged into a wall outlet, that is not grounded. In this case, if you touch something in contact with the metallic parts of your PC AND also something metallic in the building structure (pipes, radiator, aluminum window frame), then the current will flow through you down to earth ground, as these things are grounded.

The first certainly, but I think the second as well should be caught by your RCCB, if you have one installed. So in conclusion, probably it was just a static discharge. If you have a multimeter, you can just measure the AC voltage between the power supply outputs and whatever metallic structure you were touching at the time.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ I found with some cheap USB power supplies they had some leakage which is enough to feel without tripping anything, which is why I stopped buying them from ebay and switched to farnell. Also the symbol means 'doubly insulated' not isolated, though I'm not sure how you'd meet the requirement to not expose dangerous voltages without some isolation (the AC on the cheap ones was around 40V with no load so not 'dangerous', just tingly, seemed to be capacitive). \$\endgroup\$ Commented May 9, 2021 at 9:40
  • \$\begingroup\$ @PeteKirkham One other way to make an know charger dangerous is using an USB ionizer product. these devices work by generating an high negative voltage, and then using carbon brushes to leak electrons into the air. These then find their way back to ground. The problem then is that there is no way back to the device, so the capacitor inside those chargers charges up beyond its safe levels and fails open, and which the transformer is the most likely to go, and develops a short between the primary and secondary \$\endgroup\$
    – Ferrybig
    Commented May 10, 2021 at 11:10
2
\$\begingroup\$

You are using a switching power supply with a two prong mains connector. These often include a pair of (hopefully!!) Y1 rated capacitors bridging both poles of the mains connector to the output ground, for EMI suppression purposes. This lifts the output to half the mains voltage, if there are no further grounding provisions on the secondary (output) side. While the current should be limited enough to prevent any injury, especially with a 240V mains it can still sometimes be clearly felt when touching the output of such a power supply. And in some cases, it can damage circuitry that is connected to earth ground in some other place than circuit ground.

Connecting the ground (usually minus) pin of the output to actual earth/protective ground should eliminate this problem.

Consider getting a real lab power supply sometime - chargers, laptop power supplies, computer power supplies .... tend to make a bad substitute for them due to a) issues like this, b) usually non existent adjustable output current limiting (bad with AT/ATX computer power supplies, these can deliver car battery grade currents with very destructive results), c) dubious/not well defined short circuit handling (2.0A might NOT mean the current is limited to 2.0A, and short circuit proof might NOT mean overload proof!), d) sometimes actual safety problems with the cheapest models (eg internal insulation not up to code, or ordinary capacitors used where class Y1 would be required....) - such problems can be very bad if you use them for breadboarding where you expect to routinely touch bare, powered wiring).

\$\endgroup\$
3
  • \$\begingroup\$ You can't have a capacitor between the primary and the secondary in doubly insulated supplies and Y1 wouldn't be put in domestic appliances anyhow (X2 and Y2 are the domestic grades). I also don't see how connecting one of the output poles to the mains via capacitors would help with EMI... The filter caps go from the mains to earth ground and the metallic chassis to decrease common mode noise and radiation. \$\endgroup\$
    – Cerike
    Commented May 10, 2021 at 14:34
  • 1
    \$\begingroup\$ electronics.stackexchange.com/questions/216959/… explains well that a) yes, you can and it is not uncommon, b) for doubly insulated (aka class 2), Y1 is good practice. \$\endgroup\$ Commented May 10, 2021 at 17:32
  • 1
    \$\begingroup\$ @Cerike Yes you absolutely can and this is most probably the culprit in this situation. \$\endgroup\$
    – winny
    Commented May 13, 2021 at 20:33
0
\$\begingroup\$

In 1953 I was in grade 8 taking a class, "Radio and Electricity". Lesson 1 was how to safely disconnect a shock victim from high voltage and how to apply artificial respiration. (They did not have heart revival in those times.) We were also not taught these rules for working with electricity:

  • always work alone (a pretty girl trained in electrical rescue may be present)
  • always work barefoot, with both feet immersed in a grounded metal tub of salt water.
  • lick your fingers before using them to test for high voltage. That will minimize the burn if it is 900 volts instead of 9 volts.
  • make sure the capacitor is charged to 300 volts before you toss it to your buddy
  • do not be repelled by the intoxicating smoke of burning rosin flux or failing resistors.

And then there was the time when I got my hands on 100 9 volt batteries. It seemed unbelievable that I could just clip them together and get 900 volts. I tried it, and almost died! But I came away a true believer in the theory of hooking voltage sources in series. I quietly disassembled the stack and never told my folks about that accident. It was bad enough getting scolded for doing CW at 3 AM.

. . . k6yvl

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.