Pages: [1]   Go Down
Author Topic: Solid State Relay + Arduino Help!  (Read 1302 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The goal: Turn 60W light bulb on/off with the arduino using a 2N2222a transistor and solid state relay (D2425, 3-23V input, 25A, ~240V).

The setup: My circuit is done similar to this (as posted by someone else), with the exception of the digital pin connected to a transistor to the arduino: http://img687.imageshack.us/img687/2164/arduinossr.jpg

The problem: The light just stays on and does not turn off. While the signal pin does fluctuate between 4.6 to 4.9 repeatedly as it should on the relay, how do I get the signal to drop to 0 and back to 4.9, so as to turn on/off? What pieces of the circuit are missing?

I've read that a transistor wouldn't be necessary to turn on/off a solid state relay since the ssr reads like an LED to the arduino, but this didn't quite work for me, hence the transistor in the circuit.

Logged

Cumming, GA
Offline Offline
Edison Member
*
Karma: 20
Posts: 1661
Ultimate DIY: Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure you need to use a transistor?

Most SSR need very little current so you can drive right from a pin.

Can you show us the SSR being used?
« Last Edit: May 03, 2010, 06:00:30 pm by pwillard » Logged

United States (Texas)
Offline Offline
God Member
*****
Karma: 3
Posts: 525
Arduino socks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you have the right kind of transistor? can you post a diagram of your current circuit.
Logged

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

Got it to work without the transistor. There was a simple error in the arduino code.

The D2425 Crydom solid state relay works when directly placed into the arduino's digital pin. This appears to be the cleanest solution for the project (without having to use a mechanical relay and  accompanying external transistor circuit with protection diode).

Thanks for jumping in to help out.
« Last Edit: May 04, 2010, 04:44:41 pm by linux_user » Logged

Worcester, MA
Offline Offline
God Member
*****
Karma: 3
Posts: 623
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How fast are you switching this on and off? The SSR won't draw more than about 20mA so you really don't need the transistor.

Logged

I2C GPS Shield

Checkout my Open Source GPS Tracker on Kickstarter

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

So far the relay has been tested to turn on/off the light every 3 seconds.  Ultimately, the relay (in addition to 2 others)  will be used to control 3 lights, where each light is to be switched on one at a time as a certain threshold is met. The entire project is a combination of arduino, processing, mysql database, and php to remotely control certain features of the software.
Logged

Pages: [1]   Go Up
Jump to: