Clyd3
New Member
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.
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.