Journal of Applied Science, Technology & Humanities
Vol. 3 No. 5 (2026): November 2026

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

Zahra Fadhail (IPB University)
Mikhail Rafi Azka (IPB University)
Pandu Akmal Fauzan (IPB University)
Syahrial Iskandar (IPB University)
Annisa Raihanah Maimun (IPB University)
Muhammad Rizky Caesar (IPB University)



Article Info

Publish Date
29 Nov 2026

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.

Copyrights © 2026






Journal Info

Abbrev

batrisya

Publisher

Subject

Humanities Computer Science & IT Control & Systems Engineering Economics, Econometrics & Finance Social Sciences

Description

Journal of Applied Science, Technology & Humanities is published by Batrisya Education. Published five times a year, in January, March, June, September, November and already have a registration number ISSN 3032-5765, DOI: https://doi.org/10.62535/jasth. Journal of Applied Science, Technology & ...