RC circuit. Measuring the voltage while charging and discharging the capacitor. One end of the RC series is connected to a GND pin of the GPIO, the other end is connected to the pin GPIO17. The maximum current drawn from the RPi to the circuit is \(I = V_{DC}/ R =33 \mu A\), well below the recommended limit of \(16\ mA\).