My home automation

One thing I'd say is I'm OCD and would want it looking tidier!

Where is it located in the house, in the basement? Do you find it gets warm in there?
 
Sponsored Links
Do you find it gets warm in there?

Probably not; if he can afford all that hardwired stuff that likely all costs several thousand and that he has 96 zones and 4 floors, then he properly can afford and thus has AC down in the plant room.
 
Did you re-wire the house with this in mind? such as all light switches cabled back to this central location? or have you managed to work around more conventional cables?
 
Sponsored Links
There is something really amiss with your installation Roasty.

The beer fridge is devoid of beer :)
 
Looks great!

Can I just ask what you use 4 Galaxy alarm panels for, is it all alarm and if so would it not be better to have rio's (remote input output). I am starting out on a similar project in a good sized house and would love to know more.
 
Looks great!

Can I just ask what you use 4 Galaxy alarm panels for, is it all alarm and if so would it not be better to have rio's (remote input output). I am starting out on a similar project in a good sized house and would love to know more.

I'd guess that three of those Galaxy enclosures are
Power RIOs. You aren't going to run 96 zones off the single 1A PSU when a third of them are PIRs. Note also that the 16 onboard zones are all linked out. I guess it's done that way in order that all zones are on remote RIOs - and hence can be read off the bus using the serial adaptor mentioned.

Nice work Roasty. Like magicmushroom, I'd be interested in how you've done the DMX lighting.
 
Bob,
Interfacing the galaxy is easy. Honeywell don't provide the spec, but it's easy to decide if you can do hex. Each zone is just a resistance meter, and the value in ohms is broadcast from each Rio for each zone every second. The rios have an ID, and that's it. Extra points if you can decide the keypad comms, it's not too tricky. Setting outputs etc... Can be done I'm sure, but I'm not there yet.

I would agree that one-way interfacing by scraping and post processing serial output is easy. Interfacing with full two way communication a little more difficult. The panel is the bus master, so it's the only device that should be driving the slaves. You could, in theory, inject a packet to tell the slave to do something, but the bus master is likely to overwrite your change at some point - it may also dislike your change and set a system wide tamper condition.

The same goes with doing anything with the keypad. If you want to do anything as a keypad at the bus level, then first you need to 'be the keypad'. If you simply try to inject keypad slave responses, then you will be in contention with the keypad that's communicating with the master. Also, if you try to 'be the keypad' with a non real-time OS, then you're likely to cause intermittent tampers on the bus when you violate packet response times.

Nice big project though. I have all my RIO's remote (garage and two attic spaces), as it reduces the wiring in the system. I can understand if you don't have space at the remote locations, but it does make for more cabling and possible noise in the system.
 
Hi,
It stays pretty cool down there, well, not so much cool, but a pretty constant temperature, it's not been a problem so far. I don't have AC in there, but would probably consider a big extractor fan first.
 
Hi,
Yeah I rewired with all this in mind. So all the lighting is wired radially back to the cabinets, as is each socket (there are about 100 of them) there's plenty of cat5e, coax, HDMI, alarm, audio etc... in the mix too. All in all about 5km of cable, lots of which I'm not using at the moment, but it's there for the future if i need it.
 
Hi,

ultomoat is spot on, three of those boxes are powered RIOs, generally with another non-powered rio squeezed in there too. I've linked out the internal 16 channels so that I see all the traffic on the data bus. It works pretty well
 
Thanks Galaxyguy,
that's useful information, you clearly know your stuff. I'll bear that in mind if I ever try anything more advanced.
 
I use this module for the DMX control

full


It's a Velleman DMX controller. I got it from Maplin maybe 8 years ago. It takes RS232 in and spits out DMX, you send a pair of values (hex encoded I think) out of the serial port and the module sends it over the DMX circuit. I'll see if I can find the old code I wrote to control it
 
Ok, so the module is connected to these DMX dimmers (Bottom middle, black boxes) they are soundlab G018VA. I've got 5 with 4 channels on each, 20 channels in total. You can have up to 512, so I've room for expansion. I use the dmx channels to dim lights mainly (obviously) but as they are stage/disco dimmers and capable of 1kw per channel, I also 'dim' things like heated towel rail elements and electric underfloor heating mats to give me more temperature control.

full


The dimmers look like this closeup
71tBoseh2FL._SL1471_.jpg


My only complaint is the IEC connectors on the outputs, but it's not the end of the world and I have some of these dimmers that I used in my old house that are 8 years old + and still going strong, so I know they are reliable. I've had 2 arrive DoA, but to be honest it's not the design, just poor production, on both occasions the inductor on the output driver board hadn't been soldered properly and had worked loose. A bit of extra solder and some silicone to hold it in place and all was well.
 
Ok, I found the code.

Perl:
#!/usr/bin/perl

system( "logger 'HAL - dmx_prod_rebooted' ");

$inc_up = 5 ;
$inc_down = 5 ;
$min_intensity = 70 ;
while (true)
{
   use Device::SerialPort ;
   my $port = Device::SerialPort->new("/dev/ttyAMA0") ;

   $port->baudrate(9600) ;    $port->parity("none") ;
   $port->handshake("none") ; $port->databits(8) ;
   $port->stopbits(1) ;       $port->read_char_time(0) ;
   $port->read_const_time(1) ;

   #Set Status's
   @files = <dmx_set_*.txt> ;

   foreach $file (@files) {

      $channel = $file ; $channel =~ s/.txt// ;
      $channel =~ s/dmx_set_// ;
      chomp($channel) ;

      open (FILE, $file) ;
      $intensity = <FILE> ;
      close (FILE) ;
      chomp ($intensity) ;
      if ( $intensity > 255 ) { $intensity = 0 } ;
      if ( $intensity < $min_intensity ) { $intensity = 0 } ;

      if ( ${variable_."$channel"} != $intensity )
      {
         if (${variable_."$channel"} < $intensity )
         {
            $set_intensity = ${variable_."$channel"} + $inc_up ;
            if ( $set_intensity < $min_intensity )
            {
               $set_intensity = $min_intensity ;
            }
         }

         if (${variable_."$channel"} > $intensity )
         {
            $set_intensity = ${variable_."$channel"} - $inc_down ;
         }

         $port->write( pack "C", $channel ) ;
         $port->write( pack "C", $set_intensity ) ;
         system( "logger 'HAL - dmx_lighting_set $channel - $set_intensity' ");
         ${variable_."$channel"} = $set_intensity ;
         select(undef, undef, undef, 0.05) ; #Sleep a bit

      }
   }
   $port->close() ;
   select(undef, undef, undef, 0.1) ; #Sleeep 100 mS
}


The code above, reads in the required dmx values from files called dmx_set_xx.txt (where xx is the dmx channel) inside each file is just a value between 0 and 255, which represents the dimmer value required.

The code also handles the dimming up and down of the lights to get to the required level (see $inc_up and $inc_down) I like this and it not only looks nice, but protects the filaments from the shock of being hammered on quickly (I do pretty well for lightbulb life, so I think it's working)
 
Last edited by a moderator:

DIYnot Local

Staff member

If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.

Select the supplier or trade you require, enter your location to begin your search.


Are you a trade or supplier? You can create your listing free at DIYnot Local

 
Sponsored Links
Back
Top