Trent wrote:The SSR looks fine as well but I'm still hung up on the forward current issue. It lists 50ma in the datasheet. I still can't understand how that doesn't translate into blowing the GPIO. Sorry for my ignorance :(
50mA is the absolute maximum rating. The output will turn on somewhere between 2-3mA, so calculate the resistor for 5mA and it should work fine.
VCC to 3.3v
5V through a 9.9 ohm resistor to JD-VCC
Refer to the schematic on the previous link.
Prior to applying power I measured the current limiting opto-isolator resistor R4 (nominally 1K) as 988 ohms. I applied power, grounded IN2, verified the relay closed and made the following measurements:
Voltage across R4: 0.492V
Current through opto-isolator: 0.492V/988 ohms = 0.498ma
Voltage across 9.8 ohm resistor in series with relay coil: 0.434V
Current through relay coil: 0.434V/9.8 ohms = 44.3ma
The Sainsmart spec says each relay requires 15-20ma of current, not sure why this one is pulling double that. More importantly, it only took half a milliamp to turn the opto-isolator on so you should have no problem driving this with the GPIO pins.
Are you discussing about relay power consummation or the current needed for the LED to saturate the optocoupler ?