In this project we will switch on and switch off an DC relay connected to the Arduino.
Components Required:
1. Arduino Board
2. USB Cable that will connect the Arduino Board to the PC or your Laptop.
3. Breadboard
4. 5 Volt SPDT DC relay
Circuit Diagram:
Code:
int relaycoil = 12;
void setup()
{
pinMode(relaycoil, OUTPUT);
}
void loop()
{
digitalWrite(relaycoil, HIGH);
}
Note:
You can use various circuits like IR Receiver interfacing to switch these relays, etc. Explore your ideas with these basic ideas.
Components Required:
1. Arduino Board
2. USB Cable that will connect the Arduino Board to the PC or your Laptop.
3. Breadboard
4. 5 Volt SPDT DC relay
Circuit Diagram:
int relaycoil = 12;
void setup()
{
pinMode(relaycoil, OUTPUT);
}
void loop()
{
digitalWrite(relaycoil, HIGH);
}
Note:
You can use various circuits like IR Receiver interfacing to switch these relays, etc. Explore your ideas with these basic ideas.
No comments:
Post a Comment