This is small Building Management System...just for my bedroom/workroom
Inputs are motion detection, temperature, light level, 2+2 buttons (2 can not be locked, just press and release).
Outputs are speaker, 4 power sockets at 220V, logging to SD card, sending commands to the PC.
I used Arduino Uno + Memory Shield from Snootlab
I have finished the basic software (turning backlight when going from bed to bathroom in the middle of the night) but I want to do full alarm system (with pass key to arm/disarm), maybe triggering webcam to take a shot and play load music from the PC.
I hacked a Gembird Powershield (PC controlled 4 socket switch) that has buggy firmware so it is useless after some time...now it is Arduino controlled.
Things to fix (ideas?):
- Turning two fluorescent lamps on one socket makes a problem on turn off. It is huge inductive load and breaks the communication to PC (need to reconnect the USB) ...seems like the Arduino continues to work. I do not know exactly how lamps can influence my system. (on the manual from Gembird it is noticed to not put inductive loads on the socket)
- Resistor Ladder for the buttons are with huge resistance and there is a noise (small current on measuring resistor). Seems like running the Arduino connected to powered USB HUB fix this problem a lot. Will some capacitor on 7805 output fix this? I have a big one 47uF but it does not have any effect.
Schematic (Is there any better software for this? Portable + Windows? Fritzing has buggy GUI)