ARDUINO IR CONTROLLED RELAY (AC/DC)
This circuit needs maximum 5v - 7v if powered directly through DC power supply only. If ur supplying AC current,
you need to have a transformer that outputs 12v ac current to it. You also need to add a 5v potentiometer to it ,to control the voltage. (if u don't have it, u can fix a 1k resistor to it.)
once u solder the components to the circuit, simply upload the code to the arduino pro.(Do not solder the arduino pro directly to the PCB. u can use female pin headers and fix it.) . make sure to put ur remote's decode results to the code.
these are the components,
- arduino pro mini (5v)
- 5v relay
- 3 pin screw header
- 2 pin screw header
- LM317
- 5k potentiometer or 1k resistor
- 2200 uF capacitor
- 100uF capacitor
- 2N3904 transistor
- LED'S (2)
- VS1838 IR receiver
- 1n4007 diode (4)
- 1k resistor (2)
- 220 ohm resistor(2)
- 10k resistor
- 0.33uF ceramic capacitor
- dip switch
for more info about this circuit, check out my project in instructables.
https://www.instructables.com/id/ARDUINO-IR-REMOTE-CONTROLLED-RELAY/
hope u enjoyed this project. plese like :)
if u have any questions, u are welcomed to ask in the comment section :)
#include <IRremote.h>
int RECV_PIN = 3;
int RELAY_PIN2 = 8;
IRrecv irrecv(RECV_PIN);
decode_results results;
void dump(decode_results *results) {
int count = results->rawlen;
}
void setup()
{
pinMode(RELAY_PIN, OUTPUT);
pinMode(13, OUTPUT);
digitalWrite(13,LOW);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
int on = 0;
unsigned long last = millis();
#define BUTTON_1 0xFF30CF //make sure u put ur decoded results here!
void loop() {
if (irrecv.decode(&results)) {
if (results.value == BUTTON_1)
{
on = !on;
digitalWrite(RELAY_PIN2, on ? HIGH : LOW);
digitalWrite(13, on ? HIGH : LOW);
dump(&results);
}
else{
digitalWrite(13,LOW);
}
}
ARDUINO IR CONTROLLED RELAY (AC/DC)
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(2)
- Likes(5)
- Engineer May 07,2020
- kapacita ?ubo? Jun 11,2019
- António Miguel Teixeira Azevedo May 08,2019
- Serkan GURSOY Apr 28,2019
- umar_khalid Apr 16,2019
- 12 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
6design
-
8usability
-
7creativity
-
5content
-
3design
-
4usability
-
3creativity
-
4content
-
8design
-
7usability
-
7creativity
-
7content
-
7design
-
5usability
-
5creativity
-
1content
-
5design
-
5usability
-
1creativity
-
1content
-
5design
-
5usability
-
5creativity
-
5content
-
7design
-
8usability
-
6creativity
-
7content
-
7design
-
8usability
-
8creativity
-
8content
-
9design
-
8usability
-
8creativity
-
9content
-
8design
-
7usability
-
7creativity
-
8content
-
10design
-
10usability
-
10creativity
-
10content
-
10design
-
10usability
-
10creativity
-
10content
More by umar_khalid
- DIY ARDUINO UNO BOARD this is a regular arduino board which all u need to do is solder the components and use a (FT232RL) ...
- ARDUINO IR CONTROLLED RELAY (AC/DC) This circuit needs maximum 5v - 7v if powered directly through DC power supply only. If ur supplyi...
- LIGHT AND MOTION SENSITIVE LAMP CIRCUIT This is a circuit which activates a RELAY when the envoiroment is dark and when there is a movement ...
- DIY ARDUINO PRO MINI 2.0 (upgraded version) This is a DIY arduino PRO mini which is like a regular arduino pro minni but it has less components ...
- DIY SMD ARDUINO UNO This is a regular arduino board which contains extra features such as an extra VCC/GND rail and it u...
- DIY SMD ARDUINO UNO R3 This is a regular arduino board which contains extra features such as an extra VCC/GND rail and it u...
- LDR CONTROLLED RELAY MODULE SMD This is a simple LDR dark sensor project which is designed to turn ON a relay (when there is light) ...
- DIY ARDUINO UNO SHEILD SMD This is a simple arduino sheild that can run on it's own as an arduino uno once it's powered...
- DIY arduino UNO sheild This is a simple arduino sheild that can run on it's own as an arduino uno once it's powered...
- DIY 4017 CLAP SWITCH CIRCUIT. THIS IS A SIMPLE CLAP SWITCH CCIRCUIT THAT USES A 4017ic DECODER. WHEN U CLAP ONCE, IT TURNS THE R...
- DIY DIGITAL CLOCK THIS IS A SIMPLE DIGITAL CLOCK THAT WORKS WITH A 9V BATTERY AND CAN BE SET JUST THREE BUTTONS.IF U L...
- DIY ARDUINO UNO R3 SMD THIS WORKS AS A REGULAR ARDUINO UNO WITH AN SMD ATMEGA 328P.U JUST NEED TO SOLDER THE COMPONENTS AND...
- arduino mega password security system shield this is a sheild for an arduino mega. this security system can be accesed using RFID and IR and a ke...
- LED CHASER this is a simple circuit using an ic 4017 and an ic 555 timer . u can adjust the frequency using the...
- LED CHASER this is a simple circuit using an ic 4017 and an ic 555 timer . u can adjust the frequency using the...
- DIY arduino uno r3 DIY arduino uno circuit.its used just like a regular arduino uno all u gotta do is get the component...
- ARDUINO UNO R3 AN ARDUINO UNO R3 DIY PROJECTU WILL NEED: ATmega 328P, 22PF ceramic capacitors(3), a few female pin ...
- 2 WAY INTERCOM CIRCUIT_20181119155207 THIS IS A 2 WAY INTERCOM CIRCUIT, IT WORKS LIKE A WALKIE TALKIE BUTWITH WIRES
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-