"Fuzzyman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a friend who would like to move and program lights and other > electric/electro-mechanical devices by computer. I would like to help - > and needless to say Python would be an ideal language for the > 'programmers interface'. > > What I'd like is an electronic interface that connects to several > relays and a python extension module to switch on and off the relays. > I've had a quick google and can't see anything too similar to what I > want. pyro (python robotics) seems to require expensive (relatively) > robotic equipment.
Loosely, what you are looking for is Data Acquisition (DAQ) , Digital I/O, and control that you can do from your pc. Those are the keywords you want to google. Look at www.ni.com and poke around. They will have some introductory material. Look at www.circuitcellar.com . It may look a bit overwhelming at first but look at the ads for pc equipment. These should also lead you to some tutorials. You are looking for simple digital output. You can use an existing serial or parallel port with a bit of external hardware from radio shack to control relays on the cheap. OR You can purchase a Digital I/O adaptor that will plug into your computer bus and give you outputs to control your relays. You will also get instructions and some software to interface (talk!) to the adaptor. Typically you will read and write to the I/O ports on your computer to flip the switches. OR perhaps the easiest and most effective These would be smart devices that talk to your Python (or whatever!) software via the serial port. You would throw simple string commands (eg "ChannelB ON") at the serial port and the microprocessor based controller will turn on the appropriate relay. Your challenge from Python will be to control the computers I/O ports or to communicate with one of the serial ports. I'm sure someone else will point to libraries that will help you with this. Much *much* more but you have to start somewhere :-) Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list