Doing something interesting with my knowledge …….
After learning about programming, I thought about doing something interesting. So I thought “Can I use my coding knowledge to make something easy at home?”
Finally!!!!! I came up with an idea. So the idea was about the gate light in my home. It was very annoying to switch on the light in the evening and to switch off the light at night. I thought to work on this matter to make this situation easy for me. I used an arduino board for this task. I had used Arduino back in the days for some of my projects but it’s been a while since I’ve last used Arduino.
For this project, I thought about using a LDR sensor but it’s not working properly because of the changes in the intensity of the sunlight. So using LDR was a bad idea. The next idea was about using a RTC(real-time clock) module and that was a challenging task because I haven’t used that module before. I did some testing to understand how does the module work and how am I gonna use this in my project.
After knowing the behavior of this module It was easy to finish the code. Before using this module I had to sync the correct time & date to this module, the specialty of this module is that when you sync the time & date once it keeps running until the disk battery is dead, it takes about one year. So the battery must be replaced after the existing battery is dead. In my code, I set up the light to be turned on and to be turned off to a specific time. So after finishing the coding part, I moved to the hardware part. I used a relay to trigger the lights with the Arduino's signal and now it's working smoothly…..Well, that's it!!!!