Article View: rec.games.programmer
Article #2392Re: Building HAL (club seeks computer/motor interface)
From: Sean Perry
Date: Fri, 09 Dec 1994 06:28
Date: Fri, 09 Dec 1994 06:28
24 lines
2374 bytes
2374 bytes
> Does anyone know of a commercial kit or simple method of turning
> on and off motors from a BASIC program?
>
> While I'm asking, how about getting sensor input _into_ the computer?
>
> Thanks,
> Martin
>
Matin,
Perhaps one of the simplest ways to play with input is by
rewiring joysticks. Any older computer (Commodores, TI 99, etc) has
ports for plugging in joysticks. Joysticks, in turn, are easy to take
apart. If you pay close attention to which wires are connected to which
position (up, right, etc.), you can splice in gizmos like photoelectric
diodes, mercury (motion) switches, or even two slightly separated copper
strips (to detect moisture). The older computers have basic commands
for reading joystick commands. As part of your program, you simply set
up a loop to check each joystick position; if the particular sensor or
switch is activated, your robot can respond with actions or statements
("I feel motion.""The room is dark." And so on.)
If you have any questions or outrageous sucesses, drop me an electronic
line.
Sean Perry sperry@efn.org (503) 995-8338
Technical Details
Message-ID:
<Pine.SUN.3.90.941208221220.11428A-100000@efn.org>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!swrinde!sgiblab!cs.uoregon.edu!efn!newsReferences:
<D0BHto.JEx@world.std.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe306,329f29512a632239 X-Google-Attributes: gidfe306,public X-Google-Thread: fa84d,329f29512a632239 X-Google-Attributes: gidfa84d,public X-Google-Thread: 11013a,329f29512a632239 X-Google-Attributes: gid11013a,public X-Google-Thread: 10db24,329f29512a632239 X-Google-Attributes: gid10db24,public X-Google-Thread: 1049ea,329f29512a632239 X-Google-Attributes: gid1049ea,public X-Google-Thread: 10b42a,329f29512a632239 X-Google-Attributes: gid10b42a,public X-Google-ArrivalTime: 1994-12-08 22:53:07 PST Newsgroups: rec.games.programmer,comp.edu,k12.ed.comp.literacy,misc.kids.computer,sci.edu,k12.ed.science Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!swrinde!sgiblab!cs.uoregon.edu!efn!news From: Sean Perry <sperry@efn.org> Subject: Re: Building HAL (club seeks computer/motor interface) In-Reply-To: <D0BHto.JEx@world.std.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Message-ID: <Pine.SUN.3.90.941208221220.11428A-100000@efn.org> Sender: news@efn.org Organization: Eugene Free community Network/Oregon Public Networking References: <D0BHto.JEx@world.std.com> Mime-Version: 1.0 Date: Fri, 9 Dec 1994 06:28:52 GMT Lines: 25