bananaboat wrote: ↑Fri Apr 10, 2020 11:23 am
Each capacitor has a positive and negative side. What i did is to connect the positive side of the capacitor to the GPIO pin and circle it back to connect the (2nd capacitor) negative side towards ground. Is that the correct way?
I'm not sure I understand quite what you're describing, here. But maybe a simple description of what a capacitor is, and how it works, would help.
At its simplest it's just a couple of conductive plates separated by an insulator. If something pulls electrons off one plate, that leaves a positive charge on it that attracts electrons onto the other plate. Moving the electrons round takes energy, that can be recovered when they move back to where they started from.
The capacitance (in Farads, a measure of how much effort is required to move how many electrons) depends on the area of the plates and how far apart they are, and you can get them
very close if you can coat one of them with an oxide layer to act as the insulator.
But that requires you to keep one plate always positive compared to the other - if it ever goes negative, the oxide decomposes, and you no longer have an insulator. Hence the + and - ends.
So what you want to do is connect the positive end to the GPIO - which is
never negative with respect to ground - and the negative end to ground - which is
always the least positive bit of your circuit.
Then any RF picked up has to work hard to move the electrons around, and so the GPIO will be less sensitive to it.