Pages: [1] 2   Go Down
Author Topic: Interfacing a SSR relay to the arduino  (Read 16631 times)
0 Members and 3 Guests are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 1
Posts: 110
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear all, part of my project is having to OPEN/CLOSE a gas cylinder and so I decided to use a solid state relay - http://www.crydom.com/en/Products/Catalog/m_p.pdf connected to the arduino having its output of the relay connected to a solenoid valve.  Since I am not confident in relays, does anyone know if I can just connect the relay to a digital pin, giving it a HIGH or LOW?  

I dont know if there can be any Back EMF generated or if I have to coinnect any electronic circuit before the relay.

Thank you
« Last Edit: December 23, 2010, 07:55:56 am by hellsnomad » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 216
Posts: 13664
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

check this thread - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1221230237/13 might solve your questions.

and the playground - http://www.arduino.cc/playground/uploads/Learning/relays.pdf
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

0
Offline Offline
Full Member
***
Karma: 1
Posts: 110
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

tnx for reply...

but my relay is a SSR and does not have any coils in it.  I have searched the forums and there were queries on this topic.  

My question is if I can connect the SSR to the digitla pins without having any current limiting resistance, and if any how do I calculate that impedance?

Tnx
Logged

Hyderabad , India
Offline Offline
God Member
*****
Karma: 6
Posts: 621
can't help not to think arduinaizing something !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

the REALLY Good part of the SSR's is that they have been designed to operate directly from logic level outputs! you dont need any extra circuitry yo run it ( atlest it wont get damaged smiley-wink )
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 110
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But I found out that the arduionos pins limit is 40mA . how can I know that I wont fry it or something?
 
The SSR link used is in the first post.
tnx
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 110
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A better datasheet is this http://datasheet.octopart.com/MPDCD3-B-Crydom-datasheet-123962.pdf

As one can see the Typical Input Current @ 5Vdc [mA] is 2.6A.  How can I know if I wont fry anything?

Tnx
Logged

Hyderabad , India
Offline Offline
God Member
*****
Karma: 6
Posts: 621
can't help not to think arduinaizing something !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
As one can see the Typical Input Current @ 5Vdc [glow][mA][/glow] is 2.6[glow]A[/glow].
smiley well it was written like this ..
Typical Input Current @ 5Vdc [mA] 2.6


that is not 2.6A but 2.6 mA  smiley-wink
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 110
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes yes my mistake. hehe i just got it to work, since I connected the relay to a bulb and programed it to switch on and of...

Now the next step is to connect it to a solenoid valve.

tnx
Logged

Hyderabad , India
Offline Offline
God Member
*****
Karma: 6
Posts: 621
can't help not to think arduinaizing something !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Good but when playing with relays do look at the maximum current requirements you need atleast a relay capable of doing double the switching than you require  smiley-wink
Logged

Atlanta
Offline Offline
Sr. Member
****
Karma: 1
Posts: 254
Arduino still rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

SSRs are Mity Fine.  No problem on driving the SSR right off a pin...  which you already proved using a bulb as SSR load.

An old fashion tungsten bulb is a tame load, you might wanna look at one other thing before you try to kerchunk the solenoid.  A solenoid has inductive "kick" and has the same issue with "punching through" the SSR as a conventional relay coil has in "punching through" a microcontroller output pin or transistor.  See note 3 of your data sheet.
[glow]
3) Inductive loads should be diode suppressed[/glow]

So although you can safely connect the SSR control pins to Arduino, you may need an RC snubber or diode to protect the SSR from the solenoid.  We assume its an AC circuit you cant simply use a regular rectifier diode across the solenoid.  You need a TVS diode or a MOV or something like that.  

The SSR may take the abuse for a while, they are pretty rugged.  Even after it punches thru your SSR may be stuck ON or OFF, but the SSR isolation should still prevent any badness from getting back into your Arduino.

Consider the failure mode of the suppression part in your design.

Gas Discharge Tubes usually fail OPEN.  This causes no obvious malfunction, but the loss of protection will cause frequent failures of the (formerly) protected component.

Zener diodes, MOVs and solid state suppression generally fail SHORTED.  So at end of life the fuse or breaker trips until the part is replaced.  This is usually preferred. (you DO have a fuse or breaker DONT YOU ?)

https://safe.nrao.edu/wiki/pub/GB/Projects/CcbDoCuments/83859.pdf
http://www.littelfuse.com/data/en/Application_Notes/an9768.pdf
for 120 Vac mains I have used P6KE180CA see it here
http://www.littelfuse.com/data/en/Data_Sheets/P6KE_revised.pdf
if youre too excited and dont wanna stop playing solenoid, just hack open a cheap surge strip and steal the MOV from it.

Good luck with your project!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
  I was searching for some hint for my project, and hope maybe I can get some answer from this thread.  Is heating element considered an inductive power?  I am actually using a PIC micro-controller  to switch on/off a heating element every 1/8 seconds.  and I am getting garbage signal through the digital output line...the SSR I used is rated at 25A AC.  the heating element is rated at 1500W, so I assume maximum of 12.5A.  so if I have to design a RC snubber, what values should I choose, or is there an easy solution? thanks
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17293
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is heating element considered an inductive power?
 
No it can be considers a resistive load, with just negligible induction if any.

the SSR I used is rated at 25A AC.  the heating element is rated at 1500W, so I assume maximum of 12.5A.  so if I have to design a RC snubber, what values should I choose, or is there an easy solution?

No snubber required.

 A important issue that users new to ssr at high loads is not considering the need for a heat sink. The semiconductor thyristor devices internal to the SSR like all semiconductors are not perfect conductors and thus have a certain voltage drop. The heat dissipation for the device in watts is that voltage drop times the flowing current. Lets say there is 2 volts dropped at 12 amps, that is 24 watts of heat being dissipated inside the SSR. One can relate to how hot a 25 watt incandescent lamp puts out and this inside the rather small SSR package.

 There is a reason that the back surface is made of smooth metal, it's designed to be bolted (with heatsink grease) to a heatsink. Now that can be just a large enough metal plate rather then a fancy finned job. If you can't hold a finger on for more then a few seconds you probably need a larger metal surface.  smiley-wink

Lefty
« Last Edit: December 31, 2010, 05:19:17 am by retrolefty » Logged

Hyderabad , India
Offline Offline
God Member
*****
Karma: 6
Posts: 621
can't help not to think arduinaizing something !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If you can't hold a finger on for more then a few seconds you probably need a larger metal surface.

That could give you a small jolt smiley-wink so dont tell us that we were trying to kill you ! :smiley
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the heating issue is taken care of.  I used a CPU heat sink, mount the SSR on the heat sink with cpu thermal compound..that's why I am not sure where the problem is coming from...
Logged

Chester, UK
Offline Offline
Sr. Member
****
Karma: 2
Posts: 489
Trying to return the love to none logic level MOSFETS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure I understand:
Quote
I am getting garbage signal through the digital output line...
Logged

If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

Pages: [1] 2   Go Up
Jump to: