Using the propeller to trigger 24v solenoids
Darcy
Posts: 31
I am experimenting to see if I can use the propeller to write a simple program that would control up to 7 or so of these pneumatic solenoid valves http://www.mfdpneumatics.com/store/products/detail.php?id=61. My main issue is that the solenoid requires 24v dc to work...(actual range is 21.6v - 26.4v). What could I do to step up the voltage from the output signal from the propeller so that it is powerful enough to trigger the 24vdc valve? Any resources that you would know of for me to research would really help me out.
thanks,
Darcy
thanks,
Darcy
Comments
Welcome to the forums!
You could also use various relays or even latching relays if you want to assure that the solenoid stays open or closed if the power to the Propeller is interrupted.
For starters can anyone suggest a device/circuit for an 'electronic switch' that can be used for controling this kind of load from a Propeller port?
This thread may be helpful http://forums.parallax.com/showthread.php?129898-Controlling-Relay&highlight=relay
As someone previously mentioned, use a seperate 24 volt power supply. I had the same situation, but my coils were 12 volts. I used 4N25 optoisolators to trigger TIP120 transistors to trigger the solenoids, and it worked great for me, plus it eliminates any chance of EMF reaching the Propeller. If I find time, I will provide a schematic.
Here is a link to a nice 24VDC power supply:
http://www.powerstream.com/ac-2420.htm
Bruce
EDIT: After reviewing your post, I see you already have the power supply. Personally I would skip the relays and go 4N25 / TIP120
http://forums.parallax.com/showthread.php?116423-A-really-great-Mosfet-to-use-with-the-Propeller...-especially-when-it-s-grounde&p=845205&viewfull=1#post845205
If you're running solenoids, you'll probably need some flyback diodes, too.
That actually sounds like a nice solution.
Do you know what the minimum voltage the relay requires in order for the switch to be activated? this is the relay I have available..
http://www.automationdirect.com/adc/Shopping/Catalog/Relays_-z-_Timers/Relay_Sockets_-a-_Accessories/RB105-DE
Note: eventually my goal is to have about 8 of these solenoid valves running at the same time...for now i'm just starting out with one.
All of your suggestions have really been extremely helpful, thank you so much!
You won't need relays if you use the ULN2803, but of course that would all depend on the current requirements of the coils for your solenoids.
Bruce
The ULN2803 can control up to 8 solenoids, providing the amperage rating for the coils is not above 500ma, but just in case it is, the darlingtons can be paralled for a higher current rating.
Bruce
"You could also use various relays or even latching relays if you want to assure that the solenoid stays open or closed if the power to the Propeller is interrupted."
If a relay isn't necesarry, that might be good for cutting down cost for building the circuit, I couldn't find the amperage rating for the coils from their website, but it did say that the power consumption was 24V DC: 2.5 W
I could run them in parallel if needed, I just need to find out whether or not that would be necessary...I found a simple board layout for testing out circuits with the ULN2803 http://computerchristmas.com/christmas/link-how_to/HowToId-17/Control_using_a_ULN2803A
You have to ask yourself, is it really necessary for these solenoids to be open or closed if I lose power to the Propeller?
I guess it would all depend on the circumstances.
However, if it does not matter one way or the other, then you should be fine wiring the solenoids straight to the ULN2803.
2.5 watts / 24 volts = .104 amps, which is well within range of the ULN2803, so you could run 8 solenoids off of one ULN2803.
Bruce
It has been a while since I messed with one of these chips, but I am 99% certain that this is the hookup. Someone please correct me if I am wrong.
Bruce
EDIT: You could also cut down on the number of I/O pins by incorporating a 74hc595 into your design
Simply connect one side of the solenoid to one of the pins from 11 to 18, the other side to +24V, and the control signal to the appropriate I/O pin.
You may want to read this.
http://sci.tech-archive.net/Archive/sci.electronics.basics/2005-10/msg00192.html
Bruce
What you describe is nowhere near what the diagram depicts. You better look at the diagram again.
Bruce
The led on the relay blinks for just a moment half lit, the code is
!outa[26]
waitcnt(clkfreq*2+ cnt)
Ive checked everything with a multimeter, do i need to boost the signal going to the uln2803? I dont think my photo uploaded properly, ill have to try uploading again.
Connect the 3.3V ground and -24V to pin 9
Connect the +24V to pin 10
Connect one side of the relay/solenoid coil to pin 18
Connect the other side of the relay/solenoid coil to +24V
Connect a jumper wire to +3.3V.
Touching the other end of the wire to pin 1 should activate the relay/solenoid.
You can repeat this for the next driver by moving the coil connection on pin 18 to pin 17 and touching the jumper wire to pin 2.
There is no voltage coming out of the uln... I tested 2 of them, the specs for my power supply are: 24v dc 3.75a, it is the psm24-090s http://www.automationdirect.com/static/specs/rhinopsm.pdf
Heres a link to my photo since it didnt upload it properly before...
http://www.flickr.com/photos/23703895@N06/5916971379
That's correct; the ULN2x03a is an open-collector output -- it provides ground (when on) or an open circuit.
Connect your solenoid between your positive side of the supply and the ULN output pin. Make sure that the ground pin on the ULN (pin 9) is connected to the supply ground. On the Propeller side you need to have the Propeller ground connected to your solenoid/ULN ground. Also, connect pin 10 of the ULN to the positive side of your solenoid supply to enable the internal snubber diodes.
I've used the ULN2x03a with the Propeller on several projects; it's quite easy when the connections are correct.
From the photo it appears that you also need VSS from the Propeller to go to pin 9 on the ULN2803.
Bruce