![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi, I need to turn on and off twelve little switches - or transistors from my pc. I would input either a list of states (12 ones and zeros) or tell the computer to try all combinations from one particular to another. Interface: Requiring all of the twelve transistors to change state (each according to program) once every 1.5 seconds or so isn't so intensive. What would be the best interface for me to use? Parallel port? USB? Software: This is an electronics forum, so i don't expect step by step help in coding this - and i enjoy problem solving. But is there a library or code example in c or python or similar showing how to change the state of say, one of the pins on a parallel port to make it hot? Using that i could string together a couple functions some nice variables and a little command line interface to let me guide it. Is there a simpler, very straight forward way of doing this? This is why, if you care: I've got quite a couple PICs handy, but the reason i want to interface to a pc, is for more interaction, saving of sequences and determining the final or actual value, which is obtained in a brute force fashion. The computer would say change the combinations in a sequence, and if i tell it, "HEY! It just worked!" then my it would make a shortlist of the last couple ones tried. Trying those combinations again, i can determine what state each of the twelve need to be and save it for future reference.
__________________ Under the terms of the GPL - General Posting License [Meaning mods may modify, delete and redistribute any of the posts herein contained, 'cause there's no stopping you] | |
| |
| | (permalink) |
| Since you've got some PICs, just use RS232 and treat the PIC as a RS232 latch. | |
| |
| | (permalink) |
| hi clyd. Look at this zip. Place the *.dll s in the windows\system folder. It may give you an idea. You will need the Visual Basic 5 runtime files from the web, free.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th July 2008 at 12:25 PM. | |
| |
| | (permalink) |
| 3 lines of Python code will send data to the parallel port. pyParallel Python also has support for serial interfacing. pySerial | |
| |
| | (permalink) | ||
| Quote:
It seems too good to be true... Quote:
Btw, python rocks the treehouse
__________________ Under the terms of the GPL - General Posting License [Meaning mods may modify, delete and redistribute any of the posts herein contained, 'cause there's no stopping you] | |||
| |
| | (permalink) |
| Neil Fraser: Software: Parallel port monitors This program can turn on off pins one at a time too as well as monitor the port. | |
| |
| | (permalink) | |
| hi clyd, Quote:
The read option scans the input pins about once/sec and displays the state of the pin on the module. NOTE: some parallel port pins are 'inverted'. The VB5 source code included in the zip can easy be modified to suit your application.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | (permalink) |
| Thank you very much. I think it's time to get started then. Shot!
__________________ Under the terms of the GPL - General Posting License [Meaning mods may modify, delete and redistribute any of the posts herein contained, 'cause there's no stopping you] | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Digital Caliper to Computer Interface Plans | 3v0 | Micro Controllers | 15 | 25th December 2008 05:21 PM |
| How can i interface a controlled toy car to a computer? | andales | General Electronics Chat | 9 | 12th October 2007 08:06 AM |
| LCD Display/Computer USB Interface software. | MrMikey83 | General Electronics Chat | 6 | 27th February 2006 07:33 AM |
| IR computer interface | bogdanfirst | General Electronics Chat | 3 | 24th January 2004 10:03 PM |
| computer printer port interface | bogdanfirst | Electronic Projects Design/Ideas/Reviews | 10 | 26th September 2003 08:27 AM |