Home / Current Issue / Paper 1725957
CameraBased Automated Public Lighting with Motion Detection and ZoneBased Adaptive Control Using ESP32CAM
Subject area: Science,Engineering and Technology · Area of research: Internet of Things
Abstract
Many streetlights are constantly switched on at the same brightness, regardless of whether or not there is any traffic or people present. This project has developed a low-cost smart lighting system that can adapt its brightness depending on whether or not movement is detected in a given area. Our system comprises an ESP32-CAM microcontroller along with an OV2640 camera and light dependent resistor. The LDR detects light intensity and switches on the movement detection function in low-light conditions. Low definition images are periodically taken by the camera. Frame differencing is then applied to detect areas of change within these images. As this analysis occurs on the ESP32-CAM, there is no need for a separate computer to control the lighting system. The system is spatially segmented into a left, middle and right section. Once movement is recognised, the relevant section is identified and the LED in this area is brightened. The other LEDs remain on at a dim level. As movement continues, the previously highlighted section is slowly made darker. Thus, light can be focussed in the most appropriate area instead of all LEDs being continually at maximum brightness. Furthermore, the ESP32-CAM’s Wi-Fi functionality is exploited to transmit data regarding the system to the cloud, via Firebase. Although cloud interaction facilitates data storage, both movement and lighting functions are still executed at the point of detection. This project successfully integrates embedded technology, rudimentary computer vision analysis and cloud surveillance within a small form factor. The 3-section layout can furthermore serve as a foundation upon which to build, for instance by introducing further lighting sections and/or employing more sophisticated movement detection techniques suitable for real-world outdoor settings.
Keywords
Adaptive Public Lighting, ESP32CAM, Lightweight Image Processing, Motion Detection, Virtual Lighting Zones, Embedded Systems, Energy Efficiency, Firebase Cloud Monitoring
References
[1] S. P. Lau, G. V. Merrett, A. S. Weddell, and N. M. White, "A traffic-aware street lighting scheme for Smart Cities using autonomous networked sensors," Comput. Electr. Eng., vol. 45, pp. 192–207, 2015, doi: 10.1016/j.compeleceng.2015.06.011.
[2] M. Mahoor, Z. S. Hosseini, A. Khodaei, A. Paaso, and D. Kushner, "State-of-the-art in smart streetlight systems: A review," IET Smart Cities, vol. 2, no. 1, pp. 24–33, 2020, doi: 10.1049/iet-smc.2019.0029.
[3] A. Omar et al., "Smart city: Recent advances in intelligent street lighting systems based on IoT," J. Sensors, vol. 2022, Art. no. 5249187, 2022, doi: 10.1155/2022/5249187.
[4] M. Takruri et al., "Design and implementation of a real-time street light dimming system based on a hybrid control architecture," Int. J. Distrib. Sens. Netw., vol. 2023, Art. no. 6641563, 2023, doi: 10.1155/2023/6641563.
[5] S. Khemakhem and L. Krichen, "A comprehensive survey on an IoT-based smart public street lighting system application for smart cities," Franklin Open, vol. 8, Art. no. 100142, 2024, doi: 10.1016/j.fraope.2024.100142.
[6] M. U. Khan, A. M. Naeem, and H. Zia, "Raspberry Pi and computer vision based embedded system for the implementation of smart street lighting controls," in Proc. Int. Conf. Commun., Inf., Electron. Energy Syst. (CIEES), Nov. 2022, pp. 1–6. (Verified. This is a good vision-based comparison for your Table 4, since it uses a Raspberry Pi 4 instead of an ESP32-CAM.)
[7] S. D., K. V. Sagar, and S. Sushmitha, "A survey on IoT based real time, smart adaptive street lighting system with pollution monitoring for smart cities," Int. J. Recent Innov. Trends Comput. Commun., vol. 7, no. 1, pp. 21–26, 2019, doi: 10.17762/ijritcc.v7i1.5221.
[8] M. Piccardi, "Background subtraction techniques: A review," in Proc. IEEE Int. Conf. Syst., Man, Cybern., 2004, vol. 4, pp. 3099–3104.
[9] R. J. Radke, S. Andra, O. Al-Kofahi, and B. Roysam, "Image change detection algorithms: A systematic survey," IEEE Trans. Image Process., vol. 14, no. 3, pp. 294–307, Mar. 2005, doi: 10.1109/TIP.2004.838698.
[10] C. Stauffer and W. E. L. Grimson, "Adaptive background mixture models for real-time tracking," in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), 1999, vol. 2, pp. 246–252.
[11] M. F. Irawanto, A. M. Imammuddien, and R. A. Wijayanti, "Security camera implementation system on smart home using web-based frame difference methods," J. Jaringan Telekomunikasi (JARTEL), vol. 13, no. 1, 2023, doi: 10.33795/jartel.v13i1.537. (Verified. It uses frame differencing on an ESP32-CAM, and it notes that the method struggles at night, which fits your limitations discussion.)
[12] R. C. Gonzalez and R. E. Woods, Digital Image Processing, 4th ed. New York, NY, USA: Pearson, 2018.
[13] R. Szeliski, Computer Vision: Algorithms and Applications, 2nd ed. Cham, Switzerland: Springer, 2022, doi: 10.1007/978-3-030-34372-9.
[14] G. Bradski and A. Kaehler, Learning OpenCV: Computer Vision with the OpenCV Library. Sebastopol, CA, USA: O'Reilly Media, 2008.
[15] M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, "MobileNetV2: Inverted residuals and linear bottlenecks," in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2018, pp. 4510–4520.
[16] R. David et al., "TensorFlow Lite Micro: Embedded machine learning for TinyML systems," in Proc. Mach. Learn. Syst. (MLSys), 2021.
[17] P. Warden and D. Situnayake, TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers. Sebastopol, CA, USA: O'Reilly Media, 2019.
[18] International Commission on Illumination (CIE), Lighting of Roads for Motor and Pedestrian Traffic, CIE 115:2010, 2010.
[19] Espressif Systems, "ESP32 Series Datasheet." [Online]. Available: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf
[20] Google, "Firebase Realtime Database documentation." [Online]. Available: https://firebase.google.com/docs/database
How to cite this paper
@article{1725957,
author = {Mohaideen A, Mohith Poojar B E, Murali Mahadev Naik, Tejas H M},
title = {CameraBased Automated Public Lighting with Motion Detection and ZoneBased Adaptive Control Using ESP32CAM},
journal = {Iconic Research And Engineering Journals},
year = {2026},
volume = {10},
number = {5},
pages = {7638-7653},
issn = {2456-8880},
url = {https://www.irejournals.com/formatedpaper/1725957.pdf},
abstract = {Many streetlights are constantly switched on at the same brightness, regardless of whether or not there is any traffic or people present. This project has developed a low-cost smart lighting system that can adapt its brightness depending on whether or not movement is detected in a given area.
Our system comprises an ESP32-CAM microcontroller along with an OV2640 camera and light dependent resistor. The LDR detects light intensity and switches on the movement detection function in low-light conditions. Low definition images are periodically taken by the camera. Frame differencing is then applied to detect areas of change within these images. As this analysis occurs on the ESP32-CAM, there is no need for a separate computer to control the lighting system.
The system is spatially segmented into a left, middle and right section. Once movement is recognised, the relevant section is identified and the LED in this area is brightened. The other LEDs remain on at a dim level. As movement continues, the previously highlighted section is slowly made darker. Thus, light can be focussed in the most appropriate area instead of all LEDs being continually at maximum brightness.
Furthermore, the ESP32-CAM’s Wi-Fi functionality is exploited to transmit data regarding the system to the cloud, via Firebase. Although cloud interaction facilitates data storage, both movement and lighting functions are still executed at the point of detection.
This project successfully integrates embedded technology, rudimentary computer vision analysis and cloud surveillance within a small form factor. The 3-section layout can furthermore serve as a foundation upon which to build, for instance by introducing further lighting sections and/or employing more sophisticated movement detection techniques suitable for real-world outdoor settings.},
keywords = {Adaptive Public Lighting, ESP32CAM, Lightweight Image Processing, Motion Detection, Virtual Lighting Zones, Embedded Systems, Energy Efficiency, Firebase Cloud Monitoring},
month = {November},
}