From owner-freebsd-questions Mon Feb 22 17:13:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 3BB6510F86 for ; Mon, 22 Feb 1999 17:11:52 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt8-216-180-14-120.dialup.HiWAAY.net [216.180.14.120] (may be forged)) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id TAA09216; Mon, 22 Feb 1999 19:11:50 -0600 (CST) Received: from nospam.hiwaay.net (localhost [127.0.0.1]) by nospam.hiwaay.net (8.9.2/8.9.2) with ESMTP id TAA30344; Mon, 22 Feb 1999 19:11:48 -0600 (CST) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199902230111.TAA30344@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Leif Neland Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: How to control a relay for the printer In-reply-to: Message from Leif Neland of "Mon, 22 Feb 1999 22:47:18 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Feb 1999 19:11:47 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leif Neland writes: > I have spare com-ports, could I use some modemcontrol-bits to control the > relay? That is one way. It matters as to what the coil voltage and current your relay requires. Not likely you will be able to activate the relay with the very small current available on the serial port. You'll have to build an amplifier or such. Or a very small relay (check the DigiKey catalog for specs, experiment with an amp meter on your serial ports). With a small enough relay one could switch power from a power supply that could power the power relay for your printer. Am thinking RS-232 is only good for 10mA, which isn't enough to switch any relay that would be of much use. You'll need to use a transistor to drive the big relay. And you'll need a power supply ciricut to power that transistor and relay. Think a cleaner and quicker solution would be to buy an X-10 Appliance Module to plug the printer in, and a cheap controller ($15). When you want to print, push the ON button (several times to make sure it works) for the Housecode and Unit of your printer. Modern printers power themselves down when not used for a while. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message