[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IIGS Controlling and Sensing Ideas
- Subject: Re: IIGS Controlling and Sensing Ideas
- From: scott@alfter.diespammersdie.us (Scott Alfter)
- Date: Tue, 11 Dec 2012 17:07:08 +0000 (UTC)
- Cancel-lock: sha1:OfQSgpqWizPT8CV2OEqtEuNMuf8=
- Injection-date: Tue, 11 Dec 2012 17:07:08 +0000 (UTC)
- Injection-info: mx04.eternal-september.org; posting-host="8a1ee55446dc6ce851c068a4a9ed2a4c"; logging-data="21392"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wbQ9IfI7FHTcZsK61C6nw"
- Newsgroups: comp.sys.apple2
- Organization: USS Voyager NCC-74656, Delta Quadrant
- References: <MPG.2b307401784cd063989680@news.giganews.com>
In article <MPG.2b307401784cd063989680@news.giganews.com>,
I. G. Dev <starigdev@hotmail.comstar> wrote:
>All ideas appreciated related to making a "light controller". Or any
>other ideas that fall under the "home control" paradigm.
I have a refrigerator controlled by a IIGS (could also use a II+ or IIe)
that I use to control homebrew fermentation. It uses a 1-Wire temperature
sensor and real-time clock, and an annunciator output is used to switch a
relay on and off (which in turn switches the compressor on and off). If you
need to switch more than one device, you could control a relay with a DS2405
(or eight of them with a DS2408); since I only needed one, an annunciator
output controls a PN2222, which controls a relay.
The following archive contains cc65 source code for my beer-fridge
controller:
http://alfter.us/files/apple2/a2bfc-1.0.tar.gz
Searching "1-Wire switch" turned up this circuit for controlling a relay
with a DS2405:
http://electronicdesign.com/article/components/drive-a-relay-using-a-1-wire-addressable-switch725
My 1-Wire controller works by bit-banging the 1-Wire protocol over an
annunciator output and a paddle-button input. Its main advantage is that
it's cheap and can plug into the 16-pin joystick connector inside an Apple
II. You could also use something like this, plugged into a serial port:
http://www.embeddeddatasystems.com/HA2--RS232-1-Wire-Host-Adapter_p_16.html
_/_
/ v \ Scott Alfter (remove the obvious to send mail)
(IIGS( http://alfter.us/ Top-posting!
\_^_/ >What's the most annoying thing on Usenet?