
Tired of sparking relays? In 1–2 hours, put together a medium-complexity dimmer that tracks watts for just ₹830.
Mechanical switches and electromechanical relays are everywhere in home appliances and control panels. But their moving contacts wear out, degrade, spark, and eventually fail. Switching is slow, and control is limited to on/off, with no say over how much power reaches the load. A conventional relay also needs its coil energised all the time to stay on, which wastes power, while its contacts arc when switching inductive loads. Furthermore, a relay tells you nothing about what the load is actually drawing; for that you need a separate meter.
Building power control and power monitoring together sounds daunting, but this project needs no microcontroller programming. Fig. 1 depicts the author’s prototype, while Fig. 2 shows the block diagram.

A potentiometer-controlled BT136 TRIAC adjusts the power delivered to the AC load. Because it has no moving contacts and needs no energised coil, it can dim an incandescent bulb smoothly. The circuit is intended for supplies up to 260V AC and loads up to 4A, subject to the ratings and thermal design of the complete assembly.

A PZEM-004T meter module is wired on the load side of the dimmer and measures voltage, current, active power, frequency, power factor, and energy. It communicates with a laptop or PC using the Modbus RTU protocol, through a USB-to-TTL interface. A monitoring dashboard displays and records electrical readings, estimates electricity usage costs, calculates electricity bills based on your configured tariff, and provides historical consumption data.
| Bill of Materials | ||||
| Reference | Component | Value/Type | Quantity | Cost (`) |
| TRIAC1 | Triac | BT136 | 1 | 15 |
| R1 | Resistor | 10kΩ, 250mW, ±1% | 1 | 5 |
| POT1 | Potentiometer | B500K | 1 | 5 |
| MOD1 | Power meter module | PZEM-004T 10A V4.0 | 1 | 700 |
| CONN2 | Screw terminal block | 2-Pin | 1 | 5 |
| USB-to-TTL converter module | USB-to-TTL | 1 | 100 | |
| Total | 830 | |||
What will you learn?
Through this project, you will learn how to:
- • Design a basic solid-state AC power controller using a TRIAC.
- • Understand AC power switching and phase-angle control.
- • Control the brightness of an incandescent bulb using a potentiometer.
- • Interface a PZEM-004T energy-monitoring module using Modbus RTU.
- • Establish USB-to-TTL serial communication between a power-monitoring module and a computer.
- • Retrieve electrical parameters using Modbus communication.
- • Build a real-time power-monitoring dashboard using Web Serial.
- • Calculate electricity consumption and estimated electricity bills.
- • Record and analyse voltage, current, power, frequency, and energy readings.
How it works
Fig. 3 shows the circuit diagram of the IoT solid-state power controller. It combines AC power monitoring using a PZEM-004T 10A V4.0 energy-monitoring module with TRIAC-based solid-state power control. The circuit is divided into two main sections: power monitoring and AC load control.

Power monitoring is done by the PZEM-004T module. It measures the electrical parameters of the connected AC load and communicates using the Modbus RTU protocol. Its RX and TX terminals are connected to a galvanically isolated USB-to-TTL interface, which links the module to a computer. A web application uses the Web Serial API to retrieve and decode measurement data and display it on a dashboard.
The dashboard displays real-time AC voltage, load current, active power, frequency, power factor, and accumulated energy consumption (kWh). It also estimates electricity costs based on the tariff entered by the user. Measurement records can be stored and exported for further analysis.
The load-control section uses a BT136 TRIAC as the main switching device. POT1 (500kΩ) and resistor R1 (10kΩ) form the gate-triggering arrangement. Adjusting the potentiometer changes the TRIAC firing angle and, consequently, the power delivered to the AC load. This provides manual phase-angle control, making it suitable for adjusting the brightness of incandescent lamps. It does not provide regulated AC voltage.
The PZEM-004T is connected in the AC supply path to monitor the load’s electrical parameters, while the BT136 TRIAC is connected in series with the load to control the delivered power. The module’s communication terminals are interfaced with the computer through the galvanically isolated USB-to-TTL interface.
Design note





