Ohhhh... I see... Thank you...
Yes, so I wonder would the noise (fake signal) be large enough e.g. 3V to make that pull-down resistor lose its effectiveness? (Since 3V is high enough to make the noise seems to be a real signal)mattmiller wrote: ↑Fri Dec 20, 2019 7:21 amThe pull-down (or pull-up) only sets the input to low or high in the absence of a real signal.
Once you apply a 3V signal to the input, it will go high
If working in a harsh RF enviorment, it is normal practice to add extra external pull up/down resistors of a lower value than the nominal 50K internal ones
PS It is not a stupid question![]()
Aah - that's a different pointI think it is dumb because seems that this is a very first step to play with the GPIO
davidcoton, thank you for the detail explanation. this makes sense.davidcoton wrote: ↑Fri Dec 20, 2019 10:19 amRF interference and (even more so) static electricity can induce very high voltages, way over 3V3.
But GPIO inputs are clamped to the range 0V to 3V3 (give or take one diode Vf) so that no damage will occur.
The source of stray voltages can't supply a significant current, except in extreme RF environments.
If you apply a voltage that is out of range, however, you risk destroying the clamp diodes and your Pi.
And a final thought. Attaching a long wire to a GPIO input without a pull will pick up enough voltage to cause stray input signals. Often the on-board (selectable) pull resistor is not enough to cure this, lower value pull resistors, decoupling capacitors to ground, and small series resistors are sometimes necessary.
Why not? The high voltages from RF will have a very weak current. The resistors can easily pull that down to 0V.mannok wrote: ↑Fri Dec 20, 2019 11:41 amMy confusion is... according to what you mentioned "RF interference can induce very high voltages, way over 3V3". A pull-down resistor in this case still cannot overcome this "wrong" signal. Since this "fake high voltage" does not fall in 0.8V to 1.3V so that the "fake voltage" will just applied to the GPIO pin just like a real "logical high" signal.
But according to ohms law, when the resistance is constant, how can a very high voltage induce a very weak current?rpdom wrote: ↑Fri Dec 20, 2019 12:12 pmWhy not? The high voltages from RF will have a very weak current. The resistors can easily pull that down to 0V.mannok wrote: ↑Fri Dec 20, 2019 11:41 amMy confusion is... according to what you mentioned "RF interference can induce very high voltages, way over 3V3". A pull-down resistor in this case still cannot overcome this "wrong" signal. Since this "fake high voltage" does not fall in 0.8V to 1.3V so that the "fake voltage" will just applied to the GPIO pin just like a real "logical high" signal.
Have you taken into account the resistance of the air?
mannok wrote: ↑Fri Dec 20, 2019 11:41 amMy confusion is... according to what you mentioned "RF interference can induce very high voltages, way over 3V3". A pull-down resistor in this case still cannot overcome this "wrong" signal. Since this "fake high voltage" does not fall in 0.8V to 1.3V so that the "fake voltage" will just applied to the GPIO pin just like a real "logical high" signal.



If 5V is being induced at that point then the pull-down cannot fix the problem.
Code: Select all
-|----.----------- 3V3
\|/ \|/ | .|.
| ___ | | |_|
|---|___|---| | | |\
"RF" --' `---.----|----^-.---| >---
Big .|. | .|. |/
|_| | |_|
| | |
-^----|------^--------- 0V
My take on all this:mannok wrote: ↑Sat Dec 21, 2019 12:25 amI am stucking at a point. Let consider the following figure ...
At this point I still understand. However, as davidcoton mentioned before, RF interference can induce very high voltage, let say 5V. ...
In such ocassion, how can the pull-down resistor fix this unwanted RF interference signal? Since it looks no different with a real 5V input source.
Hi hippy, thank you for these explanation. Yes this make sense...hippy wrote: ↑Sat Dec 21, 2019 10:02 amIf 5V is being induced at that point then the pull-down cannot fix the problem.
The situation, for want of better words to describe it, is you have some RF source which transmits through some resistance ( air, walls etc ) before reaching that point. That resistance travelled through combined with the pull-down will create a voltage divider which will reduce the voltage which appears on that pin.
The pull-down is hopefully low enough that it reduces the induced RF to below a level which will affect the output, so induced RF has no affect.
If the RF source is strong enough, or the pull-down not low enough, then that induced RF will affect the output.
To be perfectly immune from RF the pull-down would need to be reduced to Zero Ohm, but that's not possible because even short lengths of wire have some resistance. If the induced RF is strong enough it will pull the input up enough to affect the output.
In those cases one would have to enclose the equipment in an RF-blocking or reducing case or enclosure so it cannot reach the input. Effectively increasing the resistance the RF travels through so it is kept to a level by the potential divider created with the pull-down which does not affect the output.
In most cases though RF will not not strong enough to produce the kinds of input voltages which affect the output.
Code: Select all
-|----.----------- 3V3 \|/ \|/ | .|. | ___ | | |_| |---|___|---| | | |\ "RF" --' `---.----|----^-.---| >--- Big .|. | .|. |/ |_| | |_| | | | -^----|------^--------- 0V
Hi Burngate, do you mean that RF interference usually contain less energy so that it cannot charge up GPIO pin's capacitor in order to change the affect the read signal?Burngate wrote: ↑Sat Dec 21, 2019 11:12 amMy take on all this:mannok wrote: ↑Sat Dec 21, 2019 12:25 amI am stucking at a point. Let consider the following figure ...
At this point I still understand. However, as davidcoton mentioned before, RF interference can induce very high voltage, let say 5V. ...
In such ocassion, how can the pull-down resistor fix this unwanted RF interference signal? Since it looks no different with a real 5V input source.
The input of a MOS gate or a Pi's GPIO is essentially a capacitor; to change it from low to high or high to low requires that capacitor to be charged or discharged, and that requires energy to move electrons from or to it.
If you're doing it deliberately, you have plenty of energy available, be it from a small battery or from Sizewell B - the capacitance is small, so the amount of energy is miniscule by comparison. Plenty of electrons being moved around, so a few here or there is no problem.
But if it's EMI or a local lightning strike that's going to cause the problem, that energy has to be picked up by the wiring, etc.
The electrons have to be moved from the input capacitance to somewhere else. A changing magnetic field could move them to the other end of the wire if it's long enough and there's enough capacitance between it and your desktop, or a static electric field could do the same job.
But it still takes energy, and you don't have that available unless you're in a noisy environment - noise being lots of chaotic energy.
A pull resistor is there to dissipate that energy as it arrives, before it can cause a problem.
Wow... I see... thank you!Burngate wrote: ↑Sun Dec 22, 2019 10:45 amMost of the time, most places, yes probably. Depends on your environment.
Also not just radio frequency - low frequency as well.
In the changing magnetic field from your Hoover, a longer wire will pick up more energy, so move more electrons, as long as there's somewhere for them to go.
And it'll let more electrons get close to your cat's fur as it walks by.
A few years ago, the sun belched a mass of ionised gas straight towards the Earth.
When it arrived, it had little effect on anybody's i-pod, because they're too small. The US grid, however, is rather larger, and it picked up enough energy to shut itself down for a few days.
Yes, I think we are on the same page. The ' big resistor' from the RF source, combined with the low value resistor pull-down will minimise the RF getting into the circuit, will have less voltage across it.mannok wrote: ↑Sat Dec 21, 2019 7:04 pmHi hippy, thank you for these explanation. Yes this make sense...
To sum up what you mean... Can I imagine as once RF arrived to our circuit, it usually has passed through some external resistors like walls, air, etc. To include these external resistors into our circuit, They are way too high when comparing with our pull-down resistor. That means our pull-down resistor should drop less voltage (same for GPIO according to KVL).