While hosting house parties is no easy feat, one hassle that we constantly struggled with was changing bulbs in our living room according to the mood and overall environment. The living room also doubled as a sunroom for plants and a night study area, which are completely different setups and call for special lighting. In order to fix this, I build AmbiLight.
To sense the outside weather and light to adapt the indoor environment to it.
For the preliminary section of this project, I interviewed my roommate and conducted a co-design session with him. We pointed out numerous avenues of home improvement but came up with three ideas that would make the most difference. Because of our busy schedules, the only fun time that we get to spend together indoors is when we host house parties. We realized this was a great opportunity to make the preparation easier by solving the lighting issue. I examined and tested multiple sensors but understood that using a temperature sensor and LDR would make the most sense. The following is the list of components employed in the project:
After testing out the sensors individually, I was able to receive celsius and fahrenheit values of temperature, and sense if LDR is letting current pass through it or not.
Through code, I first detected if it's getting dark via LDR, taking a digital input at D1. If this condition holds true, either of the blue or red LED may light up, depending upon the temperature condition in the loop. The relation is:
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .