Implementation of Mamdani Fuzzy Logic for Office Lighting Control Based on Time and Motion Detection

Electrical energy waste in office rooms can occur when lamps do not adapt to ambient light conditions, human presence, and time. This study implements Mamdani fuzzy logic on an ESP32 to regulate lamp brightness intensity based on three input variables, namely light intensity using an LDR sensor, human presence using a PIR sensor, and time using an RTC. The light variable consists of dark, dim, and bright; human presence consists of present and absent; while time consists of morning, active, and night. The system output is the lamp brightness level with fuzzy sets off, dim, medium, and full bright. The system uses 12 fuzzy rules with Mamdani inference, minimum operator, maximum aggregation, and centroid defuzzification. Testing was carried out by simulation using seven main scenarios and nine verification points. The results show that the system is able to produce different brightness levels according to combinations of input conditions. At 150 lux, with human motion detected, and time 06:00, the system produced an output of 57.64% with a PWM value of 147 in the medium category. The system has the potential to regulate lighting adaptively, but testing did not include power consumption measurement and direct calibration of light intensity.

Authors

Institutions

Publication Details

Journal
Journal of Applied Science Technology & Humanities
Published
2026-11-29
DOI
https://doi.org/10.62535/rcezn534
Primary Topic
Fuzzy Logic and Control Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Implementation of Mamdani Fuzzy Logic for Office Lighting Control Based on Time and Motion Detection

Annisa Raihanah Maimun, Muhammad Rizky Caesar, Zahra Fadhail, Pandu Akmal Fauzan et al.
Journal of Applied Science Technology & Humanities
Fuzzy Logic and Control Systems
article

Implementation of Mamdani Fuzzy Logic for Office Lighting Control Based on Time and Motion Detection

Annisa Raihanah Maimun, Muhammad Rizky Caesar, Zahra Fadhail, Pandu Akmal Fauzan, Mikhail Rafi Azka, Syahrial Iskandar
article en

Abstract

Electrical energy waste in office rooms can occur when lamps do not adapt to ambient light conditions, human presence, and time. This study implements Mamdani fuzzy logic on an ESP32 to regulate lamp brightness intensity based on three input variables, namely light intensity using an LDR sensor, human presence using a PIR sensor, and time using an RTC. The light variable consists of dark, dim, and bright; human presence consists of present and absent; while time consists of morning, active, and night. The system output is the lamp brightness level with fuzzy sets off, dim, medium, and full bright. The system uses 12 fuzzy rules with Mamdani inference, minimum operator, maximum aggregation, and centroid defuzzification. Testing was carried out by simulation using seven main scenarios and nine verification points. The results show that the system is able to produce different brightness levels according to combinations of input conditions. At 150 lux, with human motion detected, and time 06:00, the system produced an output of 57.64% with a PWM value of 147 in the medium category. The system has the potential to regulate lighting adaptively, but testing did not include power consumption measurement and direct calibration of light intensity.

Journal of Applied Science Technology & HumanitiesVol. 3(5)
IPB University (ID)
Fuzzy Logic and Control Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon