Skip to content

A smart dimmer system built using an ESP32 microcontroller, controlled via a mobile app to adjust the brightness of an incandescent bulb.

Notifications You must be signed in to change notification settings

lucasmazz/smart_dimmer_controlled_by_mobile_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart Dimmer Controlled by Mobile App

A smart dimmer powered by the ESP32 microcontroller, enabling remote brightness control of a connected light through a mobile app via Wi-Fi.

smart dimmer

Requirements

Materials

The list of components used in this project are listed below:

  • 1x ESP32 microcontroller
  • 1x TRIAC
  • 1x 4N25 optocoupler
  • 1x MOC3021 optocoupler
  • 1x transformer
  • 4x diodes
  • 2x 100 Ω resistors
  • 1x 330 Ω resistor
  • 1x 10K Ω resistor

Overview

Key components and their functions include:

  • A transformer reduces power voltage to 12 V AC, with a bridge rectifier converting it to 6 V DC.
  • The 4N25 optocoupler provides zero-crossing detection and electrical isolation between the microcontroller and low voltage DC side.
  • A 10k pull-up resistor ensures stable logic levels, while other resistors limit current and protect components.
  • The MOC3021 optocoupler interfaces with the TRIAC, enabling the ESP32 to trigger the high voltage TRIAC safely.

In summary, the ESP32 receives zero-crossing signals from the 4N25 optocoupler, using this reference to calculate the trigger timing for the TRIAC via the MOC3021, thereby controlling dimming operations.

The complete circuit schematic is shown below:

Complete Circuit Schematic

Documentation

For detailed documentation, including the schematic, firmware code, and mobile app source, refer to the project website: Smart Dimmer Controlled by Mobile App.

Contributing

Contributions are welcome! Please fork the repository and submit pull requests for any improvements or bug fixes.

About

A smart dimmer system built using an ESP32 microcontroller, controlled via a mobile app to adjust the brightness of an incandescent bulb.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published