Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 External device to controll power to 1 device?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Leftover




PostPosted: Sun Oct 31, 2004 7:13 pm   Post subject: External device to controll power to 1 device?

Just curious if anyone has a tutorial or has ever worked up a home built device they connected to the parallel port or something and used it to controll maybe a lamp or something? Personal project here, not school related, I just think it would be cool to be able to do stuff like that.
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Mon Nov 01, 2004 10:45 am   Post subject: (No subject)

umm some one made a tic tac toe using a breadboard, some logic gates and leds controled by the parallel port a while back
Leftover




PostPosted: Mon Nov 01, 2004 7:46 pm   Post subject: (No subject)

I know the basics of interfacing projects, I just curious to know what it takes to switch power on and off like that and what type of code it would be.
Tony




PostPosted: Tue Nov 02, 2004 12:27 am   Post subject: (No subject)

you basically wire your setup to computer's parallet port (assuming you have one) and write a program to send (or read) current over a set of pins.

parallelput() has an ability to actives up to 8 pins
and
parallelget() could check for feedback sygnals over 5 other pins.

So in theory you can have up to 8 motors that you can turn on/off based on up to 5 mechanical inputs such as buttons and switches..

Realistically though, you might want to be able to control the direction of the motors as well, so that takes out of the number of outputs available. Furthermore parallet port provides just 2.4 V of power per pin, so you can expect to work with small motors only.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Random




PostPosted: Sun Nov 07, 2004 12:37 am   Post subject: Relays

I did something like this with a friend. We used C to control different pins on the parallel port and we made a conector using an old parallel port cable. That went to a couple relays which controlled stuff with a larger power supply powering it. The problem was that the signal from the parallel port was getting so weak that the cable we had to use was very, very short.

We also made a thing where we hooked up 4 LEDs to the cable and made a little lightshow using C. Anyways, relays, they are key.
wtd




PostPosted: Sun Nov 07, 2004 12:43 am   Post subject: (No subject)

tony wrote:
you basically wire your setup to computer's parallet port (assuming you have one) and write a program to send (or read) current over a set of pins.

parallelput() has an ability to actives up to 8 pins
and
parallelget() could check for feedback sygnals over 5 other pins.

So in theory you can have up to 8 motors that you can turn on/off based on up to 5 mechanical inputs such as buttons and switches..

Realistically though, you might want to be able to control the direction of the motors as well, so that takes out of the number of outputs available. Furthermore parallet port provides just 2.4 V of power per pin, so you can expect to work with small motors only.


Or you could just have different combinations of inputs for different actions.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: