HousMon - House Monitoring with ATMega

This was a small one week project to build a house monitoring system that gives information about inside and outside temperatures, brightness, window and door state.

Functionality

Video

in production

Of course you can extend the software or hardware, so you control the window automatically for example or connect a sound system to the microcontroller.

Usage

Software

Compiling this software can be done through several ways. I used avr-eclipse for development. With that plugin you can easily configure your hardware and program the device.
HousMon-1.0.tar.bz2

Hardware

To use the software as it is, you have to connect your parts with the ATMega like that:

Part ATMega-Pin
Buttons left to right pulled up to V+ PB3 - PB0
Reset-button pulled up to V+ RESET
LCD DB0 - DB7 PD7 - PD0
LCD RW PB7
LCD RS PB6
LCD BL PB5
LCD E PB4
NTC-Resistor voltage divider inside PA1
Photoresistor voltage divider inside PA0
NTC-Resistor voltage divider outside PA1
Photoresistor voltage divider outside PA0
Door-contact pulled up to V+ PA3
Window-contact pulled up to V+ PA5
V+ VCC and AVCC
GND GND
LEDs white PC0
LEDs red PC2
LEDs green PC3
LEDs blue PC1

As you can see, you need some 10K resistors to pull up the pins. Perhaps you could also change the software to use the atmega internal pullup resistors.
Don't forget to use transistors to control the LED backlight and LEDs.

Sample-boards

Here are some pictures of the boards i constructed (no i am not good at soldering):
Front of main board
Front of main board while running
Front of LED board
Back of main board
Back of LED board

License

    HousMon is a small house monitoring program for an atmega
Copyright (C) 2010 Markus Pargmann (mpargmann <AT> allfex.org)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.