The principle of induction circuit:
The inductive key circuit includes two parts: signal generation and signal shaping. Firstly, the signal generation part generates a high-level signal with a duty cycle of several hundred KHz of about 50%. Then the signal shaping part shapes the generated signal; Finally, the signal is sent to the AD port of the microcontroller. When the human body is close to the induction key, it will form a capacitance to the ground, which will shunt part of the current at the high level of signal shaping, so that the shaped signal will drop and remain at the falling potential until the human body leaves the key. When the human body leaves and presses the key, the rectified signal will rise to the original potential level. Due to circuit coupling and parasitic capacitance, the falling edge and rising edge are generally used to identify the response action of the inductive key.