Electronics notes/Electricity and humans: Difference between revisions

From Helpful
Jump to navigation Jump to search
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#addbodyclass:tag_tech}}
{{electronics notes}}
{{electronics notes}}


Line 5: Line 6:
==Sensing==
==Sensing==
<!--
<!--
These are high-impedance low-current/low-voltage sources,
 
Most are high-impedance low-current/low-voltage sources,
you'll probably get better results if you care about one or more of  
you'll probably get better results if you care about one or more of  
clean amplification, and higher-resolution DAC, leakage/guarding, shielding against coupling of other signals  
clean amplification, and higher-resolution DAC, leakage/guarding, shielding against coupling of other signals  
Line 38: Line 40:
sympathetic skin response (SSR), and skin conductance level (SCL).
sympathetic skin response (SSR), and skin conductance level (SCL).


All are fancy names for 'how much electricity do your skin conduct'.
{{comment|(Because of the varied names accumulated over time, EDA is intended as a new standard name, but some fields haven't moved yet, so many existing documents will use old terms.)}}
 
 
 
All are fancy names for 'how much electricity does your skin conduct'.


Some just that. Some with the implied measurement of mental state.
Some check just that.  


{{comment|(Because of the varied names accumulated over time, EDA is intended as a new standard name, but some fields haven't moved yet, and existing documents use old terms.)}}
Some suggest indirect measurement of mental state.




Line 53: Line 59:
'''Mental state?'''
'''Mental state?'''


The idea is that ''if'' you can control for physics and health with some calibration,
The idea is that  
you can measure the last few, making skin conductance one measure of emotional and sympathetic responses.
: ''if'' you can control for most of that last list - physics of the moment, and health, and further calibration,
: then sweating could indicate the last few on that list, making skin conductance one measure of emotional and sympathetic responses.


Criticism includes:  
Criticism includes:  
* that's a fairly large 'if'
* that's a lot of ifs
* hydration level affects the response regardless
* hydration level affects the response regardless
* response varies by location, being driven by somewhat different responses
* response varies by location, being driven by somewhat different responses
Line 63: Line 70:




It's impossible to avoid mentioning the polygraph-style lie detector,
 
which measures not only GSR, but also heart rate, breating rate, and blood pressure.
 
It's impossible to avoid mentioning the [[polygraph]]-style lie detector,
which measures not only GSR,  
but also heart rate,  
breathing rate,  
and blood pressure.


The idea idea is that these are all controlled by the [[sympathetic nervous system]] rather than consciously,
The idea idea is that these are all controlled by the [[sympathetic nervous system]] rather than consciously,
so you can't voluntarily change them, which is the entire reason they're sold as lie detectors.  
so you can't voluntarily change them, which is the entire reason they're sold as lie detectors.


But there are reasons that they are no longer admissible in most courts,
But there are reasons that they are no longer admissible in most courts,
for many detailed reasons - that all amount to that they are unreliable at best.
for many detailed reasons - that all amount to that they are unreliable at best.
Even its inventor has spoken out their frustration by the the ways is misused.
 
Even its ''inventor'' has spoken out their frustration by the the ways is regularly misused.




Line 81: Line 94:
** startle response -  
** startle response -  
** sexual arousal - maybe you just have a thing for authority figures
** sexual arousal - maybe you just have a thing for authority figures
: none of which have ''anything'' to do with lies, ''much less'' guilt
:: none of which have ''anything'' to do with lies, let alone guilt


* it cannot distinguish between such responses being involuntary, and such responses being triggered intentionally
* it cannot distinguish between such responses being involuntary, and such responses being triggered intentionally
Line 127: Line 140:
{{stub}}
{{stub}}


Measuring activity in the '''brain''' ([https://en.wiktionary.org/wiki/encephalo- -encephalo-]) - which (outside) is on the scale of microvolts to at most millivolts {{verify}}
Measuring activity in the '''brain''' ([https://en.wiktionary.org/wiki/encephalo- -encephalo-]) - which (outside) is on the scale of dozen microvolts (to at most millivolts {{verify}})


See http://en.wikipedia.org/wiki/EEG
At a low level, you measure a tiny fluctuating voltage change at a spot on the ''surface'' of the scalp,
comparing that voltage to other such spots for reference, using metal electrodes and conductive paste for better contact.
 
Muscles nearer the surface are much stronger signal - a clenched jaw or blinking your eye is ''very'' visible in data (in very different ways - jaw is high frequency, blink low).
In fact some of the electrodes are only there to measure those in isolation, so that we have a chance to remove them later
 
 
Comparing the voltage to other such voltages can (only) tell you things like
* that an area broadly became more or less active
* ''when'' you started reacting
* differences between things like "makes sense" and "that's weird and I'm processing why".
* broadly, which areas of the brain engaged more than others




<!--
<!--
Common (but approximate) EEG wave categorization
Any signal has to go through the layers of the meninges, the skull, and the scalp.
 
The random alignment of most neurons would cancel each other out,
The only reason we can read out things electrodes at a much larger scale than neurons is that some areas have [pyramidal neurons],
which happen to align well, so if there are tens of thousands of those near and aligned towards the surface,
and a lot of them were working at the same time.


'''delta''', &delta;
{{comment|(...so no, EEG will not read minds. It is fundamentally ''way'' too clunky.)}}
* 0.1–4 Hz
* associations: deep sleep (3 and 4 NREM), unconscious
* http://en.wikipedia.org/wiki/Delta_wave


'''theta''', &theta;
Even if we ''could'' localize to neurons better (say, if the brain were not protected),
* 4–7 Hz
this would still make it challenging to measure more than "area was active".
* associations: (drowsiness, deep relaxation) / (motor behaviour? learning, memory?)
* http://en.wikipedia.org/wiki/Theta_wave


'''alpha''' &alpha;
Merely doing that at the surface does not give up all that much,
* 8–12 Hz at the visual cortex
and being able to do so non-invasively happens to be something people under study, uh, like.
* associations: (wakeful) relaxation, meditation
Through those layers, what is left is microvolts, but that is still manageable - with some moderately fine hardware engineering.
* http://en.wikipedia.org/wiki/Alpha_wave


'''mu''' &mu;
* 8–13 Hz at the motor cortex
* associations: voluntary movement
* http://en.wikipedia.org/wiki/Mu_wave


'''beta''', &beta;
* 12–30 Hz
* associations: general waking consciousness - focus and attention, being busy or anxious
* http://en.wikipedia.org/wiki/Beta_wave


'''gamma''', &gamma;
When you use EEG as a measurement tool, you probably design your experiment to have
* 25–100 Hz
[[Event-Related Potentials]] i.e. "aligned to something you reacted to", so you can treat them as timing relative to a specific event.
* associations: some relation to senses, memory?
Probably each is a second or so worth of data, starting precisely after an event.
* http://en.wikipedia.org/wiki/Gamma_wave
 
-->


Even then, EEG data records a mess of things happening at once, most of which are probably not even interesting to you.
The delta/theta/alpha waves are pretty broad, and not strong indicators of anything much.


<!--
EEG sample rate
1000 or 200Hz


is generally taken to be
When you do studies with EEG to support a hypothesis, you often count on the fact that noise is random,
but
which (skipping a bunch of steps that are important to the math and statistics) means that if you have consistent evidence,
you can sum them up (in ERP form), strengthening any pattern and weakening random noise.


-->


=====Electrocorticography (ECoG)=====
People theorize e.g. about specific types of language parsing showing as different reactions at different times,
which you can isolate somewhat e.g. by making sentences that are wrong in specific ways.
Say,
: a trace for a correct sentence will on average look different than one for an incorrect sentence
: a wrongly inflected word (syntax) shows up at a different delay than a sentence that is correct but makes no semantic/pragmatic senses.


Electrocorticography (ECoG), or intracranial electroencephalography (iEEG),
is like EEG but sensing directly on the brain itself, rather than from outside the skull and skin.


Is surgically invasive, so generally only seen around things like epilepsy treatment.
Specific literature names specific types of responses (see things like P600, N400)
''but'' these can be overstated.




https://en.wikipedia.org/wiki/Electrocorticography


=====Magnetic resonance imaging (MRI)=====
See http://en.wikipedia.org/wiki/EEG
-->


<!--
<!--
Fancier EEG tends to sample 2000 times or so per second,
though moer than 500 isn't necessary for almost anything people measure.


Most fMRI research uses Blood-oxygen-level-dependent (BOLD) contrast


Common (but approximate) EEG wave categorization


'''delta''', &delta;
* 0.1–4 Hz
* associations: deep sleep (3 and 4 NREM), unconscious
* http://en.wikipedia.org/wiki/Delta_wave


'''theta''', &theta;
* 4–7 Hz
* associations: (drowsiness, deep relaxation) / (motor behaviour? learning, memory?)
* http://en.wikipedia.org/wiki/Theta_wave


'''alpha''' &alpha;
* 8–12 Hz at the visual cortex
* associations: (wakeful) relaxation, meditation
* http://en.wikipedia.org/wiki/Alpha_wave
'''mu''' &mu;
* 8–13 Hz at the motor cortex
* associations: voluntary movement
* http://en.wikipedia.org/wiki/Mu_wave


'''beta''', &beta;
* 12–30 Hz
* associations: general waking consciousness - focus and attention, being busy or anxious
* http://en.wikipedia.org/wiki/Beta_wave
'''gamma''', &gamma;
* 25–100 Hz
* associations: some relation to senses, memory?
* http://en.wikipedia.org/wiki/Gamma_wave
-->
-->


=====Electrocorticography (ECoG)=====
Electrocorticography (ECoG), or intracranial electroencephalography (iEEG),
is like EEG but sensing directly on the brain itself, rather than from outside the skull and skin.


=====Magnetoencephalography (MEG)=====
Is surgically invasive, so generally only seen around things like epilepsy treatment.
<!--


Both an 'of what' and 'how': sensing the brain's magnetic fields, non-invasively (it's like a helmet, classicaly a huge device held above you), and silently.


Difference from EEG
https://en.wikipedia.org/wiki/Electrocorticography
* MEG senses neuron's electric fields, EEG senses electrical potentials still present at the skin


Difference to MRI
=====Magnetic resonance imaging (MRI)=====
* MEG is passive, MRI is active (adds a magnet){{verify}}
 
<!--
 
Most fMRI research uses Blood-oxygen-level-dependent (BOLD) contrast
 
 
 
 
 
-->
 
 
=====Magnetoencephalography (MEG)=====
<!--
 
Both an 'of what' and 'how': sensing the brain's magnetic fields, non-invasively (it's like a helmet, classicaly a huge device held above you), and silently.
 
Difference from EEG
* MEG senses neuron's electric fields, EEG senses electrical potentials still present at the skin
 
Difference to MRI
* MEG is passive, MRI is active (adds a magnet){{verify}}
* MEG tends to do more general images the brain itself, MRI images activity in it.
* MEG tends to do more general images the brain itself, MRI images activity in it.
* MEG has a higher temporal resolution than (f)MRI, but poorer detail{{verify}}
* MEG has a higher temporal resolution than (f)MRI, but poorer detail{{verify}}
Line 295: Line 361:
-->
-->


==Stimulating==
====Events====
{{stub}}


====Conductive====
<!--
Terms like '''evoked potentials''' or '''Event Related Potentials''' suggest people are doing scientific experiments.


=====TENS, Transcutaneous Electrical Nerve Stimulation=====


Aims to desensitive nerves, so is used for short-term pain relief.
'''Event Related Potentials'''
: often means "aligned to a point in time, e.g. the time a stimulus was presented, so you can treat them as timing relative to a specific event".
: this is not about the frequencies, and ''ideally'' about identical timing between many independent such signals


Higher frequency (and less strength?) than EMS, only enough to feel.  
 
 
'''Evoked Potentials''' are electrical responses that follow stimulation, from sources like auditory, somatosensory, visual, motor/muscle, or other nerves, or other modalities.
Most experiments will record exactly when those stimuli happened.
 
 
We usually use a more specific term describing what we are doing, and then often a specific way of measuring them as well.
...except when generalizing over them.
 
 
Unsorted:
Visual evoked response (VER) test.
Brainstem auditory evoked response (BAER) test.
Somatosensory evoked response (SSER) test.
 
 
 
-->
 
==Stimulating==
 
====Conductive====
 
=====TENS, Transcutaneous Electrical Nerve Stimulation=====
 
Aims to desensitive nerves, so is used for short-term pain relief.
 
Higher frequency (and less strength?) than EMS, only enough to feel.  


Electric massage is closer to TENS than EMS{{verify}}
Electric massage is closer to TENS than EMS{{verify}}
Line 459: Line 555:


-->
-->
===Avoiding ESD===
===Avoiding ESD===
{{stub}}
<!--
<!--
Around electronics you can think about  
Around electronics you can think about  
* not allowing ESD buildup to go very high
* not allowing ESD buildup to go very high voltage
: by ensuring it's discharged
: by ensuring it's discharged


* protecting entire devices's insides
* protecting entire devices's insides from discharge that ''will'' happen
: e.g. shielding
: e.g. shielding


* specifically care to protect inputs (and outputs) that will have to be exposed - see also [[Electronics_notes_/_Inputs_and_outputs#Transient_voltage_and_ESD_protection.2C_snubbers]]
* specifically care to protect inputs (and outputs) because by their nature they ''have'' to be exposed - see also [[Electronics_notes_/_Inputs_and_outputs#Transient_voltage_and_ESD_protection.2C_snubbers]]




Line 475: Line 573:
Say, foams and bags can be:
Say, foams and bags can be:
* '''Anti-static''' - will not cause electrostatic buildup itself
* '''Anti-static''' - will not cause electrostatic buildup itself
:: which doesn't necessarily say nothing about whether it will block or dissipate charge  
:: which does '''not''' necessarily say nothing about whether it will dissipate charge from other things, or whether it will block discharge


* '''static dissipative''' - will try to lose electrostatic charge to its environment (air or ground)
* '''static dissipative''' - will try to lose electrostatic charge to its environment (air or ground)
Line 481: Line 579:
:: dissipative to device, or to ground, can be done just by being conductive  
:: dissipative to device, or to ground, can be done just by being conductive  
::: sometimes specifically with moderate resistance, to limit discharge current
::: sometimes specifically with moderate resistance, to limit discharge current
: "esd wrist straps" are just one big resistor to the device you're working on (or to ground)
:::: "esd wrist straps" that should ensure ''you'' are not charged are just one big resistor to the device you're working on (or to ground - the difference matters!)
:: ...generally around 1MOhm, so that even if you touch 240V AC this path would be less than 0.5mA.
:::: ...generally around 1MOhm, so that even if you touch 240V AC this path would be less than 0.5mA.




Line 497: Line 595:




[[ESD foam]] usually refers to foam that is  
'''[[ESD foam]]''' usually refers to foam that is  
: antistatic, in the sense of won't ''generate'' static charges
: antistatic, in the sense of won't ''generate'' static charges
: static-disspative (conductive with moderate resistance)
: static-disspative (conductive with moderate resistance)


'''Conductive foam''' dissipates any charge ''if grounded'' (and, yes, allows static (dis)charges to pass through them


Conductive foam, which dissipates any charge if grounded (and, yes, allows static charges to pass through them
'''Static dissipative foam''' is conductive foam with a moderate resistance, meaning discharge isn't very fast or high current
 
Static dissipative foam is conductive foam with a moderate resistance, meaning discharge isn't very fast or high current




Line 513: Line 610:


Telling them apart:
Telling them apart:
* bags that do any of the above may have an ESD symbol{{verify}} - that doesn't really help
* bags that do any of the above may have an ESD symbol{{verify}}  
: but doesn't quite tell you what, so it doesn't really help


* some of these have a signature look, but it's not a 1:1 indicator
* some of these have a signature look, but it's not a 1:1 indicator
Line 1,554: Line 1,652:
* Ground fault interrupter (GFI)
* Ground fault interrupter (GFI)
* residual-current circuit breaker (RCCB)
* residual-current circuit breaker (RCCB)
: {{comment|(Note: an ''RCBO'' is a residual-current protection ''and'' an overcurrent protection in one)}}
: {{comment|(Note: an ''RCBO'' is a residual-current protection '''''and''''' an overcurrent protection in one)}}
* Earth leakage circuit breaker (ELCB)
* Earth leakage circuit breaker (ELCB)
* Appliance leakage current interrupter (ALCI)
* Appliance leakage current interrupter (ALCI)
Line 1,568: Line 1,666:




Electrical code varies when it comes to RCDs. Building styles also vary, with country and with time.
'''Electrical code''' varies when it comes to RCDs.
Sometimes you'll see a chunky RCD on each leg/phase, at the power board, only.
Building styles also vary, with country and with time.
Others add them per socket, e.g. only in the kitchen and shower.
: Sometimes you'll see a chunky RCD on each leg/phase at the power board - only.
: Others add them per socket, and then often only in the kitchen and shower.
Others protect other areas, double them up to project everything but trip smaller zones, and other variations.
Others protect other areas, double them up to project everything but trip smaller zones, and other variations.




You can also get RCD extension cords, which can e.g. make sense when you do electronics repair work, both
: because you can get one that responds faster and for lower current,
: and because it avoids annoying other people in the same house, as a faster-tripping workstation RCD one should generally avoid the house RCD from tripping.


Also, more RCDs make it a little easier to diagnose who/what tripped it.
Building sites may put a series of larger-and-smaller RCDs on different areas because it interrupts fewer people from working, and makes it easier to diagnose who's tripping it.
 


Building sites frequently put a series of larger-and-smaller RCDs on different areas because it interrupts fewer people and makes it easier to diagnose who's tripping it.
You can also get '''RCD extension cords''', which can e.g. make sense when you do electronics repair work,
possibly for rooms that are not protected (if that applies to your house).


While a lot of them are standard-valued, you can sometimes get ones that responds faster and for lower current,
which can be marginally safer, and sometimes more importantly, means the one at your desk trips,
not the house one, saving you and possible housemates a lot of annoyance and waling.


You'll probably accept just your DIY setup being overly triggery,
(and/or better isolate the causes).


<!--
RCD aim to trip at the order of 5-30mA for 20 milliseconds or so,
as a balance between 'most humans will survive that'
and making it less sensitive to stray currents, and making nuisance trips unlikely.


Certain situations (e.g. datacenters) may use higher values because false trips are much more costly (and there is some protective equipment that would trip RCDs more easily{{verify}}).
Certain situations (e.g. datacenters) may use higher values,
because false trips are much more costly,
there can be some protective equipment that would trip RCDs more easily{{verify}},
and technicians can be instructed better than random people in random houses.






The typical trip currents also vary, e.g.  
RCD aim to trip at the order of a dozen milli-amps for a dozen milliseconds or so,
For  
as a balance between 'most humans will survive that'
and making it less sensitive to stray currents, and making nuisance trips unlikely.
 
 
The typical trip currents vary, e.g.  
For  
: home installations in 230V countries, typically ~30mA for ~20 milliseconds  
: home installations in 230V countries, typically ~30mA for ~20 milliseconds  
: home installations in 120V countries, often quoted as just "5mA".  
: home installations in 120V countries, often quoted as just "5mA".  
:: I've not been able to find the time that belongs to. A graph from UL943 suggests it's allowed to be much longer (multiple seconds at 6mA, more than half a second at 30mA), though I've also read it's much smaller than that in most devices (&le;25ms?).
:: I've not been able to find the time that belongs to. A graph from UL943 suggests it's allowed to be much longer <!-- (multiple seconds at 6mA, more than half a second at 30mA), though I've also read it's much smaller than that in most devices (&le;25ms?).


-->
 
 
There are a bunch of types,
mostly addressing things it specifically should, or specifically shouldn't be sensitive to.




Line 1,888: Line 1,998:




'''Voltage and people'''
====Voltage and people====


Everything else being equal, sticking your fingers in a 230V socket will make you pass twice the current through you,
Sure, everything else being equal,  
relative to doing the same in a 120V country.
: sticking your fingers in a 230V socket will make you pass twice the current through you,
: relative to doing the same in a 120V country.




If you feel a however coming, you're right.
If you feel a '...however' coming, you're right.




For one, saying it's twice as bad is ''way'' oversimplified.
For one, saying it's twice as bad is ''way'' oversimplified.


There are lots of details to this, many of which matter at least enough to mention.
There are lots of details to this, many of which matter enough to at least mention.




But there's a much dumber reason the difference is smaller:
But there's a much dumber reason the difference is smaller:
* both are in the region where a quick touch is typically fine.
* both are in the region where a quick touch is typically fine.
* both are in the region ''if you can't let go'', it will probably kill you
...whether it kills you in a few seconds or a few ''more'' seconds is immaterial in most situations.
So while 230V is theoretically going to kill you faster,
the cases in which this is true in practice are fairly specific.
It is arguably much more important to have [[GFCI]]s, a.k.a. [[RCD]]s,
because this is their reason for existing.
...and wherever you have RCDs, both become a lot less risky.
''Not that you should ever rely on them''.
https://electronics.stackexchange.com/questions/136981/whats-more-dangerous-110v-or-240v


* ''both'' are in the region ''if you can't let go'', it will probably kill you
====Current and heat====
: and whether it kills you a few seconds earlier or later is immaterial in most situations
 
 
So while 230V is theoretically going to kill you faster,
the cases in which this is true in practice are fairly specific.
 
 
It is arguably much more important to have [[GFCI]]s, a.k.a. [[RCD]]s,
because this is their reason for existing.
 
...and wherever you have RCDs, both become a lot less risky.
''Not that you should ever rely on them''.
 
 
 
https://electronics.stackexchange.com/questions/136981/whats-more-dangerous-110v-or-240v
 
 
 
 
 
'''Current and heat'''
 
120V implies higher currents than 230V for the same power draw, because P=VI
: For example, a 100W lamp on 230V means 0.43A, and a 100W lamp on 120V means 0.83A


 
For the same amount of power you want to move around,
There's two ways you can go with this argument.
 
120V implies higher currents than 230V for the same power draw, because P=VI
: For example,
:: a 100W lamp on 230V means 0.43A
:: a 100W lamp on 120V means 0.83A
 
 
There's two ways you can go with this argument.
 
* For one and the same wire, running the same power over it will make the wire run hotter at lower voltage
: because that wire has a given resistance, that lower voltage means higher current as mentioned, and P=I<sup>2</sup>R
: yet this ''mostly'' doesn't matter, because you choose the wire based on its rating


* lower-voltage countries need thicker wires for the same ''power''
* lower-voltage countries need thicker wires for the same ''power''
: but that ''mostly'' doesn't really matter, because there are other choices in distributing power
: but that ''mostly'' doesn't really matter, because it means practicalities (and the safety standards) just adapt.
: e.g. north America splits things into more circuits within a house. That may mean more wire (because some of that length is spent just on getting each to the breaker box)
: e.g. when distributing power in a house, north America splits things into more circuits within a house than most 230V countries do. That may mean more wire (because some of that length is spent just on getting each to the breaker box), but that... is a perfectly workable fix.


* For one and the same wire, running the same power over it will make the wire run hotter at lower voltage
: because that wire has a given resistance, that lower voltage means higher current as mentioned, and P=I<sup>2</sup>R
: but that doesn't really matter, because you choose the wire based on its rating




Both mean that as long as someone's thinking about it, it's all safe.
As long as someone's thinking about it, it's all safe.


And in house wiring, it's electrical code, and electricians that will lose their license if they sign off on something demonstrably stupid, so they do that thinking for you.
And in house wiring, it's electrical code,  
and (depending a little on where you are) electricians may well lose their license if they sign off on something demonstrably stupid.
So they do that thinking for you.


Electrical code basically thinks in current anyway.
Electrical code basically thinks in current anyway.
Line 1,955: Line 2,073:




'''What about extension cords?'''
====On extension cords?====


{{comment|(For now I'm interpreting this as 'up to 5 meters / 15 feet, mostly to split one into many sockets', not as 'carry it 30 meters / 100 feet or more', because the latter brings in some extra details. I'll get to it later.)}}
{{comment|(For now I'm interpreting this as 'up to 5 meters / 15 feet, mostly to split one into many sockets', not as 'carry it 30 meters / 100 feet or more', because the latter brings in some extra details. I'll get to it later.)}}


I always assumed that lower voltage means either hotter wires or more expensive power cords,
I always assumed that lower voltage means either hotter wires or more expensive power cords,
and that that's why the  
and that that's why the "OMG don't chain extension cords" and "OMG don't plug space heaters into extension cords"  
"OMG don't chain extension cords" and "OMG don't plug space heaters into extension cords"  
comes mostly from Americans and people in other 120V countries.  
comes mostly from Americans and people in other 120V countries.  


Line 1,970: Line 2,087:
...up to the wallsocket.
...up to the wallsocket.


Anything you plug into the wall may have thinner wire, so run hotter,
Anything you plug into the wall probably has thinner wire,  
so runs hotter,
because there's no guarantee what thickness/current rating that is.
because there's no guarantee what thickness/current rating that is.
This is true anywhere.  
This is true anywhere.  
Line 1,980: Line 2,098:
so it is possible to make ''those'' a too thin.
so it is possible to make ''those'' a too thin.


This is true in any country, any voltage.
This is true in any country, any voltage.  




There is, however, a difference in extension cords - in what gets made, and in certifications.
There is, however, a difference in extension cords - in what gets made, and in certifications.


Say, I live in a 230V country where houses 16A breakers by default.
Say, I live in a 230V country where house circuits use 16A breakers by default.
Almost all of the store-bought extension cords in my house I've found so far are rated 250V 16A.
Almost all of the store-bought extension cords in my house I've found so far are rated 250V 16A.
A few merely 10A, and that's not ''ideal'', that 10A is still good for a mere 2500W instead of 3500W (approximately).  
A few merely 10A, and that's not ''ideal'', that 10A is still good for a mere 2500W instead of 3500W (approximately).  
Line 1,991: Line 2,109:
Not that anyone thinks of that when plugging stuff in, and that's sort of the point here.
Not that anyone thinks of that when plugging stuff in, and that's sort of the point here.


US circuits tend to be 10A, sometimes or 20A,
US circuits tend to be 10A, sometimes 20A.
It's apparently easy to get a lot more varied extension cords - at least 5A, 7A, 12A, and 16A extension cords {{verify}}, which are choices like 600W, 850W, 1400W, and 1900W (approximately).  
It's apparently easy to get a lot more varied extension cords - at least 5A, 7A, 12A, and 16A extension cords {{verify}}, which are choices like 600W, 850W, 1400W, and 1900W (approximately).


So apparently saving a few bucks means there is a lot more variation, and a bunch more extension cords that are indeed not good for chunkier devices.
So apparently saving a few bucks means there is a lot more variation, and a bunch more extension cords that are indeed not good for chunkier devices.
Line 2,001: Line 2,119:
...because I see roughly three options
...because I see roughly three options
* teach everyone electronics (not going to happen)  
* teach everyone electronics (not going to happen)  
* don't care about it (less safe)
* don't care about it at all (less safe)
* be a little panicky about it (safer)
* be a little panicky about it (safer)


Line 2,008: Line 2,126:




-->
<!--
~100V is the practicual minimum - below that wires need to be very thick
~250V is the practical maximum - above that people sticking their fingers into sockets get dangerous amounts of current.
-->
-->

Latest revision as of 00:32, 21 April 2024

⚠ This is for beginners and very much by a beginner / hobbyist

It's intended to get an intuitive overview for hobbyist needs. It may get you started, but to be able to do anything remotely clever, follow a proper course or read a good book.


Some basics and reference: Volts, amps, energy, power · batteries · resistors · transistors · fuses · diodes · capacitors · inductors and transformers · ground

Slightly less basic: amplifier notes · varistors · changing voltage · baluns · frequency generation · Transmission lines · skin effect


And some more applied stuff:

IO: Input and output pins · wired local IO · wired local-ish IO · ·  Various wireless · 802.11 (WiFi) · cell phone

Sensors: General sensor notes, voltage and current sensing · Knobs and dials · Pressure sensing · Temperature sensing · humidity sensing · Light sensing · Movement sensing · Capacitive sensing · Touch screen notes

Actuators: General actuator notes, circuit protection · Motors and servos · Solenoids

Noise stuff: Stray signals and noise · sound-related noise names · electronic non-coupled noise names · electronic coupled noise · ground loop · strategies to avoid coupled noise · Sampling, reproduction, and transmission distortions

Audio notes: See avnotes


Platform specific

Arduino and AVR notes · (Ethernet)
Microcontroller and computer platforms ··· ESP series notes · STM32 series notes


Less sorted: Ground · device voltage and impedance (+ audio-specific) · electricity and humans · power supply considerations · Common terms, useful basics, soldering · landline phones · pulse modulation · signal reflection · Project boxes · resource metering · SDR · PLL · vacuum tubes · Multimeter notes Unsorted stuff

Some stuff I've messed with: Avrusb500v2 · GPS · Hilo GPRS · JY-MCU · DMX · Thermal printer ·

See also Category:Electronics.


Sensing

Galvanic skin response (GSR)
This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.

Galvanic skin response (GSR), Electrodermal activity (EDA), electrodermal response (EDR), psychogalvanic reflex (PGR), skin conductance response (SCR), sympathetic skin response (SSR), and skin conductance level (SCL).

(Because of the varied names accumulated over time, EDA is intended as a new standard name, but some fields haven't moved yet, so many existing documents will use old terms.)


All are fancy names for 'how much electricity does your skin conduct'.

Some check just that.

Some suggest indirect measurement of mental state.


Sweating is a response controlled by the sympathetic nervous system, to things like

basic physics - warming up due to exertion, or environmental temperature, that mean you have to thermoregulate
health - hydration level, fever, ingestion of irritants, contact with toxins, menopause, other hormonal changes, like change in medicine, hyperthyroidism, reaction to caffeine, morphine, alcohol and other drugs, insulin levels, differences in ability to thermoregulate due to health, differences in ability to thermoregulate due to humidity
mental origins - strong forms of anger, fear, anxiety, arousal


Mental state?

The idea is that

if you can control for most of that last list - physics of the moment, and health, and further calibration,
then sweating could indicate the last few on that list, making skin conductance one measure of emotional and sympathetic responses.

Criticism includes:

  • that's a lot of ifs
  • hydration level affects the response regardless
  • response varies by location, being driven by somewhat different responses
  • sweat response has delay, seconds to longer depending on the type of response. It becomes hard to tell what it's a reponse to.



It's impossible to avoid mentioning the polygraph-style lie detector, which measures not only GSR, but also heart rate, breathing rate, and blood pressure.

The idea idea is that these are all controlled by the sympathetic nervous system rather than consciously, so you can't voluntarily change them, which is the entire reason they're sold as lie detectors.

But there are reasons that they are no longer admissible in most courts, for many detailed reasons - that all amount to that they are unreliable at best.

Even its inventor has spoken out their frustration by the the ways is regularly misused.


Problems include that

  • it cannot distinguish between different forms of arousal - consider
    • anger (because of strong personal ethics)
    • worry - that this will be treated as proof, thinking of social implications
    • fear - including the one where it it just sunk in what the implications might be if this pseudoscience is taken seriously
    • startle response -
    • sexual arousal - maybe you just have a thing for authority figures
none of which have anything to do with lies, let alone guilt
  • it cannot distinguish between such responses being involuntary, and such responses being triggered intentionally
remember, the indicators are very basic and low resolution. All they really measure is 'body is a little different', not how or what
  • you can intentionally mess with the calibration, e.g. by thinking of some anguish at the right time
  • you can intentionally to suppress these responses by mentally distracting yourself
Also means ADHD people are just less guilty overall, huh?
more to the point, this can be trained
  • it does not consider that sociopaths won't have some of these responses to start with, by definition


See also:

electrocardiography (ECG)

Measuring the heart muscle (-cardio-), which at skin surface is seen on the scale of a millivolt or so.


A little harder to DIY, because that's weak there is also typically coupling of electrical fields (and easily AC line noise). For a start you want a differential amplifiers (probably an inamp), and probably some shielded or twisted wire to minimize induction, think about positioning (or you may get common mode voltage via impedance mismatch(verify)), maybe a passband filter.

And right-leg drive (probably here called something else) can't hurt.

See

Electromyography (EMG)

Measuring skeletal muscles (-myo-), which seems to be one the scale of dozens of millivolts (verify)}

See http://en.wikipedia.org/wiki/Electromyography

Neuroimaging

Electroencephalography (EEG)
This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.

Measuring activity in the brain (-encephalo-) - which (outside) is on the scale of dozen microvolts (to at most millivolts (verify))

At a low level, you measure a tiny fluctuating voltage change at a spot on the surface of the scalp, comparing that voltage to other such spots for reference, using metal electrodes and conductive paste for better contact.

Muscles nearer the surface are much stronger signal - a clenched jaw or blinking your eye is very visible in data (in very different ways - jaw is high frequency, blink low). In fact some of the electrodes are only there to measure those in isolation, so that we have a chance to remove them later


Comparing the voltage to other such voltages can (only) tell you things like

  • that an area broadly became more or less active
  • when you started reacting
  • differences between things like "makes sense" and "that's weird and I'm processing why".
  • broadly, which areas of the brain engaged more than others



Electrocorticography (ECoG)

Electrocorticography (ECoG), or intracranial electroencephalography (iEEG), is like EEG but sensing directly on the brain itself, rather than from outside the skull and skin.

Is surgically invasive, so generally only seen around things like epilepsy treatment.


https://en.wikipedia.org/wiki/Electrocorticography

Magnetic resonance imaging (MRI)
Magnetoencephalography (MEG)
Functional Near-Infrared Spectroscopy (fNIRS)

Functional near-infrared spectroscopy (sometimes Optical Topography (OT)) uses near-infrared spectroscopy to estimates the concentration of hemoglobin to estimate activity, so is useful for basic functional neuroimaging.

It is noninvasive and has high temporal resolution, but low spatial resolution and only works near the surface.

(it's not electronic and doesn't really belong on this page, but it mostly does belong in this list of measuring humans)


Electrooculography (EOG)

Electrooculography (EOG), a.k.a. retinal Electrooculography, basically helps record eye movements.

https://en.wikipedia.org/wiki/Electrooculography


Electroglottography (EGG)

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.

Measures the how closed the vocal folds are, via the resistance of two electrodes around the neck.


Electronics side

Electropalatography (EPG)

https://en.wikipedia.org/wiki/Electropalatography

Electromagnetic articulography (EMA)

a.k.a. Electromagnetic Midsagittal Articulography (EMMA)


Positioning the tongue, using sensor coils in EM field, receiving signals from multiple fixed transmitters (chunky thing above head).


Events

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.


Stimulating

Conductive

TENS, Transcutaneous Electrical Nerve Stimulation

Aims to desensitive nerves, so is used for short-term pain relief.

Higher frequency (and less strength?) than EMS, only enough to feel.

Electric massage is closer to TENS than EMS(verify)

See also:


EMS, Electrical Muscle Stimulation

Also known as NMES (neuromuscular electrical stimulation) and electromyostimulation.

Used to help muscle training, such as that to avoid atrophy.

It uses pulses that are strong and long enough to trigger muscle contraction, and helps engage more of an muscle that you consciously engage. It's not that effective without your help, though.


See also:


Massage

High frequency

Purple wand

Static electricity, ESD, and humans

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.


ESD and electronics

Avoiding ESD

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.


Lightning

Unsorted

On (not) causing tingling

Laptop tingle / zap

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.



Symptoms:

  • continuous tingling on exposed metal (sockets, screws, metal bodies, e.g. in your hands, on your lap)
  • felt only when the adapter is connected
  • Felt more clearly when
the contact area is small
you have good contact with the device (e.g. sweaty hands/legs)
you have good contact with the floor (e.g. no shoes or socks, moist concrete)
When measured, this is AC, and up to a few dozen volts, and usually not more than a milliAmp or two


Phone zap / tingle

Mostly similar to the laptop example above.

Many of these chargers are ungrounded wallwart-style, making this a likely thing.


One difference to the laptop case is that there are a lot more cheap-and-particularly-crappy phone chargers out there (than there are low-grade laptop adapters).

Some of them just low quality output, a few actually unsafe.

See e.g. [1] [2]


It the touchscreen doesn't work as well, or at all (interferes with the way capacitive touch works) whenever it's on a charge cable, it's probably just a low-quality charger and you can fix that by buying a better one. It can be hard to tell quality from looks. Reputable brands are a decent though not sure-fire way, and there are some decent cheaper-brand ones.


Less intentional / on not killing people

Electricity through humans

Human resistance ratings
Current through humans - where does the risk start?
More context
"It isn't the volts that kill you, it's the amps"
On current capacity

Electricity and heat

Resistive heat
On circuit breakers
On extension cords
Arcs and arc faults

Protections

Safety earth

Why?

Earth wiring within a house is there for safety.

Short version: it is a return connection that is much lower impedance than you are - and passes enough current enough that a fuse or circuit breaker would soon disconnect the live wire.


One of the main uses is earthing a conductor that should never be live - but might become so when things fail. For example, the chassis of a toaster or washing machine or such.

If they eventually break so that wiring comes loose and touches the outside, and you want to design for that possibility.


With safety earth on that chassis, that's a short across your house's breaker, which will probably trip, meaning the dangerous voltage on that chassis is on there for a fraction of a second.

(Also it's across two chunky wires that won't have any issue with that current for factors longer than that)

Even if you touch it within this time, the earth wire is much lower resistance to earth and (since this is a voltage divider) you shouldn't feel much.


Without safety earth, the live wire touching the chassis mean nothing other than that it is now at mains potential.

This has few immediate implications, but you will notice this when you next touch this and you are even vaguely earthed.

The current through you is also much lower than any real use, so there is no reason for a breaker to trip.


(Which is why RCDs exist, and complement breakers)



What?

Earth (or earth ground) refers to a physical pole hammered into the earth somewhere nearby.

Earth wiring is connected to that pole.

Typically this is also bonded to things like radiator pipes, water pipes, steel structures. So generally all these things are at most a few ohms to this earth.


Devices like think ovens, washing machine, etc. are typically designed with safety earth, and using them safely will require that connection to earth - which, due to electrical code, usually just means 'socket with earth pin'.

Some (big) devices will even test the grounding and refuse to work if not present. Yet most will assume that your electrical wiring is not violating electric code. Just at all, or because they have an earthed plug and it's technically a code violation to have an earthed socket that isn't actually earthed.


(Note that powering things on generators is a little more interesting, ground-wise)


Earth versus ground

Residual-current devices

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.

Known under varied terms, including:

  • Residual-current devices (RCD)
  • Ground fault circuit interrupter (GFCI)
  • Ground fault interrupter (GFI)
  • residual-current circuit breaker (RCCB)
(Note: an RCBO is a residual-current protection and an overcurrent protection in one)
  • Earth leakage circuit breaker (ELCB)
  • Appliance leakage current interrupter (ALCI)
  • Leakage Current Detection Interrupter (LCDI)
  • FI - Fehler and I indicating current (verify)
  • Differential circuit breaker


There are apparently a few different designs. The common variant measures the current difference between the current going through the live and neutral wire, because those two currents should be exactly the same. Conceptually / component-wise, you can think of it as a small sensing transformer coil around both live and neutral wire. When current in is equal to current out, that sensing transformer outputs nothing.)

And if there is a difference, we assume that the extra current path is via ground (either the socket's safety earth, or the literal ground), and for safety we assume this might be going through a human, so it trips to cut power.


Electrical code varies when it comes to RCDs. Building styles also vary, with country and with time.

Sometimes you'll see a chunky RCD on each leg/phase at the power board - only.
Others add them per socket, and then often only in the kitchen and shower.

Others protect other areas, double them up to project everything but trip smaller zones, and other variations.


Building sites may put a series of larger-and-smaller RCDs on different areas because it interrupts fewer people from working, and makes it easier to diagnose who's tripping it.


You can also get RCD extension cords, which can e.g. make sense when you do electronics repair work, possibly for rooms that are not protected (if that applies to your house).

While a lot of them are standard-valued, you can sometimes get ones that responds faster and for lower current, which can be marginally safer, and sometimes more importantly, means the one at your desk trips, not the house one, saving you and possible housemates a lot of annoyance and waling.

You'll probably accept just your DIY setup being overly triggery, (and/or better isolate the causes).


Certain situations (e.g. datacenters) may use higher values, because false trips are much more costly, there can be some protective equipment that would trip RCDs more easily(verify), and technicians can be instructed better than random people in random houses.


RCD aim to trip at the order of a dozen milli-amps for a dozen milliseconds or so, as a balance between 'most humans will survive that' and making it less sensitive to stray currents, and making nuisance trips unlikely.


The typical trip currents vary, e.g. For

home installations in 230V countries, typically ~30mA for ~20 milliseconds
home installations in 120V countries, often quoted as just "5mA".
I've not been able to find the time that belongs to. A graph from UL943 suggests it's allowed to be much longer

See also:

Arc fault protectors

An arc fault is an unintended discharge between conductors, from things like

loose wiring connections
overheating wiring that broke down insulation over time (note that breakers should make that impossible)
otherwise damages wire insulation

The sparks and heat generated can further damage the wire, and lead to fire.



An arc-fault circuit interrupter (AFCI) measures

fast switching (order of 100 kHz)
of non-negligible current
sustained for a few seconds.


They seem to often be digital(verify)

They seem to often also integrate ground fault sensing.

Design safety, and certification

Certifications
Double insulation

Galvanic isolation, floating outputs, floating ground

Isolation transformers

Is 120V safer than 230V?