animond.gif (40056 bytes)HAC Systemanimond.gif (40056 bytes)
Home

 

 

 

Ham Radio
R/C
HAC
Embedded 
Kjaergaard 
CV
Links

 

 

 

undercon.gif (1408 bytes)

The House Automation Concept

The HAC system was developed a few years ago, in a very simple form, for controlling all the elctrical circuits in a typical house. The system was based on a central module, HACBAS, which reacted on button pressures, and controlled various electrical cicuits around a house. The first system build around the "original" HAC system, consisted of 128 inputs and 128 outputs. The inputs came from small panels with buttons and LED, placed around the house. The outputs controlled the LED's on the panels, and some ordinary SPDT relays. These relays would then enable power to outlets, lamps etc etc.

Then, from this rather simple system, a more flexible system evolved. This system is based on a multidrop, RS485 protocol, running at 57.6 Kbaud or 115.2 KBaud. All the modules developed so far, are based on Atmel 8051 FLASH based microcontrollers. In my own house, i have a total of 35 modules. These modules are all connected to a RS485 network. Also, a PC running OS/2 is also connected to the network, and this PC act as "glue", binding all these modules together, collecting status updates, reacting on them, and giving commands based on various rules.

 

More descriptions to follow...... Stay tuned

Below are all the source files for most of the modules developed so far, all is written in Keil C.

HACIR.C             Interfaces to a Dallas DS1820 Thermo sensor and receives Phillips RC-5 remote
                        control commands
HACSOUND.C       2 x 20W audio amplifier with 8 seperate stereo inputs, bass/treble and volume,
                        controlled by an Phillips TEA6330T I2C sound processor
HACIO.C            16 digital inputs, 16 digital outputs
HACAIDO.C        16 analog 12 bit inputs, 16 digital outputs
HACAIDI.C         16 analog 12 bit inputs, 16 digital inputs
HACDIM.C          5 channal 220V (or whatever voltage, 36V for Halogen spots...) seperate controllable
HACCOUNT.C     One channel counter module, for counting pulses from Gas/Power meters
HACINC.C          Interfaces to 2 incremental encoders, for reading of positions
HACNET.C          The fundamental HACNET protocol, used in all the above modules
HACNET.H          The header for the HACNET module, used in all the other modules

 

 

 

 

 

 

 

 

This page was last edited: 98-07-29