Application of capacitive induction touch button solution in induction cooker

Publisher:MengyunLatest update time:2013-02-18 Source: 21ic Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
  1 Introduction

  Compared with mechanical buttons and resistive touch buttons, capacitive touch buttons are not only durable, low-cost, simple and easy to install, waterproof and anti-fouling, but also provide functions such as rollers and sliders. However, capacitive touch buttons also have many problems. Because there is no mechanical structure, all detections are small changes in electricity, so they are much more sensitive to various interferences. ST has launched a capacitive touch sensing solution based on the STM8 series 8-bit general-purpose microcontroller platform for home appliance applications, especially induction cooker applications. There is no need to add a dedicated touch chip. Capacitive touch sensing functions can be realized with only a simple peripheral circuit, which is convenient for customers to develop secondary development.

  2 Solution Introduction

  ST's capacitive touch button solution detects the capacitance change caused by human touch through the charging/discharging time of a resistor-capacitor network composed of a resistor and the capacitor CX of the sensing electrode. As shown in Figure 1, when a human hand presses, it is equivalent to connecting a capacitor CT in parallel to the sensing electrode, increasing the capacitance on the sensing electrode, and the charging and discharging time of the sensing electrode will increase, thereby detecting the state of the button. The sensing electrode can be directly drawn on the PCB board as a button, roller or slider application style, or it can be made into a spring component inserted on the PCB board, and its detection performance will not be affected even if it is separated by an insulating layer (glass, resin).

International Electronics Business

 

 

Figure 1 Working principle of STM8S capacitive touch button

International Electronics Business

  The induction cooker heats food using the heating principle of magnetic field induction current. During heating, a strong magnetic field is generated by the coil under the panel. When the magnetic lines of force pass through the bottom of the pot made of a magnetic conductor, the pot cuts the alternating magnetic lines of force and generates eddy currents at the bottom of the pot, causing the bottom of the pot to heat up quickly, thus achieving the purpose of heating food. In this solution, the 44-pin STM8S105S4 is used as the main control chip of the key display board to control the scanning of 13 keys, the display of 24 LEDs and a 4-digit digital tube, the communication between I2C and the mainboard, and a SWIM interface is reserved for engineers to debug (as shown in Figure 2).

  The STM8S105S4 uses ST's advanced STM8 core, with a 3-stage pipeline Harvard structure, 3.0~5.5V operating voltage, an internal 16MHz RC that can provide the MCU with a 16MHz operating frequency, low power mode and peripheral clock shutdown function, and a total of 34 I/Os available. The STM8S105S4 has 2KB of RAM and 16KB of FLASH, as well as a 1KB EEPROM data memory with up to 300,000 erase and write times.

Principle of induction cooker keypad

Figure 2 Principle of induction cooker keypad

  3 Interference in the working environment of the induction cooker

  1. Electromagnetic interference

  When the induction cooker heats the pot, it also generates a positive or reverse current on the induction electrode on the circuit board, which shortens or increases the charging and discharging time of the key, greatly affecting the key detection and even causing malfunctions. Common methods use hardware shielding and zero-crossing detection to eliminate the impact of electromagnetic radiation on the key. [page]

  Hardware Shield

  In the STM8S solution, ST provides design specifications for sensing electrodes and routing and the Driven Shield function as shown in Figure 3 (providing the same driving signal as the button pin on the Shield line, so that the parasitic capacitance between the electrode and the Shield will not be charged or discharged), which can effectively reduce the impact of the parasitic capacitance of the sensing electrode routing on the button sensitivity.

Driven Shield

Figure 3 Driven Shield

  Zero crossing detection

  1) Hardware zero-crossing detection

  Zero-crossing point detection can be implemented by hardware. In the hardware design, a zero-crossing point hardware detection circuit as shown in FIG. 4 or FIG. 5 can be added. By judging the key state when the output at the B terminal is a high level, the touch key can be detected when the electromagnetic radiation is minimum.

Hardware zero-crossing detection circuit 1

Figure 4 Hardware zero-crossing detection circuit 1

Hardware zero-crossing detection circuit 2

Figure 5 Hardware zero-crossing detection circuit 2

  2) Software zero-crossing detection

  Hardware zero-crossing detection increases the complexity of hardware circuit design and the cost of the solution. In our solution, we use software to perform zero-crossing detection for the working environment of the induction cooker, thereby reducing costs and effectively solving the interference of the main power circuit of the induction cooker on the touch buttons.

  2. Grid interference

  Because the quality of the domestic power grid varies, in some areas with poor quality, it is easy to affect the normal operation of the induction cooker touch buttons. If the power supply cannot be isolated, you will see the difference in Figure 6 (blue means no key, red means the key is pressed), and these figures are only when the induction cooker is not turned on. When the induction cooker is working, the electromagnetic radiation generated will make the signal seen more chaotic. In the experiment, it was found that the key effect can be significantly improved by isolating from the external power grid or using software filtering.

Figure 6: Good quality grid Poor quality grid 1 Poor quality grid 2

Figure 6: Good quality power grid Poor quality power grid 1 Poor quality power grid 2

  3. Impact of splashing water and oil

  When using an induction cooker, water or oil often splashes onto the touch panel, which may cause false triggering of buttons. This solution uses a special software algorithm to reliably distinguish between water or oil splashes and finger pressing.

  4. Environmental Adaptability

  When the induction cooker is working, it will generate a lot of heat and moisture. The panel temperature/humidity and circuit board temperature/humidity will fluctuate in a wide range. As time goes by, the glass panel and PCB board will age to different degrees, thus affecting the accuracy of key detection. In ST's solution, an automatic calibration function is implemented, providing real-time environmental detection and realizing an environmental self-adaptation mechanism.

  4 Conclusion

  The solution provided by ST includes touch panel self-calibration, software filtering, software zero-crossing detection and environmental adaptation functions, and uses software algorithms to shield interference from various complex environments as much as possible, with low cost and reliable operation. Of course, in the application of other products, there will be some requirements that are different from the induction cooker environment. Here we only introduce some representative interferences, but as long as you understand the working principle of capacitive touch, there are still many ways to deal with various application situations.

Reference address:Application of capacitive induction touch button solution in induction cooker

Previous article:Application of STM32 and CAN bus in temperature monitoring system
Next article:USB programming in application based on STM32F10X bootloader

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号