Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Bundypro on October 13, 2010, 12:30:19 PM

Title: Output voltage problem?
Post by: Bundypro on October 13, 2010, 12:30:19 PM
I'm out on pin one for my spindle relay (3v-15v input).  When toggled on I show 4.34v at pin one. When I connect the relay it drops to 1.43v and wont turn the relay on. I know the relay works if I jump it to 5v it turns on.  Tried it on pin 14 and 16 also, same result.  No luck.  It used to work fine.  Just became a problem in setting up a new PC.  I'm lost for words I've been banging at this for at least 3 hrs. 
Title: Re: Output voltage problem?
Post by: TramAlot on October 13, 2010, 12:34:08 PM
sounds like the new computer puts out less current, energy star, I'd try a relaY that needs less current

just an idea?
Title: Re: Output voltage problem?
Post by: Bundypro on October 13, 2010, 12:35:52 PM
Maybe I need a relay to turn on my relay?!?!
Title: Re: Output voltage problem?
Post by: TramAlot on October 13, 2010, 12:45:15 PM
could be done. I don't have anything hooked up directly so I'm probally talking out of turn. could be the windings just shorted.

how much amperage is it pulling?
Title: Re: Output voltage problem?
Post by: kf2qd on October 14, 2010, 04:27:51 PM
Problem is that the printer port outputs are not meant to handle much current. You need to have teh output from the computer go to a transistor that is sized correctly for the curent teh relay requires. Normally this is a function provided by a "break out board". It isolates the machine electrically from the computer and priovides the circuits to be able to handle the cuurent requirements of real world components like relays and such.

What is the relay switching? AC or DC and what current? there are a number of solid state realys that are able to switch higher currets, but are meant to take a low current control signal.
Title: Re: Output voltage problem?
Post by: Tweakie.CNC on October 15, 2010, 04:23:12 AM
Repeating what has already been said but the computer port was never designed to switch anything more than about 10mA and even then there are conditions attached. You are pretty lucky you got it to work first time round without damaging the port.

One solution is to use an Opto- Coupler, most of these will handle switching currents up to 100mA (which is enough to drive small relays etc.) and I have attached a simple schematic of a typical setup.

Another solution, if you are switching ac loads, is to use a solid state relay as most of these will operate at less than 10mA input and switch ac loads with absolute minimal noise spikes.

(http://www.cooperman.talktalk.net/files/17_files/image463.jpg)

Hope this helps.

Tweakie.
Title: Re: Output voltage problem?
Post by: Bundypro on October 15, 2010, 06:09:07 PM
This is the relay I'm using.  CRYDOM EZ240D18 I bought it from MPJA.  Switches 240 @ 18A  using 3-5v.

Not sure what to do I guess  need to read up on Opto-couplers and breakout boards.  I certainly don't want to lose another computer.  The setup time is too much.
Title: Re: Output voltage problem?
Post by: Tweakie.CNC on October 16, 2010, 06:57:36 AM
The SSR you are using should work just fine but there is, perhaps, a better way of driving it.

The LPT parallel port will always sink more current than it will source. Changing the polarity of the drive function (taking the LPT pin low activates the relay) is a much better approach (and kinder to the port). Something similar to this. (change the resistance to suit the SSR drive current - typically less than 10mA).

Tweakie.
Title: Re: Output voltage problem?
Post by: Bundypro on October 18, 2010, 01:40:50 PM
Interesting?  I'm going to take a closer at this.  Keep the relay hot and then close it to ground. Thanks.
Title: Re: Output voltage problem?
Post by: Bundypro on October 19, 2010, 02:16:51 PM
I changed the output to active low and add a 470k R (1/4 Watt) to the 5v power supply. It dropped the voltage to about 3.46v from 5.1v. It's didn't turn the relay on.  I also tried a 470 R (1/4 Watt) and had no voltage change, I didn't hook this up the the pinout . 

The SSR is rated for typical input current of 3-15v 15mA @ nominal voltage.  http://www.mpja.com/download/16596rl.pdf

E=IR is not a formula that I am very good with. I'm afraid to smoke the port?

The power supply is a standard PC ATX supply is that is a clue?

Not sure what's happening.