DIY Temperature Controller Using KYT84 & TRIAC

by LongTechnical in Circuits > Electronics

304 Views, 1 Favorites, 0 Comments

DIY Temperature Controller Using KYT84 & TRIAC

Temperature Controller Circuit Using KYT84 & Triac | JLCPCB
2026-08-16_17-15-26.png
2026-08-16_17-15-29.png
2026-08-16_17-16-17.png

In this project, I built a simple and practical AC temperature controller using the KYT84 temperature sensor.

The circuit is designed to control heating devices such as an electric iron, hot plate, food warmer, or other AC heating elements. It uses temperature feedback to automatically control the heater and maintain the desired temperature. The PCB from JLCPCB

The circuit also provides 0–100 percent power control, making it possible to adjust the heating power according to different applications.

The main components used in this project are the KYT84 temperature sensor, LM358 op-amp, CD4093, MOC3021 optocoupler, and TRIAC.

Supplies

2026-08-16_17-14-14.png
2026-08-16_17-14-33.png

KYT84 Temperature Sensor

LM358 Dual Op-Amp

CD4093 CMOS Schmitt Trigger IC

MOC3021 Optocoupler

PC817 Optocoupler

TRIAC

Resistors

Capacitors

Diodes

Transistors

Potentiometers

5V Voltage Regulator

Bridge Rectifier

Fuse and Fuse Holder

Screw Terminal Blocks

PCB Board

Connecting Wires

AC Power Cable

Electric Iron for Testing

Light Bulb for Testing

Multimeter

Oscilloscope

Soldering Iron

Solder Wire

How It Works

2026-08-16_17-13-12.png
2026-08-16_17-13-15.png
2026-08-16_17-13-22.png
2026-08-16_17-13-31.png
2026-08-16_17-13-48.png
2026-08-16_17-13-53.png

The circuit is divided into several main sections:

  1. 5 volt power supply
  2. AC zero-cross detection
  3. Duty-cycle control
  4. KYT84 temperature sensing
  5. LM358 comparator
  6. CD4093 pulse control
  7. MOC3021 optocoupler
  8. TRIAC heater control

The AC input is monitored by the zero-cross detection circuit using a PC817 optocoupler.

After rectification, the signal has a frequency of 100 hertz and is processed by the comparator section.

The LM358 processes the temperature feedback from the KYT84 sensor. The CD4093 then generates the control pulses used to drive the MOC3021 and TRIAC.

By changing the duty cycle, the output power can be adjusted from 0 to 100 percent.

KYT84 Temperature Sensor

2026-08-16_17-14-33.png
2026-08-16_17-14-45.png
2026-08-16_17-14-48.png
2026-08-16_17-14-56.png

The KYT84 is used as the temperature sensing element in this project.

Its resistance changes according to temperature. When the sensor is heated, its resistance increases. When the temperature decreases, the resistance also decreases.

This resistance change is converted into a voltage signal and processed by the LM358.

The circuit compares the measured temperature with the preset temperature and automatically controls the heater.

Temperature Control

2026-08-16_17-15-23.png
2026-08-16_17-15-26.png
2026-08-16_17-15-41.png

When the temperature is below the set value, the circuit supplies power to the heater.

As the temperature increases and reaches the preset value, the control circuit reduces or turns off the heater power.

When the temperature falls below the set point again, the heater is powered on again.

This allows the circuit to maintain the temperature automatically.

Testing With an Electric Iron

2026-08-16_17-16-08.png
2026-08-16_17-16-17.png

For the practical test, I used an electric iron as the heating load.

To make the operation easier to see, I also used a light bulb as an indicator.

When I heat the KYT84 sensor, the sensor temperature increases and the circuit turns off the heater.

When I remove the heat source, the sensor gradually cools down. Once the temperature falls below the set value, the circuit turns the heater back on.

This demonstrates the basic operation of the temperature feedback system.

0–100% Power Control

2026-08-16_17-15-37.png
2026-08-16_17-15-48.png

One of the useful features of this circuit is the adjustable output power.

The power delivered to the heater can be adjusted from 0 to 100 percent, making the circuit suitable for many different heating applications.

This can be useful for:

  1. Electric irons
  2. Hot plates
  3. Food warmers
  4. Heating elements
  5. DIY reflow or heating plates
  6. Temperature-controlled heaters
  7. Other AC heating devices

In the future, I plan to develop this circuit into a dedicated heating plate for soldering surface-mount components.

PCB

2026-08-16_17-11-39.png
2026-08-16_17-12-03.png
2026-08-16_17-12-34.png
2026-08-16_17-12-42.png

I designed a dedicated PCB for the project to make the circuit compact and easier to assemble.

The PCB was manufactured by JLCPCB, and I was very impressed with the quality of the finished board.

The components are arranged into separate functional sections, making the circuit easier to assemble, test, and troubleshoot.

Project Files

I have also shared the project files, including the schematic and Gerber files.

You can download the files and build your own version of this temperature controller.

This project demonstrates how a relatively simple analog circuit can be used to create an automatic temperature controller without using a microcontroller.

The combination of the KYT84, LM358, CD4093, MOC3021, and TRIAC provides a practical solution for controlling AC heating devices.

There are still many possibilities for improving and developing this circuit, and I hope this project gives you some ideas for your own electronics projects.

Thanks for reading, and I hope you enjoyed this project!

⚠️ Safety Warning: This circuit works with AC mains voltage. Always use proper isolation, insulation, fuses, and safety precautions when testing or building the circuit. Do not touch the circuit while it is connected to mains power.