
A Simple Low-End PC Project- Roger
M - 2002.06.26
These days, 286 and 386 computers can be obtained for $10 or less
- and often at no cost. This makes them ideal for dedicated service.
With just DOS and BASIC on your computer, the possibilities are
almost endless. (BASIC comes with almost any version of DOS, or can
be found on older PCs, or on many Windows CDs.) What can you do? How about turning your computer into a $30 home
security system? One that will not only sound an alarm, but will tell
you which door or window has been opened and when it was opened (or
even how many times is was opened). You can do this even if you have
limited technical knowledge. All that is required is a PC and
keyboard, a few standard burglar alarm switches, and a few lines of
BASIC. To start with, get an old or cheap keyboard (you'll also need a
working one to program your computer). Take it apart. Usually
you can just pull an individual key out, but you may have to break
the keyboard open. In either case, look for the keyboard circuit
board and the electric contacts. You can then wire/solder remote
switches (as used on burglar alarms) across an individual key's
contact. Place the switches at doors or windows, and wire them back
to your keyboard, so that when the door is opened, contact is made at
the keyboard. Then you can program your computer in BASIC to sound an alarm when
a switch is broken. In fact, you can program the computer to indicate
which switch has been broken (i.e., which window was opened), what
time it occurred, and sound an alarm. The BASIC program is quite
simple. Say the "D" key is tied to the switch at the front door: note: This is written for GW-BASIC found on mid- to late 1980s
PCs. 10 A$=INPUT - [This makes the variable A$ equal to whatever key that is
closed]
20 IF A$= "D" THEN PRINT "FRONT DOOR OPENED" : PRINT TIME$:
SOUND 200, 1800 - [This tells the computer that if the D key has made
contact, print on the screen "FRONT DOOR OPENED" and print the
time it was opened, and issue a warning sound of 200 Hz for about
10 minutes]
100 GO TO 10 - [Return to line 10 to keep scanning keyboard]
Take note that line 20 is just one command for one key. Many such
lines can be written, one for each key that you have wired a switch
to. You could also have the computer monitor how many times the door
has been opened, to indicate how many people came in or out of your
house or building.
- <back to the original
article>
Thinking From the
Box is your column, your turn to share
your thoughts with other PC users. Recent Thinking From the Box- Value and cost: With a PC, you
get what you pay for, Katherine Keller, Thinking From the Box,
02.26. With the right choices, your PC can be easy to upgrade and
avoid becoming a doorstop.
- WinXP ruins useful file
sharing, Mark Lim, 09.16. Windows XP Home and Pro take a huge
step backwards on the network, losing the ability to control file
sharing for different users.
- Picking a low end system,
Chad Page, 09.10. "There are many different ways of buying an
inexpensive PC, especially if one is willing to use Linux, BSD, or
older versions of Windows."
- more on the Thinking From the Box
index
Other Recent Content on LEPC- Networking 101, Dan
Knight, Online Tech Journal, 02.10. An introduction to ethernet,
hubs, switches, routers, and wireless networking.
- Pixels and points, screens and
paper, Dan Knight, Online Tech Journal, 02.06. What you see on
the screen corresponds to what you get on the printed page. A
brief history of points, pixels, and the changing face of computer
displays.
- Deliver us from evil: Thoughts
on computer self defense, Dan Knight, The Knight Line, 01.16.
"Should you have the right to take active steps to stop a
computerized attack on your computer system?"
- Why we need anti-spam
legislation, Dan Knight, The Knight Line, 01.02. "Unlike rain,
sending spam is a human behavior which can and should be covered
by law."
- Tying up loose ends on bitty
boxen, Buttercup, and the state of tech, Michelle
Klein-Häss, Geek Speak, 12.02. Mandrake Linux rocks,
Buttercup gets a new motherboard, and the sorry state of the tech
sector today.
- more in our editorial
archive
|