From 6f4a9305e80423838c11003a09cd4105c89a7cad Mon Sep 17 00:00:00 2001 From: gferg <> Date: Mon, 2 Jul 2001 15:34:46 +0000 Subject: [PATCH] updated --- LDP/howto/docbook/HOWTO-INDEX/appsSect.sgml | 2 +- LDP/howto/docbook/HOWTO-INDEX/howtoChap.sgml | 4 +- LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml | 2 +- LDP/howto/docbook/HOWTO-INDEX/miscSect.sgml | 2 +- LDP/howto/docbook/HOWTO-INDEX/osSect.sgml | 2 +- .../docbook/Home-Electrical-Control.sgml | 162 ++++++++++++++++-- 6 files changed, 149 insertions(+), 25 deletions(-) diff --git a/LDP/howto/docbook/HOWTO-INDEX/appsSect.sgml b/LDP/howto/docbook/HOWTO-INDEX/appsSect.sgml index 87033999..2d5db113 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/appsSect.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/appsSect.sgml @@ -99,7 +99,7 @@ applications, etc. that work on the Linux platform. Astronomy-HOWTO, Linux Astronomy HOWTO -Updated: April 2001. +Updated: June 2001. Document shares tips and resources to utilize Linux solutions in the pursuit of Astronomy. diff --git a/LDP/howto/docbook/HOWTO-INDEX/howtoChap.sgml b/LDP/howto/docbook/HOWTO-INDEX/howtoChap.sgml index 88bbdb54..4820bc95 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/howtoChap.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/howtoChap.sgml @@ -135,7 +135,7 @@ IA-32 (i386) platform. Astronomy-HOWTO, Linux Astronomy HOWTO -Updated: April 2001. +Updated: June 2001. Document shares tips and resources to utilize Linux solutions in the pursuit of Astronomy. @@ -822,7 +822,7 @@ on Linux systems. Hardware-HOWTO, Linux Hardware Compatibility HOWTO -Updated: May 2001. +Updated: June 2001. Lists most of the hardware supported by Linux and helps you locate any necessary drivers. diff --git a/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml b/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml index f22645a8..02560b6e 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml @@ -42,7 +42,7 @@ Topics covered in this section include: Hardware-HOWTO, Linux Hardware Compatibility HOWTO -Updated: May 2001. +Updated: June 2001. Lists most of the hardware supported by Linux and helps you locate any necessary drivers. diff --git a/LDP/howto/docbook/HOWTO-INDEX/miscSect.sgml b/LDP/howto/docbook/HOWTO-INDEX/miscSect.sgml index d720c9c2..92f0a6d2 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/miscSect.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/miscSect.sgml @@ -265,7 +265,7 @@ those who could not use it otherwise. Astronomy-HOWTO, Linux Astronomy HOWTO -Updated: April 2001. +Updated: June 2001. Document shares tips and resources to utilize Linux solutions in the pursuit of Astronomy. diff --git a/LDP/howto/docbook/HOWTO-INDEX/osSect.sgml b/LDP/howto/docbook/HOWTO-INDEX/osSect.sgml index b08c4ac5..e04a2391 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/osSect.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/osSect.sgml @@ -217,7 +217,7 @@ Edition card without physical access to the system. Hardware-HOWTO, Linux Hardware Compatibility HOWTO -Updated: May 2001. +Updated: June 2001. Lists most of the hardware supported by Linux and helps you locate any necessary drivers. diff --git a/LDP/howto/docbook/Home-Electrical-Control.sgml b/LDP/howto/docbook/Home-Electrical-Control.sgml index f82b0f74..0b51813a 100644 --- a/LDP/howto/docbook/Home-Electrical-Control.sgml +++ b/LDP/howto/docbook/Home-Electrical-Control.sgml @@ -1,25 +1,35 @@ -
+
- Home Electrical Device Control mini HOWTO + Home Electrical Device Control HOWTO Rui Li
ruili@worldnet.att.net
-
+ - This document will tell you how to use Linux to control your home electrical + This HOWTO will tell you how to use Linux to control your home electrical devices. You will only need to make a very simple circuit to control almost any kind of electrical device using Linux! - 2001-04-26 + 2001-06-13 - 0.004 + 0.006 + 2001-06-27 + JEY + + + 0.005 2001-06-13 + RL + + + 0.004 + 2001-06-12 JEY @@ -33,7 +43,7 @@ Introduction Many people asked me, "Is it possible to control some electrical stuff [e.g. lights, radio, tv, etc.] by using a home computer?" The answer is YES. - The process is very easy, and everyone can do it. + The process is very easy, and anyone can do it. After I read the Coffee Machine Mini-HOWTO, I got an idea of how to control my home electrical appliances. I made some modifications on the circuit discussed in that Coffee Machine Mini-HOWTO, and wrote a simple program. The circuit can @@ -62,7 +72,7 @@ an electrical device. Use pins 2 through 9 to get +5V Use pins 18 through 25 as the Ground - + ____________________________________________________________ / \ @@ -87,8 +97,8 @@ P Ground | | | Relay Ground | ---------------------------------------------+ - - Key to the Above Diagram + + Below is the key to the diagram above: P data parallel port data line(pin 2 to pin 9, use any) P Ground parallel port ground (pin 18 to pin 25, use any) @@ -110,15 +120,128 @@ relay a coil relay +5 volts from parallel port will turn on the relay. Once the relay is on, the device connected to that relay will be on. When the parallel port's data line goes back to 0, it will turn off the relay, and device is off. - I wrote a simple program that can control 8 relays. The program is available at the following location and - will need g++ in order to be able to use this program. - http://home.att.net/~ruili/goldencat/paralle.tar.gz - A complete circuit can control up to eight relays, that means that a complete circuit can control - eight different devices. You will need a DB25 connector.Using a parallel - switch cable, connect this relay board to your computer. I put the relay board in a box - and use a parallel switch cable to connect it to my Linux box: -Panel: LED, Switch Back: DB25 connector - The following sites contain some photos of the circuit: + + + Examples of Relays + The diagrams below are used to explain how relays work. + + The relay itself is just a switch as seen in the diagram below: + +relay power off relay power on + + |3 |3 + | | + | | + o o + \ | + o \ o + | | + | | + | | + |4 |4 + + + The diagram below demonstrates the setup of a 4 pin relay. + + + ____________________________ + | | + 1 | | 3 + -----|---------s o----------|------- + | coil s \switch | + 2 | s \ | 4 + -----|---------s o- \-------|------- + | | + | | + | | + |__________________________| + + + + In the diagram above, pin 3 and pin 4 are disconnected by default. + When you send +12V between pin 1 and pin 2, + it will turn on a switch, and pin 3 and 4 are now connected. + + + + The following is a 5 pin relay: + + + _______________________________ + | | + 1 | | 5 + ---------|---+ o------------|---------------- + | |-----------/---- s | + | / s | + 3 | / s | + ---------|-----------o/ coil s | 4 + | o---s-------|---------------- + | | | + | | | + 2 | | | + ----------|---------------------+ | + |_____________________________| + + + In the above diagram pin 3 is connected to pin 5, by default. + By sending +12V between pin 1 and pin 2, you will + will turn on a switch. Pin 1 and pin 2 will disconnect, + and pin 5 and pin 4 will connect. + + + relay power off relay power on + + |5 |5 + | | + | | + o o + \ | + o \ o o + | o | | + | | | | + | | | | + 4| |3 4| |3 + + + Some relays may have more that 5 pins. More pins just means there are more switches. + I wrote a simple program that can control 8 relays. The program is available at the following location and + will need g++ in order to be able to use this program. + http://home.att.net/~ruili/goldencat/paralle.tar.gz + A complete circuit can control up to eight relays, that means that a complete circuit can control + eight different devices. You will need a DB25 connector. Using a parallel + switch cable, connect this relay board to your computer. I put the relay board in a box + and use a parallel switch cable to connect it to my Linux box: +Panel: LED, Switch Back: DB25 connector + Below is an example of how a relay board would connect with your electrical device: + + CONNECTED RELAY BOARD + + + +-----+ power outlet + 1 _______3 | __|________ || || + --| |---------+ | | | || || + 2 |relay|4 | (o) (o) | _||___||__ + --|_____|----+ |------|---| | | + | | | | + | +------------+ | | plug + ground | | hot | | + | | | | + __|_|__ | | + | | | | |________| + | | | | plug + | | | | + |_|_|_| (i know it doesn't look like a plug, but it's a plug :-) ) + || || + || || + + + + To connect the system, just connect your home electrical device to the power outlet. That is it! + You don't need to make any change on the electrical device. And you can + connect any kind of device to that power outlet. Plug this power outlet into any wall outlet. + + + To see photos of what the finished product looks like, go to the following sites: http://home.att.net/~ruili/goldencat/p1.jpg http://home.att.net/~ruili/goldencat/p2.jpg http://home.att.net/~ruili/goldencat/p3.jpg @@ -141,3 +264,4 @@ relay a coil relay
+