My dorm room started off as any old dorm room, but as the semester has progressed, it has evolved, more computers have been implemented, and slowly more electronics have found their way into the dorm room.
I started off with a simple rasberry pi / Arduino! based lighting controller that also could play music and speak over a simple speaker. After break, I added in a door reed switch, which now links to cell phones to intelligently turn off and on the dorm room’s lighting, but it also allows for an online override of its decisions to turn off or on the lights based on the time of day and guessed occupancy of the room, based on the presence of the resident’s smartphones.
The solution is implemented in about 30 lines of python, 40 lines of C++ / Wiring for the Arduino, and a slew of wires and hacks strung across the room that make this project possible.
Keep tuned for more updates as this simple system evolves - it’s amazing what you can do with a few parts and some code.