Hello Arduino community, I have an arduino Uno and i'm trying to use it with a CPC1017N Opto-relay to turn a cree led on or off but I'm having trouble with the tiny chip:
I can't seem to make it work somehow, feel a bit stupid.
Does anyone know how these things work?
Here's a picture of my circuit:
-Does this look usable/workable? -Do I need to use a resistor in this circuit to prevent damage to the relay chip? -Or can I just forget the resistor and connect arduino 5v directly without damaging? -How do I work out the correct resistor value according to the datasheet of the cpc1017n, I don't really get what's happening? Is it just like Ohm's Law or something similar like: 5v - 'chip voltage drop' /resistor ohm = correct ma current? I don't get it totally. -How do I find out the operating current of the cpc1017n? Also max current?
Ugh so confusing, but I feel it's probably easy. I might have even broke my opto-chip, but I have a couple of spares to try again.
here's the basic operation of the opto-relay (CPC1017N):
Many thanks in advance for reading and hopefully replying. :(