r/AskComputerScience • u/Dakramar • Apr 18 '21
Why does statically shocking my electrical outlet ground pin cause PC to boot?
12
u/Poddster Apr 18 '21 edited Apr 18 '21
If you're injecting energy onto that ground line then there will be transient voltage spike on it. That means anything expecting GND to be 0V and VCC to be 5V will now find that GND is 10V and VCC is 5V. (or 0 and -5, respectivley).
This will cause lots of things to trigger when they shouldn't, including the reset pins.
The question is exactly what kind of effect you have on the gnd pin. Attach a multimeter/osilloscope across gnd and 5v and see?
edit: Also, that's a very meaty spark. How are you charging your self up so much, and doesn't it hurt to touch? Or is that not your finger, but the end of a firelighter or something? if it is one of those fire lighters then note they can drop some serious voltage! Like 100s of Volts. Obviously no/low current, but it's a good zap.
5
u/Dakramar Apr 18 '21
Sounds reasonable, and good suggestion! I think we have an oscilloscope in the lab, I can try hooking up and having a look!
Also nope, that’s just my finger. I get crazy charged whenever the air is dry, especially in my office where this is filmed! It can hurt quite a lot, but I think the worst part is I’ve started flinching before touching things like door knobs and centrifuges xD
2
u/kptkrunch Apr 29 '21
This last winter I noticed I started unconsciously knowing when I was charged. I would use my fist to ground myself on the doorknob before grabbing it. I didn't notice this for a while but eventually I realized I would only do it when I actually was statically charged. Makes sense, electric shock is like the classic negative feedback conditioning methodology. I think I must have learned to associate sitting on the couch for an extended perioid, for instance, with building a charge.
4
u/SploogeLoogie Apr 18 '21
lots of good answers here, but let me try another one by analogy:
My cup of water is on flat solid ground. Why does the water splash out when I drop a 6-ton boulder right next to it?
2
7
u/Gavekort Apr 18 '21
It induces noise on the electronics, which may be interpreted as a button being pressed.
More elaborate: You are shifting the ground level or raising the voltage on the input of a transistor, making it trigger and waking up the PC
0
u/westom Apr 18 '21
First learn what static electricity is. Charges in a body suddenly connect to charges in the floor. What is that electrical path?
Well it does not go through a power supply into the 5 volts. That is ignorance even of what a power supply does.
So many paths can exist. So a motherboard ground and chassis ground are separated; when a computer is properly assembled.
So many electrical concepts apply. For example impedance. That motherboard has a large copper plane, end to end, across the entire motherboard. A static electric discharge to that copper sheet at one end, current flowing across that board, means a large voltage exists end to end. Yes, a large voltage would exist across that copper sheet. Learn about impedance.
That voltage means a ground pin on various semiconductors it at a different voltages. Now voltages on same signal wires are at different voltages at different parts of the board. Some digital electronics do not get (see) that signal - computer crash.
A static electric discharge must be on a path that remains outside the motherboard. Again, that is why chassis ground and digital (motherboard) ground are separated. And also by USB cables have two separate grounds. And why switches connect to and isolate two different grounds.
Again, what is the electrical path of a discharge from finger to floor? Ignore anyone who thinks a receptacle safety ground, earth ground, etc have relevance. Electricity knows nothing about grounds. Grounds are invented so that humans can better understand electricity. Electricity only cares about the two separated charges. And a best path to make that connection.
Anyone who thinks wall receptacle safety ground will avert that static electric current flow is somehow enticed by ground myths. Invented by hearsay and speculation. And not by learning, first, what static electricity really is, how it flows, and why it can even create a high voltage difference across a motherboard ground plane.
BTW, that is a still a new machine. Old and cheap means it should be static electric resistant - even 40 years ago when computers solved this problem. A problem that nobody can answer honestly until a path of that discharge (from finger to charges underneath shoes) is defined.
6
u/SploogeLoogie Apr 18 '21
So a motherboard ground and chassis ground are separated;
this is false. the mobo has GND contacts on the PCB that touch the chassis when it's screwed in. Unless by "separated" you mean mechanically contacted via brass standoffs :P
1
u/Dakramar Apr 18 '21
I’m fairly certain the path is from me to the house main ground, but people above have suggested the temporary spike in the ground may simulate a start-button click.
1
u/westom Apr 19 '21
A house main earth ground is not even in that circuit.
First learn what static electricity is. Charges in a body suddenly connect to charges in the floor.
Electricity knows nothing about ground. Ground is a concept, invented by humans, to make electricity easier to understand. In this case, chassis ground, receptacle safety ground, earth ground, and digital ground are all electrically different. Each is defined for different electric currents.
Path is from charges in your body to charges underneath shoes. Earth ground is nowhere in that path.
Mother board ground and chassis ground, not separated, makes software crashes easier. Electrical concept is called single point ground. Both grounds must remain electrically separate; only connect only at one point. Otherwise noise makes crashes easier. As explained previously.
When trying to make a computer less robust, then connect that motherboard in many spots to a chassis using many metal standoffs. One metal standoff means grounds are separated. Best done where DC voltages and IO cards are located.
We would routinely test computers. For a test to be effective, that computer must be on a glass tabletop or something electrically equivalent. Because most table tops are too electrically conductive.
Then static discharge one corner. Outgoing path at some other corner. Defectively assembled computers would suffer software crashes. Static electric current path was from one chassis corner, into motherboard on one metal standoff, causing massive voltage difference across that motherboard, and then back into the chassis via another standoff. As defined in that previous post.
Apple learned these concepts in early Apples. (Forgot if it was I or II). They failed to separate a chassis ground in keyboards from logic ground. Then a static electric discharge to keyboard keys would crash a computer.
USB cables intentionally have separate grounds. Also explained previously. He apparently ignored it.
False are denials, based only in hearsay, from another. His post is too short. Does not say why. Gives not one reason to be believed. Multiple reasons say denials are only subjective, vague accusation. Facts exist when many reasons why are also provided.
Earth ground is irrelevant. What is that path from charges in a finger to charges beneath shoes? Earth ground is nowhere in that electric current path.
1
u/Dakramar Apr 19 '21
I'm genuinely confused, what do you mean with USB having two grounds? I thought the four cables were one 5V, one ground, and 2 data cables?
And how is the main house ground not involved in the path of the static charge? The charge that builds up by my shoes and in turn is led through my finger has to go somewhere? Where does it go if not the earth ground in the house?
1
u/westom Apr 20 '21
There are five conductors in that cable. Is your knowledge only from hearsay or partial information sources? Or did you then confirm things by necessary experimentation or autopsy?
Why let myths and lies, that assume all grounds are same, to taint your reasoning. Electricity knows nothing about grounds. Again, ground is only a concept found in human brains, to make electrical comprehension easier. How does electricity in an automobile get to earth ground. It doesn't. Because earth ground has no relevance for that and so many other electrical currents.
Again, why is this so complicated? Electricity only goes from one charge to another. One charge is in you finger. Other charge is in floor beneath shoes. Earth ground has no relevance. Electricity is only a connection between those two charges. Why speculate those charges are same polarity?
Touch a metal door frame. Then electricity flow from finger, through door, to floor. Earth ground is nowhere in that path. Electricity only flows between charges of opposite polarity.
How does electricity go from one terminal of a battery, through a flashlight bulb, to another battery terminal? According to your reasoning, that electricity must go to earth ground. Again, electricity does not know what grounds are. If only flows between two charges.
We could call that first battery terminal a ground. A battery ground. Or could call that other battery terminal a ground. Neither is earth ground. We only do that to make discussion easier.
To make it simpler, we might call charges beneath shoes the + charges. And charges in a finger the - charge. Earth has no charges.
So electricity flows from a - charge to a + charge. Or from a + charge to a - charge. Electricity only flows between two charges of different polarity.
1
u/Dakramar Apr 20 '21
With this reasoning, I should get shocked if I touch the floor as well but I don't. Its only from metal objects that are connected to the yellow/green grounding wire in the electrical wire that cause shocks for me
1
u/westom Apr 21 '21
But if that floor had a large conductive plate, then you would. You are discharging electricity when touching the floor. But just so slowly that you don't notice it.
An anti-static wrist strap also does that. Connect charges from your wrist to charge in the floor so slowly that nobody notices a discharge. Only notice that sharp static electric discharges no longer occur.
Other electrical concepts, at play, are not discussed. Since the basic concept called electricity and what ground really is have not yet been grasped.
Why does a PC reboot? A slowly discharging current would not cause a reboot due to fundamental concepts such as impedance or by learning another concept from math called Fourier Series.
A PC reboots because a current has passed from finger to floor on a path that went through the motherboard. A problem routinely averted when chassis ground and logic ground are separated. Then that current need not pass through that motherboard.
A fundamental computer concept that so many IT people have never even heard. And yet it is standard in designs by engineers. Static electric discharges being one diagnostic tool to test or locate a defective design.
-1
0
35
u/-Aras Apr 18 '21
Not %100 sure but the power button on your case is connected to a pair of pins on your motherboard. Whenever you press the power button those pins are shorted. When you're shocking your outlet, you're probably raising the voltage of that input pin, so the motherboard thinks that it is shorted. This is probably because of bad grounding, cheap motherboard or both.