How to control 240V/120V light bulb with solid state relay

Arduino Tutorial 29# How to control 240V/120V light bulb with solid state relay

Posted Leave a commentPosted in Arduino

In this tutorial we will learn How to control 240V/120V light bulb with solid state relay. We will also see what is difference between contact relay and solid state relay. So let’s get started.

For this you will need

  1. Arduino,
  2. Solid state relay,
  3. Jumper wires,
  4. Light bulb,
  5. Bulb holder, wires and plug.

 

Before starting this tutorial I want to give you a warning. Doing incorrectly can cause you serious injury or damage your Arduino. If you are not sure don’t do this.

Contact relay which actuate by means of electromagnetic force. When contact happen it makes “click” sound. Mechanical contact takes little large time to move. And also there is a chance to wear out the mechanical part.

Where as in solid state relay works on optocoupler. Which does not require any mechanical moving part. Therefore solid state relay have fast switching speed than contact relay.

This solid state relay is triggered by 3 to 32VDC. And output voltage is up to 330VAC.

Do connection as shown in diagram.

Circuit for controlling 240V from 5V arduino using solid state relay
Circuit for controlling 240V from 5V arduino using solid state relay
int led_light = 13;
void setup() {
pinMode(led_light, OUTPUT);

}

void loop() {
digitalWrite(led_light, HIGH);
delay(2000);
digitalWrite(led_light, LOW);
delay(2000);
}

Upload blink sketch from examples and change delay time to 2000 millisecond for on and off. After uploading the code turn on extension board. You can see it is on for 2 second and off for 2 second. Now I connected CFL bulb it works fine. But when I connect LED bulb at LOW signal it flicker for few millisecond.  You can control fan, light any home appliance with this relay.

Components list to buy online:

http://amzn.to/2fvSRJq   (Arduino)

http://amzn.to/2AW1iYb (Solid State Relay)

http://amzn.to/2vJ3lvo   (Jumper wire)

For more videos subscribe the channel

Till than keep learning keep making. 🙂