You are on page 1of 17

THIS SPEC IS OBSOLETE

Spec No: 001-50475

Spec Title: INDUCTION COOKER DESIGN WITH


CAPSENSE(R) - AN50475

Sunset Owner: Vairamuthu Ramasamy (vair)

Replaced By: None


AN50475
Induction Cooker Design with CapSense®

Author: Robin Chen, Jemmey Huang, Vincent Cai


Associated Project: Yes
Associated Part Family: CY8C22x45
®
Software Version: PSoC Designer™ 5.2 SP1
Related Application Notes: None

Abstract
®
AN50475 discusses the implementation of an induction cooker with CapSense control based on CY8C22x45. The
working principles of an induction cooker and the CY8C22x45 are also described.

Contents Introduction
Introduction .......................................................................1 Touch sensor technology has existed for many years
Induction Cooker: Working Principle .................................1 because it is suitable for harsh environments. Capacitance
CY8C22x45 Overview .......................................................2 based touch sensors are now widely applied in consumer
electronics. Touch sensors appear stylish, and products
System Features ...............................................................3 based on touch sensors are attractive. In home appliances
System Hardware ..............................................................3 such as the microwave oven, induction cooker, and rice
Dual-Channel CapSense Scan.....................................5 cooker, there is a growing demand for the CapSense
I/O Expansion by 74HC164 ..........................................6 button and slider for high-end designs. Typically, there are
Low-Pass Filter for Analog Signal ................................6 two microcontrollers in these designs: one for the kernel
tasks control, and the other for the CapSense button/slider
Board Connector Definition and Description.................6
control. CY8C22x45 is a new PSoC product family that
System Firmware ..............................................................6 simplifies the design and reduces the system cost. This
PSoC Digital Block and Analog Resources Consumed 8 application note uses the induction cooker as an example
LEDs and 7-Segment Digital LED Display Refresh ......8 to discuss the integration design of CapSense and system
IIR Low-Pass Digital Filter ............................................9 control in the CY8C22x45.
PI Close Loop Control Algorithm ..................................9
Appendix A ...................................................................... 11 Induction Cooker: Working Principle
The induction cooker is a modern electric cooker that uses
the electromagnetic induction principle to heat vessels.
The induction cooker has a heatproof ceramic panel,
which is used as the cooker plane. Through the electrified
coil under the plane, the AC current creates a magnetic
field that induces a vortex in iron and stainless steel pan
bottoms. This heats the pan bottom quickly, and then
conducts the heat to food.
This section describes the working principle of the
induction cooker. First, the AC current is converted into
DC by a rectifier. Next, the DC current is converted into
ultrasonic high frequency AC current by a high frequency
electric power conversion device. By connecting the high
frequency AC current to the flat, hollow, helical heating
coil, a high frequency alternating magnetic field is
generated. Under the ceramic panel, the electrified coil
creates a magnetic field that breaks through the panel and
induces a vortex in the iron pan bottom. This converts

www.cypress.com Document No. 001-50475 Rev. *C 1


Induction Cooker Design with CapSense®

electric energy into heat energy, while overcoming the CY8C22x45 Overview
internal impedance stream. The generated joule heat is
the heat source for cooking. CY8C22x45 is a product of the PSoC family. It is an
Figure 1. Induction Cooker enhancement of CY8C21xxx PSoC family, and is targeted
at applications that integrate both system control and
CapSense control. CY8C22x45 is compatible with other
PSoC device architecture, as shown in Figure 2.
CY8C22x45 is a Mixed-Signal Array with On-Chip
Controller device. Each CY8C22x45 PSoC device
includes eight digital blocks and six analog blocks.
Depending on the PSoC package, CY8C22x45 provides
up to 38 general-purpose I/Os (GPIO), 16 K flash memory,
and a 1 K SRAM data memory. Following other PSoC
products, CY8C22x45 has fixed function on-chip
2
resources such as I C, MAC, and more. In addition,
CY8C22x45 includes optimized modules such as 10-bit
SAR ADC, dedicated CSD digital logic, and dedicated
RTC.
Figure 2. CY8C22x45 Block Diagram

The major controls of the induction cooker include: Port 4 Port 3 Port 2 Port 1 Port 0

PSoC Core
1. IGBT Automatic Self Protection: Insulated-Gate
Bipolar Transistor (IGBT) is the key component of the
induction cooker. IGBT works under high voltage and
high power conditions. However, considering the high
Global Digital Interconnect
cost and rigid parameters, IGBT is designed with Global Analog Interconnect
several conditions. Any of the following factors can SRAM SROM Flash 16K
destroy IGBT: excess voltage, instantaneous 1K

impingement generated when power is switched on or CPU Core (M8C) Sleep and
Interrupt Watchdog
Controller
off, proliferated current and excess temperature. IGBT
can be damaged even when the iron pan is removed Multiple Clock Sources
from the ceramic panel or if no pan is placed on the (Includes IMO, ILO, PLL, and ECO)

panel. It is necessary to protect the IGBT from these


factors. DIGITAL SYSTEM ANALOG SYSTEM

2. Temperature Control in the Iron Pan Bottom: The heat Digital Block Array
Analog Input Analog
in the iron pan bottom is directly transferred to the DBC DBC DCC DCC Muxing Ref =

ceramic panel. The ceramic panel is the heat ROW 0


conducting material, so thermal sensors are often
Analog Block Array
fixed in the panel bottom to detect the temperature of DBC DBC DCC DCC
CTE CTE CTE CTE
the iron pan bottom. ROW 1

SCE SCE
3. Stable Power Control: The output power of the
System Bus

CSD Digital Resource


induction cooker can be automatically regulated to 10-bit SAR
improve the adjustment of the power supply and load. ADC

4. User Interface Control: Collect the customer input


from the CapSense button or slider, then decide the
working mode and display it on relevant light emitting POR and LVD Internal
Digital
MAC I2C Voltage
diode (LED). Clocks
System Resets Ref.

In this example, CY8C22x45 handles the input of twelve SYSTEM RESOURCES


CapSense buttons. It is also responsible for the entire
system control, including current, voltage and temperature To reflect the change in digital blocks, the new digital
sampling, PWM generation for the MOSFET control, block for basic functions is renamed as DBC from DBB,
induction cooker power control, and system status display. and the communication block is renamed as DCC. The
digital block adds another data path to implement the
enhanced features in DBC or DCC, such as synchronous
triggering, kill function, and more. However, even if no

www.cypress.com Document No. 001-50475 Rev. *C 2


Induction Cooker Design with CapSense®

enhanced feature is used in the user module, the digital


block is fully compatible with the existing PSoC product.  12 CapSense buttons for Menu Selection
More advanced CapSense features are to be included in
Compared to CY8C21xxx, CY8C22x45 provides two future designs. These functions include:
additional CT blocks for general-purpose applications.
These analog blocks can be configured as an enhanced
feature comparator with flexible input and output choices.
 CapSense Slider for Menu Selection

CY8C22x45 also provides a set of digital resources to  Waterproofing CapSense button


address the CapSense design. These resources are
optimized for CSD implementation. With these resources,
 Boil over detection

the system clock resource VC1/VC2/VC3 and digital  CapSense sensor failure detection
blocks are not needed to configure a CSD user module.
The CY8C22x45 also keeps a compatible configuration,
which helps the customer code migrate from CY8C21xxx.
System Hardware
The new CSD user module in CY8C22x45 is capable of There are two PCB boards in the design viz. power control
simultaneous scanning on dual CSD channel input to board and main controller board. They are connected by
reduce the total scanning time in an application. an 11-pin ripple cable.
Power Control Board
System Features
The power control board uses a quasi resonant converter
In addition to the features that CY8C22x45 provides for to create a magnetic field that induces a vortex in iron and
CapSense control, the induction cooker design also stainless steel pan bottoms. Figure 3 shows a typical
contains the system control. It has common features that quasi resonant converter, Figure 4 shows the equivalent of
are found in existing products. The features are: the resonant circuit, and Figure 5 shows the waveforms of
each block of the main power circuit in a cycle.
 AC 220 V/50 Hz power supply
Figure 3. Quasi Resonant Converter
 1800 W rated power

 Resonant circuit for induction cooker control

 More than ten LEDs and four digital LED segment


display

 Buzzer for alarm

 Fan On/Off and PWM control

 Adjustable fixed temperature cooking mode that


Supports 60, 80, 100, 120, 140, 160, 180, 200, 220,
240, and 260 C. Figure 4. The Equivalent of the Resonant Circuit

 Multilevel of firepower selection (200 W, 400 W,


600 W 800 W,1000 W, 1200 W, 1400 W, 1600 W and
1800 W) and Stable Power Control

 Cooking Pan Auto Detect

 Multi Cooking Mode Selection

 Multiple protection
 Auto Power Off When Not Cooking on Pans
 AC Over Voltage and Under Voltage Protection
 AC Over Current Protection
 Pan Overheat Protection
 IGBT Overheat Protection

 Time-switch cooking function

www.cypress.com Document No. 001-50475 Rev. *C 3


Induction Cooker Design with CapSense®

Figure 5. Waveforms of Each Block of the Main Power MODE II: t1-t4
Circuit in a Cycle
 As Vdc is lower than Vce after t1, the current
decreases to zero at t2, when the resonant voltage
reaches its maximum. This is also the point where the
transfer of the energy stored in the inductor to the
capacitor is completed. The peak level of the resonant
voltage has a direct relationship with the turn-on time
of the switch (MODE IV: t5-t6).

 After t2, the capacitor starts discharging the energy to


the inductor, which causes the voltage and the current
flowing in inverse to decrement and at t6, the
switching circuit is turned off, returning to MODE I. As
the peak level of the voltage is in direct relationship
with the on-duty frequency, one can manipulate this
level, i.e. output energy, by adding or reducing the on-
 Initially, S1 is turned off by the control circuit when the duty frequency. Reach its minimum level at t3, i.e.
current flowing through L* and S1 reaches its peak. Vce=Vdc, respectively. Passing t3, the resonant
current increases as Vce<Vdc and the discharge is
 At this point, Vc(0) = 0 V. There are four modes completed at t4.
available, as shown in Figure 6.
MODE III: t4-t5
Figure 6. Modes in Quasi-Resonant Converter
 After t4, the energy sent by the capacitor and stored in
the inductor, is converted to DC-LINK as the D1 diode
is forward biased. The resonant current is flowing
through D1 during the time S1 is turned ON.
MODE IV: t5-t6

 As the switching circuit remains turned on while the


current is freewheeling through D1, the current flows
in the right direction through the circuit and the
inductor starts to store the energy, which makes it
possible to do a zero voltage turn-on switching.

 At t6, the switching circuit is turned off, returning to


MODE I. As the peak level of the voltage is in direct
relationship with the on-duty frequency, one can
manipulate this level, i.e. output energy, by adding or
reducing the on-duty frequency.
From the above description, we can understand that the
peak current produced i.e. power delivered to the pan by
means of induction depends on duty cycle of the IGBT
MODE I: t0-t1 PWM.

 The switching circuit is turned off when the resonant The power control board is close to the electrified coil on
the bottom of the cooker. It includes the AC power input
current flowing through the circuit is at its peak, i.e. at
t0. In this process, a turn-off switching loss occurs. rectifier, choke, IGBT for DC/AC conversion, the zero-
The Vce level is rapidly increased by the capacitor voltage switching control circuit for IGBT, current sensing
(Cr) to become DC-LINK (Vdc) at t1. and other high voltage components, DC power supply, fan
and buzzer driver, and more. Figure 7 shows the block
 Even when the switch is turned off at t0, the current diagram of the power module board. All the components
keeps incrementing to reach its peak at t1, when Vce on this board are discrete components.
becomes equal to Vdc, as DC-LINK is higher than the
resonant voltage. At this point, the energy stored in
the inductor begins to be transferred to the capacitor.

www.cypress.com Document No. 001-50475 Rev. *C 4


Induction Cooker Design with CapSense®

Figure 7. Power Control Board Dual-Channel CapSense Scan


5V 12V 20V Dual-channel CSD scanning is a new feature of
Power POWER BOARD CY8C22x45. It has the following advantages over the old
Supply
Choker
Rectifier PAN CSD logic:
AC IGBT
IGBT
Driver
 The dual-channel CSD logic does not consume any
digital block resource.

Vcc
 It has two separated CSD logic and can support dual-
channel CSD scan.
CMP


CMP

Over-Vol
Dedicated clock resource frees the VC1/VC2/VC3
Pan NTC
Syn-Control
Over-Current
clocks for other system control.
CMP

Temperature
Vcc
Vref Control


IGBT Block
NTC
Temperature
PWM Duty Ref M8C needs to respond to only one interrupt for each
(20KHz PWM
Coil
Temperature
NTC PWM Enable and
Protection )
CapSense button scan.
5v
Driver Figure 9. Block Diagram of CSD2X
GND

1 2 3 4 5 6 7 8 9 10 11
FAN

Board Connector

Main controller board


The second PCB board is the main controller board based
on CY8C22x45. This board is responsible for system
control and user interface control, and the board is
mounted on the top side of the cooker. This board handles
the scanning of CapSense buttons and the LED displaying
control. It is also responsible for the entire system control,
including current, voltage, and temperature sampling,
generating PWM duty cycle for the induction cooker power
control, over-current, over voltage, and over temperature Figure 9 shows the block diagram of a single channel CSD
protection, menu operation control, and system status in CY8C22x45. An internal IDAC is used to charge the
display. A real-time clock provided by CY8C22x45 is also external capacitor Cmod. The value in counter represents
applied for the timer in the cooker. Figure 8 shows the the duty the IDAC is turned on. The counter data
block diagram of the main controller board. increases with the capacitance of CapSense. The clock to
drive IO_MUX can be fixed frequency clock or PRS output
Figure 8. Main Controller Board to reduce the EMI and noise effect. The Vref comes from
Board Connector
Vbg or VDAC. Digital blocks and VC1/VC2/VC3 are not
Controller
BOARD 1 2 3 4 5 6 7 8 9 10 11 used, and they are free for other customer functions, for
5v example, UART or SPI.
When the user module runs, only one interrupt can
I/O I/O
happen at the end of the scan. This allows the CPU to
MUX 8-bit PWM
release more MIPS, and allows multisource interrupts. The
8-bit PWM
10bit
SAR ADC
analog bus is split into two separate sections: left analog
bus and right analog bus. As a result, it can
simultaneously support dual-channel CSD scan.
8-bit PWM M8C Core

CY8C22x45 The dual-channel CSD user module consumes only CSD


Dual-chanel
CSD Module
SPI logic, two analog columns, left and right analog bus, and
I/O
dual-channel IDAC. The following figure shows the
12 Buttons 5V
consumption.
74LS164 IO
Expansion

LEDs
LED Segments

www.cypress.com Document No. 001-50475 Rev. *C 5


Induction Cooker Design with CapSense®

Figure 10. Resource of CSD2X Board Connector Definition and Description


The following table indicates the board connector
definition and description.
Table 1. Board Connector Definition

Pin Type Description

1 Power Power Supply of 5 V


2 Analog Input Temperature of Coil
3 Analog Input Temperature of IGBT
4 Analog Input Temperature of Pan
I/O Expansion by 74HC164
5 Digital Output PWM Output Signal for Power Control
I/O expansion is necessary in many home appliance
applications. Typically, a serial-parallel converter logic 6 Analog Input AC RSM Voltage
chip, such as 74HC164, is applied to the system for LED 7 Analog Input AC Average Current
control. 74HCT164 are 8-bit edge-triggered shift registers
with serial data entry and output from each of the eight 8 Digital Output PWM Output Enable Signal
stages. As a result, the system can consume less I/Os 9 Digital Output Fan Output
than the solution that drives the LED directly. The input
signals of 74HCT164 are Data and Clock. This is in 10 Digital Input Zero-crossing Signal of Resonance
compliance with the SPI bus. See the Appendix Board Circuit.
Schematics (Figure 16Figure 16 and Figure 17) for more 11 Ground Ground
information.

Low-Pass Filter for Analog Signal System Firmware


There are four analog signals in the control board. They
are all voltage signals, including the AC RMS voltage, AC The system firmware is relatively complicated. Because
average current, and the temperatures of the pan and the system functions include the user interface control,
IGBT. The range of these signals is from 0 to 5 V. such as the CapSense button scan and LED display, it
Because these signals are the output from the noise also includes the analog signals sampling and internal
power board, a capacitive low-pass filter is designed timer. In addition, the control algorithm implementation
before the signal enters PSoC. Figure 11 shows the such as fixed temperature control algorithm, stable power
typical circuit. control algorithm, multiple protections, and induction
cooker kernel functions are also included. Figure 13
Figure 11. Capacitive Low-Pass Filter shows the high-level flow chart of the firmware.
For each cooking mode the firmware uses either constant
Vin Vout
temperature or constant power. For both power or
R C temperature control, the ON time of the IGBT PWM is
controlled. A PI controller is used for the same which is
explained in the section “PI Close Loop Control Algorithm”.
The cutoff frequency is: When the pan is placed on the cooker top, the inductance
fcutoff = 1/2πRC Equation 1 of the resonant converter (L*) is increased. This effectively
decreases the switching frequency. The sync control
In Equation 1, assuming the value of R is 47 kΩ and the signal shown in Figure 11 is the zero crossing signal of the
value of C is 0.1 µf, then the circuit gets a cutoff frequency resonant converter voltage. The sync control pulses are
at 33.9 Hz. This is because these signals change very counted for a fixed period. Thus the number of sync
slowly, especially the temperature signals of the pan and control pulses would thus be less when the pan is present
IGBT. The parameters of this capacitive low-pass filter can compared to when the pan is absent. If the Pan is not
meet the system design requirement. present the IGBT is turned OFF.
The CT is used to measure the current from the AC mains.
We limit the IGBT PWM maximum duty cycle such that the
peak current is less than 10 A.

www.cypress.com Document No. 001-50475 Rev. *C 6


Induction Cooker Design with CapSense®

The temperatures sensors are used to measure PAN, Figure 13. Flow Chart of Firmware
IGBT and Coil temperature. The limiting values for PAN,
IGBT and Coil temperatures are 300, 80, and 80 °C.
Start
Fan is used to cool the IGBT and quasi resonant converter
coil. PWM signal for driving the fan is generated by the
Main controller board. Hardware/Register Initialization
Figure 12. Power Board

Working Mode Control Module

LED Diaplay Module

ADC Module (AC voltage, current, NTC


Pan, NTC IGBT)

Buzzer Control Module

Fan Control Module

Button Scan (CSD) Module

IGBT Control Module


(Actual Power Calculation,
Pan Auto-detect
fixed temperature control algorithm
stable power control algorithm )

Protection Module

www.cypress.com Document No. 001-50475 Rev. *C 7


Induction Cooker Design with CapSense®

PSoC Digital Block and Analog Resources LEDs and 7-Segment Digital LED Display
Consumed Refresh
The following table lists the digital blocks, analog blocks, The user interface of the induction cooker is important,
and other resources consumed in the induction cooker because the end user exchanges all information through it.
system. In the design, the 74HC164 is used to expand the I/O to
drive the four 7-segment LED display. Any delay in
Table 2. PSoC Digital Block and Analog Resources refreshing results in the blinking of the LED. So an 8-bit
timer is used in the firmware, and the interrupt of the timer
Name Description requests the LEDs to be refreshed. A display buffer,
whose value is set in main loop, is also used to refresh
DBC00 PWM8 for IGBT power control
The LEDs. In the Timer8 IRQ, the contents of this buffer
DBC01 PWM8 for buzzer control are sent out through the SPI user module, which is
cascaded with the 74HC164 for LED driving. The LEDs
DCC02 Timer8 for internal click are grouped by 6, and each group is turned on in
DCC03 SPIM for 74HCT164 driving sequence. The scan interval is set as 2 ms or 3 ms, so the
refresh rate is around 55 Hz to 83 Hz.
DBC10 PWM8 for fan control
The following firmware shows the scan of the LED display:
DBC11 Counter8 for UART clock (Optional)
BYTE baLedBuf[6];
DCC12 UART TX for system debug (Optional) // display buffer
DCC13 UART RX for system debug (Optional)
The refreshing code in the Timer8 IRQ is:
ACE02 Used be CSD2X for button scan
ACE 03 Used be CSD2X for button scan void Timer8_ISR( void )
{
CSD2X Button scan static BYTE bLedTimer;
RTC System timer wTick++;
// global for tick
SAR10 Analog signals sampling
if( wTick - bLedTimer > LEDONTIME )
// period is 2ms
Figure 14. System Interconnection {
bLedTimer = wTick;
bComInx ++;
if( bComInx>=LEDCOMNUM)
bComInx = 0;
switch( bComInx )
{
case 0:
LED_COM5_OFF;
SPIM_TX_BUFFER_REG =
baLedBuf[0];
LED_COM0_ON;
break;
case 1:
LED_COM0_OFF;
SPIM_TX_BUFFER_REG =
baLedBuf[1];
LED_COM1_ON;
break;
case 2:
LED_COM1_OFF;
SPIM_TX_BUFFER_REG =
baLedBuf[2];
LED_COM2_ON;
break;
case 3:
LED_COM2_OFF;

www.cypress.com Document No. 001-50475 Rev. *C 8


Induction Cooker Design with CapSense®

SPIM_TX_BUFFER_REG = PI Close Loop Control Algorithm


baLedBuf[3];
LED_COM3_ON; The induction cooker can support fixed power cooking and
break; fixed temperature cooking modes. PI close loop control is
case 4: applied in both the fixed power cooking mode and the
LED_COM3_OFF; fixed temperature cooking mode. The PI control algorithm
SPIM_TX_BUFFER_REG = is very useful in a continuous control system. There are
baLedBuf[4]; two basic PI control algorithms: absolute mode and
LED_COM4_ON; increment mode PI control algorithm. The following
break; equation is a discrete expression of the position mode of
case 5: the PI algorithm.
LED_COM4_OFF; uk = KP*ek + KI * ∑(i=1)(k-1)ei + u0 Equation 6
SPIM_TX_BUFFER_REG =
baLedBuf[5];
In Equation 6:
LED_COM5_ON;
break; is power error.
is the integration coefficient.
IIR Low-Pass Digital Filter is the proportional coefficient.
The digital filter is widely used in the control. However, not Another mode of PI algorithm is the increment mode, and
all digital filters can be implemented on the PSoC, the formula is:
because many digital filters need enhanced MAC units to ∆uk = uk - u(k-1) = KP*(ek - e(k-1) ) + KI * ek Equation 7
speed the calculation. In this system, a simple one order
IIR low-pass digital filter is introduced, and the IIR filter is Compared to the absolute mode PI algorithm, the
used for all analog input signal processing. The algorithm increment mode PI algorithm has the following
is shown in the following formula. advantages:
yn = a * xn + (1 – a) * yn-1 Equation 2
 There is no accumulation using this formula, and the
In Equation 2: result can be obtained by the last two sample values.

is the filter coefficient.  The output of this formula is the increment value, and
with firmware protection there is less chance for
is the current sampling value. errors.
is the current output of filter.
 The complexity of increment mode PI algorithm is less
is the last output of filter. than that of absolute mode. It can save more PSoC
system resources.
To finish the calculation, the multiplication and addition
operations need two times. Considering the PSoC CPU Figure 15 shows the block diagram of PI algorithm power
resources, the calculation is still complicated. To achieve control for fixed power cooking mode.
the low-pass filter and simplify this algorithm, the special Figure 15. Block Diagram of PI Algorithm Power Control
filter coefficient is required. For example, using
the following formula is obtained: Control Board Power Board

yn = 0.25 * xn + 0.75 * y(n-1) Equation 3 Voltage Sample


Power Caculation
Current Sample
Replacing multiplication operation with bit-shifting
Power -
operation, the formula can be changed to: Ref + PWM Low Pass IGBT Controller Main Resonant
Σ PI
Controller Filter and Driver Circuit
yn = xn≫2 + y (n-1)≫1+y(n-1)≫2 Equation 4

With this equation, only three bit-shifting operations and


three addition operations are need for the calculation. In The PWM output is the control signal of the main resonant
this system, the value of is 0.25. The cutoff frequency of power. Through a low-pass filter in the power control
this filter is 1.33 Hz, according to the following formula with board, a reference voltage is achieved. The reference
a sampling period of 40 ms. voltage is the input signal of IGBT control logical circuits,
which has functions of pulse generation, synchronization,
fcutoff = a/2πT(1-a) Equation 5 protection and IBGT driver. The main resonant circuit
output increases with the reference voltage. As a result,
In Equation 5, is the sampling period. the induction cooker power can be adjusted by changing
the duty of PWM.

www.cypress.com Document No. 001-50475 Rev. *C 9


Induction Cooker Design with CapSense®

If the induction cooker works in fixed power cooking mode,


the close loop is implemented in the following steps:
About the Author
sample RSM value of voltage and RSM value of current of Name: Robin Chen
main resonant circuit; calculate current power; compare
with reference power and get error; adjust the duty of the Title: Application Engineer Staff
PWM output according to the PI algorithm.
Contact: robc@cypress.com

Summary Name: Jemmey Huang


This application note describes induction cooker control Title: Product Apps Manager Sr.
system based on PSoC chip CY8C22x45. With the
assistance of PSoC device, all the functions of the control
Name: Vincent Cai
board can be integrated into one chip. With few external
components and optimized algorithm, this design Title: Application Engineer Sr.
incorporates all the kernel functions of the induction
cooker, CapSense button scan, stable power close loop Contact: wcai@cypress.com
control, and fixed temperature close loop control.

www.cypress.com Document No. 001-50475 Rev. *C 10


Induction Cooker Design with CapSense®

Appendix A
Figure 16. Board Schematic

J41
5V_IN
R84 560R
1
1 1 SEN1
2 R41 47k TXP COM1 Button
2
COM2
3 R44 47k TIGBT
3 VCC
R48 47k R83 560R
4 TMB 1
4 Button SEN2
R51 0

CMODR
PWM

CMODL
5

TIGBT
5

TXP

CUR
TMB
R82 560R

VIN
COM2

COM1
6 R46 47k VIN
6 1 SEN3
7 R47 47k CUR Button
7
R49 0 U1

44

43

42

41

40

39

38

37

36

35

34
8 GJ_INT R81 560R
8
9 R52 0 FAN 1 SEN4

P2.7

P0.1

P0.3

P0.5

P0.7

Vdd2

P0.6

P0.4

P0.2

P0.0

P2.6
9 Button
10 R53 0 PAN
10 1 33 BUZ
P2.5 P2.4 R80 560R
11
11 C12 C14 C16 C17 C19 GJ_INT 2 32 FAN 1 SEN5
P2.3 P2.2 Button
VCC
Connect 0.1u 0.1u 0.1u 0.1u 0.1u PWM 3 31 PAN
P2.1 P2.0
R79 560R
4 30
Vdd1 Vss1 1 SEN6
SEN11 5 29 SEN12 Button
P4.5 P4.4
5V_IN
SEN9 6 28 SEN10
P4.3 P4.2 R78 560R
SEN7 7
CY8C22545-TQFP 27 SEN8 1 SEN7
L1 VCC P4.1 P4.0 Button
8 26
Vss2 XRES
SEN5 SEN6 R77 560R
9 25
P3.7 P3.6 1 SEN8
SEN3 10 24 SEN4 Button
+ + P3.5 P3.4
C15 C5 BEAD C6 C18
100u/16v SEN1 11 23 SEN2
0.1u 0.1u 100u/16v P3.3 P3.2 R76 560R
1 SEN9

Vss3
P3.1

P1.7

P1.5

P1.3

P1.1

P1.0

P1.2

P1.4

P1.6

P3.0
Button
12

13

14

15

16

17

18

19

20

21

22
R75 560R
1 SEN10
COM3

COM5

COM4 Button
SPI_IO

COM6
VCC R74 560R
1 SEN11
SPI_CLK Button

C8 C9 C10 R73 560R


0.1u 0.1u 0.1u I2C_SDA 1 SEN12
Button
I2C_SCL

COM3 COM5
SPI_IO

C7
VCC
LS1 CMODL

BUZ 4.7n
VCC C11
CMODR
SPEAKER J7
1
2 1 4.7n
3 2
I2C_SCL 4 3
I2C_SDA 5 4
5
5 PIN HDR

Cypress Semiconductor
Title
Induction Cooker Demo Kit
Size Document Number Rev
B 1.0

Date: Tuesday , December 02, 2008 Sheet 1 of 1

www.cypress.com Document No. 001-50475 Rev. *C 11


Induction Cooker Design with CapSense®

Figure 17. Schematic Drawing of Induction Cooker Evaluation Kit

U4 Numerical LED
1 14 SEG1
ANODE1 CATHODE_A 16 SEG2
2 CATHODE_B 13 SEG3
ANODE2 CATHODE_C 3 SEG4
6 CATHODE_D 5 SEG5
ANODE3 CATHODE_E 11 SEG6
8 CATHODE_F 15 SEG7
ANODE4 CATHODE_G 7 SEG8
CATHODE_DP

NC2

NC3

NC4
NC
4

10

12
COM1 R72 4.7K Q4
R71 4.7K Q1
COM2 R70 4.7K Q3 Q2
COM3 R69 4.7K
COM4
SS9014
SS9014
SS9014
SS9014

SEG1

SEG2

SEG3

SEG4

SEG5

SEG6
VCC VCC
U3
C13 0.1uF SEG7
R20 10K 9 14
8 RESET VDD
SPI_CLK CLK
6

SPI_CLK 3 R92 200R SEG1


QA 4 R91 200R SEG2
2 QB 5 R90 200R SEG3 SEG8
SPI_IO SPI_IO B QC SEG4
6 R89 200R
1 QD 10 R88 200R SEG5
A QE 11 R87 200R SEG6

1
QF 12 R86 200R SEG7
7 QG 13 R85 200R SEG8
GND QH
LED1 LED2 LED3 LED4
LED5 LED6 LED7
MC74HC164ADT LED1 LED2 LED3 LED4
LED5 LED6 LED7

2
1

1
1

LED11
LED9 LED10 LED12 LED13
LED8 LED9 LED10 LED11 LED12 LED13
LED8

2
2

Q6
R67 4.7K
COM5
SS9014

Q5
R68 4.7K
COM6
SS9014

Cypress Semiconductor
Title
Induction Cooker Demo Kit
Size Document Number Rev
C 1.0

Date: Tuesday , December 02, 2008 Sheet 1 of 1

www.cypress.com Document No. 001-50475 Rev. *C 12


Induction Cooker Design with CapSense®

Figure 18. Photograph of Induction Cooker Evaluation Kit

www.cypress.com Document No. 001-50475 Rev. *C 13


Induction Cooker Design with CapSense®

Figure 19. Induction


Induction Cooker Cooker FW Architecture
FW Architecture Flow Chart
Flowchart

Main Loop Timer ISR

Start Start

Hardware/Register Initialization
Tick++

Working Mode Control Module

LED Refreshing
LED Diaplay Module

ADC Module (AC voltage, current, NTC End


Pan, NTC IGBT)

Buzzer Control Module

Fan Control Module

Button Scan (CSD) Module

IGBT Control Module


(Actual Power Calculation,
Pan Auto-detect
fixed temperature control algorithm
stable power control algorithm )

Protection Module

www.cypress.com Document No. 001-50475 Rev. *C 14


Induction Cooker Design with CapSense®

Document History
®
Document Title: Induction Cooker Design with CapSense - AN50475
Document Number: 001-50475

Revision ECN Orig. of Submission Description of Change


Change Date

** 2616863 JHU/AESA 01/07/2009 New application note.


*A 3197603 SSHH 03/16/2011 Changed the default compiler to Image craft from Hi-tech in the PSoC Designer
setting.
*B 3604206 BLJI 04/30/2012 Added details about Quasi-resonant converter.
Updated project to PSoC Designer 5.2 SP1.
Updated template.
*C 4757034 VAIR 05/06/2015 Obsoleting this AN.

www.cypress.com Document No. 001-50475 Rev. *C 15


Induction Cooker Design with CapSense®

Worldwide Sales and Design Support


Cypress maintains a worldwide network of offices, solution centers, manufacturer’s representatives, and distributors. To find
the office closest to you, visit us at Cypress Locations.

Products PSoC® Solutions


Automotive cypress.com/go/automotive psoc.cypress.com/solutions
Clocks & Buffers cypress.com/go/clocks PSoC 1 | PSoC 3 | PSoC 5
Interface cypress.com/go/interface
Cypress Developer Community
Lighting & Power Control cypress.com/go/powerpsoc
cypress.com/go/plc Community | Forums | Blogs | Video | Training
Memory cypress.com/go/memory
Optical Navigation Sensors cypress.com/go/ons
Technical Support
cypress.com/go/support
PSoC cypress.com/go/psoc
Touch Sensing cypress.com/go/touch
USB Controllers cypress.com/go/usb
Wireless/RF cypress.com/go/wireless

PSoC is a registered trademark of Cypress Semiconductor Corp. "Programmable System-on-Chip," PSoC Designer, and CapSense are trademarks of
Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are the property of their respective owners.

Cypress Semiconductor Phone : 408-943-2600


198 Champion Court Fax : 408-943-4730
San Jose, CA 95134-1709 Website : www.cypress.com

© Cypress Semiconductor Corporation, 2009-2015. The information contained herein is subject to change without notice. Cypress Semiconductor
Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any
license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or
safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as
critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide
patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a
personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative
works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the
right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or
use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support systems
application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.

www.cypress.com Document No. 001-50475 Rev. *C 16

You might also like