Beyond On/Off: Build A Metered Solid-State Dimmer

efy-tested-1

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.

Author’s prototype Solid-State Dimmer
Fig. 1: Author’s prototype

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
ReferenceComponentValue/TypeQuantityCost (`)
TRIAC1TriacBT136115
R1Resistor10kΩ, 250mW, ±1%15
POT1PotentiometerB500K15
MOD1Power meter modulePZEM-004T 10A V4.01700
CONN2Screw terminal block2-Pin15

USB-to-TTL converter moduleUSB-to-TTL1100

Total

830
Table A

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

EFY Icon

EFY++ CONTENT: ACCESS TO THIS CONTENT IS FREE! BUT YOU NEED TO BE A REGISTERED USER.

Oops! This is an EFY++ article, which means it's our Premium Content. You need to be a Registered User of our website to read its complete content.

Good News: You can register to our website for FREE! REGISTER NOW

Already a registered member? If YES, then simply login to you account below. (TIP: Use 'forgot password' feature and reset and save your new password in your browser, if you forgot the last one!)

Loading form…
Ashwini Sinha, Inventor of IndusBoard Coin from EFY Labs
Ashwini Sinha, Inventor of IndusBoard Coin from EFY Labs
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.

SHARE YOUR THOUGHTS & COMMENTS

Latest DIY Projects

Truly Innovative Electronics

Electronics News

Electronics Components

Electronics Jobs