ARDUINO 3 Relays Shield (Part-2)

Introduction: ARDUINO 3 Relays Shield (Part-2)

Hey guys! This is the part-2 of my ARDUINO 3 Relays Shield instructable. Click here to read the part-1 if you missed it.

I have received my boards from LionCircuits. They are of very good quality. I always recommend them. All my boards are from them only. You can see how the boards look in the images given above.

Step 1: ASSEMBLY OF THE BOARD

I have sourced all the components required for assembly. Now I'm ready with all the components to start soldering them on fabricated board. My assembled boards look like the images given above. While soldering by your own first solder the SMD components later you can proceed with through-hole components.

Step 2: WORKING

My ARDUINO was designed to fit on UNO. Just place the shield with ARDUINO UNO as shown above.

All the relays are connected to Arduino at 7,9 and 12 pins.

A 12v adapter is used to powering the circuit.

Just upload the below code to the UNO.

CODE:

You just have to fix the Arduino shield over Arduino and control 3 Appliances using this shield. You can use the given code or use your own code for controlling the AC appliances.

#define RLY1 7
#define RLY2 9

#define RLY3 12

void setup()

{

pinMode(RLY1, OUTPUT);

pinMode(RLY2, OUTPUT);

pinMode(RLY3, OUTPUT);

digitalWrite(RLY1, LOW);

digitalWrite(RLY2, LOW);

digitalWrite(RLY3, LOW);

}

void loop()

{

digitalWrite(RLY1, HIGH);

digitalWrite(RLY2, HIGH);

digitalWrite(RLY3, LOW);

delay(1000);

digitalWrite(RLY1, HIGH);

digitalWrite(RLY2, LOW);

digitalWrite(RLY3, HIGH);

delay(1000);

digitalWrite(RLY1, LOW);

digitalWrite(RLY2, HIGH);

digitalWrite(RLY3, HIGH);

delay(1000);

}

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    Discussions