Arduino + Relay Explanation

Thanks for the replies guys.

BTW for this Circuit i have these following things, are they enough?

  1. SSR[ch12288]MITSUBISHI[ch12288]SF20DPS-H1-4 [ch12288]IN: DC4[ch65374]7[ch65334][ch12288]OUT: AC240V

  2. 1N4004 Diode --> 1N4006 (1A 800V)

  3. 2N2222 Transistor

  4. 1K Resistor. (BTW which resistor will be best, i have got a bunch of resistors )

  • 1/4W Carbon:
  • 1/2W Carbon:
  • 1W Metal:
  • 2W Metal

Do i need something else to make this circuits?