The idea to implement the IoT function in the additional light controller was born after I evaluated the possibilities of the cloud service and mobile application myDevices Cayenne for developing IoT devices on Raspberry Pi and Arduino.
At the moment, the controller is used to automatically control the lighting of the working area in the kitchen, to monitor the lighting level and temperature in the room. With a mobile application (or browser), I can turn on the backlight to full brightness, in real time see the level of illumination, temperature and mode of operation of the controller (PWM mode).
Do you have plans to add further home areas to your project? Do you let the motion sensor turn on the lights initially and then just tweak them with the app?
Oh yeah. I have thoughts on extending the functionality of this controller. For example, add another temperature and humidity sensor. I want to realize the automatic control of the kitchen hood, but I still do not know how to implement the algorithm for this. A matter of time … And I want to add a manual mode (from the application) to control the brightness of the lighting.
In addition, as I said in the first message, I implemented and have already tested the firmware update of the controller over Wi-Fi (OTA). However, I will discuss this in more detail later. This, so to speak, the first step to extend the functionality of the controller
No. I realized automatic control of work area lighting. Automatic brightness control depending on the room lighting (two modes of operation: day and night) and the presence of movement. In other words, the motion sensor is the first stage in the control algorithm, then the data on the current level of illumination and its change are used. Further, the motion sensor response signals are used to switch the operation modes.
I tried to comment on the sketch in detail.