I've build a simple circuit to control a Spirax Sarco valve using the arduino PWM as shown.
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CBwQFjAA&url=http%3A%2F%2Fwww.cloriuscontrols.com%2Finstructions%2F99.66.02-GB_EPL.pdf&ei=yGA0VKuJFLfIsATFuoHQCQ&usg=AFQjCNHRGjDoem_JXMbUDbQfdirsZ3nu-w&sig2=zGDO4_h5hX_2k1qhm7iC8g&bvm=bv.76943099,d.eXY
The problem is that the current goes very high to 29mA.
I should also mention that I have the negative of my 24V power source grounded.
I really appreciate any help, I really don't know what is happening...