Progress on Arduino

Jessica Tyerman - Mon 4 May 2020, 2:17 pm

The past few days I've been working on getting the technology in Emily to a point where I'm satisfied. Currently, my Arduino is able to detect when the light is above a certain level and check for movement in the room. If there is movement in the room, the green light turns on but if no movement is detected the red light will be activated. This indicates whether the lights should remain on or is a waste of energy. Then the temperature of the room is detected and compared to the "temperature" of outside. If the temperatures are within 2 degrees of each other, the light will turn red. If the temperatures are within 5 degrees of each other, the light will turn yellow. If the temperature inside is the more than 5 degrees different from the temperature outside, the light will turn green. At this point, I only have it compared to dummy data rather than being able to access the current outside temperature itself.


I had some trouble being able with my code, some fair mistakes and some incredibly silly. I couldn't get my code to work and gave up on it for the night. As I was falling asleep, it occurred to me that I had put = instead of == to compare to values. Little moments like this cause a little or a lot more time to be spent on the work then is needed. Then again I feel like that is the struggle of programming... I feel like I am finally starting to understand what I need to do to improve and satisfy my code. I still want to work out how to input live data for the outside temperature. I also hope to add in different responses as right now it is only visually annoying or pleasing but does not do anything else to grab the users attention.