Go Back   Computer Forums > General Electricals
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-26-2007, 01:42 PM   #1
Beta Member
 
Join Date: Aug 2007
Posts: 4
Default Just a simple switch, simply

OK, all I want to do is turn on and off a 9-volt DC switch (to control a small motor) with my computer.

I think there are at least 2 methods:
1) using a sound-activated switch attached to the line out on the soundcard. The PC goes BEEP, the switch gets flipped. But these vox switches are usually available only in kits and a pain to assemble, and are not so reliable.
2) using the RS 232 serial connector. I've found a site ( http://www.bolis.com/amillar/compute...t-power-switch ) that comes close to what I want to do, but the author is not specific enough for a moron like me.

Right now, I can activate the motor with a relay, Circuit gets closed, motor goes. Can I use my rs 232 serial port to do this? I'm using windows 2000, and I think I need to run hyper terminal to control the serial port.
What pins on the rs 232 do I need to use that will open and close a circuit when running hyper terminal (or turn on & off 9v dc would be fine too).
So, what pins, what software, what commands? My basic problem, summed up.

To put it another way: I have 2 of the 9 pins on the rs 232 connected to my ohm meter, I want to click on something & the ohm meter's needle jumps, showing a connection is made, controlled by the PC. What pins, what software, what commands? Any help would be greatly appreciated.
__________________

UKinUSA is offline   Reply With Quote
Old 08-26-2007, 09:28 PM   #2
Fully Optimized
 
CompMan's Avatar
 
Join Date: Aug 2006
Posts: 3,323
Send a message via AIM to CompMan
Default Re: Just a simple switch, simply

What is the motor going to do?
__________________

__________________
|Intel Q6600@3.0ghz||ASUS MAXIMUS FORMULA||2GiG Corsair XM2 DDR2 800||EvGa 8800GTS||36gig Western Digital Raptor 10,000 rpm||Ultra X2 connect 550W modular psu||Thermaltake Tsunami Case|Vista 64bit|
Windows has Blue screens, Mac has grey screens, and CF has White screens!!
2004 Mazda RX-8 GT Titanium Grey, Greddy Exhaust, AEM cold air intake
--objects in rearview get smaller with each shift--
CompMan is offline   Reply With Quote
Old 08-27-2007, 01:36 AM   #3
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Just a simple switch, simply

if you know basic you can read this

http://www.codeproject.com/vbscript/...or_Control.asp
__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 08-27-2007, 10:01 AM   #4
Beta Member
 
Join Date: Aug 2007
Posts: 4
Default Re: Just a simple switch, simply

Quote:
Originally Posted by CompMan View Post
What is the motor going to do?
I'm scanning 8mm home movies with a high-res flatbed transparancy scanner.
I pulled out a sprocket wheel from a dead movie projector, and have it rotate one time (9 sprocket holes, or 1/2 second movie time), more or less, pulling the film across the scanner. Then I have this macro to run photoshop to scan it, register the holes, and save the image. Saving 9 images per scan, then the motor drags out the next 9, which very slowly builds an AVI.
A sample so far (just test footage):


The macro works pretty well so far, now I'm ready for full automation!
UKinUSA is offline   Reply With Quote
Old 08-28-2007, 03:51 AM   #5
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Just a simple switch, simply

Whoa! Now that is pretty cool,How old are those films?
__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 08-29-2007, 08:33 PM   #6
Beta Member
 
Join Date: Aug 2007
Posts: 4
Default Re: Just a simple switch, simply

Quote:
Originally Posted by neodude112320 View Post
Whoa! Now that is pretty cool,How old are those films?
Thanks! My movies are from the 70s & 80s, mostly, and I have some that go back to the 30s, bought at yard sales & thrift stores...treasured memories for a buck a reel!

P.S.
& thanks for pointing me to the stepper motor control ...I've slept through a lesson or two in VB, and have Excel w/VB editor. Time to pull some hair out, if I had any!
UKinUSA is offline   Reply With Quote
Old 08-29-2007, 08:57 PM   #7
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Just a simple switch, simply

Cool,just a question,How do you get the sound on them?
__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 09-01-2007, 11:23 AM   #8
Beta Member
 
Join Date: Aug 2007
Posts: 4
Default Re: Just a simple switch, simply

Quote:
Originally Posted by neodude112320 View Post
Cool,just a question,How do you get the sound on them?
The films have no sound...I just slapped some other noise on the video, using AVI maker free editing software stuff
__________________

UKinUSA is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0