Choosing the correct resistor to be used with an optocoupler
To get the power in watts, square the current and multiply by the resistor''s value. Thus: A 1/8 watt resistor will handle the job just fine. You can go bigger but never smaller. That answers my