Electronic – arduino – Circuit to drive a Solid State Relay

arduinosolid-state-relay

I am looking to use an SSR on an Arduino board (5v logic) to control a standard 120v light bulb.

I've heard people say you can "just drive this from a logic pin" – but the datasheets on the SSRs don't seem to (directly) indicate this.

The SSRs I am looking at (for example) describe the input voltage as "1.4 volts" – and show a condition, like "If=20mA".

So – does this mean I treat it like any LED – i.e. If I am driving it at 5 volts, I would (in this case) need to put a 180 ohm resistor in series with the input? From: (5v – 1.4v) / 20mA

Best Answer

20mA is the per-pin limit for an Arduino which means you could burn out the pin if you somehow exceeded the current draw even by a little. Since you are driving an AC load I'd want some isolation in case the relay burned out.

The best thing is to use a transistor or optoisolator as the switch, that way your Arduino is protected.

I suggest using this circuit: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Widgets/SSR-Board-v10.pdf

Circuit is from this Sparkfun product: https://www.sparkfun.com/products/10684