|
Home Security System
Disclaimer: This project is an ongoing 'moving target' as far as documentation and construction are concerned. To date, over 15 modules are now in operation. Please keep this in mind when utilizing the information provided. -- Luhan Monat Creating a modular, networked, home control system was greatly simplified by using common 4-wire phone cable with stake-on connectors. The cable feeds both power and network signals to the various modules. Each module is made on a single sided circuit board with RJ-11 connectors (for the network/power) along with other connectors as needed. This eliminates the need for placing power feeds (wall worts) for each of the modules. The entire system runs on one power feed. Since the power feed is at least 12 volts (unregulated), very long cable runs can be used to connect to various modules. Each module has its own 5 volt regulator to run the circuit. It also means that the entire system can be run from a single 12 volt battery if the power is out. Requirements To use any of the modules in this system, you need to provide these two modules that support the operation of all of the others
The Hub also provides 2 power inputs (diode isolated) for possible battery backup, the master pull-up resistor for the network data line, and fuse protection. Here are the schematic
and layout.
Here are the schematic, layout, source file and object file.
The 4 wires in the phone cable are designated as follows: BLACK power ground RED 12-16 volt unregulated power feed GREEN network ground YELLOW network signal Standard phone cable, connectors, and junction boxes are used where needed. All cable must be 'strait through' with each connector having the colors in the same positions (black,red,green,yellow). Buying the cable in bulk and using a stake-on hand tool is handy for making all cables just the right length and ensuring the the wire order is always correct.
Network Communications Hardware Level The network communication uses
5 volt logic-level signals of the 'open collector' variety. Each ASCII
character is composed of 10 pulses: an attention pulse, a reference
pulse, and 8 data pulses... ;----- - - - - - - - - - -----
Protocol Level All communications begin with a forward slash '/'.This separates commands from possible response data coming back from a module. The second character is the Unit Type character; the third is the Unit Number. Characters that follow are individually defined by each type of Unit. This is a point-to-point protocol (internet style). Any mondule has direct access to any other module. Here are some examples: /V2PABD<cr> (Voice Unit #2: play words A, B, and D). /S1QI<cr> (Sensor Unit #1: Send port bit status) /D2L<cr> (Door Unit #2: Lock door) Every command ends with a carriage return <cr>. Every unit echo's back a single line (possibly containing nothing) but always ending in a CR. This lets the sending unit know that the other unit is active and has received the command. Network Modules The following is a list of the existing functional network modules. As the documentation for each becomes available, a link will be added to it.
|